Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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 &'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.