VNC SERVER CONFIGURATION
package - vnc-server
service - vncserver
config file - /etc/sysconfig/vncserver
port no. - 5801, 5802
----------------------------------------------------
Configuration of VNC-SERVER on RHEL-5
> Install the packag of vnc
#yum install vnc-server
> Configure the configuration file (/etc/sysconfig/vncservers) edit the line.
Ex : - # VNCSERVERS="2:myusername"
VNCSERVERS="2:root 3:ram" [Per user display no. :2 :3 :4 etc can be any thing]
VNCSERVERARGS[2]="-geometry 800x600" [The display size of the user 2,3,4]
VNCSERVERARGS[3]="-geometry 800x600"
: wq (save the file)
> creat a local user "tom "
#adduser tom
#passwd tom
XXX
XXX [This is the local password of user tom.]
> Creat password to access the vnc server by running below command.
#su - tom
#vncserver
Password : xxxx
: xxxx [Vnc password]
> Same for root user
#su - root
#vncserver
Password : xxxx
: xxxx
> While running command 'vncserver' to generate the vnc login password , apart of this command also generate a 'gnome' environment for the user.
Ex: - "Xauth : creating new authority file /home/ram/.Xauthority"
> After that 'vncserver' command also creat a scripting file under user home directory , under
.VNC/xstartup, which run while accessing remotly from the vncviewer to take a gnome enviro-
nment.
Ex:- "Creating default startup script /home/ram/.vnc/xstartup"
> Configure the scripting file /home/ram/.vnc/xstartup
#vim /home/ram/.vnc/xstartup
> Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER [delet # singh]
# exec /etc/X11/xinit/xinitrc [delet # singh]
:wq [save the file after uncomentig these two line]
package - vnc-server
service - vncserver
config file - /etc/sysconfig/vncserver
port no. - 5801, 5802
----------------------------------------------------
Configuration of VNC-SERVER on RHEL-5
> Install the packag of vnc
#yum install vnc-server
> Configure the configuration file (/etc/sysconfig/vncservers) edit the line.
Ex : - # VNCSERVERS="2:myusername"
VNCSERVERS="2:root 3:ram" [Per user display no. :2 :3 :4 etc can be any thing]
VNCSERVERARGS[2]="-geometry 800x600" [The display size of the user 2,3,4]
VNCSERVERARGS[3]="-geometry 800x600"
: wq (save the file)
> creat a local user "tom "
#adduser tom
#passwd tom
XXX
XXX [This is the local password of user tom.]
> Creat password to access the vnc server by running below command.
#su - tom
#vncserver
Password : xxxx
: xxxx [Vnc password]
> Same for root user
#su - root
#vncserver
Password : xxxx
: xxxx
> While running command 'vncserver' to generate the vnc login password , apart of this command also generate a 'gnome' environment for the user.
Ex: - "Xauth : creating new authority file /home/ram/.Xauthority"
> After that 'vncserver' command also creat a scripting file under user home directory , under
.VNC/xstartup, which run while accessing remotly from the vncviewer to take a gnome enviro-
nment.
Ex:- "Creating default startup script /home/ram/.vnc/xstartup"
> Configure the scripting file /home/ram/.vnc/xstartup
#vim /home/ram/.vnc/xstartup
> Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER [delet # singh]
# exec /etc/X11/xinit/xinitrc [delet # singh]
:wq [save the file after uncomentig these two line]
No comments:
Post a Comment