raspberry_pi
Table of Contents
Raspberry pi
- Download image
- dd it to the sd card using a card reader
- plug into the pi.
Automatic Discovery
Avahi can be installed for automatic discovery:
sudo apt-get install avahi-daemon
Then you should be able to connect to the rpi through its hostname
ssh pi@raspberrypi.local
Remote display with VNC
Install vncserver on RPI:
sudo apt-get install tightvncserver
Launch vncserver:
vncserver :1 -name RasPi -depth 16 -geometry 1368x768
Start VNC server at boot
Create a script in /etc/init.d:
sudo nano /etc/init.d/vncserver
With this content:
#! /bin/sh # /etc/init.d/vncserverd ### BEGIN INIT INFO # Provides: vncserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: VNC server ### END INIT INFO VNCUSER='pi' case "$1" in start) echo -n "Starting vncserver..." su $VNCUSER -c '/usr/bin/vncserver :1 -name RasPi -depth 16 -geometry 1368x768' echo -n "Starting VNCServer for $VNCUSER [OK]" ;; stop) echo -n "Stoping vncserver..." su $VNCUSER -c '/usr/bin/vncserver -kill :1' echo -n "[OK]" ;; restart) $0 stop sleep 5 $0 start ;; *) echo "Usage: /etc/init.d/vncserverd {start|stop}" exit 1 ;; esac exit 0
Then give the credentials and update-rc :
sudo chmod 755 /etc/init.d/vncserverd sudo update-rc.d vncserverd defaults
raspberry_pi.txt · Last modified: 2013/02/22 20:53 by sgripon