Skip to content

Instantly share code, notes, and snippets.

@anhvandev
Forked from mscribellito/install.sh
Last active March 29, 2025 07:21
Show Gist options
  • Save anhvandev/e14c41df832366cb645875fbec1f3115 to your computer and use it in GitHub Desktop.
Save anhvandev/e14c41df832366cb645875fbec1f3115 to your computer and use it in GitHub Desktop.
Install GUI and XRDP for AlmaLinux 9
#!/bin/bash
dnf update -y
adduser your_username && passwd your_username # create and change password
usermod -aG wheel your_username
dnf groupinstall "Server with GUI" -y
systemctl set-default graphical.target
dnf install epel-release -y
dnf install xrdp -y
systemctl status xrdp
systemctl enable --now xrdp
nano /etc/xrdp/xrdp.ini
# find port= and replace it with port=tcp://:3389 or another port, make sure it is open in firewall
systemctl restart xrdp
firewall-cmd --add-port=3389/tcp --permanent
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment