You are not logged in.

#1 2013-04-26 17:03:10

beakie
Member
Registered: 2013-04-26
Posts: 17

vncserver - lxde

I have been using vncserver successfully for a while but the other day I had to reinstall arch and ever since, I have not been able to get it working.

I remember fiddling with xstartup quite a bit before I got it right last time but I cannot remember what I set it to. I have x0vncserver working fine, but can't get vncserver to open x windows on connection.

startx works on my machine.

I have googled it lots and tried many different things....

Here is my xstartup

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startx &
#twm &

Any input would be appreciated. Thanks


Edit: I forgot to state it loads a window with a blank screen and a cross cursor.

Last edited by beakie (2013-04-26 17:04:09)

Offline

#2 2013-04-26 17:25:27

beakie
Member
Registered: 2013-04-26
Posts: 17

Re: vncserver - lxde

I got it working with this...

#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid black
lxterminal &
/usr/bin/lxsession -s LXDE &

It doesn't have anything in the menu but that's worth a few googles before I will look for a reply on this forums so I guess this is solved... for now.

Offline

#3 2013-04-26 20:16:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: vncserver - lxde

See the tigervnc article if you  haven't already.  You don't need the & in your last line by the way.  Mine:

#!/bin/sh
export XKL_XMODMAP_DISABLE=1
exec startlxde

Offline

Board footer

Powered by FluxBB