Skip to content

Instantly share code, notes, and snippets.

@thpani
Last active December 25, 2015 22:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thpani/7052861 to your computer and use it in GitHub Desktop.
Save thpani/7052861 to your computer and use it in GitHub Desktop.
My Raspberry Pi setup routine

Raspberry Pi setup routine

Note I've started to transform my setup guide to Ansible playbooks at thpani/pi.

Headless boot to SSH over WiFi

/etc/network/interfaces

auto lo
auto eth0
allow-hotplug wlan0

iface lo inet loopback

iface eth0 inet dhcp

iface wlan0 inet dhcp
wpa-ssid pani
wpa-psk "********"

iface default inet dhcp

Disable power saving on the 8192CU (Edimax WiFi dongle)

/etc/modprobe.d/8192cu.conf

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

User setup

$ passwd
$ sudo useradd -m -G sudo,audio,video,users thomas
$ sudo passwd thomas

Software

$ sudo aptitude install vim tmux zsh
$ chsh -s /bin/zsh

Time Machine

$ sudo aptitude install netatalk exfat
$ sudo blkid
$ sudo mkdir /mnt/tm

/etc/fstab

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
UUID="4D02-8E53" /mnt/tm exfat defaults,nofail,gid=100,dmask=0002,fmask=0113 0 2

Air Print

$ sudo aptitude install avahi-daemon cups cups-pdf python-cups

/etc/cups/cupsd.conf

[...]
Listen *:631
[...]
Allow from @LOCAL
[...]

$ sudo service cups restart
$ sudo adduser thomas lpadmin
  • Browse to https://raspberrypi:631/admin, add the printer and share it.
  • For HP printers, choose the hpcups driver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment