Notizen für Raspi Projekte
# /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="franken.freifunk.net"
key_mgmt=NONE
}
ssh pi@<ip-adresse-des-pi># root werdensudo -i# listen aktualisieren, einspielen und neu startenapt-get update && apt-get upgrade -y && reboot# oder als pi-update.sh file mit x Recht als pisudo apt-get updatesudo apt-get upgrade -ysudo rebootsudo -icurl -sSL https://install.pi-hole.net | bashpihole -a -p <new_password>pihole -up# Image nach Download entpacken:unzip 2017-11-29-raspbian-stretch.zip# Erlangung root Rechte sudo -i# odersu# Image auf microSD Karte kopieren mit root Rechten:dd bs=4M if=<raspi-img-datei> of=/dev/<sd-card-device> conv=fsyncdd bs=4M if=2017-11-29-raspbian-stretch.img of=/dev/sdb conv=fsynccd /media/<sdkartepath>/bootecho "" > ssh# /etc/wpa_supplicant/wpa_supplicant.conf
country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="FRITZ!Box 7490"
psk="password"
key_mgmt=WPA-PSK
}
sudo raspi-config>dd if=/dev/sdx of=/path/images.img bs=1M
# Anmeldung auf dem Pi über ssh
ssh pi@<ipadresse>
# falls passwort für root nicht bekannt -> neues setzen
sudo passwd
# System update
sudo apt-get update
# paketverwaltung installieren
sudo apt-get install aptitude
# aptitude starten
# docker-compose als packet suchen und installieren:
# shift+/ docker mit + auswählen
# und mit g installieren, dannach q zum Verlassen.
aptitude
# Gruppe docker dem pi user zuordnen
sudo chmod -a -G docker pi
# abmelden und neu anmelden damit die gruppe wirksam wird
# Anmeldung auf dem Pi über sshssh pi@<ipadresse># Download auf dem pi der arm Version von http://dist.ipfs.io/#go-ipfs
wget https://dist.ipfs.io/go-ipfs/v0.4.13/go-ipfs_v0.4.13_linux-arm.tar.gz# Entpacken der Softwaretar xvzf go-ipfs_v0.4.13_linux-arm.tar.gz# Ins ipfs Verzeichnis wechselncd go-ipfs# Installation durchführensudo ./install.sh# IPFS initialisierenipfs init# Startdatei anlegen (um ausloggen zu können)echo -e "nohup ipfs daemon &\n" > start-ipfs.sh# Startdatei ausführbar machenchmod +x start-ipfs.sh# Deamon starten./start-ipfs.shNo comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.