Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have found next instruction on how to do that

  1. Install packages. Code: sudo apt-get install x11vnc vnc-java
  2. Set up a password for clients. Code: x11vnc -storepasswd
  3. Open up ports 5800 and 5900 on your firewall Run the terminal command:
    x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800

    and add it for auto-starting in future sessions

    Additionally I have executed

    x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5900

    But no success from my vnc client, although I can ping ubuntu

share|improve this question
Does your server have X installed? – Andrew Aug 8 '10 at 22:34
i am not sure, and probably not, how can i do that? – volody Aug 8 '10 at 23:06
up vote 1 down vote accepted

To expand on my comments: being a server, it probably doesn't have X installed.

The simplest way to get "everything" would be sudo apt-get install ubuntu-desktop. For a more minimal setup you will need xorg and a window manager of your choice; apt-cache search x-window-manager will give you a list.

share|improve this answer
i did that "sudo apt-get install ubuntu-desktop", but what should i do next. vnc still is not available – volody Aug 12 '10 at 0:00
it looks like i have found how to start desktop: startx – volody Aug 12 '10 at 0:16
i was able to run x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 from terminal and able to use vnc, but how i can set it permanently – volody Aug 12 '10 at 0:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.