mikeandClaude Opus 5 ada2de1f24 setup.debian1x: fix -x, apt ordering and time sync
-x was never declared in getopts, so !$opt_x was always true and the
block it guards always ran. It now exists and covers both network steps.

apt-get update ran after the installs; on an image with empty package
lists every install failed. It now runs first.

apt-get upgrade had no -y and stopped an unattended run at the prompt.
DEBIAN_FRONTEND=noninteractive for the same reason.

On 13 the timesyncd.conf was copied but the service never restarted, so
it took effect at the next reboot at the earliest - and the ntp package
from the install list competed with timesyncd for port 123. ntp is now
installed only on the older releases, where the service is called ntpsec
since 12.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 10:55:20 +02:00
2026-08-10 16:27:40 +02:00
2026-08-14 10:26:26 +02:00
2026-08-14 10:26:26 +02:00
2026-08-10 16:26:45 +02:00
2026-08-10 16:12:09 +02:00
2026-08-14 10:13:57 +02:00
2026-08-10 16:13:11 +02:00
2026-08-10 16:12:09 +02:00
2026-08-10 16:12:09 +02:00

-------------------- Debian 10/11/12/13 -----------------
# su -
# apt install git; git clone https://git.fhi.mpg.de/mike/linuxsetup
# cd ~/linuxsetup; ./setup.ssh
relogin as root
# cd ~/linuxsetup; ./setup.debian1x
# cd ~/linuxsetup; ./telemetry.setup

-------------------- Raspberry Pi OS --------------------
# sudo passwd root
# su -
# apt install git; git clone https://git.fhi.mpg.de/mike/linuxsetup
# cd ~/linuxsetup; ./setup.ssh
relogin as root
# cd ~/linuxsetup; ./setup.debian1x
# cd ~/linuxsetup; ./telemetry.setup

-------------------- Ubuntu 18/20/22 --------------------
# sudo passwd root
# su -
# git clone https://git.fhi.mpg.de/mike/linuxsetup
# cd ~/linuxsetup; ./setup.ssh
relogin as root
# cd ~/linuxsetup; ./setup.ubuntu2x
# cd ~/linuxsetup; ./telemetry.setup

-------------------- restic backup --------------------
decrypt restic conf (password: quo...):
# openssl enc -a -d -aes-256-cbc -salt -pbkdf2 -iter 1000000 -in restic.config.enc
# ./restic.setup
# rt backup
check crontab

-------------------- mariadb --------------------
# apt install mariadb-server
MariaDB> ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD("eizohphu");
# mybackup -a
# myuser <NAME>

-------------------- go --------------------
# wget https://go.dev/dl/go1.25.4.linux-arm64.tar.gz
# rm -rf /db/go && tar -C /db -xzf go1.25.4.linux-arm64.tar.gz
export PATH=/db/go/bin:$PATH
export CGO_ENABLED=0

S
Description
No description provided
Readme
137 KiB
Languages
Perl 75.3%
Python 12%
C 7.6%
Shell 4.1%
XS 1%