Setting up tightvnc on Raspberry Pi

Install the package

sudo apt-get install tightvncserver

Run and assign passwords

Assign password used to login and password used to view


Make autostart script

Add a file tightvncserver in /etc/init.d with the following content

# /etc/init.d/tightvncserver
# Set the VNCUSER variable to the name of the user to start tightvncserver under
case "$1" in
    su $VNCUSER -c '/usr/bin/tightvncserver :1 -geometry 1920x1080 -depth 24 -dpi 96'
    echo "Starting TightVNC server for $VNCUSER"
    pkill Xtightvnc
    echo "Tightvncserver stopped"
    echo "Usage: /etc/init.d/tightvncserver {start|stop}"
    exit 1
exit 0

The line

  1. geometry 1920×1080 -depth 24 -dpi 96

is optional.

Edit permissions

sudo chmod 755 /etc/init.d/tightvncserver

Install service

sudo update-rc.d tightvncserver defaults


sudo reboot

Login with vnc client



in the vnc client to connect to the Raspberry Pi, where ip-address is the ip-address of the Raspberry Pi

howto/setting_up_tightvnc_on_raspberry_pi.txt · Last modified: 2018/02/08 17:47 (external edit)
[unknown button type]
Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki