server端 :linux ubuntu 16.04
client端 :windows 10
一開始下載xrdp可以正常使用,為了要實現多用戶連線所以在測試時發現使用第二個用戶時遠端桌面為空白,所以就查了資料並更改一些設定,但因為連線一直失敗所以想說全部有關xrdp檔都刪掉....連這一刪再下載連到xrdp的輸入用戶都進不了了,卡在如圖的地方,請問有人遇過相同問題,想問問看我會可能是少了哪些檔案,謝謝!
參考這位Aaron大神 @aaron-is-the-best2114 的WSL
@aaron-is-the-best2114 Github
https://github.com/aaron-is-the-best2114/GUI-to-WSL
@Topic Programming ,Youtube
https://www.youtube.com/shorts/3_HnVd5Uv-A
(兩篇是講一樣的事)
起手式
1.Installing XFCE Desktop Environment
sudo apt install -y xrdp xfce4 xfce4-goodies
2.Configuring the Virtual Server
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
3.Finish Setting up The RDP Access
sudo nano /etc/xrdp/startwm.sh
Then comment out the following lines by placing a # before them: test -x /etc/x11... and the next line; echo /bin/sh /etc/x11...
Now, add the following on a new line at the very end: startxfce4
Save an Exit
sudo /etc/init.d/xrdp start
Now, open Remote Desktop on your Windows host machine, and connect to localhost:3390
//以上原文
①for windows10/11 pro遠端ubuntu
(我ubuntu裝的是MS版沒有其他尾綴版本)
②用內建的遠端桌面: localhost:3390
//因為文本有修改3389成3390,
//sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
③不需要預先key帳號密碼,開啟成功後才會問你root帳號密碼
然後就會得到一片空白的ubuntu桌面
希望有幫助到你,
2024/1/10 我先搞定WSL2
2024/1/11 開始裝ubuntu
2024/1/12 接著裝ubuntu 22.04.05 LTS,一開始就連CUDA toolkit都裝進去ubuntu映像檔,搞得500MB變成6GB很大一包,最後要VNC、rdp都失敗。
2024/1/13 把整個映像檔搬移到D槽、並指定跟ubuntu有關的指令都到D槽,直接整個沒辦法執行,只能移除
2024/1/14 所以我這次是先裝個ubuntu之後先把遠端連線先建置起來(只能看著他C槽塞好塞滿),之後就再把圖形介面補進去