From a01c94448995af882449d69293243053170a149f Mon Sep 17 00:00:00 2001 From: KemoNine Date: Fri, 31 Jul 2020 23:37:43 +0000 Subject: [PATCH] Move finalization section from notes to docs --- docs/README.md | 1 + docs/finalize_setup.md | 49 +++++++++++++++++ notes.txt | 121 ----------------------------------------- 3 files changed, 50 insertions(+), 121 deletions(-) create mode 100644 docs/finalize_setup.md diff --git a/docs/README.md b/docs/README.md index 67eea7d..5120ad2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,3 +3,4 @@ This folder contains a bunch of general information on how to get the base of a PiFrame deployed. * [Base Firmware](base.md) +* [Finalize Arch Setup](finalize_setup.md) \ No newline at end of file diff --git a/docs/finalize_setup.md b/docs/finalize_setup.md new file mode 100644 index 0000000..5e0317a --- /dev/null +++ b/docs/finalize_setup.md @@ -0,0 +1,49 @@ +# Arch Linux Finalization + +By default Arch Linux has very little software installed and even less configuration complete. + +The following commands will finalize the fundamental Arch Linux setup and perform some mild tuning. + +``` sh + +# login as root with password root + +# Initialize pacman +pacman-key --init +pacman-key --populate archlinuxarm + +# Update system to latest software +pacman -Syy +pacman -Su +systemctl reboot + +# Remove arch linux on arm default user +userdel alarm + +# Set root password +passwd + +# Turn on colorized pacman output +sed -i 's/#Color/Color/' /etc/pacman.conf # Add color to pacman + +# Install fundamental tools +pacman -S openssh tmux nano vim htop iotop nload python python-pip wget curl git bash-completion p7zip exfat-utils man-db man-pages btrfs-progs sudo + +# Tweak sshd to allow root login +sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config +systemctl enable --now sshd +systemctl restart sshd + +# Finalize localiztation settings +ln -sf /usr/share/zoneinfo/UTC /etc/localtime +timedatectl set-local-rtc 0 +timedatectl set-ntp true +echo LANG=en_US.UTF-8 > /etc/locale.conf +sed -i "s/#en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen +locale-gen + +# Finalize basic network config +nano -w /etc/hostname +nano -w /etc/hosts + +``` \ No newline at end of file diff --git a/notes.txt b/notes.txt index ef969f7..6865048 100644 --- a/notes.txt +++ b/notes.txt @@ -1,124 +1,3 @@ -######################################## -# IMPORTANT CONSIDERATIONS -######################################## - -This setup does NOT use SSL for anything. Use acme.sh + vhosts + nginx if you really wanna walk that path - -######################################## -# Setup environment -######################################## -https://ubuntu.com/download/raspberry-pi/thank-you?version=20.04&architecture=arm64+raspi -boot ubuntu server 64bit - ubuntu / ubuntu -update to latest of everything -apt update && apt install parted wget curl nano tmux vim htop iotop nload -ip addr -ssh into rpi - -######################################## -# Inspiration -######################################## - -https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4#installation -https://github.com/phortx/Raspberry-Pi-Setup-Guide - -######################################## -# Prep / install arch linux on micro sd card -######################################## - -parted /dev/sda -mklabel msdos -mkpart - p - [enter] - 1 - 100M -mkpart - p - [enter] - 100M - -1 -set 1 boot on -set 1 lba on -q - -mkfs.vat /dev/sda1 -mkfs.btrfs /dev/sda2 - -mkdir /mnt/arch -mount -o nodiratime,noatime,compress /dev/sda2 /mnt/arch -mkdir /mnt/arch/boot -mount /dev/sda1 /mnt/arch/boot -cd /mnt/arch -wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-4-latest.tar.gz -tar -xpf ArchLinuxARM-rpi-4-latest.tar.gz -rm ArchLinuxARM-rpi-4-latest.tar.gz - -cat > /mnt/arch/boot/config.txt < /etc/locale.conf -sed -i "s/#en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen -locale-gen -nano -w /etc/hostname -nano -w /etc/hosts - ######################################## # Swap ########################################