Last active
December 27, 2020 13:50
-
-
Save marvin-marvin/59bc52ff8ad430bbc1b4874e27b68929 to your computer and use it in GitHub Desktop.
pi setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Setup Pi1/3 @ Raspbian Buster | |
# SSH | |
vi .ssh/authorized_keys (insert pub key) | |
# Packages | |
sudo apt-get update ; sudo apt-get upgrade ; sudo apt-get install dnsutils nmap iftop ncdu wget htop atop zip unzip slurm p7zip deltarpm unattended-upgrades python python3 | |
sudo apt purge libreoffice* | |
sudo apt clean | |
sudo apt autoremove | |
sudo rpi-update | |
sudo raspi-config | |
# NTP | |
timedatectl set-timezone Europe/Berlin | |
timedatectl set-ntp true | |
systemctl enable systemd-timesyncd | |
# Pulseway create /etc/pulseway/token | |
# Cron | |
sudo /usr/bin/wget -q https://gist.githubusercontent.com/marvin-marvin/ba839de656c98fa3eb7ac5685f99327c/raw/crontab_pi.txt -O /tmp/crontab ; sudo /usr/bin/crontab /tmp/crontab | |
echo "/bin/wget -q https://gist.githubusercontent.com/marvin-marvin/ba839de656c98fa3eb7ac5685f99327c/raw/crontab_pi.txt -O /tmp/crontab ; /usr/bin/crontab /tmp/crontab" >> /etc/rc.local | |
# Docker | |
curl -sSL https://get.docker.com | sh | |
sudo usermod -aG docker pi | |
# disable swap | |
nano /etc/fstab (uncomment swp img) | |
swapoff -a | |
systemctl disable dphys-swapfile.service | |
# wget fix | |
ln -s /usr/bin/wget /bin/wget | |
# resolv.conf fix | |
systemctl enable systemd-resolved.service | |
systemctl start systemd-resolved.service | |
systemctl status systemd-resolved.service | |
<reboot> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment