Re: [Hampshire] Xubuntu tight VNC problem

Top Page

Reply to this message
Author: Tim
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Xubuntu tight VNC problem
On Sunday 12 December 2010 17:26:16 Tim Brocklehurst wrote:
> On Sunday 12 December 2010 16:52:57 Tim Brocklehurst wrote:
> > > > > vncserver -geometry 1024x768 -depth 24 :1
> > >
> > > Unfortunately it has only moved me onto another problem, I now get a
> > > window where the desktop should display but it is just grey. The mouse
> > > I get a mouse cursor which I can move about but thats it.
> > >
> > > Tim
> >
> > You are running a VNC server which is connected to an X-Server with no
> > window manager running. There is an init script which is run on startup
> > by VNC, which should include an X program or window manager at the end.
> > From memory, it is in ~/.vnc/*init.However, I may be wrong about the
> > exact location. Some nice person who has VNC set up at home (I have it at
> > work for testing, but usually use XDMCP) may be able to tell you what it
> > should contain.
> >
> > Tim B.
>
> Apologies, this is it from the web:
>
> File: ~/.vnc/xstartup
> Contents:
> #!/bin/shxrdb $HOME/.Xresources
> xsetroot -solid grey
> x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"
> & # x-window-manager &
> gnome-session &
>
> Hope this helps...
>
> Tim B.



OK here is my xstartup file

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession


The x terminal line was originally hashed out but I removed the hash and I was
able to got a terminal window appear in the grey area when I made a vnc
connection, it all seem to work as a terminal would. But that is all I got.

I found this thread on Ubuntu forum

http://ubuntuforums.org/showthread.php?t=232940

I realise that they are discussing VNC 4 as opposed to tight vnc but it is
exactly the same problem. So as I am running xubuntu then I guess I should add

startxfce &

to the bottom of the script (I can't test it at the moment, the wife won't get
off the PC, apparently I have been hogging it!!)?? I will try it later but
welcome any comments

Tim