1828490 Members
2225 Online
109978 Solutions
New Discussion

Re: About VNC server

 
SOLVED
Go to solution
juno2
Super Advisor

About VNC server

I have started the vnc server , the comamnd is "vncserver :8800" , the message is "
New 'X' desktop is pcd:8800

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/pcd:1000.log"
the service start normally , but the viewer can't access it by "ip_address:8800" , can suggest what is wrong ? thx
4 REPLIES 4
Huc_1
Honored Contributor
Solution

Re: About VNC server

I suppose you connect this using command

vnconnect "ip_adress:port"

or perhaps you are using

vncviewer [option] "ip_adress:port"

could you attach here the /root/.vnc/pcd:1000.log ?



and does you /var/log/secure not give you a bit more info ?

a
ps -efww | grep -i "vnc" | grep -v "grep"
would allow you to see if the vnc server is present and with what options if any !

-------------------------
all I do when I want to use vnc is on node
A type vncserver as a user in an xterm
this replies by where the log is placed and how to kill the vncserver
like ".vnc/your_node:1.log

and on node B running X in a xterm I type vcnviewer


this prompt me for an ip the ip address of node A

answer like this ip_num:1

note the 1 is corresponds to 1 in your log name on node A

and that is all .
-------------------------

After this basic setup works you can start othe vncserver on node A with more optionsif you want to ( like password etc)

have a look at man vncpasswd

and you can also use via option to have it use ssh tunnels.

Whatever Keep us informed and enjoy.

Jean-Pierre

Smile I will feel the difference
Huc_1
Honored Contributor

Re: About VNC server

You will find here attached a small how-to I just wrote to try and explain it better.

Hope this will proof helpfull

Jean-Pierre
Smile I will feel the difference
Elliot Nesterman
Occasional Advisor

Re: About VNC server

I don't believe you can specify an arbitrary range of ports for VNC. The VNCviewer connects to the range 5900-5999 and the VNC web server listens at 5800-5899. Without a number specified vncserver defaults the Xdesktop to :1, i.e. ports 5901 & 5801.

The command "vncserver :25" will start a desktop allowing connections from a VNCviewer on port 5925 and will listen for http calls on port 5825. You would connect to the server with IPaddress:25 in the VNCviewer dialog, and with http://IPaddress:5825 from a web browser.

Maybe one of the VNC clones, like TightVNC, allows you more flexibility in port selection, but the AT&T version, now RealVNC, does not. At least, not according to the docs.
The closer you are to the code, the happier you are. - Ancient Geek Proverb
Dave Falloon
Trusted Contributor

Re: About VNC server

Elliot Nesterman is correct I believe. The command you ran would try to start a vncserver on display 8800 which is way out of range for VNC, it may have opened the port though so take a look with this command:

netstat -anp inet|grep vnc

that should tell you if your server is really listening on a port. Although I doubt it would because the doc's that come with vnc say the port range is 5900-5999.

I hope that helps

Dave
Clothes make the man, Naked people have little to no effect on society