之前错误的把 boot:windows 改成 boot:win,忘了这是 run-script-os 规定的写法。又改了回去。

This commit is contained in:
陆柯 2022-09-19 11:02:15 +08:00
parent 5e4779faa0
commit 290ba0dca2
5 changed files with 35 additions and 3 deletions

View File

@ -104,4 +104,3 @@ fi
echo
echo "=== Debian System Setup Completed >>>"

View File

@ -47,7 +47,7 @@ alias cvs='cvs -z9'
alias ps='ps -elf'
alias emacs='emacs -nw'
alias emacst='emacs -nw'
alias myip='ifconfig | grep netmask'

View File

@ -5,7 +5,7 @@ function proxy(){
read -p ">>> " proxySwitch
if [ $proxySwitch ] && [ $proxySwitch == "u" ]
then
export ALL_PROXY=socks5://127.0.0.1:1090
export ALL_PROXY=socks5://127.0.0.1:8099
export http_proxy=http://127.0.0.1:41091
export https_proxy=https://127.0.0.1:41091
echo -e "--- 已开启网络代理"

26
wsl-install-xfce.sh Normal file
View File

@ -0,0 +1,26 @@
echo Install xfce on WSL2-Debian11/Ubuntu ...
echo 2022-09-14 测试无效!
sudo apt update && sudo apt -y upgrade
sudo apt-get purge xrdp
# install xfce
sudo apt-get install -y xfce4 xfce4-goodies
# install xrdp
sudo apt-get install xrdp
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini
echo xfce4-session > ~/.xsession
# install dbus
sudo apt-get install dbus-x11
sudo service dbus start
# because while starting xrdp I got the error 'Failed to execute child process 'dbus-launch'':
# export the correct DBUS_SESSION_BUS_ADDRESS and DBUS_SESSION_BUS_PID
export $(dbus-launch)
# enable dbus
sudo systemctl enable dbus
sudo /etc/init.d/dbus start
sudo /etc/init.d/xrdp start
# check xrdp status
sudo /etc/init.d/xrdp status

View File

@ -1,3 +1,5 @@
echo Run PowerShell in Administrator mode
echo Enable [Windows Subsystem for Linux] feature
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
@ -11,3 +13,8 @@ wsl --update
wsl --shutdown
wsl --list --online
wsl --install -d Debian
@REM 2022-09-13
@REM 发现安装 WSL 被简化了
@REM https://docs.microsoft.com/en-us/windows/wsl/install (2022-08-13)
@REM 只要 `wsl --install -d debian` 即可