Categories
Linux Operating systems

Rasberry Pi initial configuration

Posting my initial Raspberry Pi configuration steps to enable SSH / FTP / VNC and Wifi to a WPA2 access point in case it’s of use to anyone else getting started with the Pi. WPA connection is automatic, I’ve left VNC manually started to save resources when not in use, it can be started via SSH or the console using the following command:

vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

# loaded debian6-19-04-2012.img to SD card
# expanded main partition using gparted on another machine
sudo /boot/boot_enable_ssh.rc
uname -a
# Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux
sudo dpkg-reconfigure tzdata
sudo nano /etc/dhcp/dhclient.conf # set host-name
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ca-certificates git-core proftpd tightvncserver
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update
sudo chmod +x /usr/bin/rpi-update
sudo rpi-update # ignore error about libvchiq_arm.so
sudo reboot
uname -a
# Linux raspberrypi 3.1.9+ #159 PREEMPT Wed Jul 11 19:54:53 BST 2012 armv6l GNU/Linux
wpa_passphrase <SSID> <Passphrase> # copy hex from psk= and paste into <PSK> below
sudo nano /etc/network/interfaces
# append following to bottom:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid <SSID>
wpa-psk <PSK>