Configure VNC Server on Linux
1) Install VNC server packages
# yum install tigervnc-server
2) Edit the "/etc/sysconfig/vncservers" file to configure the required
displays. The following entries enable VNC for display numbers ":2" and
":3". Notice multiple "display:user" pairs are defined on a single line,
but the arguments for each display are defined separately.
VNCSERVERS="2:root 3:oracle"
VNCSERVERARGS[2]="-geometry 1280x1024 -nolisten tcp -localhost"
VNCSERVERARGS[3]="-geometry 1280x1024"
3) Set the VNC password for any users defined in the "/etc/sysconfig/vncservers" file.
# vncpasswd
Password:
Verify:
#
# su - oracle
$ vncpasswd
Password:
Verify:
$ exit
logout
#
4) Enable the "vncserver" service for autostart and start the service.
# chkconfig vncserver on
# service vncserver start
No comments:
Post a Comment