Skip to content

Instantly share code, notes, and snippets.

@j1n6
Created June 10, 2021 19:25
Show Gist options
  • Save j1n6/dd11401d5cf8832b95b3b953cd56d852 to your computer and use it in GitHub Desktop.
Save j1n6/dd11401d5cf8832b95b3b953cd56d852 to your computer and use it in GitHub Desktop.
raspberry pi vnc auto start

steps: install and set password

  • sudo apt-get install x11vnc
  • x11vnc -storepasswd

create autostart entry

  • cd .config
  • mkdir autostart
  • cd autostart
  • nano x11vnc.desktop
  • paste following text:

[Desktop Entry] Encoding=UTF-8 Type=Application Name=X11VNC Comment= Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer StartupNotify=false Terminal=false Hidden=false

  • save and exit (Ctrl-X, Y, )

This start x11vnc when lxde starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment