User Tools

Site Tools


distros:fedora_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
distros:fedora_server [2023/09/13 05:37] – [Installation Notes] Sean Rhonedistros:fedora_server [2024/08/13 17:03] (current) – removed Sean Rhone
Line 1: Line 1:
-====== Information ====== 
- 
-  * Fedora Server ((https://getfedora.org/en/server)) 
-  * 38 
- 
-====== Download ====== 
- 
-  * https://getfedora.org/en/server/download 
- 
-====== Installation Notes ====== 
- 
-  * TODO, keep Fedora Server selected, check Headless Tools, switch to ext4 but keep eyes on XFS development after maintainer ordeal 
- 
-====== HOSTS ====== 
- 
-  * https://github.com/StevenBlack/hosts/ 
-  * Unified hosts + fakenews + gambling + porn + social 
- 
-===== Initial ===== 
- 
-  * Only run once 
- 
-  ls '/etc/hosts~' || wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts' && sudo cp --backup '/tmp/hosts-tmp' '/etc/hosts' && sudo restorecon -F -I -R '/etc/hosts' && sync 
- 
-===== Update ===== 
- 
-**** 
- 
-  ls '/etc/hosts~' && wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts' && sudo mv --force '/tmp/hosts-tmp' '/etc/hosts' && sudo restorecon -F -I -R '/etc/hosts' && sync 
- 
-===== Restore Backup ===== 
- 
-**** 
- 
-  ls '/etc/hosts~' && sudo restorecon -F -I -R '/etc/hosts~' && sudo mv --force '/etc/hosts~' '/etc/hosts' && sync 
- 
-====== DNF ====== 
- 
-  * Disables Delta RPMs with ''deltarpm=false'' 
- 
-  echo 'deltarpm=false' | sudo tee --append '/etc/dnf/dnf.conf' > '/dev/null' && cat '/etc/dnf/dnf.conf' | grep 'deltarpm=false' 
- 
-  sudo -e '/etc/dnf/dnf.conf' 
- 
-====== Software ====== 
- 
-===== Update ===== 
- 
-  * :!: See [[distros:fedora_workstation_gnome#dnf_autoremove_fix]] if ''dnf autoremove'' fails 
- 
-  sudo dnf autoremove -y && sudo dnf distro-sync -y && sync 
- 
-===== Firmware ===== 
- 
-**** 
- 
-  sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose 
- 
-===== GNU nano ===== 
- 
-  * Installs ''nano'' 
-  * Sets ''VISUAL'' and ''EDITOR'' to ''nano'' via environment variable 
-  * Sets ''nowrap'' for current user 
- 
-  sudo dnf install 'nano' -y && export 'VISUAL=nano' && export 'EDITOR=nano' && echo -e 'export VISUAL=nano\nexport EDITOR=nano' | sudo tee '/etc/profile.d/editor-nano.sh' > '/dev/null' && cat '/etc/profile.d/editor-nano.sh' && mkdir -p ~/'.config/nano' && echo 'set nowrap' | tee ~/'.config/nano/nanorc' > '/dev/null' && cat ~/'.config/nano/nanorc' 
- 
-===== General ===== 
- 
-  sudo dnf install irqbalance aria2 binutils hdparm htop kernel-tools lm_sensors openssl1.1 p7zip p7zip-plugins unar wget 
- 
-  policycoreutils-devel 
- 
-====== Settings ====== 
- 
-===== Laptop Server ===== 
- 
-  * This tells ''systemd'' to ignore Lid close events and prevents system suspend ((2023/07/14: Oak was changed from a Phenom II X4 desktop to a X230 laptop; no more NAS but it was rarely-used and I have external drives)) 
- 
-  sudo mkdir -p '/etc/systemd/logind.conf.d' && echo -e "[Login]\nHandleLidSwitch=ignore" | sudo tee '/etc/systemd/logind.conf.d/99-laptop-server.conf' > '/dev/null' 
- 
-  sudo -e '/etc/systemd/logind.conf.d/99-laptop-server.conf' 
- 
-===== Network ===== 
- 
-  * Use systemd-resolved for DNS as it caches 
- 
-==== NetworkManager ==== 
- 
-  * TODO: NetworkManager CLI 
- 
-<code>127.0.0.1</code> 
- 
-<code>::1</code> 
- 
-==== systemd-resolved ==== 
- 
-  sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf' 
- 
-<code> 
-[Resolve] 
-DNS=1.1.1.2#security.cloudflare-dns.com 1.0.0.2#security.cloudflare-dns.com 2606:4700:4700::1112#security.cloudflare-dns.com 2606:4700:4700::1002#security.cloudflare-dns.com 
-DNSOverTLS=yes</code> 
- 
-===== Kernel Options ===== 
- 
-==== Magic SysRq key ==== 
- 
-  * https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html 
- 
-  echo 'kernel.sysrq = 1' | sudo tee '/etc/sysctl.d/99-sysrq.conf' > '/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf' 
- 
-==== Swappiness ==== 
- 
-**** 
- 
-  echo 'vm.swappiness = 0' | sudo tee '/etc/sysctl.d/99-swappiness.conf' > '/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf' 
- 
-===== Dracut ===== 
- 
-  * System-specific boot optimization 
-  * :!: Be sure to undo this if planning on booting the same disk install on different hardware, notably for servers 
-  * :!: This may become deprecated with ''systemd-boot'' and F39 
- 
-  sudo -e '/etc/dracut.conf.d/99-custom.conf' && sudo dracut --force --regenerate-all 
- 
-<code> 
-compress="cat" 
-do_strip="yes" 
-aggressive_strip="yes" 
-hostonly="yes" 
-hostonly_mode="strict" 
-fileloglvl="0" 
-sysloglvl="0" 
-stdloglvl="0"</code> 
- 
-==== Undo ==== 
- 
-**** 
- 
-  sudo rm -f '/etc/dracut.conf.d/99-custom.conf' && sudo dracut --force --regenerate-all && sync 
- 
-===== GRUB ===== 
- 
-==== Config ==== 
- 
-  * :!: [[notes:kernel_parameters|More Kernel Parameters]] 
-  * Add commands within ''args'' 
- 
-  sudo grubby --update-kernel='ALL' --args='' 
- 
-===== Hostname ===== 
- 
-  * Change ''x'' to computer name 
- 
-  hostnamectl set-hostname 'x' 
- 
-===== lm_sensors ===== 
- 
-  sudo sensors-detect --auto 
- 
-  sudo -e '/etc/sysconfig/lm_sensors' 
- 
-===== Secure Shell ===== 
- 
-  * See [[clients:secure_shell|Client]] notes to generate/restore public key 
- 
-===== Drive Maintenance ===== 
- 
-==== Trim ==== 
- 
-**** 
- 
-  sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l 
- 
-===== UTC ===== 
- 
-  * [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]] 
-  * Set RTC to UTC 
-  * :!: Needed if Windows is installed first 
-  * :!: Windows should also be set to UTC 
- 
-  sudo timedatectl set-local-rtc '0' 
- 
-==== Verify ==== 
- 
-**** 
- 
-  timedatectl | grep local 
- 
-====== Automatic Updates ====== 
- 
-===== Service ===== 
- 
-  sudo -e '/etc/systemd/system/fedora-up.service' 
- 
-<code> 
-[Service] 
-Type=oneshot 
-ExecStartPre='/usr/bin/dnf' clean 'all' 
-ExecStart='/usr/bin/dnf' distro-sync -y 
-ExecStart='/usr/bin/dnf' autoremove -y 
-ExecStartPost='/usr/bin/sync' 
-ExecStartPost='/usr/bin/systemctl' reboot</code> 
- 
-===== Timer ===== 
- 
-  * 06:10 Kraityn 
-  * 06:20 Alira 
-  * 06:30 Oak 
- 
-  sudo -e '/etc/systemd/system/fedora-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'fedora-up.timer' --now 
- 
-<code> 
-[Unit] 
-Description=Software Package Maintenance and Updater 
-After=network-online.target 
-Wants=network-online.target 
- 
-[Timer] 
-OnCalendar=*-*-* 06:30:00 
-Persistent=true 
- 
-[Install] 
-WantedBy=timers.target</code> 
- 
-====== Notable Folders and Commands ====== 
- 
-  * See [[notes:misc_linux]] 
- 
-===== Firewalld ===== 
- 
-  * See [[notes:misc_linux#firewalld|Firewalld notes]] 
  
/srv/www/wiki/data/attic/distros/fedora_server.1694597867.txt.gz · Last modified: (external edit)