LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-14-2005, 09:36 AM   #1
ramesh_srini
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
starting a VNC server on linux 2.6.2


hi,

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)>>

--------------------------------------------------------------------

<<my xstartup file contains the following :

#!/bin/sh

#xrdb $HOME/.Xresources
xrdb $HOME/.Xdefaults
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &>>

---------------------------------------------------
 
Old 05-14-2005, 03:04 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
vncserver -nolisten local :31
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 :31
 
Old 05-14-2005, 10:44 PM   #3
ramesh_srini
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hi --

so following your suggestion -

<< I tried -- >>
>vncserver :2

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 ??>>


Thanks,
Ramesh
 
Old 05-15-2005, 02:55 AM   #4
kiss_linux
Member
 
Registered: Mar 2005
Location: Calgary Canada
Distribution: Mandriva 10 / LE 2005
Posts: 46

Rep: Reputation: 15
you must have a very good reason to run vnc as root, if not please run vnc as normal user to keep your box safe

Quote:
Originally posted by ramesh_srini
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
as root create a symbolic link "ln -s /etc/X11/xserver /usr/X11R6/lib/X11/xserver"
 
Old 05-17-2005, 02:00 AM   #5
ramesh_srini
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hi :

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

Thanks for all the help ---

-Ramesh
 
Old 05-17-2005, 07:58 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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?
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC over SSH. Windows client - Linux Server c_mitulescu Linux - Networking 30 05-20-2007 11:20 PM
problem with vnc server on linux juanb Linux - General 4 07-16-2005 03:50 PM
VNC Server to work on Mandrake 10 Linux Echo Kilo Linux - Networking 3 09-25-2004 03:51 PM
VNC Server on Linux - Which Desktop? Echo Kilo Linux - Networking 2 07-28-2004 06:37 AM
start vnc server at RH linux ust Linux - General 1 06-21-2004 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:32 PM.

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