Created
October 26, 2021 15:33
-
-
Save hardikmdev/5f0ea3e0a92e3fd3703c2ecedd8f816c to your computer and use it in GitHub Desktop.
Setup Remote UI to Centos
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
| sudo yum clean all | |
| sudo yum update -y | |
| ip addr show | |
| ### Now Prepare machine to have UI & access for RDP reception. | |
| sudo yum install -y epel-release | |
| sudo yum groupinstall -y "Server with GUI" | |
| sudo yum install -y tigervnc-server xrdp | |
| # sudo yum install -y tigervnc-server | |
| sudo systemctl start xrdp.service | |
| sudo systemctl status xrdp.service | |
| sudo systemctl enable xrdp.service | |
| netstat -antp | grep xrdp ## verify | |
| # netstat -lntu | grep 3389 | |
| # sudo systemctl status firewalld.service | |
| sudo systemctl enable firewalld.service | |
| sudo systemctl start firewalld.service | |
| sudo firewall-cmd --permanent --add-port=3389/tcp ## for RDP, check | |
| sudo firewall-cmd --reload | |
| # reboot | |
| # echo $TERM | |
| # export TERM=xterm-256color | |
| # The "X Window System" package group for remote GUI | |
| ## REF : https://wiki.centos.org/HowTos/Xming | |
| # sudo yum groupinstall "X Window System" -y # not needed || Do we need a tool for UI access from remote ?! | |
| ## Remote UI using cockpit | |
| # sudo yum install cockpit | |
| # sudo systemctl enable --now cockpit.socket | |
| # sudo firewall-cmd --permanent --zone=public --add-service=cockpit | |
| # sudo firewall-cmd --reload | |
| # Access cockpit using <system-ip>:9090 and login using the dev system credentials. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment