distros:opensuse_tumbleweed_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
distros:opensuse_tumbleweed_server [2020/12/19 02:35] – Sean Rhone | distros:opensuse_tumbleweed_server [2022/05/14 00:38] – [Update] Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | |||
+ | * openSUSE ((https:// | ||
+ | * Tumbleweed ((https:// | ||
+ | * Server | ||
+ | |||
+ | ====== Download ====== | ||
+ | |||
+ | * http:// | ||
+ | |||
+ | ===== DVD + Xfce Live ===== | ||
+ | |||
+ | * Downloads the latest DVD and Xfce Live images | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ===== DVD ===== | ||
+ | |||
+ | * ISO and SHA256 hash | ||
+ | |||
+ | http:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ===== Xfce ===== | ||
+ | |||
+ | * For LiveUSB | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ====== Installation Notes ====== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | ===== Partitioning ===== | ||
+ | |||
+ | - XFS | ||
+ | - No separate ''/ | ||
+ | - Separate '' | ||
+ | |||
+ | ====== Repositories ====== | ||
+ | |||
+ | ===== ROCm ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | * Repository Priority: 98 | ||
+ | * Provides ROCm, notably OpenCL libraries | ||
+ | |||
+ | sudo rpm --import ' | ||
+ | |||
+ | ====== Software ====== | ||
+ | |||
+ | ===== List ===== | ||
+ | |||
+ | * http:// | ||
+ | |||
+ | ===== Disable USB Source ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo zypper modifyrepo --disable --medium-type ' | ||
+ | |||
+ | ===== Update ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | 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 | ||
+ | |||
+ | ===== GNU nano ===== | ||
+ | |||
+ | * Installs '' | ||
+ | * Sets '' | ||
+ | * Sets '' | ||
+ | |||
+ | sudo zypper install ' | ||
+ | |||
+ | ===== General ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo zypper install aria2 flashrom hdparm htop nano 7zip secret-tool sensors unar wget irqbalance xfsprogs-scrub | ||
+ | |||
+ | ===== ROCm ===== | ||
+ | |||
+ | * :!: Run '' | ||
+ | |||
+ | rocm-opencl rocm-smi-lib | ||
+ | |||
+ | ===== Keybase ===== | ||
+ | |||
+ | * https:// | ||
+ | * :!: TODO: Figure out how to do automated bcakups to KBFS | ||
+ | * :!: This page shows up on Google search; for desktop openSUSE and the GUI Keybase client, add the repo shown on [[distros: | ||
+ | |||
+ | keybase | ||
+ | |||
+ | ====== Settings ====== | ||
+ | |||
+ | ===== Network ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo yast2 ' | ||
+ | |||
+ | ==== Hostname/ | ||
+ | |||
+ | * https:// | ||
+ | * See [[notes: | ||
+ | |||
+ | * Static Hostname: '' | ||
+ | * Modify DNS Configuration: | ||
+ | * Name Server 1: '' | ||
+ | * Name Server 2: '' | ||
+ | * Name Server 3: '' | ||
+ | |||
+ | ==== Routing ==== | ||
+ | |||
+ | * Destination: | ||
+ | * Gateway: '' | ||
+ | * Device: '' | ||
+ | |||
+ | ===== Hostname ===== | ||
+ | |||
+ | * Change '' | ||
+ | |||
+ | sudo hostnamectl set-hostname ' | ||
+ | |||
+ | ===== lm_sensors ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo sensors-detect --auto | ||
+ | |||
+ | ===== Secure Shell ===== | ||
+ | |||
+ | * See [[clients: | ||
+ | |||
+ | ===== Drive Maintenance ===== | ||
+ | |||
+ | ==== Swap ==== | ||
+ | |||
+ | * Add '' | ||
+ | * According to the '' | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | ,discard | ||
+ | |||
+ | ==== Trim ==== | ||
+ | |||
+ | * :!: Enable only if a SSD is being used for Linux | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ==== XFS Scrub ==== | ||
+ | |||
+ | * [[https:// | ||
+ | * :!: Enable in all cases since it's likely both ''/'' | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ===== UTC ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * Set RTC to UTC | ||
+ | |||
+ | sudo timedatectl set-local-rtc ' | ||
+ | |||
+ | ==== Verify ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | timedatectl | grep local | ||
+ | |||
+ | ====== Automatic Updates ====== | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStartPre='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStartPost='/ | ||
+ | ExecStartPost='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | * 06:00 Oak | ||
+ | * 06:10 Alira | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=Software Package Maintenance and Updater | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | |||
+ | [Timer] | ||
+ | OnCalendar=*-*-* 06:00:00 | ||
+ | Persistent=true | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=timers.target</ | ||
+ | |||
+ | ====== External Backup ====== | ||
+ | |||
+ | ===== fstab ===== | ||
+ | |||
+ | * Expects a drive of some kind with a XFS partition at ''/ | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | < | ||
+ | # USB | ||
+ | /dev/sdb1 /mnt/USB xfs rw, | ||
+ | |||
+ | sudo mount '/ | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStartPre='/ | ||
+ | ExecStart='/ | ||
+ | ExecStartPost='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=Backup Backups to External Device | ||
+ | |||
+ | [Timer] | ||
+ | OnCalendar=*-*-* 07:00:00 | ||
+ | Persistent=true | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=timers.target</ | ||
+ | |||
+ | ====== Notable Folders and Commands ====== | ||
+ | |||
+ | ===== Zypper ===== | ||
+ | |||
+ | ==== Find Orphans ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | zypper packages --orphaned | ||
+ | |||
+ | ==== Remove Package and Deps ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo zypper remove --clean-deps ' | ||
+ | |||
+ | ==== Show Installed Patterns ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo zypper patterns --installed-only | ||
+ | |||
+ | ==== Folder ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | ls '/ | ||
+ | |||
+ | ==== List ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | zypper repos --priority | ||
+ | |||
+ | ===== GPG Keys ===== | ||
+ | |||
+ | ==== Check Keys ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | rpm -q gpg-pubkey --qf ' | ||
+ | |||
+ | ==== Remove Keys ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo rpm -e x | ||
+ | |||
+ | ===== fstrim ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo fstrim --verbose --all | ||
+ | |||
+ | ===== Show Sensors ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo zypper install -y ' | ||
+ | |||
+ | ===== Show CPU Frequency ===== | ||
+ | |||
+ | grep ' | ||
+ | |||
+ | watch -n 0.1 grep \'cpu MHz\' '/ | ||
+ | |||
+ | ===== OpenSSL Supported Ciphers ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | openssl ciphers -v | awk ' | ||
+ | |||
+ | ===== Partition Information ===== | ||
+ | |||
+ | * Both commands present the same information | ||
+ | |||
+ | df -hT | ||
+ | |||
+ | df --human-readable --print-type | ||
+ | |||
+ | ===== Encryption Information ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo cryptsetup -v status '/ | ||
+ | |||
+ | ===== HT/SMT Information ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | grep -e " | ||
+ | |||
+ | ===== Optimal GCC compiler flags ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+// | ||
+ | |||
+ | ===== firewalld ===== | ||
+ | |||
+ | ==== List Active Rules ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo firewall-cmd --list-all | ||
+ | |||
+ | ==== List Available Services ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo firewall-cmd --get-services | ||
+ | |||
+ | ==== Show Service Info ==== | ||
+ | |||
+ | * Change '' | ||
+ | * This shows what ports and protocols a service covers | ||
+ | |||
+ | sudo firewall-cmd --info-service=x | ||
+ | |||
+ | ==== Reload ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo firewall-cmd --reload | ||
+ | |||
+ | ==== Add/Remove Service ==== | ||
+ | |||
+ | * Add '' | ||
+ | |||
+ | sudo firewall-cmd --add-service=x | ||
+ | |||
+ | sudo firewall-cmd --remove-service=x | ||
+ | |||
+ | ==== Add/Remove Port ==== | ||
+ | |||
+ | * Add '' | ||
+ | * Change '' | ||
+ | |||
+ | sudo firewall-cmd --add-port=x/ | ||
+ | |||
+ | sudo firewall-cmd --remove-port=x/ | ||
C:/www/wiki/data/pages/distros/opensuse_tumbleweed_server.txt · Last modified: 2024/06/02 12:33 by Sean Rhone