Dies ist eine alte Version des Dokuments!
Raspberry Pi
General Setup
apt-get update && apt-get install apache2 php5 ntpdate build-essential vim fswebcam curl msmtp mtr dnsutils mailutils
DynDNS
- http://freedns.afraid.org is my choice (with own domain)
- IP update via wget
Bigger Console Font
Most of the time i use SSH to access the Raspberry but on HD-TV the font is too small
#!/bin/bash # set Console Font tty | grep -q tty if [[ $? -eq 0 ]] ; then # if we are on console/terminal setfont /usr/share/consolefonts/Lat7-TerminusBold28x14.psf.gz else echo "$0 must run from a terminal" fi
Backup
File Based
I use a file based backup to Dropbox. Since the official Dropbox client isn't supported unter ARM i use andreafabrizi/Dropbox-Uploader to save a backup
Image Backup
You can use the dd command to make a full backup of the image:
dd if=/dev/sdx of=/path/to/image
or for compression:
dd if=/dev/sdx | gzip > /path/to/image.gz
Where sdx is your SD card.
To restore the backup you reverse the commands:
dd if=/path/to/image of=/dev/sdx
or when compressed:
gzip -dc /path/to/image.gz | dd of=/dev/sdx
Webcam
- See this sub page linux-webcam
rpi-update by Hexxeh
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
Security
Permit Root Login
Don't let the Root in!
Edit /etc/ssh/sshd_config
an change PermitRootLogin
to no
. Then restart ssh by /etc/init.d/sshd restart
fail2ban
apt-get install fail2ban
http://www.thomas-krenn.com/de/wiki/SSH_Login_unter_Debian_mit_fail2ban_absichern
Shairport
- See this sub page shairport
TODO
Monit
USB Sound
Logging
SSH Tunnel
- z.B. HTTP über SOCKs Proxy
- Tunnel dynamisch 8081 (enable compression) Browser SOCKS Proxy einstellen