Ubuntu 18 04安裝xdrp以使用遠端桌面

2022-07-12 18:45:13 字數 2421 閱讀 5780

開發環境有一台伺服器預設沒有螢幕(被我拿走用來拓展螢幕了),有時候需要使用到介面但嫌棄拆顯示器太麻煩,因此使用遠端桌面來解決這個需求。

sudo apt install -y tightvncserver  xrdp

sudo systemctl restart xrdp

windows
入口:選單--windows 附件--遠端桌面連線mstsc

1、輸入ip,不需要使用者名稱。

2、選擇xorg,輸入賬號密碼

入口:remmina

多次輸入密碼

1、xrdp 遠端登入需要輸入很多次密碼

authentication is required to creat a color profile
建立檔案/etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla並寫入內容:

[allow colord all users]

identity=unix-user:*

action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile

resultany=no

resultinactive=no

resultactive=yes

建立檔案/etc/polkit-1/localauthority/50-local.d/46-allow-packagekit.pkla並寫入內容:

[allow refresh repository all users]

identity=unix-user:*

action=org.freedesktop.packagekit.system-sources-refresh

resultany=no

resultinactive=no

resultactive=yes

thinclient_drives

ubuntu上安裝xrdp搭建遠端桌面,後面遠端桌面是可以了,但是使用者目錄下生出了乙個thinclient_drives資料夾,無論是不是root都不能刪除,

這個不刪除有時候也很難受,比如你要打包整個使用者目錄,打包到它的時候會告訴你許可權不允許,例如:

tar: thinclient_drives: cannot stat: permission denied

tar: exiting with failure status due to previous errors

具體表現如下:

$ sudo  ll 

ls: cannot access 'thinclient_drives': transport endpoint is not connected

total 72

drwx------ 7 root root 4096 jun 6 09:39 ./

drwxr-xr-x 23 root root 4096 jun 6 10:16 ../

d????????? ? ? ? ? ? thinclient_drives/

由於是它的所有者、組使用者、讀寫執行都是,chmod也不好使。

需要另闢蹊徑,使用下列命令:

$ sudo umount ~/thinclient_drives && sudo rm thinclient_drives -rf

Ubuntu18 04 系統安裝

swap 4096 55g 需要放各種軟體 sudo apt get update sudo apt get install openssh server 無法獲得鎖 var lib dpkg lock open 11 資源暫時不可用 e 無法鎖定管理目錄 var lib dpkg 是否有其他程序正...

安裝Ubuntu18 04過程

製作啟動u盤 準備好iso檔案,使用 rufus 2.18 製作啟動u盤。partition scheme and target system type 建議選擇 mbr,uefi 從u盤啟動 建立主分割槽 安裝系統和軟體 40g 主分割槽 空間起始位置 ext4 雖然ubuntu18.04系統在1...

Ubuntu18 04離線安裝NVIDIA顯示卡驅動

費了一天的勁,走了好多的坑,最主要的原因是gcc版本的問題,一定要用最新版本的gcc 我用的是gcc 7.3 刪除所有原來顯示卡驅動sudo apt remove purge nvidia 4 禁用nouveau驅動 sudo gedit etc modprobe.d blacklist.conf ...