Link to home
Start Free TrialLog in
Avatar of SandMan
SandManFlag for Singapore

asked on

How to install VNC on debian 5.0.7

Hi Linux Experts,

Can someone help me on how to configure VNC Server on Debian 5.0.7?
SOLUTION
Avatar of Graham N.
Graham N.
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SandMan

ASKER

Hi Rinil,

I tried to follow you link, but when I try the following commands it shows an error "E: Couldn't find package vnc4server".

I tried the following

apt-get update
apt-get install vnc4server
Debian 5.x specific instructions for installing VNC:

            #apt-get install vnc4server

Run as the logged in user,  enter the password and confirmation (performance testing):

             #vnc4server

Add service to autorun:

             #gedit /etc/rc.local

Adding before the command "exit 0" the following line:
 
             #su – server -c "vnc4server :1"

Check that its running in rc.local:

             #sudo /etc/rc.local start

Next you must configure a wrapper for connecting a user to VNC, open the file:

            #gedit /home/server/.vnc/xstartup

Get contents of the file and edit accordingly:
#!/bin/sh 

# Uncomment the following two lines for normal desktop:

 unset SESSION_MANAGER #uncomment the first line
 # exec /etc/X11/xinit/xinitrc
 gnome-session & #launch Gnome 

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager &

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SandMan

ASKER

.