Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > The grey desktop in VNC

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-07-2003   #1 (permalink)
Just Joined!
 
Join Date: Feb 2003
Posts: 3
Send a message via MSN to whythen
The grey desktop in VNC

I am running RH8.0 and am trying to configure vncserver. I can get my desktop (W2K) to access the linux box, but all that I get is a grey box with an X cursor in it. So, I went to the vnc website, and decided to check out their FAQ (http://www.uk.research.att.com/vnc/faq.html#q16). I found this:

Quote:
Q16 I connected to my Unix VNC server and I just see a grey desktop with a cursor.
After the vncserver script has started the Xvnc server, it then runs your ~/.vnc/xstartup script. By default this will try to start the twm window manager, but if twm isn't on your path, or if you prefer something else, you can edit xstartup. The log file may also give you clues about what is happening.
I checked the xstartup script, which reads:

Code:
#!/bin/sh

# Red Hat Linux VNC session startup script
exec /etc/X11/xinit/xinitrc
I have checked around on the RedHat site, but found little.

So, how do I tell if twm is or isn't on the path; how do I get it there if it isn't, i.e. how would I edit xstartup?
whythen is offline  


Reply With Quote
Old 02-07-2003   #2 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
twm is almost certainly in your path (if you really want to check, run "which twm" in a shell).
You can also check by connecting to the server and click anywhere in the grey area. If the twm menu pops up, then it's running, of course.
If you want a better looking interface, you can always configure gdm or whatever you use to start up an Xvnc server and manage it.
Dolda2000 is offline   Reply With Quote
Old 02-07-2003   #3 (permalink)
Just Joined!
 
Join Date: Feb 2003
Posts: 3
Send a message via MSN to whythen
[root@linuxbox root]# which twm
/usr/X11R6/bin/twm

When I connect to linuxbox, I can click on the grey desktop, but nothing happens.

>> If you want a better looking interface, you can always configure gdm or whatever you use to start up an Xvnc server and manage it.

Right now the linux box is running the install default of RedHat 8 in Gnome. I am not even sure what manager bluecurve uses, or for that matter, where to find the window manager.

How would I configure gdm (or whatever I use) to start up an Xvnc server and manage it?
whythen is offline   Reply With Quote
Old 02-08-2003   #4 (permalink)
Just Joined!
 
Join Date: Feb 2003
Posts: 3
Send a message via MSN to whythen
After a long day's fight...

I am well on my way now... I have got an actual desktop going!
it seems that the xinitrc script does not assign the window manager to the vnc desktop.

so I tried this:

twm -display linuxbox:1

I cranked up vncviewer on my desktop machine and was able to patch in.

Fabulous. From there I was able to get window maker (wmaker -display linuxbox:1) to run.

I ran into a bit of a problem with Gnome however.

I found a solution, but it isn't the greatest. I think that it would require you to telnet to the box (or actually be on the server itself to initiate this).

vncserver

(vncserver kicks off and starts an X session on the first available desktop ie linuxbox:1)

next,

gnome-session --display=linuxbox:1

then, you go back to the desktop, and patch in.

Did I mention that the "gnome-session --display=linuxbox:1" doesn't work from an Xterm window while you are in a window managed environment (gnome, kde)? I have to Ctrl-Alt-F1 (or any other combo for a terminal) and log in, start the vncserver (if you haven't already), and then give the gnome-session command. It seems that I cannot get the virtual desktop to be gnome unless I do this...

however, I was able to launch gnome for the vncserver another way... I ran startkde from a command line while in gnome, and RH8 puts a second panel for K and the KDE above the gnome panel. I logged out of KDE. Then I ran the gnome-session command from a prompt.

This all seems like a lot of work.

Any ideas on how to shorten it? or, is the telnet initiation cycle that I described the best way to accomplish this?
whythen is offline   Reply With Quote
Old 02-08-2003   #5 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Just add the server to gdm's config. (Check the [servers] section in /etc/X11/gdm/gdm.conf)
Dolda2000 is offline   Reply With Quote
Old 02-08-2003   #6 (permalink)
Just Joined!
 
Join Date: Jul 2002
Location: Madison, WI.
Posts: 36
Send a message via ICQ to slacker
I just go to my home directory and vi:

/home/myname/.vnc/xstartup

to make it read:

Code:
#!/bin/sh

startkde &
Works fine for me. I like to manually initiate the session by typing at the command line:

vncserver -geometry 1152x864 -depth 24

or I'll give it a smaller res and bitdepth if I'm remoting in from off my LAN.

Hope this helps.
slacker is offline   Reply With Quote
Old 03-30-2005   #7 (permalink)
Just Joined!
 
Join Date: Mar 2005
Posts: 1
An easy way to solve the gnome-session problem with vnc is by the following
~/.vnc/xstartup:
-------------------------------------------------------
#!/bin/sh
#
# Author: Ariel Tankus.
# Created: 30.03.2005.
#

unset SESSION_MANAGER
exec gnome-session &
-------------------------------------------------------
This should allow for multiple gnome sessions.
arielt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:47 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2