piframe/docs/finalize_setup.md

55 lines
1.2 KiB
Markdown
Raw Normal View History

2020-08-03 01:05:29 +00:00
# Setup Finalization
2020-08-03 01:05:29 +00:00
The following will walk through finalizing setup of the base environment.
``` sh
2020-08-03 01:05:29 +00:00
# Wait for cloud initi to spew to LCD (this will take a minute, it's prepping the initial config and deploying it, including the default user account)
# Login as ubuntu / ubuntu and follow the prompts
2020-08-03 01:05:29 +00:00
sudo -sHu root /bin/bash
2020-08-03 01:05:29 +00:00
# Disable cloud-init as it's unnecessary for the purposes of this project
touch /etc/cloud/cloud-init.disabled
nano -w /boot/firmware/cmdline.txt
remove console=tty1
systemctl reboot
2020-08-03 01:05:29 +00:00
# Login
sudo -sHu root /bin/bash
2020-08-03 01:05:29 +00:00
# Cleanup timezone
dpkg-reconfigure tzdata
2020-08-03 01:05:29 +00:00
# Full system update
apt update && apt upgrade
systemctl reboot
2020-08-03 01:05:29 +00:00
# Login
2020-08-03 01:05:29 +00:00
sudo -sHu root /bin/bash
2020-08-03 01:05:29 +00:00
# Useful packages
apt install build-essential cmake nano tmux vim htop iotop nload git net-tools
2020-08-03 01:05:29 +00:00
# Raspberry Pi tools
apt install linux-tools-raspi
mkdir /opt/raspberry-pi
cd /opt/raspberry-pi
git clone https://github.com/raspberrypi/userland.git
cd userland
./buildme --aarch64
cat > /etc/profile.d/rpi-tools.sh <<EOF
#!/bin/bash
export PATH="$PATH:/opt/vc/bin/"
EOF
2020-08-03 01:05:29 +00:00
# Finalize basic network config
hostnamectl set-hostname piframe
# Reboot system for all changes to take effect
systemctl reboot
```