Monday, November 30, 2015

VNC Server Configuration (RHEL 6)



Package name:
tigervnc-server.x86_64 0:1.0.90-0.15.20110314svn4359.el6

Install package
# yum install  –y  tigervnc-server.x86_64 0:1.0.90-0.15.20110314svn4359.el6

Edit vncservers file:
# vi /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″

Configuring Desktop Environment if needed:
/root/.vnc/xstartup

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.

# 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.
#vi  /etc/sysconfing/selinux
SELINUX=disabled
Save &quit!
Stop iptables.

# /etc/init.d/iptables save
# /etc/init.d/iptables stop
# chkconfig iptables off

Now your tigervnc server is configure successfully
After that go to the

“System tool” --> “Preferences” --> “Remote Desktop”

click on that it will open window to configuring remote loging screen.

In this window click on bellow check box for allowing users to access the server:

“Allow other users to view your desktop”
“Allow other users to control your desktop”
“Require the user to enter this password:”

Uncheck bellow check box in this window:
“You must confirm each access to this machine”

Go to
Tigervnc Client (install Windows or any linux machine)
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.
  



Go to
Tigervnc Client (install Windows or any linux machine)
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.



No comments:

Post a Comment