This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doc:raspi2 [2015/11/14 13:29] stwn remove pagekite and syncthing |
doc:raspi2 [2015/11/14 23:30] (current) stwn [Storage] minor fix |
||
---|---|---|---|
Line 57: | Line 57: | ||
===== Debmirror ===== | ===== Debmirror ===== | ||
- | * $ sudo apt-get install debmirror | + | * Install debmirror. <code>$ sudo apt-get install debmirror</code> |
- | * $ nano debmirror-jessie | + | * Edit debmirror scripts. <code>$ nano debmirror-debian |
- | * You can find the Debian and Raspbian archive keyrings on their official repository respectively | + | $ nano debmirror-raspbian</code> |
- | * $ gpg --keyring debian-archive-keyring.gpg --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import | + | * Find the Debian and Raspbian archive keyrings on their official repositories respectively. |
- | * $ gpg --keyring raspbian.public.key --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import | + | * Add Debian and Raspbian archive keyrings. <code>$ gpg --keyring debian-archive-keyring.gpg --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import |
- | * gpg --list-keys --with-colons | + | $ gpg --keyring raspbian.public.key --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import</code> |
- | * $ debmirror-raspbian | + | * List the added keys. <code>$ gpg --list-keys --with-colons</code> |
- | * $ nano /etc/cron.d/debmirror or /etc/crontab | + | * Test the scripts by running them. |
- | * $ sudo systemctl restart cron.service | + | * Add crontab. <code>$ nano /etc/cron.d/debmirror or /etc/crontab</code> |
- | * $ sudo systemctl disable bla.service | + | * Restart crontab service. <code>$ sudo systemctl restart cron</code> |
===== Storage ===== | ===== Storage ===== | ||
- | # mkfs.ext4 /dev/sda1 | + | * # mkfs.ext4 /dev/sda1 |
- | # mkdir /media/dir | + | * # mkdir /media/dir |
- | # mount /dev/sda1 /media/dir/ | + | * # mount /dev/sda1 /media/dir/ |
- | # nano /etc/fstab | + | * # nano /etc/fstab |
===== Cron ===== | ===== Cron ===== |