All my searching ended up with no solution. Maybe somebody could help me.
I want to access my lubuntu via vnc. At my first try i used x11vnc. This tool allowed me to access the main X session. BUT: it's not stable. Sometimes it crashes and then it kills the whole X server and forces it to restart.
So i watched out for a alternative solution. Now I'm using vnc4server. Seems to be more stable.
BUT: i can't access my main X session (on 192.168.1.1:0). So i have to set up the ~/.vnc/xstartup correct.
Now I'm at this state: i do have a lxpanel over vnc, but the desktop-wallpaper and the desktop-links are missing. Even the design is not equal to the display 0. How i can start a complete LXDE over VNC?
My xstartup now looks like this:
Code: Select all
#!/bin/sh
[ -r HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
openbox &
lxpanel &
edit:
I found the solution! i just tried to "startlxde" in my putty window. it says, i have to install lxde-common. Funny thing, on a lubuntu, that comes with lxde, there are not the common packages inside...
After "sudo apt-get install lxde-common" i again tried "startlxde". Seemed to work on putty, but with no visible X. (i enabled X support for applications)
So i tried to insert "startlxde" in my ~/.vnc/xstartup... SUCCESS!!! Yes i have done that before with no effect. Nothing happened, because of the missing package! Even a errormessage was missing.
now my xstartup looks like this:
Code: Select all
#!/bin/sh
[ -r HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startlxde &