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 [2020/06/12 02:50] – Sean Rhone | distros:ubuntu_server [2024/02/07 08:27] – Sean Rhone | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Ubuntu Server ((http:// | * Ubuntu Server ((http:// | ||
- | * 18.04.3 LTS | + | * 23.10 |
====== Known Issues ====== | ====== Known Issues ====== | ||
Line 15: | Line 15: | ||
====== Installation Notes ====== | ====== Installation Notes ====== | ||
- | * :!: Either use the Alternate or Network installer images to avoid cloud-init stuff | + | * 23.10' |
- | * During installation, allow network autoconfig to occur, and then go back once prompted for a hostname; this will allow setting a static IPv4 address and custom DNS settings | + | |
====== Repositories ====== | ====== Repositories ====== | ||
Line 23: | Line 22: | ||
* https:// | * https:// | ||
- | * Only '' | + | * Only '' |
- | * TODO: May not even need universe on servers | + | * 2023/05/04: There doesn' |
sudo add-apt-repository ' | sudo add-apt-repository ' | ||
Line 31: | Line 30: | ||
sudo add-apt-repository ' | sudo add-apt-repository ' | ||
+ | |||
+ | ===== Keybase ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * :!: This is only the signing key, see [[# | ||
+ | |||
+ | wget -O '/ | ||
====== Software ====== | ====== Software ====== | ||
Line 42: | Line 49: | ||
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync | sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync | ||
- | ==== Snaps ==== | + | ==== Firmware |
**** | **** | ||
- | sudo snap refresh | + | sudo fwupdmgr |
- | ===== General ===== | + | ==== Snaps ==== |
**** | **** | ||
- | sudo apt install lm-sensors | + | sudo snap refresh |
===== Keybase ===== | ===== Keybase ===== | ||
Line 59: | Line 66: | ||
* TODO: Figure out backup script | * TODO: Figure out backup script | ||
- | wget -O '/ | + | |
====== Settings ====== | ====== Settings ====== | ||
- | ===== Secure Shell ===== | + | ===== GRUB ===== |
- | * See [[Clients: | + | ==== Config ==== |
- | ==== Force Public Key Authentication ==== | + | * :!: [[notes: |
+ | * Add options in '' | ||
- | | + | |
- | * :!: See [[clients: | + | |
- | * :!: Check ''/etc/ssh/sshd_config'' | + | |
- | echo ' | + | ==== 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 ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | | ||
+ | |||
+ | ==== XFS Scrub ==== | ||
+ | |||
+ | * [[https://wiki.archlinux.org/ | ||
+ | * :!: 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 ===== | ===== Sensors ===== | ||
+ | |||
+ | ==== Install ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo apt install lm-sensors | ||
==== Detect ==== | ==== Detect ==== | ||
Line 89: | Line 158: | ||
**** | **** | ||
- | sudo watch -n0.1 sensors | + | sudo watch --interval '0.5' |
===== Uncomplicated Firewall ===== | ===== Uncomplicated Firewall ===== | ||
Line 104: | Line 173: | ||
* Should keep old config files in-case updated package changes their config (needs tested) | * 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 '/ | sudo -e '/ | ||
Line 114: | Line 184: | ||
===== Service ===== | ===== Service ===== | ||
+ | |||
+ | * :!: 2023/05/04: '' | ||
sudo -e '/ | sudo -e '/ | ||
Line 124: | Line 196: | ||
ExecStart='/ | ExecStart='/ | ||
ExecStart='/ | ExecStart='/ | ||
- | ExecStartPost='/ | + | ExecStart='/ |
- | ExecStartPost='/ | + | ExecStartPost=' |
+ | ExecStartPost=' | ||
===== Timer ===== | ===== Timer ===== | ||
- | * 06:10 Kraityn | + | * 03:00 Oak |
- | * 06:20 Alira | + | |
- | * 06:30 Oak | + | |
- | * 06:40 Hatebeat | + | |
sudo -e '/ | sudo -e '/ | ||
Line 143: | Line 213: | ||
[Timer] | [Timer] | ||
- | OnCalendar=*-*-* | + | OnCalendar=*-*-* |
Persistent=true | Persistent=true | ||
Line 150: | Line 220: | ||
====== External Backup ====== | ====== External Backup ====== | ||
+ | |||
+ | * :!: 2023/05/04: This hasn't been used for years and likely needs re-factored | ||
===== fstab ===== | ===== fstab ===== | ||
Line 164: | Line 236: | ||
===== Service ===== | ===== Service ===== | ||
- | |||
- | * TODO: Ubuntu paths | ||
sudo -e '/ | sudo -e '/ | ||
Line 193: | Line 263: | ||
====== Notable Folders and Commands ====== | ====== Notable Folders and Commands ====== | ||
- | ===== fstrim ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo fstrim -v --all | + | |
- | + | ||
- | ===== Show CPU Frequency ===== | + | |
- | + | ||
- | grep ' | + | |
- | + | ||
- | watch -n 0.1 grep \'cpu MHz\' '/ | + | |
- | + | ||
- | ===== Partition Information ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | df -hT | + | |
- | + | ||
- | ===== Hyper-threading 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+// | + | |
- | + | ||
- | ====== Privacy ====== | + | |
- | + | ||
- | ===== Clear Terminal History ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | history -cw | + | |
- | + | ||
- | ===== Create 7z Password Archive ===== | + | |
- | + | ||
- | * Change '' | + | |
- | * Change '' | + | |
- | 7za a ' |
/var/www/wiki/data/pages/distros/ubuntu_server.txt · Last modified: 2024/02/07 09:22 by Sean Rhone