--- tags: 實用工具, Ubuntu, XRDP --- ###### tags: `Ubuntu` ###### 撰寫日期:2020/04/08 ###### 作者:Lycoris # 如何使用 XRDP 遠端連線至 Ubuntu16.04 Unity 桌面 {%hackmd BJrTq20hE %} ### 參考資料 原文章: [Ubuntu 16.04: Connect to Unity desktop environment via XRDP](https://www.hiroom2.com/2016/08/28/ubuntu-16-04-remote-connect-to-unity-with-vnc-xrdp/) 其他參考資料: [XRDP – How To Remote Connect to Unity Desktop on Ubuntu 16.04](http://c-nergy.be/blog/?p=9962) [在Ubuntu 16.04下使用XRDP连接Unity实现远程桌面](https://www.g0dspeed.com/using-xrpd-remote-connect-unity-desktop-on-ubuntu-16) ## 目的 使用 `Windows` 自帶的遠端桌面連進 `Ubuntu` 系統,且可透過 `Unity` 介面進行操作 ## 步驟 1. 安裝 `TigerVNC` 原作者提供了腳本安裝:[腳本點此](https://drive.google.com/open?id=198SQVlnWnuP-Jb3PYJBPvZpND8GYs9es) 2. 安裝XRDP ``` bash $ sudo apt install -y xrdp ``` 3. 訂製視窗環境 * 進入 `~/.xsession` ``` bash $ sudo vim ~/.xsession ``` * 填入以下內容 ``` bash=1 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu & /usr/lib/x86_64-linux-gnu/unity/unity-panel-service & /usr/lib/unity-settings-daemon/unity-settings-daemon & for indicator in /usr/lib/x86_64-linux-gnu/indicator-*; do basename=`basename ${indicator}` dirname=`dirname ${indicator}` service=${dirname}/${basename}/${basename}-service ${service} & done unity ``` 4. 增加 gnome-control-center ``` bash $ sudo ln -s /usr/bin/unity-control-center /usr/bin/gnome-control-center ``` 5. 完成,可以用 windows 遠端桌面連進去了
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.