Dies ist eine alte Version des Dokuments!


Raspberry Pi

The Raspberry Pi is my personal „Home-Webcam-Sandbox-Server“

my Raspberry PI

General Setup

apt-get update && apt-get install apache2 php5 ntpdate build-essential vim motion curl msmtp mtr dnsutils mailutils

DynDNS

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 

Source: http://raspberrypi.stackexchange.com/a/312

Webcam

rpi-update by Hexxeh

sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update

https://github.com/Hexxeh/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

Shairport

pub/raspberry-pi.1373903412.txt.gz · Zuletzt geändert: 2013/12/06 19:12 (Externe Bearbeitung)