Running and Configuring VNC Server on Linux

VNC stands for Virtual Network Computing. It is, in essence, a remote display system which allows you to view a computing 'desktop' environment not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures.

The VNC system allows you to access the same desktop from a wide variety of platforms.

Oracle Enterprise Linux ships with a VNC Server. If you find it is not installed, you can deploy the package thats part of the install CD/DVD. Just cd to the "Server" directory and run yum install vnc-server*

• To run VNC on different port other than default vncport edit /usr/bin/vncserver file.


[root@sanjay ~]# vim /usr/bin/vncserver
vncport=
for ex. vncport=5902

$vncPort = 5902;
$desktopLog = "$vncUserDir/$host:$displayNumber.log";
unlink($desktopLog);

• Starting VNC service on new defined port
#vncserver :5902
• Set the password by using vncpasswd command

[root@sanjay ~]# vncpasswd
Password:
Verify:

• Edit the /root/.vnc/xstartup file,
Uncomment the following two lines for normal desktop.
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

• Perform the following steps



Now, you can confirm the VNC server is up again by executing netstat command:


[root@sanjay ~]# netstat -tulpan | grep vnc

0 comments:

Post a Comment