projects:raspberrypi:install
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| projects:raspberrypi:install [2014/03/04 10:01] – benh | projects:raspberrypi:install [2016/10/22 17:46] (aktuell) – benh | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Howto configure a basic debian server on a Raspberry Pi ====== | + | /op====== Howto configure a basic debian server on a Raspberry Pi ====== |
| ===== Requirements ===== | ===== Requirements ===== | ||
| * Raspberry Pi & power supply | * Raspberry Pi & power supply | ||
| Zeile 17: | Zeile 17: | ||
| - Memory Split - set to " | - Memory Split - set to " | ||
| - Update | - Update | ||
| - | - update firmware <code bash> | + | - update firmware <code bash>apt-get install rpi-update && |
| - reboot the Raspberry Pi <code bash> | - reboot the Raspberry Pi <code bash> | ||
| - login through ssh console <code bash>ssh pi@10.{x}.{x}.{x}</ | - login through ssh console <code bash>ssh pi@10.{x}.{x}.{x}</ | ||
| - get root console <code bash> | - get root console <code bash> | ||
| - remove unnecessary packages <code bash> | - remove unnecessary packages <code bash> | ||
| - | - clean up package dependencies <code bash> apt-get autoremove</ | + | |
| + | | ||
| - update package repositories <code bash> | - update package repositories <code bash> | ||
| - upgrade all packages to newest version <code bash> | - upgrade all packages to newest version <code bash> | ||
| - | - enable watchdog kernel module <code bash> | + | - enable watchdog kernel module |
| - | - install additional packets <code bash> apt-get install vim-nox dnsmasq htop iftop nmap exim4-daemon-lightuptimed | + | - install additional packets <code bash> apt-get install vim-nox dnsmasq htop iftop nmap exim4-daemon-light uptimed |
| - add new user <code bash> | - add new user <code bash> | ||
| - change console to new user <code bash>su - benh</ | - change console to new user <code bash>su - benh</ | ||
| Zeile 43: | Zeile 44: | ||
| - replace bashrc " | - replace bashrc " | ||
| - configure hosts file <code bash>vi / | - configure hosts file <code bash>vi / | ||
| - | - comment the hostname-> | + | - comment the hostname-> |
| - | - add a line with hostname-> | + | - add a line with hostname-> |
| - | - add ssh login notification script "[[projects:raspberrypi: | + | - add ssh login notification script "[[https:// |
| - | - redirect root mails to operator <code bash> | + | - redirect root mails to operator <code bash> |
| + | - configure exim4 <code bash> | ||
| + | vi / | ||
| - send cron notifications by mail <code bash>vi / | - send cron notifications by mail <code bash>vi / | ||
| - add cronjob to scan for unwanted .sshrc files in home directories <code bash>vi / | - add cronjob to scan for unwanted .sshrc files in home directories <code bash>vi / | ||
| */5 * * * * | */5 * * * * | ||
| </ | </ | ||
| - | - remove desktop environment | + | - send notification after system start <code bash>vi / |
| + | echo -e " | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | rm /etc/motd | ||
| + | ln -s / | ||
| + | vi /etc/update-motd.d/00-header | ||
| + | vi /etc/update-motd.d/10-sysinfo | ||
| + | echo -ne '# | ||
| + | rm / | ||
| + | echo -ne '# | ||
| + | chmod a+x / | ||
projects/raspberrypi/install.1393923666.txt.gz · Zuletzt geändert: von benh
