Ubuntu 9.04 remote desktop using vncserver without monitor
Only few more days for Ubuntu team to release 9.04 but I couldn’t wait so I downloaded RC version and installed on torrent download server . The task is to install the ubuntu 9.04 RC and to completely manage the server remotely. The installation was completely smooth and there was no issues. The installation completely detected all the hardware and everything worked perfectly like a dream come true.
Next step is to install secure shell ssh.
#sudo apt-get install ssh
Ubuntu comes with remote desktop manager. I tested the same and it would not work when there is no monitor connected to the system. I tried different methods and nothing worked out for me. So I decided to ditch the built in remote desktop and installed vncserver.
#sudo apt-get install vnc4server
After it is installed you should be logged as normal user and not root.
#vncserver :1 -geometry 1024×768 -depth 16
Once you issue the above command it will prompt for password. This password will be used for connecting to the server. Once it is complete we can change the setting for the server. Before we do that we have to kill the server.
#vncserver -kill :1
The configuration is kept in the file /home/userxx/.vnc/xstartup I edited this file so that I can start the server with gnome. My file looks exactly like below.
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
gnome-session &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
# xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &
Now everything is done. All you have to do is to restart the system which is good for the setting to work properly. One you have restarted please start the vnc server.
#vncserver
Now you can remote ubuntu from windows xp with install vnc client Download VNC here http://realvnc.com
0 komentar:
Posting Komentar