_____________________________________________ How to install VNC Server on Raspberry Pi _____________________________________________ # by WA8KIM / kim@kim125.com / EchoLink: WA8KIM-R / WiRES-X: Rm#21149 / Last updated 08/24/2015. # http://www.wa8kim.com/rpi.html # Thanks to MANY uncredited contributers. # Best viewed in Notepad with Word Wrap OFF/UNCHECKED and in full screen Download the latest version of this file at: http://www.wa8kim.com/files/(RPi)%20Install%20-%20Tight%20VNC%20Server.txt 1. Download and install Tight VNC Server sudo apt-get install tightvncserver 2. Run and initialize Tight VNC Server tightvncserver -->Enter password 3. To autostart Tight VNC Server # /etc/rc.local is your Raspberry Pi's version of autoexec.bat for MSDOS. # Add the following lines before "exit 0" # Adjust the default screen resolution and color depth by changing the geometry settings below. sudo nano /etc/rc.local ------------------------------------------------------------------------- echo Starting VNC Server . . . sudo tightvncserver :0 -geometry 1024x768 -depth 16 ------------------------------------------------------------------------- sudo reboot (Done!) # CONFIG FILE: To change the port within the config file, scroll about 1/3 down (line 228) in the following config file: sudo nano /usr/bin/vncserver ------------------------------------------------------------------------- $vncPort = 5900 + $displayNumber; ------------------------------------------------------------------------- # Or you can change the port wihin the command line: sudo tightvncserver :0 -geometry 1024x768 -depth 16 -rfbport 5900 # To view the log file, you need to change to the .vnc folder within the root user's folder: sudo cd /root/pi/.vnc ls # Will sow you what filename the .log files were saved as cat username:0.log # default username is pi. The 'cat' command will view the log file contents. # If you started Tight VNC Server without the 'sudo'command, To view the log file, you need to change to the .vnc folder within your user's folder: cd /home/pi/.vnc ls # Will sow you what filename the .log files were saved as cat username:0.log # default username is pi. The 'cat' command will view the log file contents. Download and install Tight VNC Viewer on your Client computer: http://www.tightvnc.com/download.php -------------------- REVISION HISTORY -------------------- 2015-08-24 Updated Download Link 2015-03-14 File Created