distros:raspbian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
distros:raspbian [2018/05/31 00:00] – Sean Rhone | distros:raspbian [2018/06/01 00:01] (current) – old revision restored (2018/05/31 00:00) Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | * Raspbian ((https:// | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | * [[Devices: | ||
+ | |||
+ | ====== Download ====== | ||
+ | |||
+ | ===== Web ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== wget ===== | ||
+ | |||
+ | ==== Full ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | wget ' | ||
+ | |||
+ | ==== Lite ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | wget ' | ||
+ | |||
+ | ====== Expand Filesystem ====== | ||
+ | |||
+ | * This **must** be done before anything else | ||
+ | |||
+ | sudo raspi-config | ||
+ | |||
+ | ====== Software ====== | ||
+ | |||
+ | ===== Update ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync | ||
+ | |||
+ | ===== General ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo apt install htop -y && sync | ||
+ | |||
+ | ====== Settings ====== | ||
+ | |||
+ | ===== raspi-config ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo raspi-config | ||
+ | |||
+ | ===== GNU nano ===== | ||
+ | |||
+ | * Sets '' | ||
+ | |||
+ | echo -e "set nowrap\nset nonewlines" | ||
+ | |||
+ | ===== Kernel Options ===== | ||
+ | |||
+ | * Enables '' | ||
+ | * Sets '' | ||
+ | |||
+ | echo -e " | ||
+ | |||
+ | ===== Static IP ===== | ||
+ | |||
+ | * Append to bottom of file and change as-needed | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | interface eth0 | ||
+ | static ip_address=192.168.1.158/ | ||
+ | static routers=192.168.1.1 | ||
+ | static domain_name_servers=1.1.1.1 1.0.0.1</ | ||
+ | |||
+ | ===== systemd Journal ===== | ||
+ | |||
+ | * Max log file sizes of '' | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | ===== TRIM ===== | ||
+ | |||
+ | ==== Service ==== | ||
+ | |||
+ | * Taken from Fedora Workstation with slight modifications | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Discard unused blocks | ||
+ | | ||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStartPre=/ | ||
+ | ExecStart=/ | ||
+ | ExecStartPost=/ | ||
+ | |||
+ | ==== Timer ==== | ||
+ | |||
+ | * Taken from Fedora Workstation | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Discard unused blocks once a week | ||
+ | Documentation=man: | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=weekly | ||
+ | AccuracySec=1h | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | ===== Secure Shell ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | sudo systemctl disable ' | ||
+ | |||
+ | ===== Environment Variables ===== | ||
+ | |||
+ | ==== Timezone ==== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | echo ' | ||
+ | |||
+ | ====== Automatic Updates ====== | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStartPre='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStartPost='/ | ||
+ | ExecStartPost='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Software Package Maintenance and Updater | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=*-*-* 05:40:00 | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | https:// |
/var/www/wiki/data/pages/distros/raspbian.txt · Last modified: 2018/06/01 00:01 by Sean Rhone