diff --git a/armbian/base_setup.md b/armbian/base_setup.md index 8f90de7..32ed7ed 100644 --- a/armbian/base_setup.md +++ b/armbian/base_setup.md @@ -16,19 +16,31 @@ systemctl reboot ``` +## Install Useful Tools + +``` bash + +apt install htop nload iotop tmux screen vim nano links wget exfat-utils ntfs-3g gdisk lvm2 cryptsetup busybox + +``` + +## ENABLE Automatic Update Download + +*Note: this is for more persistent/permanently online lollipops* + +### /etc/apt/apt.conf.d/02-armbian-periodic + +- Change ```APT::Periodic::Enable "0";``` to ```APT::Periodic::Enable "1";``` +- Change ```APT::Periodic::Update-Package-Lists "21";``` to ```APT::Periodic::Update-Package-Lists "1";``` + ## DISABLE Automatic Update Downloads *Note: this is to save bandwidth, time, etc when travelling* -### /etc/apt/apt.conf.d/02periodic - -Change ```APT::Periodic::Enable "1";``` to ```APT::Periodic::Enable "0";``` - ### /etc/apt/apt.conf.d/20auto-upgrades -Change ```APT::Periodic::Update-Package-Lists "1";``` to ```APT::Periodic::Update-Package-Lists "0";``` - -Change ```APT::Periodic::Unattended-Upgrade "1";``` to ```APT::Periodic::Unattended-Upgrade "0";``` +- Change ```APT::Periodic::Update-Package-Lists "1";``` to ```APT::Periodic::Update-Package-Lists "0";``` +- Change ```APT::Periodic::Unattended-Upgrade "1";``` to ```APT::Periodic::Unattended-Upgrade "0";``` ## Tweak OpenSSH Config diff --git a/services/caddy.md b/armbian/caddy.md similarity index 96% rename from services/caddy.md rename to armbian/caddy.md index 6f74612..6b803c5 100644 --- a/services/caddy.md +++ b/armbian/caddy.md @@ -22,6 +22,10 @@ Please note the Docker plugin is for a *swarm* which is *not* setup in these doc mkdir /var/log/caddy mkdir -p /etc/caddy/services chown www-data /var/log/caddy /etc/caddy +mkdir -p /var/www +chown www-data /var/www +mkdir /var/log/caddy +chown www-data /var/log/caddy cat > /root/update_caddy.sh <&1 | less -munin-node-configure --shell 2>&1 | less -systemcl restart munin-node systemctl enable munin-node +systemcl restart munin-node ``` diff --git a/armbian/network_manager.md b/armbian/network_manager.md index 9d9dddd..759bc0c 100644 --- a/armbian/network_manager.md +++ b/armbian/network_manager.md @@ -86,13 +86,13 @@ Some useful commands for adjusting connection/device status ``` bash apt update -# Install additional deps -apt install ebtables ipset -# Install + add-ons apt install network-manager \ - network-manager-openvpn network-manager-pptp -systemctl enable NetworkManager # Enable the service -systemctl start NetworkManager # Start the service + network-manager-openvpn network-manager-pptp \ + ebtables ipset dnsmasq-base +# Enable the service +systemctl enable NetworkManager +# Start the service +systemctl start NetworkManager ``` @@ -100,7 +100,7 @@ systemctl start NetworkManager # Start the service By default Armbian sets up at least one network device "behind the scenes" and keeps it "outside" NetworkManager. Given we want to manage our Lollipop through NetworkManager, we need to make a small tweak. -Edit ```/etc/network/interfaces``` and make sure eth0 directives aren't present. +Edit ```/etc/network/interfaces``` and make sure eth0 directives aren't present. Also make sure the ```/etc/network/interfaces.d``` directory is empty. Reboot after above cleanup of interfaces file. diff --git a/armbian/unbound.md b/armbian/unbound.md index c6927a4..fab4270 100644 --- a/armbian/unbound.md +++ b/armbian/unbound.md @@ -18,7 +18,6 @@ curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache cat > /etc/unbound/root.key < /etc/unbound/unbound.conf < /etc/autovpn/default # Get network names of ALL docker connections nmcli con show -echo "[name1],[name2]" > /etc/autovpn/exclude +echo "[uuid1],[uuid2]" > /etc/autovpn/exclude ``` diff --git a/hardware/rtc.md b/hardware/rtc.md index a5bce0b..3b9e902 100644 --- a/hardware/rtc.md +++ b/hardware/rtc.md @@ -55,6 +55,7 @@ apt remove --purge fake-hwclock # purge the fake hwclock as we have a real one n cat > /etc/udev/rules.d/99-rtc1.rules < /root/docker/acme.sh/acme.sh < /scratch/docker/acme.sh/acme.sh < To upgrade Borg to a new version later, run the following after activating your virtual environment: +wget -O /usr/local/bin/borg https://dl.lollipopcloud.solutions/api/download/borg/borg-1.1.7-arm64v8-debian-stretch -```pip install -U borgbackup[fuse]``` +``` + +### All boards + +``` bash + +chmod a+x /usr/local/bin/borg + +``` ## Initialize Backup Repo diff --git a/services/pi_hole.md b/services/pi_hole.md index b4ffacb..f8977e1 100644 --- a/services/pi_hole.md +++ b/services/pi_hole.md @@ -32,7 +32,7 @@ Full docs on run time parms can be found in the Pi Hole [docs (link)](https://gi ``` bash mkdir /var/pihole /var/pihole/data /var/pihole/dnsmasq.d -cat > /root/docker/pi-hole.sh < /scratch/docker/pi-hole.sh < /root/docker/searx/searx.sh << EOF +mkdir -p /scratch/docker/searx +cat > /scratch/docker/searx/searx.sh << EOF #!/bin/bash -cd /root/docker/searx/src -git checkout Dockerfile -git fetch -LATESTTAG=\`git describe --abbrev=0 --tags\` -git checkout \$LATESTTAG - ARCH=\`arch\` +UPSTREAM="" # Cleanup arch/container image here if [ \$ARCH == "aarch64" ] then echo "64bit arm" - sed -i 's_alpine:3.5_arm64v8/alpine:3.5_g' Dockerfile + UPSTREAM="registry.lollipopcloud.solutions/arm64v8/searx:v0.14.0" else echo "32bit arm" - sed -i 's_alpine:3.5_arm32v6/alpine:3.5_g' Dockerfile + UPSTREAM="registry.lollipopcloud.solutions/arm32v7/searx:v0.14.0" fi -docker build \\ - --file ./Dockerfile \\ - --tag searx/searx:\$LATESTTAG \\ - . +echo "Updating" +docker pull \$UPSTREAM # Cleanup existing container docker stop searx @@ -58,16 +49,16 @@ docker run \\ -e TZ=UTC \\ -e DEBUG=1 \\ -e BASE_URL=searx.domain.tld \\ - searx/searx:\$LATESTTAG + \$UPSTREAM EOF -chmod a+x /root/docker/searx/searx.sh +chmod a+x /scratch/docker/searx/searx.sh ``` ## Run Searx -Simply execute ```/root/docker/searx/searx.sh``` to update/run Gogs. +Simply execute ```/scratch/docker/searx/searx.sh``` to update/run Gogs. ## Serving Via Caddy