VNC Server Installation Steps
PURPOSE: All documents are provided on this Blog just for educational purposes only. Please make sure that you run it in your test environment before to move on to production environment.
yum groupinstall "Server with GUI"unalias shutdown
shutdown -r now
yum install tigervnc-server xorg-x11-fonts-Type1
yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils
vncpasswd
/root
cd .vnc/
The File config file looks like as follow and no need to change.
vi .vnc/config
# securitytypes=vncauth,tlsvnc# desktop=sandbox
# geometry=2000x1200
# 1920x1200
# localhost
VNC start stop script
vncserver -kill :55
sleep 5
./startVNC_55 &
ps -ef|grep vnc
MobaX
hostname=vm-adm-vnc-th.com
port=5955
For DISPLAY
NOTE: check following setting
Uncheck and set to no
X11UseLocalhost no
xhost +
or
xhost
ssh username@hostname -X
Test with the command
xclock