Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 been trying to start a vncserver on my linux desktop running - 2.6.5-1.358 version of redhat linux.. I believe i have the required applications installed ..
btw -- Linux commands are preceded by '>'
my comments are enclosed within << ...>>
in the notes below....
Thanks for the help....
<<I try to start a vncserver - as follows>>
>vncserver -nolisten local :19
<<the output of the above command>>
vncserver -nolisten local :31
xauth: (argv):1: bad display name "rsv:3" in "add" command
New 'rsv:3 (root)' desktop is rsv:3
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/rsv:3.log
<<The output of the above log file is appended below>>
Xvnc version 4.0 - built Jun 14 2004 12:01:28
Underlying X server release 40201000, The XFree86 Project, Inc
Sat May 14 00:26:38 2005
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5903
vncext: Listening for HTTP connections on port 5831
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
_X11TransSocketINETConnect() can't get address for rsv:6003: Name or service not known
xrdb: Invalid argument
xrdb: Can't open display 'rsv:3'
_X11TransSocketINETConnect() can't get address for rsv:6003: Name or service not known
xsetroot: unable to open display 'rsv:3'
_X11TransSocketINETConnect() can't get address for rsv:6003: Name or service not known
twm: unable to open display "rsv:3"
-------------------------------------------------------------------
<<In my .vnc folder - the files
rsv:3.log & rsv:3.pid are created.
rsv:3.log -- contains the output of the "vncserver " command listed above
rsv:3.pid - contains the PID (3570)>>
I don't think that is a valid set of commands to start vncserver. At least according to the RealVNC man page , there is no -nolisten flag for vncserver. That is probably causing everything else to be misinterpreted as well. If you want to start vncserver on screen 31 (which is what I'm guessing from your command line), the correct command would look like this:
vncserver :2
xauth: (argv):1: bad display name "rsv:2" in "add" command
New 'rsv:2 (root)' desktop is rsv:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/rsv:2.log
Xvnc version 4.0 - built Jun 14 2004 12:01:28
Underlying X server release 40201000, The XFree86 Project, Inc
Sat May 14 13:36:52 2005
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5902
vncext: Listening for HTTP connections on port 5802
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
xrdb: No such file or directory
xrdb: can't open file '/root/.Xdefaults'
<< Still I am getting the above errors -->>
<< anything I am missing -- or anynthing not configured ??>>
Xvnc version 4.0 - built Jun 14 2004 12:01:28
Underlying X server release 40201000, The XFree86 Project, Inc
Sat May 14 14:24:39 2005
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5954
vncext: Listening for HTTP connections on port 5854
vncext: created VNC server for screen 0
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/,
removing from list! <----(1)
cat: /root/.Xauthority: Permission denied <---------------------(2)
(1) & (2) are the 2 errors errors being reported....
I subsequently executed :
find . -exec chmod 777 {} \;
after changing directory 'cd /'
to change the perrmissions on all files .
however the above proiblem persists....
btw - i did ensure I am not the 'root' (while starting the vnc server)
Question1: So why am I getting the above 2 issues - while starting the vncserver ?
Question2: I need to figure out the exact 'hostname' of my computer as seen by a
remote host..... I thingk I can ssh into an external unix system running 'sshd' and subsequently
try to get a list of all 'ssh incoming requests' and lookup how my computers's name is
listed there ... Any suggestions about any commands I can execute on a remote system to
get a list of the 'history' of 'ssh' requests received by it ? Thanks!
Btw, took care of the ealier 'file not found'
with
ln -s /etc/X11/xserver xserver
This is some guessing on my part, but those errors look like either you are trying to start vncserver as root (which is a truly horrible idea) or you are trying to su to a user and then start vncserver. Could you explain exactly how you are logging in and starting vncserver?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.