Centos/RHEL open x11vnc service
This article I will show you, tools which enabled you to access remote Desktop on machines running Centos/RHEL.
Before beginning, you only need SSH access to your server and rights to install software. You need to know root password or permissions to use sudo. All commands will work on every CentOS server 5/6/7. Before start, you need to install
#yum groupinstall 'GNOME Desktop Environment' 'X Window System'
x11vnc – simples of this 3 methods to get remote access. VNC stands for Virtual Network Computing) is a very useful network graphics protocol
Perhaps you need to enable EPEL (Extra Packages for Enterprise Linux) repository. Run
#yum -y install epel-release
Now we can install x11vnc. This command will install server and solve all dependencies
#yum -y install x11vnc
Then we will protect server with password:
# x11vnc -storepasswd /etc/x11vnc.pass
Config DM script ,for example gdm:
#vi /etc/dgm/Init/Default
add new line before exit(0):
/user/bin/x11vnc -nap -bg -many -repeat -clear_keys -rfbauth /etc/x11vnc.pass -rfbport 5900
Config iptables:
#iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 5900 -j ACCEPT
#service iptables save
#service iptables restart
All complete,enjoy!
More detail,please click here:5 Tools to Enable Remote Desktop Access on RHEL/CentOS 7