2. Install package
#yum install –y tigervnc-server.x86_64 0:1.0.90-0.15.20110314svn4359.el6
3. Edit vncservers file:
# vim /etc/sysconfig/vncservers
# vim /etc/sysconfig/vncservers
Uncomment the two lines below and edit it with your own username:
VNCSERVERS=”2:myusername”
VNCSERVERARGS[2]=”-geometry 800×600 -nolistentcp -nohttpd -localhost”
VNCSERVERARGS[2]=”-geometry 800×600 -nolistentcp -nohttpd -localhost”
Example:
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024×768?
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024×768?
4. Configuring Desktop Environment if needed:
# /root/.vnc/xstartup
# /root/.vnc/xstartup
5. Set the password for vncserver user:
# vncpasswd
Password: myvncpassword
Verify: myvncpassword
# vncpasswd
Password: myvncpassword
Verify: myvncpassword
Start the VNCServer:
Note: Its must to set the password for VNC otherwise the service may not start.
6. Configure other services:
# service vncserver start
# chkconfig vncserver on
Configure firewall for vnc users, to disable it:
Also stop NetworkManager& disable SELinux
# /etc/init.d/NetworkManager stop
# chkconfigNetworkManager off
Edit here for disable SELINUX.
#vim /etc/sysconfing/selinux
SELINUX=disabled
Save &quit!
Stop the IPtables.
# /etc/init.d/iptables save
# /etc/init.d/iptables stop
# /etc/init.d/iptables stop
# chkconfigiptables off
B. Client configuration:
Now to acces the VNC console from the client, you need to install VNC client on the system on both Linux or Windows which is “Tigervnc Client”. You can download it from ‘sourceforge’ website.
Now to acces the VNC console from the client, you need to install VNC client on the system on both Linux or Windows which is “Tigervnc Client”. You can download it from ‘sourceforge’ website.
Now, Run tigervnc Client
Give IP as: 172.16.XX.XX
The default port number is 5900+1 for each user:
The second user will be 5902 (VNCSERVERS=”2:root”).
You can Access the Server machine now.
Note: vnc server & client machine in same Network.
Recent Comments