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.
I have a host running CentOS 5 Final on which I installed vnc-server I connect to it with ssh (PuTTY 0.60) with port 5900 local forwarded to port 5902 on the remote CentOS host. I can connect with tightvnc 1.3.10 I used to have an xterm, and I launched Firefox and used it for a while. I managed to close Firefox and the xterm. Now, tightvnc shows me an empty grey screen with checkboxes for "Accept clipboard from viewers", "Send clipboard to viewers", and "Send primary selection to viewers".
How do I at least get an xterm back? If I run "xterm &" from the SSH session, I get "X connection to localhost:10.0 broken (explicit kill or server shutdown)." I do not recall having had to fiddle with $DISPLAY to get VNC working, and $DISPLAY certainly did not change from when I had an xterm to when I could not get another.
As above, remove the twm& line and replace with startkde, startxfce or whatever floats your boat.
I do not have KDE or xfce or any other fancy desktop manager installed. I don't want the overhead, and I don't care about the eye candy. All I'm looking for is for an xterm to be started, like it used to be before I managed to close it.
I do not have KDE or xfce or any other fancy desktop manager installed. I don't want the overhead, and I don't care about the eye candy. All I'm looking for is for an xterm to be started, like it used to be before I managed to close it.
OK, I just tested this, and it launched just a grey screen and an xterm.
I presume from your description this is what you wanted.
You will need to restart your vnc server for this to be applied. I don't know of any way of launching an xterm from within a simple xsetroot-type environment.
Last edited by pwc101; 06-03-2009 at 12:45 PM.
Reason: mroe info
OK, I just tested this, and it launched just a grey screen and an xterm.
Yup... that's what I used to get. Now, I just get the grey screen... no xterm.
Quote:
You will need to restart your vnc server for this to be applied. I don't know of any way of launching an xterm from within a simple xsetroot-type environment.
Huh!
I'm positive I had restarted vncserver before. I did it just now, to say that I had... and my xterm is back!
At first I tried leaving the initial code and adding this last one under the last line (x-window-manager &) although it was taking much longer to start and after a few restarts it would even start again.
Blank desktop means vnc couldn't find a valid window manager.
xstartup may look ok but if it doesn't have executable permissions, vnc won't read xstartup properly. vnc log file should indicate this.
Quick fix is to do
chmod +x xstartup
If permissions are correct, make sure paths to window manager are correct.
Quick way to check is do a which window_mgr_name to see if it is found and the path is correct in xstartup.
For instance:
%which gnome-session
returns this on my server
/usr/bin/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.