LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   get out of twm in vnc? (https://www.linuxquestions.org/questions/linux-general-1/get-out-of-twm-in-vnc-331662/)

dsschanze 06-08-2005 05:17 PM

get out of twm in vnc?
 
Hi,
I have never had this problem before on my RH9 machines, but when I started vncserver on my RHEL machine and logged in to it, I only see twm. On my RH9 machine I had to do no configuring to get gnome to work in vnc, so is there some configuration file that I need to access to tell vnc to use gnome instead of twm?

-Derek

Hangdog42 06-08-2005 09:42 PM

You need to edit your ~/.vnc/xstartup file to start the X environment you want.

dsschanze 06-08-2005 10:38 PM

Here is my xstartup file. Where do I need to specify the path or the desktop to start?

Code:

#!/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 &


Hangdog42 06-09-2005 11:12 AM

Quote:

twm &
That is the command that is starting twm, so comment that out and add gnome-session & in its place

dsschanze 06-09-2005 04:46 PM

Ok...here is my config file:
Code:

#!/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" &
gnome-session &

I have "gnome-session &" into where "twm &" was and it is now giving me this failsafe type view. Here is a screenshot of it http://dssdirectory.cjb.net/directory/vnc-error/vnc.png. Do you know what is wrong now?:Pengy:

Hangdog42 06-10-2005 07:27 AM

That looks an awful lot like twm. Are you sure you edited the right xstartup file? You have to edit the file in the home/.vnc directory of the user starting VNC. What I mean is that if you edit the xstartup file for user1, but then user2 starts vncserver, vnc will use user2's settings.

ethics 06-10-2005 07:31 AM

looks like my default gnome desktop when i installed FC3 :P what about gnome & ?


All times are GMT -5. The time now is 06:20 AM.