User talk:Martin
From SingletonMillerWiki
vanilla pi build server
This creates a self updating and backing build server, writing backup to a network share. The purpose is to leave this pi running and to create the most up to date backups.
- burn vanilla image to disk
dd bs=4M if=~/Downloads/2013-05-25-wheezy-raspbian.img of=/dev/sdc
- mount the boot partition, edit config.txt, enable HDMItoVGA cable HDMItoVGASetup
- plug into Pi, added monitor and keyboard to pi
- do first boot setup, expand flash, enable camera, <advanced> enable SSH, change hostname and set the correct timezone
- reboot
- ssh into the Pi
- disable screen blanking / timeout Disable_Screen_Blanking
- edit /etc/hosts to manually added other network addresses
- install LDAP client and setup LDAP_Client_Setup
- test LDAP authentication
- add LDAP user to sudo
- install autofs Accessing_Network_Shares
- automount LDAP shares Accessing_Network_Shares#Autofs_for_LDAP
- give at least one LDAP user sudo privs AddingUsers:RPi#Raspian
- remove 'pi' user AddingUsers:RPi#Consider_removing_Pi_altogether
- install autoback script Auto_Update_Backup
- test camera Camera_Module_Setup
- install codec keys (can have more than on keys so file)
rebuild from a backup
Instructions to rebuild a pi or clone a new pi from a previous build server backup
- mount the backup location
-
cd ~
- unzip backup image
cp /media/nfsshares/Public/RPi_autobuild_backup/backup_20130608_225618.img.tar.gz ~/Downloads
tar -zxvf ~/Downloads/backup_20130608_225618.img.tar.gz
- burn the image
sudo dd bs=4M if=~/Downloads/backup_20130608_225618.img of=/dev/<sdc>
- boot the SD in the new Pi
- update ssh keys if needed
ssh-keygen -f "/home/jack/.ssh/known_hosts" -R 192.168.0.20
- ssh to the new pi as an LDAP user with sudo privs, update the ssh keys
- use
raspi-config
to use whole SD card and (advanced) change hostname - remove autobackup script in /etc/cron.daily.
sudo rm /etc/cron.daily/AutoUpdateBackup