eXTReMe Tracker
Jul 032009
 

For the first time I was able to get VNC to work with Ubuntu with Gnome session instead of a xterm on gray background. The steps involved were exactly the same as I was following earlier, with one exception:  the setup of xstartup in the ~/.vnc folder.

For your xstartup file in ~/.vnc (the “.vnc” folder in
your home directory), you need the following:
—————————–
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -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” &
gnome-session &
# twm &
————————

instead of uncommenting the lines as the script suggests, you change the window manager to gnome-session

make sure restart vnc4server

The line which got Gnome working was “gnome-session &”

========================================

Now for all the steps involved (works in Karmic Koala Alpha 2, Ubuntu 9.10, kernel 2.6.30-10)

1. Install ssh server, ssh client, VNC viewer, VNC server, and xinetd

sudo apt-get install openssh-server openssh-client vnc4server xinetd  vncviewer

2. Setup the ssh password for your login

ssh-keygen

3. Test out the ssh server by typing in

ssh localhost  or ssh your_login@your_ip_address

4. Then create a vnc password

sudo vncpasswd ~/.vncpasswd

5. Edit the xstartup file in ~/.vnc directory

For your xstartup file in ~/.vnc (the “.vnc” folder in
your home directory), you need the following:
—————————–
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -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” &
gnome-session &
# twm &
————————

instead of uncommenting the lines as teh script suggests, you change the window manager to gnome-session

6. Create a VNC desktop

vnc4server :1 -geometry 1024×768

7. Then to tunnel into your VNC desktop, first create a SSH tunnel by logging into SSH with the comand:

ssh -L 5901:your_ip_address:5901 your_username@your_ipaddress

8. Finally, load up your VNC desktop

vncviewer localhost:1

And now you are ready to use connect to your machine remotely and use t

Jul 012009
 

The kernel 2.6.31-1 was on the list of upgrades in Ubuntu’s upcoming Karmic Koala release. The Koala is still in its Alpha 2 stage and almost all the other things usually go pretty well. However a kernel upgrade is always brings with it some uncertainty, some unexpected behaviour.

While 2.6.31-1 marks a bigger shift in kernel structure from 2.6.30-10, the older one seemed to have started working correctly after having brought about the first Green Screen of Death while booting with Ubuntu Linux. There were a few kernel upgrades to the older one which overcame the issues, I guess in grub.

dsc00468

Grub Options for 2.6.31-1

Ubuntu boots up until the stage where X starts

Ubuntu boots up until the stage where X starts

And then it drops to terminal

And then it drops to terminal

...with a screen pop-up showing failed X loading notification

...with a screen pop-up showing failed X loading notification

Today’s upgrade to 2.6.31-1 was able to go past the grub stage and when the loading was complete, the display failed to load X. There was also some nvidia drivier update which might have destabilized the X, but apparently the X seems to be working correctly when I choose the older kernel at grub. So there must be some sort of a compatibility issue with the new nvidia update and the latest kernel.

This being the Alpha release, many packages are updated daily. It’s quite likely that a kernel patch would soon be out to make it play well with the nvidia driver. But so far, the easiest way to get X loaded is to boot using the older kernel, 2.6.30-10.