pi:raspbian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pi:raspbian [2020-05-18 14:40] – [Configure OpenSSH server] italics markup gabriel | pi:raspbian [2020-05-18 21:31] – adding tmux and alternative shells gabriel | ||
---|---|---|---|
Line 3: | Line 3: | ||
This page documents my local Raspberry Pi config for a Raspberry Pi 3 running Raspbian. | This page documents my local Raspberry Pi config for a Raspberry Pi 3 running Raspbian. | ||
- | ===== Disable automatic resizing of root partition | + | ===== Before first boot ===== |
- | By default Raspbian attempts to grow the root partition of your system on first boot to fill your entire SD card. | + | 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 |
- | To disable this option do the following. | + | |
- | * Remove custom init script and quiet from / | + | * Remove custom init script and quiet from '' |
- | * Remove / | + | * Remove |
===== After first boot ===== | ===== After first boot ===== | ||
Line 59: | Line 58: | ||
==== User configuration ==== | ==== User configuration ==== | ||
+ | |||
+ | The following user modifications are made. | ||
+ | |||
+ | === local user === | ||
Add local user: | Add local user: | ||
Line 67: | Line 70: | ||
passwd gabriel | passwd gabriel | ||
</ | </ | ||
+ | |||
+ | === pi === | ||
Disable pi user: | Disable pi user: | ||
Line 73: | Line 78: | ||
usermod -s / | usermod -s / | ||
</ | </ | ||
+ | |||
+ | === root === | ||
Now set root password. | Now set root password. | ||
+ | |||
+ | === ansible === | ||
+ | |||
+ | Add ansible user: | ||
+ | |||
+ | < | ||
+ | groupadd -g 1111 ansible | ||
+ | useradd -u 1111 -c " | ||
+ | usermod -p ' | ||
+ | </ | ||
+ | |||
+ | Configure the following sudo rule for ansible: | ||
+ | |||
+ | < | ||
+ | # Ansible control user | ||
+ | ansible ALL=(ALL) NOPASSWD: | ||
+ | </ | ||
+ | |||
+ | Copy SSH keys for Ansible user. | ||
==== Sudoers config ==== | ==== Sudoers config ==== | ||
Line 146: | Line 172: | ||
< | < | ||
cat " | cat " | ||
- | cd / | + | rm -fv / |
dpkg-reconfigure openssh-server | dpkg-reconfigure openssh-server | ||
</ | </ | ||
+ | |||
+ | ==== Packages ==== | ||
+ | |||
+ | < | ||
+ | vim | ||
+ | ntp | ||
+ | isc-dhcp-server | ||
+ | bind9 | ||
+ | dnsutils | ||
+ | whois | ||
+ | fping | ||
+ | git | ||
+ | tmux | ||
+ | mksh | ||
+ | zsh | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Services ==== | ||
+ | |||
+ | Service modification | ||
+ | |||
+ | < | ||
+ | systemctl disable apt-daily-upgrade.timer | ||
+ | systemctl disable apt-daily.timer | ||
+ | </ | ||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * [[quay: | ||
+ | * [[quay: | ||
+ | * [[quay: | ||
---- | ---- |
pi/raspbian.txt · Last modified: 2020-05-19 09:39 by gabriel