Forked from GJaminon/Install Desktop and RDP on RHEL
Created
December 30, 2023 05:39
-
-
Save mmdeniz/dc6017fbd0303a736dd97f97583669b9 to your computer and use it in GitHub Desktop.
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
source : https://sameeraman.wordpress.com/2018/04/05/how-to-install-gui-on-a-red-hat-7-x-server-in-azure/ | |
# Install Desktop | |
sudo yum groupinstall "Server with GUI" | |
# Install Graphical targets | |
sudo systemctl set-default graphical.target | |
sudo systemctl start graphical.target | |
sudo systemctl status graphical.target | |
## Install xRDP | |
#Install EPEL Repo | |
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
https://docs.fedoraproject.org/en-US/epel/#_el9 | |
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms | |
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | |
# Install xrdp | |
yum install xrdp tigervnc-server xterm | |
#Enable xrdp | |
systemctl enable xrdp | |
systemctl enable xrdp-sesman | |
systemctl start xrdp | |
systemctl status xrdp | |
# Open Firewall | |
sudo firewall-cmd --permanent --add-port=3389/tcp | |
sudo firewall-cmd --reload | |
#Enable theme | |
echo "gnome-session" > ~/.Xclients | |
chmod a+x ~/.Xclients |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment