distros:ubuntu_server
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| distros:ubuntu_server [2024/02/07 09:00] – [Timer] Sean Rhone | distros:ubuntu_server [2024/08/13 16:58] (current) – removed Sean Rhone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Information ====== | ||
| - | |||
| - | * Ubuntu ((https:// | ||
| - | * Server ((http:// | ||
| - | * 23.10 | ||
| - | |||
| - | ====== Installation Notes ====== | ||
| - | |||
| - | * 23.10' | ||
| - | |||
| - | ====== Download ====== | ||
| - | |||
| - | ===== Etcher Image Writer ===== | ||
| - | |||
| - | * https:// | ||
| - | |||
| - | ===== Ubuntu ===== | ||
| - | |||
| - | * http:// | ||
| - | * http:// | ||
| - | |||
| - | ====== HOSTS ====== | ||
| - | |||
| - | * https:// | ||
| - | * Unified hosts + fakenews + gambling | ||
| - | |||
| - | ===== Initial ===== | ||
| - | |||
| - | * Only run once | ||
| - | |||
| - | ls '/ | ||
| - | |||
| - | ===== Update ===== | ||
| - | |||
| - | **** | ||
| - | |||
| - | ls '/ | ||
| - | |||
| - | ===== Restore Backup ===== | ||
| - | |||
| - | **** | ||
| - | |||
| - | ls '/ | ||
| - | |||
| - | ====== Repositories ====== | ||
| - | |||
| - | ===== Disable cdrom Repo ===== | ||
| - | |||
| - | * Add a ''#'' | ||
| - | * Solves '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | |||
| - | ===== Additional Ubuntu ===== | ||
| - | |||
| - | * https:// | ||
| - | * Only '' | ||
| - | * 2023/05/04: There doesn' | ||
| - | |||
| - | 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 ====== | ||
| - | |||
| - | ===== GRUB ===== | ||
| - | |||
| - | ==== Config ==== | ||
| - | |||
| - | * :!: [[notes: | ||
| - | * Add options in '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | ===== 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 ===== | ||
| - | |||
| - | * '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Unit] | ||
| - | Description=Software Package Maintenance and Updater | ||
| - | After=network-online.target | ||
| - | Wants=network-online.target | ||
| - | |||
| - | [Timer] | ||
| - | OnCalendar=*-*-* 00: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: | ||
/usr/local/www/wiki/data/attic/distros/ubuntu_server.1707314455.txt.gz · Last modified: (external edit)
