pi:raspbian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pi:raspbian [2020-05-18 16:47] – packges and services gabriel | pi:raspbian [2020-05-19 09:39] (current) – [Raspbian] updating overview gabriel | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Raspbian ====== | ====== Raspbian ====== | ||
- | This page documents | + | Documentation for my local Raspberry Pi 3 B+ config. |
===== Before first boot ===== | ===== Before first boot ===== | ||
Line 7: | Line 7: | ||
By default Raspbian attempts to grow the root partition of your system on first boot to fill your entire SD card. To disable this option do the following on the SD card image before first boot. | By default Raspbian attempts to grow the root partition of your system on first boot to fill your entire SD card. To disable this option do the following on the SD card image before first boot. | ||
- | * Remove custom init script and quiet from / | + | * Remove custom init script and quiet from '' |
- | * Remove / | + | * Remove |
===== After first boot ===== | ===== After first boot ===== | ||
Line 172: | Line 172: | ||
< | < | ||
cat " | cat " | ||
- | cd / | + | rm -fv / |
dpkg-reconfigure openssh-server | dpkg-reconfigure openssh-server | ||
</ | </ | ||
Line 187: | Line 187: | ||
fping | fping | ||
git | git | ||
+ | tmux | ||
+ | mksh | ||
+ | zsh | ||
</ | </ | ||
Line 204: | Line 207: | ||
* [[quay: | * [[quay: | ||
* [[quay: | * [[quay: | ||
- | |||
- | ---- | ||
- | |||
- | //This section contains old instructions for Raspian 8 and will be deprecated in the future.// | ||
- | |||
- | ===== [Old] Raspian Jessie Lite instructions ===== | ||
- | |||
- | * Add OpenSSH authorized_keys for root user | ||
- | * Remove all key types except rsa and ed25519 from sshd_config | ||
- | * Remove all default keys and regenerate | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * Make '' | ||
- | * Set static IP address for host by editing ''/ | ||
- | |||
- | < | ||
- | # See dhcpcd.conf(5) for details. | ||
- | interface eth0 | ||
- | static ip_address=$IP/ | ||
- | static routers=$ROUTER | ||
- | </ | ||
- | |||
- | * Set '' | ||
- | |||
- | < | ||
- | # Configuration for resolvconf(8) | ||
- | # See resolvconf.conf(5) for details | ||
- | |||
- | resolv_conf=/ | ||
- | # If you run a local name server, you should uncomment the below line and | ||
- | # configure your subscribers configuration files below. | ||
- | search_domains=in.quay.net | ||
- | # BUG WORKAROUND: space separated lists of DNS servers are not currently working | ||
- | name_servers=$NS1 | ||
- | name_servers_append=$NS2 | ||
- | |||
- | # Mirror the Debian package defaults for the below resolvers | ||
- | # so that resolvconf integrates seemlessly. | ||
- | dnsmasq_resolv=/ | ||
- | pdnsd_conf=/ | ||
- | unbound_conf=/ | ||
- | </ | ||
- | |||
- | * Remove pi default user | ||
- | * Remove pi group | ||
- | * Add new default user and group | ||
- | * Add sudoers entry for user | ||
- | * Set password | ||
- | * Update ntp config; '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * Set timezone to Toronto: '' | ||
- | * Remove MOTD text ''> | ||
- | * Install git and needrestart | ||
- | |||
- | Raspbian appears to have issues with managing network dependencies during boot. This script ensures that BIND, dhcpd, and NTP start up correctly after the network interface is properly set up. It is run via ''/ | ||
- | |||
- | < | ||
- | #!/bin/bash | ||
- | |||
- | until fping -qc 3 8.8.8.8 > /dev/null 2>& | ||
- | echo " | ||
- | done | ||
- | |||
- | for daemon in isc-dhcp-server bind9; do | ||
- | echo " | ||
- | service $daemon restart | ||
- | done | ||
- | |||
- | echo " | ||
- | service ntp stop | ||
- | ntpdate -s 0.ca.pool.ntp.org | ||
- | service ntp start | ||
- | </ | ||
- | |||
- | ==== Service management under systemd ==== | ||
- | |||
- | * Add service to systemd init process: '' | ||
- | * List all services: '' | ||
- | |||
- | ==== Disable WiFi completely ==== | ||
- | |||
- | Blacklist the driver by creating a file in ''/ | ||
- | |||
- | < | ||
- | blacklist brcmfmac | ||
- | blacklist brcmutil | ||
- | </ |
pi/raspbian.1589834876.txt.gz · Last modified: 2020-05-18 16:47 by gabriel