Post install
First Boot
Objectives
- Reset default passwords
- Change hostname
- Initialize package manager
- Upgrade the system
- Reboot
Steps
- Login as default user
ssh alarm@alarmpi
- SU as root
su -
- Change password for root & default user
passwd root passwd alarm
- Change hostname
hostnamectl hostname
new_hostname
- Init keys
pacman-key --init pacman-key --populate archlinuxarm
- Update the system
pacman -Syu --noconfirm
- Reboot
reboot
Second boot
Objectives
- Add new groups
- Add new users
- Install critical software
- Add user/s to sudoer
- Setup AUR
- Configure Pi
Steps
- Add Groups
- Add system groups
- groupadd -r docker
- groupadd -r ansible
- Add regular groups
- groupadd pi
- groupadd
username
- Add new users
- useradd -m -g pi -G wheel,users,docker pi
- useradd -m -g ansible -G wheel,users,docker ansible
- useradd -m -g
username
-G wheel,usersusername
- Change shells if needed/desired
- usermod --shell /bin/bash
username
- usermod --shell /bin/bash
- Install software
pacman -S –noconfirm sudo vim base-devel git go
- Add default user to sudoer
echo “alarm ALL=NOPASSWD: ALL” >/etc/sudoers.d/000-users
- Add any additional users to sudoer
-
Setup AUR as non-root user
-
Exit
root
and return to regular user -
Install Yay
rm -rf /tmp/yay-bin
git clone https://aur.archlinux.org/yay-bin.git /tmp/yay-bin
cd /tmp/yay-bin
makepkg -si
-
Install packages (Replaces previously installed vi package)
yay -S --noconfirm vi-vim-symlink usbutils lshw
[OPTIONAL]
- ansible
- docker docker-compose
- hwinfo
-
Configure Pi
- Install some useful packages > yay -S --noconfirm raspi-config-git i2c-tools lm_sensors
- Use raspi-config to adjust pi
- Locale
- Timezone
- Interfacing
- SPI
- I2C
- Advance
- Expand Filesystem
- Memory Split = 16
- Configure Bash
- Install a few tools/utilities > yay -S --noconfirm find-the-command fzf fastfetch
- Add stuff to bash_profile
> vi ~/.bash_profile
fastfetch source /usr/share/doc/find-the-command/ftc.bash
How To
Docker
yay -S --noconfirm docker docker-compose
sudo systemctl enable –now docker
Grafana
yay -S --noconfirm grafana-bin
sudo systemctl enable --now grafana
Prometheus Exporters
Install
yay -S --noconfirm prometheus prometheus-node-exporter
sudo systemctl enable --now prometheus prometheus-node-exporter
Additional Exporters
yay -S --noconfirm prometheus-blackbox-exporter
sudo systemctl enable --now prometheus-blackbox-exporter
yay -S --noconfirm prometheus-speedtest-exporter
yay -S --noconfirm prometheus-ping-exporter
sudo systemctl enable --now prometheus-ping-exporter
Enable Admin
TBD
Disable package compression
sudo vi /etc/makepkg.conf
Change PKGEXT to just tar
without compressing package.
#PKGEXT='.pkg.tar.zst'
#PKGEXT='.pkg.tar.xz”'
PKGEXT='.pkg.tar'
Additional packages
yay -S --noconfirm pacman-updatedb-hook