Nothing Special   »   [go: up one dir, main page]

Skip to content

nufeng1999/wsl_XWin_Cygwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViewCount

WSL_GNOME

Windows & Linux GUI Mix WSL GNOME Desktop

Use Cygwin's xwin to run WSL GNOME Desktop

ISwitch.exe --- Contrl app window maxsize,Resolving windows and WSL gui app input method conflicts

ISwitch.exe -c --- Resolving windows and WSL gui app input method conflicts

ISwitch.exe -w --- Contrl app window maxsize

ISwitch.exe -s --- Move task to background( default -c -w)

Watch the video

Install

Important Notice :
1.Executing Windows terminal with administrator
2.Executing WSL with root (wsl -u root -d Ubuntu )

Powershell /DOS

notepad %USERPROFILE%.wslconfig
[wsl2]
guiApplications=false

WSL

su - root

apt install net-tools hwdata gedit
apt install fcitx fcitx-config-gtk fcitx-sunpinyin fcitx-pinyin fcitx-googlepinyin xfonts-intl-chinese
apt install xfonts-wqy xfonts-unifont fonts-wqy*

##It depends on the version
apt install linux-tools-generic

apt install language-pack-gnome-zh-hans language-pack-kde-zh-hans language-pack-zh-hans
apt install daemonize gdm3 gnome

mkdir /opt/WSL

cd /opt/WSL

git clone https://github.com/nufeng1999/WSL_GNOME.git --recurse-submodules

or

git clone git://github.com/nufeng1999/WSL_GNOME.git --recurse-submodules

cd WSL_GNOME/cygwin-auto-install
git checkout master
cd ../

Install WSL_GNOME

chmod +x ./install.sh
./install.sh
OR
./install.sh -c "C:\\cygwin64" -i "C:\\ISwitch"
OR
./install.sh --cygwindir="C:\\cygwin64" --iswitchdir "C:\\ISwitch"

0.67.6+version of wsl already supports systemd
Edit the file /etc/wsl.conf
[boot]
systemd=true

Close WSL

DOS/PowerShell

wsl --shutdown

reopening WSL

wsl -u root -d Ubuntu

// execute gnome
wsl2-systemd
gnome-session &

startgnome2
// other user execute gnome
. setguienv
startgnome2


If you feel that these contents are helpful to you, you can make friendly sponsorship to developers.You may get more help after sponsorship

如果你感觉这些内容对你有所帮助,可以向开发者进行友情赞助。赞助后你将可能获得更多帮助。

WeChat Pay(微信方式赞助)

Alipay(支付宝方式赞助)

咸鱼付费远程协助

咸鱼付费远程协助

技术支持赞助群名称:
WSL_XWin_Cygwin
群 号:
1014866104
技术群含更多资料
赞助后可获得入群答案

QQ技术支持赞助群