R12.2 Apps DBA. Powered by Blogger.

How to configure VNC Server

No comments :
1) Login as root on Redhat Linux Server
2) First we need to check the VNC packages installation.
rpm –qa | grep vnc
$ rpm –qa | grep vnc
Vnc-server-4.0-8.1
Vnc-4.0-8.1
The vnc package is installed as shown above. If not then install vnc package.
3) To start the VNC on system boot time,
# chkconfig –level 345 vncserver on
4) Uncomment the following lines and add all the VNC sessions required to start at the startup time in the /etc/sysconfig/vncservers file.
VNCSERVERS=”1:root 2:oracle”
VNCSERVERARGS[1]=”-geometry 800×600”
# vi /etc/sysconfig/vncservers
5) Login as the user for whom you want to configure VNC or use this command to login.
# su – oracle
6) Run the vncserver command to configure the VNC-based X session.’
Note: The vncserver :1 will create the $HOME/.vnc> directory for the user and will ask for a VNC password. This password will be requested by the VNC viewer program when connecting from a remote machine.
7) If the user wants to change the VNC password, in future the following command will be used:
$ vncpasswd
Password:
Verify:
$ HOME
Cd .vnc
Vi xstartup
8) Add the gnome-session & as shown below,
Xterm –geometry 80×24+10+10 –ls –title “$VNCDESKTOP Desktop” & gnome-session &
9) Save the file
Note: If you want to use KDE, add the following line instead of gnome-session &, startkde &
10) After setting the desktop, the existing VNC-based X session must be killed through this command.
$ vncserver –kill :1
11) Restart the VNC session for the effect of the changes. Enter the following commands to restart the newly configured VNC session:
Vncserver :1
Client Side Configuration
Download vnc viewer for windows.
Run the exe & enter Server address,
Keep the encryption as Always off/ power off
Enter username and password.
12) Cd $HOME/.vnc
13) Vi xstartup
14) Uncomment the unset and exec lines and will add xhost +
15) Save the file.
16) Existing VNC-based X session must be killed.
$ vncserver –kill :1
17) Restart the VNC session for the effect of the changes.
$ vncserver :1
18) Linux desktop will be displayed on your windows XP client

No comments :

Post a Comment

Note: only a member of this blog may post a comment.