Intro

Part 1 — Installation

1.1 Install Ubuntu

1.2 Install WSL2

1.3 Install Windows Terminal

1.3 Configure Windows Terminal

Part 2: Setting the root directory mount

[automount]
enabled = true
root = /

Part 3: Enabling the clipboard

3.1 Installing VcXsrv

It’s important all items are selected for installation

3.2 Installing the Ubuntu X11 Apps and xclip

sudo apt install x11-apps xclip xdg-utils

3.3 Setting the DISPLAY environment variable

export DISPLAY="$(grep '^nameserver ' /etc/resolv.conf | cut -d' ' -f2):0"
echo "$DISPLAY"

3.4 ‘Hacking’ Xlaunch

"C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto

3.5 Adding XLaunch to the start up apps

3.6 Troubleshooting

Part 4: Setting the browser variable

export BROWSER="wslview"
xdg-open "https://www.google.com"

Conclusion:

Logo

Ubuntu 社区为您提供最前沿的新闻资讯和知识内容

更多推荐