Ein simples Shellscript, dass alle nötigen Einstellungen vornimmt, um einen Raspberry Pi als Git/SMB Server mit LaTeX-Package-Repositories zu nutzen.
| readme.md | ||
| setup.sh | ||
LaTeX/Git Server setup script for Raspberry Pi
Usage
-
Downlaod Raspbian lite image from https://www.raspberrypi.org/downloads/raspbian/
-
Write image to SD card (see https://www.raspberrypi.org/documentation/installation/installing-images/README.md)
-
Boot Raspberry with sd card and monitor and keyboard connected (alternatively place empty file
sshon sdcard and connect viassh pi@raspberrypi) -
log in with pi - raspberry
-
use
sudo raspi-config(tip: '-' is 'ß' on german keyboard)- 1 Expand Filesystem
- 4 Internationalisation Options
- Enable locale de_DE.UTF-8
- Make it the default locale
- Change timezone to Europe → Berlin
- Change keyboard layout to Generic 105-key (Intl) PC → Other → German → German → The default keyboard layout → No compose key
- 7 Advanced Options
- A2 Hostname - set your prefered
- A4 SSH → Yes
- Finish → Reboot Yes
-
Connect to pi with
ssh pi@<hostname> -
log in with password 'raspberry'
In different terminal:
- Upload setup.sh to home directory at raspberry
- e.g.
scp setup.sh pi@<hostname>:~ - alternative: Download from anywhere on the internet using wget inside ssh session
- e.g.
At pi's ssh session:
-
Make setup script executable:
chmod u+x setup.sh -
Run setup script:
./setup.sh -
Change pi's password:
passwd -
Download latex package repositories:
./update-latex-repos.sh