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
# alwaysshared
more startVNC_55
vncserver -kill :55
sleep 5
vi /etc/ssh/sshd_configVNC start stop script
Create a VNC start script as follow.
vncserver -kill :55
sleep 5
vncserver :55 -geometry 1920x1200
./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
service sshd restart
xhost +
or
xhost
ssh username@hostname -X
Test with the command
xclock
Your comments are most valuable and it would help me to come up with better posts.