April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

VNC Server Configuration Redhat and Centos

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
Uncomment the two lines below and edit it with your own username:
VNCSERVERS=”2:myusername”
VNCSERVERARGS[2]=”-geometry 800×600 -nolistentcp -nohttpd -localhost”
Example:
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024×768?
4. Configuring Desktop Environment if needed:
# /root/.vnc/xstartup
5. Set the password for vncserver user:
# 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
# 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, 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.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>