checkout vnc section of: https://dwaves.de/2018/05/07/getting-started-with-raspberry-pi-2-model-b-v1-1-vs-odroid-xu4-vnc-display-0-and-1/

Create a file called ~/.config/autostart/xvnc.desktop.

Place within it this text:

[Desktop Entry]
Name=XVNC Server
Exec=/usr/local/bin/xvnc.sh
Icon=
Type=Application

Now su to root and do the following.

Create a file called /usr/local/bin/xvnc.sh and place within it the following text:

#!/bin/bash
xhost +
x11vnc -display :0 -forever -passwd "foobar" &

And run chmod +x /usr/local/bin/xvnc/sh.

Exit from root.


This will allow connections as long as the server is running, and access to be granted by the password “foobar” as LXDE is started.

 

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin