LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2004, 11:39 AM   #1
John Parsons
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 0
Starting Gnome Session over VNC


Some of you will likely think "Oh no, not again!" . I have searched the forums here and I realize that this question hs been asked before but I can't seem to find a definitive answer to the problem. My original xstartup file had the line "startkde &'" which starts a kde desktop without fail every time. While I have not used Linux enough to have a preference Gnome is the default manager on my Linux box so I am being stuborn and want to learn how to start up a Gnome session on the VNC viewer on my WIN2K box.

I have replaced "startkde &" with "gnome-session" but this only works if I am root when I start the <vncserver> . If I am logged in as my regular user then gnome will not startup. Yes, both "xstartup" files are the same for root and myuser. After starting <vncserver> the log files also appear to be the same, I don't know if the last line is any clue but it is the same regardless of whether I can or cannot get gnome to appear on the WIN box

"gnome-session: you're already running a session manager"

I hope someone can help. I am very new to *nix OS so if you have a suggestion please try to be as specific as possible. Your assistance is much appreciated.

Merry Christmas
John
 
Old 12-21-2004, 11:22 PM   #2
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 38
I'm not sure where I see your question, but I believe you're trying to make sure that when you log in via vncviewer that you get a gnome session instead something else like twm or the like.

Here is what I do: As the user that I will be logging in as, I will put a file called .xinitrc that has a line in it like so:
exec /path/to/gnome-session

Next, as the same user, I run:
# vncserver :1

From a remote computer I pull up vncviewer and connect to my box like so:
harlin.box.net:1

and supply the password. I get the window manager/desktop environment I want. Let me know if I missed what you were wanting.
 
Old 12-22-2004, 02:40 AM   #3
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
Instead of gnome-session:

unset SESSION_MANAGER
gnome-session &

This works fine for me for a while but the sessions crash from time to time (none of that with other wm's). And when I log in on the pc itself after some remote sessions all my icons are messed up.

I hope you're more lucky with Gnome on VNC.
 
Old 01-08-2005, 01:23 AM   #4
speedyg7
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
Check ~/.vnc/xstartup

At the top you may find the following:
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

Uncomment those two lines as indicated. I also commented out the launch of twm at the end of the script.

HTH
Charles
 
Old 01-08-2005, 02:16 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If you already have one user logged in with GNOME, AFAIK you can't start another one with vnc using the same user, they'll try to access the same files at the same time, screwing up your session.
What you can do is start your vncserver using the console, without logging in your X session, or login with another window manager.
 
Old 07-21-2009, 08:45 AM   #6
icasimpan
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by speedyg7 View Post
Check ~/.vnc/xstartup

At the top you may find the following:
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

Uncomment those two lines as indicated. I also commented out the launch of twm at the end of the script.

HTH
Charles
I know this is a very old thread but I would like to make it a point that this helped me a lot. I didn't know that twm is the default window manager in vnc.

With this post, this clarified everything.

Thanks a lot!

Ismael
 
Old 07-21-2009, 10:21 AM   #7
icasimpan
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by icasimpan View Post
I know this is a very old thread but I would like to make it a point that this helped me a lot. I didn't know that twm is the default window manager in vnc.

With this post, this clarified everything.

Thanks a lot!

Ismael
Just to add up, if you want to use kde instead of gnome, then use 'startkde &' instead of 'gnome-session &'
 
  


Reply

Tags
gnome, vnc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome panel keeps crashing when starting gnome-session elluva Linux - Software 3 01-24-2006 04:26 PM
I get a TWM session with VNC instead of Gnome paul.nel Linux - General 1 02-27-2005 02:00 PM
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine) spudler Linux - Networking 3 11-14-2004 10:02 AM
gnome-session & vnc AlThor880 Linux - Networking 2 05-14-2003 06:16 PM
Icons missing from desktop with VNC and gnome-session arobinson74 Linux - General 1 12-10-2002 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration