Skip to content

Instantly share code, notes, and snippets.

@coffeejoshua
Last active January 31, 2022 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coffeejoshua/79b3afb63a3756f19438d94943f3f8dd to your computer and use it in GitHub Desktop.
Save coffeejoshua/79b3afb63a3756f19438d94943f3f8dd to your computer and use it in GitHub Desktop.
Raspberry PI Bullseye new user, xrdp and group permissions setup
# In raspberry pi VERSION="11 (bullseye)", you need to make a new user instead of using "pi" user for xrdp.
# Install xrdp
sudo apt-get install raspberrypi-ui-mods xinit xserver-xorg
sudo reboot
sudo apt install xrdp
# Check on xrdp status
systemctl show -p SubState --value xrdp
# Add xrdp user to ssl-cert group
sudo adduser xrdp ssl-cert
# Make another user that will sign in as RDP (change to your name)
$NEWUSER='josh'
sudo adduser ${NEWUSER}
# You may want to also copy this so you don't need to enter a password for sudo as the new user
sudo cp /etc/sudoers.d/010_pi-nopasswd 010_${NEWUSER}-nopasswd
# Note: after you copy the file, edit it and put your username in it (TODO: do this with sed)
# Finally add the user to all these groups so it doesn't get strange gpio permission bugs
sudo usermod -a -G adm,audio,cdrom,dialout,games,gpio,i2c,input,netdev,plugdev,spi,sudo,users,video ${NEWUSER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment