piframe/docs/finalize_setup.md

88 lines
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
2020-08-06 21:18:51 +00:00
# Setup screen resolution (UNCOMMENT THE RIGHT LINES!!!)
cat >> /boot/firmware/usercfg.txt <<EOF
# Further reading
# https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
# https://www.raspberrypi.org/forums/viewtopic.php?t=5851
# https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=24679
# GeeekPi 5 Inch Capacitive Touch Screen 800x480 HDMI Monitor
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=800 480 60 6 0 0 0
# Generic 2k
#hdmi_cvt=2560 1600 50 5 0 0 1
#hdmi_group=2
#hdmi_mode=88
2020-08-10 21:29:22 +00:00
# CONFU 5.5" 2k (1440x2560) LCD
#dtoverlay=vc4-fkms-v3d
#hdmi_force_hotplug=1
#hdmi_timings=1440 0 50 10 35 2560 0 4 2 2 0 0 0 50 0 198000000 0
#hdmi_group=2
#hdmi_mode=87
#hdmi_pixel_freq_limit=500000000
2020-08-06 21:18:51 +00:00
EOF
# Reboot to pickup changes
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
2020-08-03 19:44:30 +00:00
export PATH="$PATH:/opt/vc/bin"
2020-08-03 01:05:29 +00:00
EOF
2020-08-03 19:44:30 +00:00
cat > /etc/ld.so.conf.d/00-vmcs.conf <<EOF
/opt/vc/lib
EOF
ldconfig
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
```