User Tools

Site Tools


linux:distros:server:arm:opensuse_tumbleweed_server

This is an old revision of the document!


Information

  • openSUSE
  • Tumbleweed
  • Server
  • AArch64
  • Kraityn = Raspberry Pi 4 Model B Rev 1.5 (notes)
uname -a
Linux Kraityn 7.3.5-1-default #1 SMP PREEMPT_DYNAMIC Wed Nov 18 05:53:17 UTC 2026 (b2eda32) aarch64 aarch64 aarch64 GNU/Linux

Reboot TODO

sudo systemctl kill -s 'KILL' 'vsftpd' && systemctl poweroff
ssh '192.168.1.152' -t "sudo systemctl kill -s 'KILL' 'vsftpd' && systemctl reboot"
"%SystemRoot%\System32\OpenSSH\ssh.exe" -o "StrictHostKeyChecking='no'" -o "UserKnownHostsFile='NUL'" "192.168.1.152" -t "sudo systemctl start 'suse-up'"

Download

Installation Notes

Partitioning

  • 128GB SD Card
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mmcblk0     179:0    0 119.1G  0 disk 
├─mmcblk0p1 179:1    0    64M  0 part /boot/efi
├─mmcblk0p2 179:2    0   500M  0 part [SWAP]
└─mmcblk0p3 179:3    0 118.5G  0 part /

Initial Set-up

  • Continue from ssh
  • Log-in as root

passwd

  • :!: Change root user password
passwd

Create User

  • Users → Add
  • Defaults 1)
yast2 'users'

Disable Root SSH

echo 'PermitRootLogin no' | tee '/etc/ssh/sshd_config.d/DenyRootLogin.conf' > '/dev/null' && cat '/etc/ssh/sshd_config.d/DenyRootLogin.conf'
systemctl 'reboot'
sudo sshd -T | grep 'PermitRootLogin'

Software

Disable Open H.264 Repo

sudo zypper modifyrepo --disable 'repo-openh264'

Update

System

sudo zypper clean --all && sudo zypper refresh --force --services && sudo zypper dist-upgrade --details --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change && sync

Firmware

GNU nano

  • Installs nano
  • Sets VISUAL and EDITOR to nano via environment variable
  • Sets nowrap for current user
sudo zypper install 'nano' && export 'VISUAL=nano' && export 'EDITOR=nano' && echo -e 'export VISUAL=nano\nexport EDITOR=nano' | sudo tee '/etc/profile.d/editor-nano.sh' > '/dev/null' && cat '/etc/profile.d/editor-nano.sh' && mkdir -p ~/'.config/nano' && echo 'set nowrap' | tee ~/'.config/nano/nanorc' > '/dev/null' && cat ~/'.config/nano/nanorc'

Remove

sudo zypper remove --clean-deps 'irqbalance'
sudo zypper addlock 'irqbalance'

General

sudo zypper install fastfetch htop sensors

Specs

clear && fastfetch -l 'small' && uname -a && date
ssh '192.168.1.152' -t 'clear && fastfetch -l 'small' && uname -a && date'

Settings

Hostname

sudo hostnamectl set-hostname 'Kraityn'

Time

sudo timedatectl set-timezone 'America/New_York' && sudo timedatectl 'set-ntp' 'true' && timedatectl status

Network

nmcli con show
sudo nmcli connection modify 'Wired connection 1' 'ipv4.method' 'manual'
sudo nmcli connection modify 'Wired connection 1' 'ipv4.dns' '1.1.1.2,1.0.0.2'
sudo nmcli connection modify 'Wired connection 1' 'ipv4.address' '192.168.1.152/24'
sudo nmcli connection modify 'Wired connection 1' 'ipv4.gateway' '192.168.1.1'
sudo nmcli connection modify 'Wired connection 1' 'ipv6.method' 'disabled'
sudo nmcli connection up 'Wired connection 1
sudo nmcli device disconnect 'end0' && sleep '2' && sudo nmcli device connect 'end0'
nmcli connection show 'Wired connection 1'

Firewalld

sudo firewall-cmd --get-active-zones
sudo firewall-cmd --permanent --zone='docker' --remove-interface='docker0'
sudo systemctl restart 'firewalld'

Test

sudo firewall-cmd --remove-service='ssh' --permanent && sudo firewall-cmd --zone='LAN' --add-service='ssh' --permanent && sudo firewall-cmd --reload

HOSTS

sudo cp -fv '/etc/hosts' '/etc/hosts~'
wget -q --show-progress -O '/tmp/blacklist-fg.txt' 'https://github.com/StevenBlack/hosts/raw/refs/heads/master/alternates/fakenews-gambling/hosts' && chmod '0644' '/tmp/blacklist-fg.txt' && sudo chown 'root':'root' '/tmp/blacklist-fg.txt' && sudo mv -f '/tmp/blacklist-fg.txt' '/etc/hosts'
sudo systemctl restart 'NetworkManager'
cat '/etc/hosts' | grep 'Date:'

Boot Loader

YaST

sudo yast2 'bootloader'

Boot Code Options

  • Boot Loader: GRUB2 for EFI
  • [ ] Secure Boot Support
  • [x] Update NVRAM Entry

Kernel Parameters

  • CPU Mitigations: Auto
  • [ ] Graphical console
  • [ ] Serial console

Kraityn

