Remote Desktop Protocol
Remote Desktop Protocol (RDP) is a proprietary protocol which provides a user with a graphical interface to connect to another computer over a network connection.
Setting RDP
Install Xrdp and the Xorg backend:
sudo pacman -Syyu xrdp xorgxrdp
Then, enable the xrdp service:
sudo systemctl enable xrdp
Create the ~/.xinitrc
file with the following content:
#!/usr/bin/env bash### Executed by startx (run your window manager from here)
userresources=$HOME/.Xresourcesusermodmap=$HOME/.Xmodmapsysresources=/etc/X11/xinit/.Xresourcessysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then xrdb -merge $sysresourcesfi
if [ -f $sysmodmap ]; then xmodmap $sysmodmapfi
if [ -f "$userresources" ]; then xrdb -merge "$userresources"fi
if [ -f "$usermodmap" ]; then xmodmap "$usermodmap"fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/?*.sh; do [ -x "$f" ] && . "$f" done unset ffi
# Workaround for GNOME apps starting slowly# See: https://bbs.archlinux.org/viewtopic.php?id=224787dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
# Start the GNOME sessionexec gnome-session
Finally, reboot the system and don’t login inside the system otherwise you cannot login by RDP. Only one user session is allowed at time.
Open your RDP client, retrieve the IP address of your system and login by your user account credentials.