-
-
Save anhvandev/e14c41df832366cb645875fbec1f3115 to your computer and use it in GitHub Desktop.
Install GUI and XRDP for AlmaLinux 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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