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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-10-2004, 06:17 AM
|
#1
|
Member
Registered: Apr 2004
Location: Netherlands
Distribution: Mandrake 10.1
Posts: 43
Rep:
|
Tightvnc: I can login but my screen is blue
Hi all,
I installed vncserver on my desktop (Mandrake 10, Gnome and vnc-server 1.2.9) and vncviewer on my ancient laptop (Mandrake 9.2, IceWM, vnc-viewer 1.2.7 and 'property of Julius Ceasar' inscribed on the side). I run:
- 'vncserver -geometry 640x480 -depth 16' from a console on my desktop
the I proceed to run
- 'vncviewer 192.168.1.4:1' from a console on my laptop
I get the following prompt:
'VNC server supports protocol version 3.3 (viewer 3.3)'
- so far so good I guess
I then get prompted for a password and after giving that a window opens which is completely blue (the color of the ICEWM desktop, not to be confused with a certain error screen color of another os). An watch shaped cursor appears in the middle of this desktop and after that.....nothing happens.
If I start moving this cursor around I see the activity leds on my router blinking happily, so I guess I do have a remote connection, or at least I'm sending something over the network that stops when I stop moving the mouse. It would be nice of course to see the desktop (a cropped down version at least, the regular Gnome desktop on my main pc is 1280x1024 hence the geometry line in the server command).
Can anyone tell me if I'm doing something wrong and better yet, how to do it right.
Thanks in advance,
Merijn
|
|
|
06-10-2004, 07:54 AM
|
#2
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
Quote:
It would be nice of course to see the desktop (a cropped down version at least, the regular Gnome desktop on my main pc is 1280x1024 hence the geometry line in the server command).
|
I don't know if this is the problem, but vncserver doesn't know what desktop you usually use. In fact, I think it defaults to using twm, which is a horribly minimalist environment (and consistent with your description). Once you are "up and running" does anything happen when you right click? To change to Gnome, you need to edit the ~/.vnc/xstartup file. Somewhere in there you should see a command that starts a graphical environment (probably twm &). Just comment that out and add the gnome startup command.
|
|
|
06-10-2004, 09:33 AM
|
#3
|
Member
Registered: Apr 2004
Location: Netherlands
Distribution: Mandrake 10.1
Posts: 43
Original Poster
Rep:
|
Thanks for the reply Hangdog42,
I've checked out the xstartup file in ~/.vnc and it contains the following lines:
#!/bin/sh
# Mandrake Linux VNC session startup script
exec /etc/X11/xinit/xinitrc
So by the looks it, it executes xinitrc.
xinitrc contains the following code:
#!/bin/sh
# (c) 2000-2002 MandrakeSoft
# $Id: xinitrc-xinitrc,v 1.2 2002/09/10 05:53:43 flepied Exp $
# Set a background here because it's not done anymore
# in Xsesion for non root users
if [ "`whoami`" != root ]; then
xsetroot -solid "#21449C"
fi
exec /etc/X11/Xsession $*
So following up on this it would start Xsession, a rather long file which seems to start my x enviroment on the desktop.
I changed the 'exec /etc/X11/xinit/xinitrc' line to 'exec gnome-session &' this produces a grey dotted screen with a big X cursor when I log in, so it's probably not quite the right way to go about it. I'll try finding a better (i.e. correct) way to start Gnome. Thanks for the info.
|
|
|
06-14-2004, 06:53 AM
|
#4
|
Member
Registered: Apr 2004
Location: Netherlands
Distribution: Mandrake 10.1
Posts: 43
Original Poster
Rep:
|
Update:
I think I figured out what is going wrong. Somehow Gnome doesn't seem to like working with vnc. The standard xstartup installed by mandrake states 'exec /etc/X11/xinit/xinitrc' which I believe starts my Gnome enviroment. When I replace this line with 'exec gnome-session &' I get an error in the log stating "you're already running a session manager". If I replace this line with 'exec startkde &' I actually get a working vncserver I can connect to from another machine. Unfortunately some other functionality seems to be broken, but ah well, fixing that should keep me off the streets for another week or so
BTW if anyone has a way to start a remote Gnome session using tightvnc, I would be very glad to hear it.
|
|
|
All times are GMT -5. The time now is 11:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|