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
Last revisionBoth sides next revision
distros:fedora_server [2024/01/02 16:01] – [General] Sean Rhonedistros:fedora_server [2024/02/05 15:40] Sean Rhone
Line 3: Line 3:
   * Fedora Server ((https://getfedora.org/en/server))   * Fedora Server ((https://getfedora.org/en/server))
   * 39   * 39
 +
 +====== Installation Notes ======
 +
 +  * Do not create a separate ''swap'' partition ((it's handled automatically by zswap))
  
 ====== Download ====== ====== Download ======
Line 8: Line 12:
   * https://getfedora.org/en/server/download   * https://getfedora.org/en/server/download
  
-====== Installation Notes ======+====== PackageKit ====== 
 + 
 +  * :!: PackageKit was caught using hundreds of MB of RAM while not actively using it ((PackageKit was using 600MB idle on a 8GB server ''php-fpm'' was around 40MB)) 
 +  * Apparently it only provides the package name for commands not found 
 +  * :!: TODO: Figure out how to prevent it from being reinstalled
  
-  * Software Selection -> Fedora Server Edition -> [x] Headless Management+  sudo dnf remove PackageKit*
  
 ====== HOSTS ====== ====== HOSTS ======
Line 67: Line 75:
 ===== General ===== ===== General =====
  
-  * TODO: ''policycoreutils-devel'' provided something for CLI SELinux auditing, but it seems easier to GUI-audit from Cockpit without that package?+  * TODO: Figure out ''policycoreutils-devel''
  
   sudo dnf install aria2 binutils hdparm htop kernel-tools lm_sensors openssl1.1 p7zip p7zip-plugins unar wget   sudo dnf install aria2 binutils hdparm htop kernel-tools lm_sensors openssl1.1 p7zip p7zip-plugins unar wget
Line 85: Line 93:
 ===== Network ===== ===== Network =====
  
-  * Use systemd-resolved for DNS as it caches +==== Anaconda ====
-  * :!: Until systemd-resolver is enabled, setting ''localhost'' for DNS fails; don't set this in Anaconda +
-  * TODO: Figure out command-line method for setting this; use Cockpit in the meantime+
  
-==== DNS ====+  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other servers
  
-<code>127.0.0.1</code>+<code>9.9.9.9,149.112.112.112</code>
  
-<code>::1</code>+<code>2620:fe::fe,2620:fe::9</code>
  
 ==== systemd-resolved ==== ==== systemd-resolved ====
 +
 +  * systemd-resolved caches DNS
 +  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other servers
  
   sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf'   sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf'
Line 101: Line 110:
 <code> <code>
 [Resolve] [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+DNS=9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
 DNSOverTLS=yes</code> DNSOverTLS=yes</code>
  
-===== Kernel Options =====+=== NetworkManager ===
  
-==== Magic SysRq key ====+  * Change ''ens3'' as-needed
  
-  * https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html+  nmcli connection show
  
-  echo 'kernel.sysrq = 1| sudo tee '/etc/sysctl.d/99-sysrq.conf'/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf'+  sudo nmcli connection modify 'ens3' 'ipv4.dns' '127.0.0.1,9.9.9.9,149.112.112.112'
  
-==== Swappiness ==== +  sudo nmcli connection modify 'ens3' 'ipv6.dns' '::1,2620:fe::fe,2620:fe::9'
- +
-**** +
- +
-  echo 'vm.swappiness = 0| sudo tee '/etc/sysctl.d/99-swappiness.conf'/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf' +
- +
-===== GRUB ===== +
- +
-==== Config ==== +
- +
-  * :![[notes:kernel_parameters|More Kernel Parameters]] +
-  * Add commands within ''args'' +
- +
-  sudo grubby --update-kernel='ALL' --args=''+
  
 ===== Hostname ===== ===== Hostname =====
Line 151: Line 147:
  
   sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l   sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
- 
-==== XFS Scrub ==== 
- 
-  * [[https://wiki.archlinux.org/title/XFS#Online_Metadata_Checking_(scrub)|XFS - ArchWiki]] 
- 
-  sudo dnf install 'xfsprogs-xfs_scrub' -y && sync 
- 
-  sudo systemctl enable 'xfs_scrub_all.timer' --now && sudo systemctl start 'xfs_scrub_all' && sync && sudo systemctl status 'xfs_scrub_all' -l 
  
 ===== UTC ===== ===== UTC =====
Line 190: Line 178:
 ===== Timer ===== ===== Timer =====
  
-  * 06:10 Kraityn +  * ''00:00'' Oak
-  * 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   sudo -e '/etc/systemd/system/fedora-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'fedora-up.timer' --now
Line 203: Line 189:
  
 [Timer] [Timer]
-OnCalendar=*-*-* 06:30:00+OnCalendar=*-*-* 00:00:00
 Persistent=true Persistent=true
  
/var/www/wiki/data/pages/distros/fedora_server.txt · Last modified: 2024/05/10 22:03 by Sean Rhone