JeffBeall
asked on
ubuntu server
i'm trying to setup vnc on my ubuntu server and i am failing. i just want vnc running on the server and have it require a password to sign in and i have X running on the server, so i would like to have the gui too. i did the apt-get install thing for xinetd x11vnc tightvncserver and some java thing - i forgot what it was. so when i run vnc viewer from my laptop i get
unable to connect to host: Connection refused ( 10061 )
I'm sure this is because i haven't finished setting vnc up on my server, but i don't know how to set it up. any suggestions?
unable to connect to host: Connection refused ( 10061 )
I'm sure this is because i haven't finished setting vnc up on my server, but i don't know how to set it up. any suggestions?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ps -ef | grep -i vnc showed this
root 1324 1193 0 13:41 pts/0 00:00:00 grep --color=auto -i vnc
so it wasn't running - so
/usr/bin/x11vnc did the trick but then i didn't need a password when i used my vnc client.
i tried
/usr/bin/x11vnc -storepasswd
which worked - i had to put in a password, but when i ran
/usr/bin/x11vnc
again - and tried my vnc client, i still didn't need a password. i want to require a password to use the vnc client
root 1324 1193 0 13:41 pts/0 00:00:00 grep --color=auto -i vnc
so it wasn't running - so
/usr/bin/x11vnc did the trick but then i didn't need a password when i used my vnc client.
i tried
/usr/bin/x11vnc -storepasswd
which worked - i had to put in a password, but when i ran
/usr/bin/x11vnc
again - and tried my vnc client, i still didn't need a password. i want to require a password to use the vnc client
> but when i ran /usr/bin/x11vnc again
Kill the old one before you run it.
pkill x11vnc
ps -ef |grep x11vnc
If no x11vnc running, then run
/usr/bin/x11vnc
again
Kill the old one before you run it.
pkill x11vnc
ps -ef |grep x11vnc
If no x11vnc running, then run
/usr/bin/x11vnc
again
ASKER
just because i like over kill i reboot the ubuntu server - ran
/usr/bin/x11vnc
but on my client - i still didn't need a password?
/usr/bin/x11vnc
but on my client - i still didn't need a password?
sorry, kill that one and start with
x11vnc -usepw
x11vnc -usepw
ASKER
perfect! that worked. just one more question please - is there a way to run this as a daemon, so that it is always running and asks for a password?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for the help, i awarded points based on the most effective answer. thanks again.
ps -lef |grep -i vnc
If not, then
/usr/bin/x11vnc
- Check which port vnc is listened to
sudo netstat -lpn
Or check the port 5800 or 5900.
Use the port to connect from your laptop