LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-24-2009, 08:29 PM   #1
phpinfo
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
VNC Question


I am trying to VNC to RHEL 4 ES, but can't get the desktop to come up. I keep getting a screen that has check boxes for viewer options, with a gray background.

The check boxes say "Accept clipboard from viewers", "Send clipboard to viewers" and "Send primary selection to viewers"

Do I need to install Gnome or something - or do I need to edit a config file? Thanks
 
Old 01-25-2009, 12:46 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
do you have a window manager running on the remote host?
 
Old 01-25-2009, 01:17 PM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
you need to go into ~/.vnc/xstartup (as the user you are VNCing in as) and add an entry into that load a desktop. For my server I use kde and use the following two lines. the xterm line may already exist, these two lines should appear as the last lines in the file I believe.

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startkde &

As a note, make sure if you are using VNC, you are doing so encrypted, most default to unencrypted which sends usernames and passwords in plain text. If you wish to test if you have gnome or KDE, while in the default view, you get a terminal, you can type startkde to test for kde or gnome-session to test for gnome. If neither work then you'll likely have to install one.

Last edited by r3sistance; 01-25-2009 at 01:22 PM.
 
Old 01-26-2009, 12:45 PM   #4
phpinfo
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by r3sistance View Post
you need to go into ~/.vnc/xstartup (as the user you are VNCing in as) and add an entry into that load a desktop. For my server I use kde and use the following two lines. the xterm line may already exist, these two lines should appear as the last lines in the file I believe.

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startkde &

As a note, make sure if you are using VNC, you are doing so encrypted, most default to unencrypted which sends usernames and passwords in plain text. If you wish to test if you have gnome or KDE, while in the default view, you get a terminal, you can type startkde to test for kde or gnome-session to test for gnome. If neither work then you'll likely have to install one.

Thanks for the info!! - I SSH'd to the server and typed in gnome-session and got a command not found. I tried kdestart and got this:

startkde
xsetroot: unable to open display ''
xset: unable to open display ""
xset: unable to open display ""
xsetroot: unable to open display ''
startkde: Starting up...
ksplash: cannot connect to X server
kdeinit: Aborting. $DISPLAY is not set.
Warning: connect() failed: : No such file or directory
ksmserver: cannot connect to X server
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
startkde: Running shutdown scripts...
startkde: Done.

So it looks like kde is installed but not starting? Should I go ahead and edit .vnc/xstartup to have startkde - or should I try to install gnome
 
Old 01-26-2009, 03:03 PM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Ah, sounsd like you have KDE, I meant when you start a VNC session it should also bring up a terminal in the new session and if you type startkde into that it'll go and load kde for the session to test. Anyway you should be able to make the changes I stated above so you can get a proper interface on VNC. You will need to restart or start a session after the change, any sessions existing from before won't automatically update to the new configuration.

As for KDE vs. Gnome, which do you prefer? since you got KDE installed it sounds like the easier option tho.
 
  


Reply

Tags
rhel, rhel4, vnc, vncserver



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
vnc question lhrt Linux - Networking 10 05-16-2006 07:16 AM
VNC question TomalakBORG SUSE / openSUSE 8 12-23-2005 10:02 PM
vnc question coal-fire-ice Solaris / OpenSolaris 9 09-13-2005 12:48 PM
VNC Question sujte Linux - Software 0 05-03-2004 03:28 PM
VNC Question PuterFreaK Linux - General 1 03-29-2002 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:07 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