pi:raspbian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
pi:raspbian [2020-05-18 21:31] – adding tmux and alternative shells gabriel | pi:raspbian [2020-05-18 21:32] – deprecate jessie instructions gabriel | ||
---|---|---|---|
Line 207: | 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.txt · Last modified: 2020-05-19 09:39 by gabriel