I tried to make a script which start x11vnc at boot but it don't seem to work.

The script path: /home/pi/.config/autostart/x11vnc.desktop

with the following contents:

Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
  • 1
    Hello and welcome! Do you have any error messages or some logs that might be useful to answer? – Ghanima Apr 8 '15 at 8:49
  • Hello and thank you, no I haven't get any error message or logs – Dan Snow Apr 8 '15 at 15:37

Display :0 is used by the Console session. Starting x11vnc with -display :1 should then use a new display session and work correctly.
Remember you will need to tell your viewer to connect to :1 (or ::5901) to connect to this session.

| improve this answer | |
  • I want to use the current desktop session is the reason why I use -display :0. Everything work fine when I execute the command from the terminal but when I try to automatically boot the script nothing happen – Dan Snow Apr 8 '15 at 15:35
  • Which method are you using to automatically run the command? If you are running it while the runlevel is too low (when there is no X server running) then it would not work. – user2392903 Apr 9 '15 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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