• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 573
  • Last Modified:

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?
0
JeffBeall
Asked:
JeffBeall
3 Solutions
 
Sikhumbuzo NtsadaSenior IT TechnicianCommented:
Have you gone to its properties and alow socket connections and set the password?
0
 
wesly_chenCommented:
- Check the VNC server/daemon running or not
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
JeffBeallAuthor Commented:
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
0
 
wesly_chenCommented:
> 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
0
 
JeffBeallAuthor Commented:
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?
0
 
wesly_chenCommented:
sorry, kill that one and start with
x11vnc -usepw
0
 
JeffBeallAuthor Commented:
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?
0
 
wesly_chenCommented:
Add the following command into your session
/usr/bin/x11vnc -forever -usepw
So that it starts at each login
0
 
JeffBeallAuthor Commented:
thanks for the help, i awarded points based on the most effective answer. thanks again.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now