small issue with vnc4server default xstartup file

Bug #377101 reported by Peter Triesz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vnc4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: vnc4server

noticed that even though I uncomment the referred 2 lines and restart vncserver, when I connect to the vnc session the gnome desktop is not initiated:

triesz@ptrtbl:~/.vnc$ cat xstartup
#!/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 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
triesz@ptrtbl:~/.vnc$

the reason looks 2 b:

triesz@ptrtbl:~/.vnc$ ls -la /etc/X11/xinit/xinitrc
-rw-r--r-- 1 root root 226 2008-05-29 13:53 /etc/X11/xinit/xinitrc
triesz@ptrtbl:~/.vnc$ exec /etc/X11/xinit/xinitrc
bash: /etc/X11/xinit/xinitrc: Permission denied
bash: exec: /etc/X11/xinit/xinitrc: cannot execute: Success
triesz@ptrtbl:~/.vnc$

changing the startup file like this resolves the problem:

triesz@ptrtbl:~/.vnc$ diff xstartup xstartup.orig
5c5
< . /etc/X11/xinit/xinitrc
---
> exec /etc/X11/xinit/xinitrc
triesz@ptrtbl:~/.vnc$

Default ~/.vnc/xstartup file shall be generated accordingly.

SUT:

triesz@ptrtbl:~$ uname -a
Linux ptrtbl 2.6.27-14-generic #1 SMP Wed Apr 15 18:59:16 UTC 2009 i686 GNU/Linux
triesz@ptrtbl:~$ cat /etc/debian_version
lenny/sid
triesz@ptrtbl:~$
triesz@ptrtbl:~$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
triesz@ptrtbl:~$

triesz@ptrtbl:~$ apt-cache policy vnc4server
vnc4server:
  Installed: 4.1.1+xorg1.0.2-0ubuntu7
  Candidate: 4.1.1+xorg1.0.2-0ubuntu7
  Version table:
 *** 4.1.1+xorg1.0.2-0ubuntu7 0
        500 http://ie.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status
triesz@ptrtbl:~$

Revision history for this message
David (davisein-registro) wrote :

I have problems with this too and this minor change worked.

Thanks for the advice.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.