Difference between revisions of "User talk:Martin"
From SingletonMillerWiki
m |
m (→rebuild from a backup) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
#mount the boot partition, edit config.txt, enable HDMItoVGA cable [[HDMItoVGASetup]] | #mount the boot partition, edit config.txt, enable HDMItoVGA cable [[HDMItoVGASetup]] | ||
#plug into Pi, added monitor and keyboard to pi | #plug into Pi, added monitor and keyboard to pi | ||
− | #do first boot setup, expand flash, enable camera, <advanced> enable SSH change | + | #do first boot setup, '''expand flash''', '''enable camera''', <advanced> '''enable SSH''', '''change hostname''' and set the '''correct timezone''' |
#reboot | #reboot | ||
#ssh into the Pi | #ssh into the Pi | ||
Line 26: | Line 26: | ||
# mount the backup location | # mount the backup location | ||
# <code> cd ~ </code> | # <code> cd ~ </code> | ||
− | # unzip backup image <pre> cp /media/nfsshares/Public/RPi_autobuild_backup/backup_20130608_225618.img.tar.gz ~/Downloads </pre> <pre>tar -zxvf ~/Downloads/ | + | # unzip backup image <pre> cp /media/nfsshares/Public/RPi_autobuild_backup/backup_20130608_225618.img.tar.gz ~/Downloads </pre> <pre>tar -zxvf ~/Downloads/backup_rpiv102-20130609_005114.tar.gz --strip 4</pre> |
# burn the image <pre>sudo dd bs=4M if=~/Downloads/backup_20130608_225618.img of=/dev/<sdc></pre> | # burn the image <pre>sudo dd bs=4M if=~/Downloads/backup_20130608_225618.img of=/dev/<sdc></pre> | ||
# boot the SD in the new Pi | # boot the SD in the new Pi |
Latest revision as of 09:46, 9 June 2013
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_rpiv102-20130609_005114.tar.gz --strip 4
- 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