Skip to content

Instantly share code, notes, and snippets.

@HubKing
Last active May 1, 2022 09:18
Show Gist options
  • Save HubKing/f48504e19e593bdefa7c332e74f82ee1 to your computer and use it in GitHub Desktop.
Save HubKing/f48504e19e593bdefa7c332e74f82ee1 to your computer and use it in GitHub Desktop.
Install and setup RDP on Arch Linux
[Enable AUR]
Note: Don't do it with the `root` account. makepkg refuses to run under root.
sudo pacman -S git base-devel
sudo pacman -S git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
[Enable RDP]
Note: Assembled from various web sources including https://github.com/txhx38/manjaro-gnome-xrdp
yay -S xrdp xorgxrdp
sudo systemctl enable xrdp.service
sudo systemctl enable xrdp-sesman.service
sudo nano /etc/X11/Xwrapper.config
Add `allowed_users=anybody` and save.
nano ~/.xinitrc
Add `exec dbus-launch --sh-syntax gnome-session` ands save.
git clone https://github.com/matt335672/pam_close_systemd_system_dbus
`cd pam_` (tab)
sudo make install
sudo nano /etc/pam.d/xrdp-sesman
Add `session optional pam_close_systemd_system_dbus.so` above existing `session include`. Order matters.
sudo reboot
[Disable login screen sleep]
Disable automatic sleep for a user, and then execute the following command with `username` replaced with the actual user ID.
`IFS=$'\n'; for x in $(sudo -u username gsettings list-recursively org.gnome.settings-daemon.plugins.power); do eval "sudo -u gdm dbus-launch gsettings set $x"; done; unset IFS`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment