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/06/03 20:40] – [Timer] Sean Rhone | distros:ubuntu_server [2024/02/07 08:27] – Sean Rhone | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Ubuntu Server ((http:// | * Ubuntu Server ((http:// | ||
- | * 18.04.1 LTS | + | * 23.10 |
+ | |||
+ | ====== Known Issues ====== | ||
+ | |||
+ | * None | ||
====== Download ====== | ====== Download ====== | ||
Line 11: | 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 | + | ===== Additional Ubuntu |
- | + | ||
- | === Additional Ubuntu | + | |
* 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 29: | Line 30: | ||
sudo add-apt-repository ' | sudo add-apt-repository ' | ||
+ | |||
+ | ===== Keybase ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * :!: This is only the signing key, see [[# | ||
+ | |||
+ | wget -O '/ | ||
+ | |||
+ | ====== Software ====== | ||
===== Update ===== | ===== Update ===== | ||
+ | |||
+ | ==== System ==== | ||
**** | **** | ||
Line 36: | 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 | ||
- | ===== CPU Microcode ===== | + | ==== Firmware |
- | ==== Intel ==== | + | **** |
+ | |||
+ | sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose && sync | ||
+ | |||
+ | ==== Snaps ==== | ||
**** | **** | ||
- | | + | |
- | ==== AMD ==== | + | ===== Keybase ===== |
- | * Kraityn can't use this ((AMD Athlon(tm) 64 X2 Dual Core Processor 5600+)) | + | * https:// |
- | * TODO Oak ((AMD Phenom(tm) II X4 965 Processor)) | + | * TODO: Figure out backup script |
- | | + | |
====== Settings ====== | ====== Settings ====== | ||
- | ===== Cloud-Init | + | ===== GRUB ===== |
- | * https:// | + | ==== Config ==== |
- | * This disabled Cloud-Init | + | |
- | * :!: Can avoid this by using the Alternative or Network installer images to install instead of the default image | + | |
- | | + | |
+ | * Add options in '' | ||
- | ===== systemd-networkd ===== | + | sudo -e '/ |
- | * This prevents the 2-minute start-up delay that happens for some unknown reason | + | ==== Linux OSI ==== |
- | * :!: This would theoretically pose a potential problem if there really is no internet connectivity ((But then again, I'm not sure what would happen without the mask even without an internet connection)) | + | |
- | sudo systemctl mask ' | + | **** |
- | ===== Secure Shell ===== | + | acpi_osi=Linux |
- | * See [[Clients: | + | ==== PCI ==== |
- | ===== Timezone ===== | + | **** |
- | | + | |
- | sudo timedatectl set-timezone ' | + | ==== CPU BIOS Limit Ignore ==== |
- | ===== TRIM ===== | + | **** |
- | ==== Swap ==== | + | processor.ignore_ppc=1 |
- | * Add '' | + | ==== intel_pstate ==== |
- | sudo -e '/ | + | **** |
- | | + | |
- | ==== Service | + | ===== Drive Maintenance ===== |
- | * '' | + | ==== Trim ==== |
- | * TODO: Verify | + | |
+ | **** | ||
sudo systemctl enable ' | 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 ===== | ===== Uncomplicated Firewall ===== | ||
* Allows SSH | * 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 ' | sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw allow ' | ||
Line 106: | 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 116: | Line 184: | ||
===== Service ===== | ===== Service ===== | ||
+ | |||
+ | * :!: 2023/05/04: '' | ||
sudo -e '/ | sudo -e '/ | ||
Line 126: | 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 145: | Line 213: | ||
[Timer] | [Timer] | ||
- | OnCalendar=*-*-* | + | OnCalendar=*-*-* |
Persistent=true | Persistent=true | ||
Line 152: | Line 220: | ||
====== External Backup ====== | ====== External Backup ====== | ||
+ | |||
+ | * :!: 2023/05/04: This hasn't been used for years and likely needs re-factored | ||
===== fstab ===== | ===== fstab ===== | ||
Line 166: | Line 236: | ||
===== Service ===== | ===== Service ===== | ||
- | |||
- | * TODO: Ubuntu paths | ||
sudo -e '/ | sudo -e '/ | ||
Line 195: | 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