# XRDP # Description [xrdp](https://github.com/neutrinolabs/xrdp) provides a graphical login to remote machines using Microsoft Remote Desktop Protocol (RDP). xrdp accepts connections from a variety of RDP clients: Many of these work on some or all of Windows, Mac OS, iOS, and/or Android # Usage 1. Call the client software. For windows, `Remote Desktop Connection(远程桌面连接)` is installed by default. For macos, [Remote Desktop](https://learn.microsoft.com/zh-cn/windows-server/remote/remote-desktop-services/clients/remote-desktop-mac) shall be downloadable. 2. Pass the ip and port to one server. The info is availble at [ipaddress](http://101.6.120.23/wiki/ipaddress). 3. Then you will enter the XFCE desktop environment. Notes: 1. The passwords (called credential in Windows) can be saved for each session. 2. The sessions can be saved in `.rdp` files. 3. For some servers (white/black, red), it is not available yet. 4. The compatibility is much more better than x2go, which will crash in some servers when vmd is called. The disadvantage can be fixed resolution and larger band width consumption. # Installation (For the manager only) ## For Ubuntu (Rainbow, red, blue, green, gold, indigo, yellow, purple) Install xrdp ``` sudo apt install xrdp sudo systemctl status xrdp sudo adduser xrdp ssl-cert sudo systemctl restart xrdp ``` Set `XFCE` as the default desktop environment. Choose the index of `startxfce` ``` sudo update-alternatives --config x-session-manager ``` ## For Slackware 15.0 (orange, violet) Install [xrdp](https://slackbuilds.org/repository/15.0/system/xrdp/) and [xorgxrdp](https://slackbuilds.org/repository/15.0/system/xorgxrdp/). Start the service mannually ``` sudo /etc/rc.d/rc.xrdp start ``` Set `XFCE` as the default desktop environment. Add the lines to the file `rc.4` ``` sudo vi /etc/rc.d/rc.4 # Start XFCE if [ -x /usr/bin/gdm ]; then exec /usr/bin/startxfce4 fi ``` Modify some configurations according to [xrdp](https://slackbuilds.org/repository/15.0/system/xrdp/)'s readme. ``` sudo vi /etc/X11/Xwrapper.config allowed_users = anybody ``` ## For Centos 7 (white, black) Exploring ~