console='' quiet initcall_blacklist='sysfb_init,init_ima' security='' lsm='' audit='0' ima_appraise='off' nohz='off' preempt='full' iommu.passthrough='1' kvm-arm.mode='none' init_on_alloc='0' init_on_free='0' nowatchdog pci='notph,pcie_bus_perf,realloc' pcie_ports='compat' pcie_port_pm='off' pcie_aspm='off' hostname='Kraityn' rcu_nocbs drm_kms_helper.poll='0' drm_kms_helper.fbdev_emulation='0' module_blacklist='bcm2835_wdt,snd_bcm2835' nomodeset rootflags='data=writeback' usbcore.autosuspend='-1' ipv6.disable='1' cpuidle.off='1' cpufreq.off='1' processor.max_cstate='0'

Default

security=selinux selinux=1 loglevel=3 splash=silent systemd.show_status=1

Bootloader Options

  • Timeout in Seconds: 0
  • [ ] Probe Foreign OS
  • [ ] Hide Menu on Boot
  • Default Boot Section: openSUSE Tumbleweed
  • [ ] Protect Boot Loader with Password

config.txt

Drive Maintenance

Trim

sudo systemctl enable 'fstrim.timer' --now
sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
sudo fstrim -v -a

EFI

sudo zypper install 'dosfstools'
sudo umount '/boot/efi' && sudo fsck.fat -a -t -w -v '/dev/mmcblk0p1' && sudo mount '/boot/efi'

External

  • SD in another computer

EFI

sudo fsck.fat -a -t -w -v '/dev/mmcblk0p1'

ext2

sudo e2fsck -D -E 'discard' -f -v -y '/dev/mmcblk0p3'

Tweaks

General

echo "export LD_BIND_NOW='1'" | sudo tee '/etc/profile.d/general-tweaks.sh' > '/dev/null'

Dracut

sudo -e '/etc/dracut.conf.d/99-tweaks.conf'
compress="cat"
do_strip="yes"
aggressive_strip="yes"
hostonly="yes"
hostonly_mode="strict"
reproducible="no"
enhanced_cpio="no"
i18n_install_all="no"
kernel_cmdline="rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0"

# End
sudo dracut --force --regenerate-all --verbose

journald

sudo mkdir -p '/etc/systemd/journald.conf.d' && sudo -e '/etc/systemd/journald.conf.d/99-tweaks.conf' && sudo journalctl --vacuum-time='1s' --rotate
[Journal]
Storage=none
Compress=false
MaxLevelStore=0
MaxLevelSyslog=0
MaxLevelKMsg=0
MaxLevelConsole=0
MaxLevelWall=0

# End
sudo journalctl --vacuum-time='1s' --rotate

fstab

sudo -e '/etc/fstab'

swap

,discard=once

ext4

,noatime,discard,nobarrier,data=writeback

EFI

,discard

fake-hwclock

sudo zypper install 'fake-hwclock'
sudo systemctl enable --now 'fake-hwclock-load' 'fake-hwclock-save.timer'
sudo systemctl start 'fake-hwclock-save' && ls -la '/etc/fake-hwclock.data'

Automatic Updates

Service

  • Force-stops vsftpd when LAN TVs are streaming
sudo -e '/etc/systemd/system/suse-up.service'
[Service]
Type=oneshot

WorkingDirectory=/tmp

ExecStartPre='/usr/bin/zypper' -q clean --all

ExecStart='/usr/bin/zypper' -q --non-interactive refresh --force --services
ExecStart='/usr/bin/zypper' -q --non-interactive dist-upgrade --auto-agree-with-licenses --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change

# HOSTS
ExecStartPost='/usr/bin/wget' -q -O '/tmp/blacklist-fg.txt' 'https://github.com/StevenBlack/hosts/raw/refs/heads/master/alternates/fakenews-gambling/hosts'
ExecStartPost='/usr/bin/chmod' '0644' '/tmp/blacklist-fg.txt'
ExecStartPost='/usr/bin/mv' -f '/tmp/blacklist-fg.txt' '/etc/hosts'

ExecStartPost='/usr/bin/sync'
ExecStartPost='/usr/bin/systemctl' kill -s 'KILL' 'vsftpd'
ExecStartPost='/usr/bin/systemctl' reboot

# End

Timer

  • Daily 06:00:00 AM (Kraityn)
sudo -e '/etc/systemd/system/suse-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'suse-up.timer' --now
[Unit]
Description=openSUSE OS Updater
After=network-online.target
Wants=network-online.target

[Timer]
OnCalendar=*-*-* 06:00:00
Persistent=true

[Install]
WantedBy=timers.target

# End
sudo systemctl start 'suse-up'

Notable Folders and Commands

ethtool TODO

sudo ethtool -A 'end0' 'rx' 'off' 'tx' 'off'

sudo ethtool -K 'end0' 'rx-checksumming' 'off' 'tx-checksumming' 'off' 'scatter-gather' 'off' 'tcp-segmentation-offload' 'off' 'rx' 'off' 'tx' 'off' 'sg' 'off' 'tso' 'off' 'ufo' 'off' 'gso' 'off' 'gro' 'off' 'lro' 'off' 'rxvlan' 'off' 'txvlan' 'off' 'ntuple' 'off' 'rxhash' 'off'

sudo ethtool --set-eee 'end0' 'eee' 'off'

sudo sysctl 'net.ipv4.tcp_sack'='0'

sudo ethtool -a 'end0'
sudo ethtool -k 'end0'
sudo ethtool 'end0'

ip addr | grep 'mtu'
sudo ip link 'set' 'end0' 'mtu' '576'
1)
UID 1000, Groups users
/srv/www/wiki/data/attic/linux/distros/server/arm/opensuse_tumbleweed_server.1795554826.txt.gz · Last modified: by Sean Rhone