System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to start VNC for other users?

 
SOLVED
Go to solution
Highlighted
Super Advisor

How to start VNC for other users?

Hi Gurus,

Last week our client has restarted one of the linux server(VNC server is running on that server).After restarting we found users are not able to connect through vnc.users should telnet to the server and run vnc_start for starting there vnc .pls let me know how to start vnc for a particular port?.becaz some users doesnt hv telnet connectivity.


rgds
administrator
5 REPLIES 5
Highlighted
Honored Contributor

Re: How to start VNC for other users?

In order to start the VNC - a user should run a command:
vncserver :port

where port is a port number. First port number is 1, if it's occupied - then pick 2 and so on. After successfully executing the above command - a user can connect with either VNC client or with Internet browser, while in the URL he should type the hostname of the vncserver and a port number which is a result of 5800 + the number he typed in the mentioned above command.
So fo example: if the command was `vncserver :3`

Then the user will be able to connect to the station with

http://station_name:5803
Highlighted
Super Advisor

Re: How to start VNC for other users?

Hi,
thanks for the reply

but my doubt is ,i hv root privilage and my port number is 20 and how should i start vnc for another user say "test" with port number 24 from my login?

rgds
administrator
Highlighted
Honored Contributor
Solution

Re: How to start VNC for other users?

if it's a one time request, the just su - and execute the `vncserver :port`
command.
If it's something that should survive a reboot, then place a script in ~/.kde/Autostart directory.
The script should have the following entries:
#!/bin/bash
/usr/bin/vncserver :port (+ other parameters if required)

The script should be executable (chmod +x scriptname).
Highlighted
Super Advisor

Re: How to start VNC for other users?

Hi,
it worked well,thnaks for the quick reply



rgds
suresh
administrator
Highlighted
Super Advisor

Re: How to start VNC for other users?

Hi,
Thanks for the solution,it is working

rgds


administrator