1832018 Members
2975 Online
110034 Solutions
New Discussion

Re: start the service

 
SOLVED
Go to solution
peterchu
Super Advisor

start the service

How can I start the vncserver , i tried to run the command "vncserver" , it pop the log :

New 'X' desktop is edp:5

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/edp:5.log

but I still can't run the vncviewer on desktop pc , what other setting I need to make ?thx.
5 REPLIES 5
Stuart Browne
Honored Contributor

Re: start the service

Once you've started 'vncserver', you should see a few things, in particular:

netstat -nap | grep vnc
tcp 0 0 0.0.0.0:5805 0.0.0.0:* LISTEN /Xvnc
tcp 0 0 0.0.0.0:5905 0.0.0.0:* LISTEN /Xvnc
tcp 0 0 0.0.0.0:6005 0.0.0.0:* LISTEN /Xvnc

If these are all there, and you're using 'vncviewer' to attach to 'edp:5', then we'll need some error messages from your desktop to track it down further.
One long-haired git at your service...
peterchu
Super Advisor

Re: start the service

thx It is OK now , it ask for my password , I tried the root password , but it is not work, if I forget the password , how can I reset it ? thx.
K.C. Chan
Trusted Contributor
Solution

Re: start the service

I assumed you started vncserver as root? If so, the root passwd is not the same as the password you are being ask for. To reset password for vnc, type vncpasswd.

I would not suggest you use vnc as root. I suggest you use it as regular user and also use ssh tunnel on it.
Reputation of a thousand years can be determined by the conduct of an hour
sam_111
Trusted Contributor

Re: start the service

After you start vncserver you get something like edp:5 5 is the session number.

At client check if you are able to ping the ip of the system where you are running vncserver (basically check if its in network).

from vncveiewer type ip:5 it would ask you for a password. to view the desktop. you should be runninng vncserver from root.

regards,

sam
"Hard Work always Pays off"
Mark Grant
Honored Contributor

Re: start the service

I think you'll find the password is blank. Just hit return.

At least that worked for me on HPUX.
Never preceed any demonstration with anything more predictive than "watch this"