Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-10-2002, 07:11 PM   #1
LQ Newbie
Registered: Oct 2002
Posts: 3

Rep: Reputation: 0
vnc works on root but greyscreen for user

I have Redhat 8.0 with the included vnc scripts.

If I start vncserver under root it starts the graphical environment fine. If I execute vncserver under a user name the viewer gives me the grey screen with the x cursor.

The vnc script is getting to the xstartup script fine, but bombs out in the xinitrc and never gets to the startx

It looks like xinitrc bombs out after

xrdb -merge "$sysresources"

There are no error messages in the log file

everything works fine when logged in as root

Old 10-10-2002, 08:31 PM   #2
Senior Member
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
This is off the top of my head so it might not be right.

First you need to run the vncserver command at the command line to set a password.

Then I think that you need to start a vnc session for each user by typing vncserver :? <username>. Fill in the 2 with the session number that you want for that user. Note that each session has to be different for each user.

If you are still having problems let me know.
Old 10-11-2002, 05:04 PM   #3
LQ Newbie
Registered: Oct 2002
Posts: 3

Original Poster
Rep: Reputation: 0
I think all of that part is working OK.

On the remote system, I telnet in as user, type vncserver, note the display number, bring up vncviewer with that display #, then I get the greyscreen with cursor.

If I do the very same thing only su as root before I start the vncserver, everything works fine and kde starts in the viewer.

Something seems to prevent the
xrdb -merge "$sysresources"
command from working when logged in as a user, but
when logged in as root, the same command works fine.

It is probably some type of permissions not set right, but I can't find it
Old 10-11-2002, 07:45 PM   #4
Registered: Oct 2002
Distribution: Redhat
Posts: 35

Rep: Reputation: 15
correct me if I am wrong but shouldn't you be running Xvnc as the command to start the server?

from the man for Xvnc:

Xvnc is a VNC (Virtual Network Computing) server. It acts
like an X server with a virtual display. The display can
be seen by a VNC viewer application, which may be running
on a different machine: see vncviewer(1).

It is built inside the source code tree of XFree86, and
shares many options with it.
Old 10-11-2002, 08:28 PM   #5
LQ Newbie
Registered: Oct 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Xvnc runs as part of the vncserver script and is running fine

xrdb is one of the very last things that executes and it executes from within xinitrc which is executed from within xstartup

I used echo commands to isolate where the hangup was, and it never got past the xrdb spot

Everything works fine if I am root.
Old 10-11-2002, 09:54 PM   #6
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
On a default VNC install, xrdb is the first thing to run in xstartup. The last is twm. Just swap out twm for your favorite window manager.
Old 10-15-2002, 06:53 PM   #7
Senior Member
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
I just got VNC running, sorry it took a couple of days. If you want to log on using VNC as a user other than root, do this.

Log on as that user then type:

vncserver :2

This will let you log on as that user on the client side as that user if you use <server>:2.

If you are still having problems with VNC. There is the Linux Terminal Server Prodject. This allows to to run a Linux Box as a terminal server. It seemed to be a little faster that VNC and not as jumpy. Their at, I got it set up and running quickly and it work great.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
XMMS Works for root, not for user JazzMastaJim SUSE / openSUSE 6 11-20-2004 09:59 PM
X only works with root user joe83 Slackware 14 09-06-2004 08:17 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
VNC showing plain X w/ no desktop when vncserver started by non-root user jboo Linux - Software 6 02-08-2004 04:45 AM
DSL only works for root user reclusivemonkey Slackware 0 01-11-2004 06:03 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration