distros:ubuntu_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:ubuntu_server [2019/02/08 20:58] – Sean Rhone | distros:ubuntu_server [2023/05/04 10:02] – Ubuntu Server 23.04 Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | |||
+ | * Ubuntu Server ((http:// | ||
+ | * 23.04 | ||
+ | |||
+ | ====== Known Issues ====== | ||
+ | |||
+ | * None | ||
+ | |||
+ | ====== Download ====== | ||
+ | |||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | ====== Installation Notes ====== | ||
+ | |||
+ | * N/A | ||
+ | |||
+ | ====== Repositories ====== | ||
+ | |||
+ | ===== Additional Ubuntu ===== | ||
+ | |||
+ | * https:// | ||
+ | * Only '' | ||
+ | * As of 2023/05/04, none of this is necessary | ||
+ | |||
+ | sudo add-apt-repository ' | ||
+ | |||
+ | sudo add-apt-repository ' | ||
+ | |||
+ | sudo add-apt-repository ' | ||
+ | |||
+ | ===== Keybase ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * :!: This is only the signing key, see [[# | ||
+ | |||
+ | wget -O '/ | ||
+ | |||
+ | ====== Software ====== | ||
+ | |||
+ | ===== Update ===== | ||
+ | |||
+ | ==== System ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync | ||
+ | |||
+ | ==== Firmware ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose && sync | ||
+ | |||
+ | ==== Snaps ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo snap refresh | ||
+ | |||
+ | ===== Keybase ===== | ||
+ | |||
+ | * https:// | ||
+ | * TODO: Figure out backup script | ||
+ | |||
+ | rm -Rf '/ | ||
+ | |||
+ | ====== Settings ====== | ||
+ | |||
+ | ===== Kernel Options ===== | ||
+ | |||
+ | ==== Swappiness ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | echo ' | ||
+ | |||
+ | === Verify === | ||
+ | |||
+ | sysctl ' | ||
+ | |||
+ | cat '/ | ||
+ | |||
+ | ===== GRUB ===== | ||
+ | |||
+ | ==== Config ==== | ||
+ | |||
+ | * :!: [[notes: | ||
+ | * Add options in '' | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | ==== Linux OSI ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | acpi_osi=Linux | ||
+ | |||
+ | ==== PCI ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | pci=pcie_bus_perf, | ||
+ | |||
+ | ==== CPU BIOS Limit Ignore ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | processor.ignore_ppc=1 | ||
+ | |||
+ | ==== intel_pstate ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | intel_pstate=enable | ||
+ | |||
+ | ===== Drive Maintenance ===== | ||
+ | |||
+ | ==== Trim ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ==== XFS Scrub ==== | ||
+ | |||
+ | * [[https:// | ||
+ | * :!: This is only necessary if XFS is being used on any persistent drives such as a NAS, and requires '' | ||
+ | |||
+ | sudo apt install ' | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ===== UTC ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * Set RTC to UTC | ||
+ | * :!: Needed if Windows is installed first | ||
+ | * :!: Windows should also be set to UTC | ||
+ | |||
+ | sudo timedatectl set-local-rtc ' | ||
+ | |||
+ | ==== Verify ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | timedatectl | grep local | ||
+ | |||
+ | ===== OpenSSH ===== | ||
+ | |||
+ | * See [[clients: | ||
+ | * See [[servers: | ||
+ | |||
+ | ===== Sensors ===== | ||
+ | |||
+ | ==== Install ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo apt install lm-sensors | ||
+ | |||
+ | ==== Detect ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo sensors-detect --auto | ||
+ | |||
+ | ==== Watch ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo watch --interval ' | ||
+ | |||
+ | ===== Uncomplicated Firewall ===== | ||
+ | |||
+ | * Allows SSH | ||
+ | * :!: Does not limit SSH ((this caused issues; better to just secure SSH)) | ||
+ | * See [[notes: | ||
+ | |||
+ | sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw allow ' | ||
+ | |||
+ | ====== Automatic Updates ====== | ||
+ | |||
+ | ===== Config ===== | ||
+ | |||
+ | * Should keep old config files in-case updated package changes their config (needs tested) | ||
+ | * :!: 2023/05/04: Not sure if this is needed still? | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | Dpkg:: | ||
+ | " | ||
+ | " | ||
+ | }</ | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | * :!: 2023/05/04: '' | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStartPre='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStartPost='/ | ||
+ | ExecStartPost='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | * 03:00 Oak | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=Software Package Maintenance and Updater | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | |||
+ | [Timer] | ||
+ | OnCalendar=*-*-* 03:00:00 | ||
+ | Persistent=true | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=timers.target</ | ||
+ | |||
+ | ====== External Backup ====== | ||
+ | |||
+ | * :!: 2023/05/04: This hasn't been used for years and likely needs re-factored | ||
+ | |||
+ | ===== 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 ====== | ||
+ | |||
+ | * See [[notes: | ||
/var/www/wiki/data/pages/distros/ubuntu_server.txt · Last modified: 2024/02/07 09:22 by Sean Rhone