How do you config "xstartup" in vnc in order to start remote desktop with gnome?

Hi, I tried the following 2 configuration but could not see the gnome desktop screen, in stead of a grey grid shown.

How do you config VNC to use gnome? Thanks so much.

Code:
[root@earth ~/.vnc]# vi xstartup 

#!/bin/sh

unset SESSION_MANAGER
exec /usr/local/lib/X11/xinit/xinitrc


Code:
[root@earth ~/.vnc]# vi xstartup 

#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &

gnone-session &
 
Try:

Code:
#!/bin/sh

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
exec gnome-session

but, just guessing.
 
admail2 said:
Does it work in your system?

If the question was whether this

Code:
#!/bin/sh

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
exec gnome-session

works for me, than unfortunately I don't know, i don't have gnome installed.

I'm using Awesome WM:

Code:
ps@cht0n ~ % cat .vnc/xstartup 
#!/bin/sh
xsetroot -solid "#001800"
eval `ssh-agent`
/usr/local/bin/awesome
 
Thanks Pdb.

It can not work in my FreeBSD, even I correct the directory information. (etc. should be : exec /usr/local/lib/X11/xinit/xinitrc)

This configuration is same as my another Linux PC. :e;););)
 
Try to tail the log file in ~/.vnc/ any errors are bound to show up there.

My xstartup only contains the following:
Code:
/usr/local/bin/gnome-session &

Don't forget the & ;)
 
Back
Top