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 [2023/09/13 05:37] – [Installation Notes] Sean Rhonedistros:fedora_server [2024/02/05 15:40] Sean Rhone
Line 2: Line 2:
  
   * Fedora Server ((https://getfedora.org/en/server))   * Fedora Server ((https://getfedora.org/en/server))
-  * 38+  * 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
  
-  * TODO, keep Fedora Server selected, check Headless Tools, switch to ext4 but keep eyes on XFS development after maintainer ordeal+  sudo dnf remove PackageKit*
  
 ====== HOSTS ====== ====== HOSTS ======
Line 67: Line 75:
 ===== General ===== ===== General =====
  
-  sudo dnf install irqbalance aria2 binutils hdparm htop kernel-tools lm_sensors openssl1.1 p7zip p7zip-plugins unar wget+  * TODO: Figure out ''policycoreutils-devel'' 
 + 
 +  sudo dnf install aria2 binutils hdparm htop kernel-tools lm_sensors openssl1.1 p7zip p7zip-plugins unar wget
  
   policycoreutils-devel   policycoreutils-devel
Line 83: Line 93:
 ===== Network ===== ===== Network =====
  
-  * Use systemd-resolved for DNS as it caches+==== Anaconda ====
  
-==== NetworkManager ====+  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other servers
  
-  * TODO: NetworkManager CLI+<code>9.9.9.9,149.112.112.112</code>
  
-<code>127.0.0.1</code> +<code>2620:fe::fe,2620:fe::9</code>
- +
-<code>::1</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 99: 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 ==== +
- +
-  * 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 =====+  * Change ''ens3'' as-needed
  
-==== Config ====+  nmcli connection show
  
-  * :!: [[notes:kernel_parameters|More Kernel Parameters]] +  sudo nmcli connection modify 'ens3' 'ipv4.dns' '127.0.0.1,9.9.9.9,149.112.112.112'
-  * Add commands within ''args''+
  
-  sudo grubby --update-kernel='ALL--args=''+  sudo nmcli connection modify 'ens3' 'ipv6.dns' '::1,2620:fe::fe,2620:fe::9'
  
 ===== Hostname ===== ===== Hostname =====
  
   * Change ''x'' to computer name   * Change ''x'' to computer name
 +  * Likely not needed if set through Anaconda
  
   hostnamectl set-hostname 'x'   hostnamectl set-hostname 'x'
Line 177: Line 152:
   * [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]]   * [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]]
   * Set RTC to UTC   * Set RTC to UTC
-  * :!: Needed if Windows is installed first 
-  * :!: Windows should also be set to UTC 
  
   sudo timedatectl set-local-rtc '0'   sudo timedatectl set-local-rtc '0'
Line 205: 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 218: 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