User Tools

Site Tools


linux:distros:server: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
linux:distros:server:fedora_server [2024/10/30 03:39] – [TODOs] Sean Rhonelinux:distros:server:fedora_server [2025/12/03 23:08] (current) – [PackageKit] Sean Rhone
Line 2: Line 2:
  
   * Fedora Server   * Fedora Server
-  * 41 +  * 43 
-  * https://fedoraproject.org/server/+  * https://www.fedoraproject.org/server/
  
-===== TODOs ===== +  * :!2025/12/03: WIP
- +
-  ''e2fsck'' ext4 generic notes on separate page +
-  * [[linux:distros:fedora_workstation_gnome#dracut|Dracut/GRUB tweaks]] +
-  * dnf update -> distro-sync+
  
 ====== Download ====== ====== Download ======
  
-  * https://fedoraproject.org/en/server/download +  * https://www.fedoraproject.org/server/download 
-  * [[https://download.fedoraproject.org/pub/fedora/linux/releases/41/Server/x86_64/iso/Fedora-Server-dvd-x86_64-41-1.4.iso|F41 ISO]]+ 
 +  Fedora-Server-dvd-x86_64-43-1.6.iso
  
 ====== Installation Notes ====== ====== Installation Notes ======
Line 20: Line 17:
 ===== Partitioning ===== ===== Partitioning =====
  
-  - :!: Delete ''/'' +  * XFS ''/''
-  - Re-create ''/'' without specifying a size ((this uses all available remaining space)) +
-  - ''/boot'' and ''/'' to ext4+
  
-====== Repositories ====== +<code> 
- +NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS 
-**** +zram0       251:   0     8G  0 disk [SWAP] 
- +nvme0n1     259:   0 953.9G  0 disk  
-  sudo dnf repolist +├─nvme0n1p1 259:1    0    61M  0 part /boot/efi 
- +└─nvme0n1p2 259:2    0 953.8G  part / 
-===== Disable ===== +</code>
- +
-  * [[https://discussion.fedoraproject.org/t/openh264-repo-enabled-by-default-on-server/134531|openh264 repo discussion]] +
- +
-  sudo dnf config-manager 'setopt' 'fedora-cisco-openh264'.'enabled'='0'+
  
 ====== Software ====== ====== Software ======
- 
-===== Remove ===== 
- 
-**** 
- 
-  sudo systemctl disable 'irqbalance' --now && sudo dnf remove 'irqbalance' 
  
 ===== Update ===== ===== Update =====
Line 50: Line 35:
 **** ****
  
-  sudo dnf autoremove -y && sudo dnf update -y && sync+  sudo dnf clean 'all' && sudo dnf autoremove -y && sudo dnf update -y && sync
  
 ==== Firmware ==== ==== Firmware ====
Line 64: Line 49:
   * Sets ''nowrap'' for current user   * 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'+  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' && sudo restorecon -F -I '/etc/profile.d/editor-nano.sh' && 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 ===== ===== General =====
Line 70: Line 55:
   * TODO: Figure out ''policycoreutils-devel''   * TODO: Figure out ''policycoreutils-devel''
  
-  sudo dnf install aria2 binutils htop lm_sensors p7zip p7zip-plugins unar wget+  sudo dnf install aria2 htop lm_sensors unar
  
-  policycoreutils-devel+  policycoreutils-devel 
  
-====== Settings ======+==== Old ====
  
-===== Network =====+****
  
-==== systemd-resolved ====+  binutils p7zip p7zip-plugins
  
-  * systemd-resolved caches DNS +====== Settings ======
-  * [[servers;upstream_dns_servers#systemd-resolved|Quad9 ECS]], see [[servers;upstream_dns_servers|DNS Servers]] for other addresses+
  
-  sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf'+===== Network =====
  
-<code> +==== DNS ====
-[Resolve] +
-DNS=9.9.9.11#dns11.quad9.net 149.112.112.11#dns11.quad9.net 2620:fe::11#dns11.quad9.net 2620:fe::fe:11#dns11.quad9.net +
-DNSOverTLS=yes</code>+
  
-=== Verify ===+  * [[servers:upstream_dns_servers|More DNS Servers]]
  
-  resolvectl status+<code>9.9.9.9,149.112.112.112</code>
  
-  resolvectl status | grep '+DNSOverTLS'+<code>2620:fe::fe,2620:fe::9</code>
  
 ===== Laptop Server ===== ===== Laptop Server =====
Line 100: Line 81:
   * This tells ''systemd'' to ignore Lid close events and prevents system suspend   * This tells ''systemd'' to ignore Lid close events and prevents system suspend
  
-  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 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 restorecon -F -I '/etc/systemd/logind.conf.d/99-laptop-server.conf'
  
   sudo -e '/etc/systemd/logind.conf.d/99-laptop-server.conf'   sudo -e '/etc/systemd/logind.conf.d/99-laptop-server.conf'
Line 106: Line 87:
 ===== Hostname ===== ===== Hostname =====
  
-  * Change ''x'' to computer name +  * :?: Likely not-needed if set during install
-  * Likely not needed if set through Anaconda+
  
   hostnamectl set-hostname 'x'   hostnamectl set-hostname 'x'
 +
 +===== Laptop Power =====
 +
 +  * [[linux:notes:x86_energy_perf_policy|x86_energy_perf_policy udev Rule]]
 +  * TODO: Check
  
 ===== lm_sensors ===== ===== lm_sensors =====
Line 117: Line 102:
   sudo -e '/etc/sysconfig/lm_sensors'   sudo -e '/etc/sysconfig/lm_sensors'
  
-===== Secure Shell =====+===== Time =====
  
-  * See [[programs;linux;openssh_client|OpenSSH Client]] notes to generate/restore public key+**** 
 + 
 +  timedatectl 'set-ntp' 'true' && sudo hwclock --systohc && timedatectl status 
 + 
 +====== Boot Loader ====== 
 + 
 +  * [[linux:notes:kernel_parameters|More Kernel Parameters]] 
 + 
 +===== modprobe.d ===== 
 + 
 +  * See [[linux;notes;modprobe.d_tweaks|Tweaks]] 
 + 
 +===== Alira ===== 
 + 
 +  * Last updated: 2025/12/03 
 + 
 +  sudo -e '/etc/default/grub' && sudo restorecon -F -I '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg' && sudo restorecon -F -I '/boot/grub2/grub.cfg' 
 + 
 +<code>GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi='Linux' reboot='pci' hibernate='no' idle='halt' nohz='off' preempt='full' pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window' drm_kms_helper.poll='0' drm_kms_helper.fbdev_emulation='0'"</code> 
 + 
 +  nomodeset 
 + 
 +==== systemd-analyze ==== 
 + 
 +  * 2025/12/03 
 + 
 +<code> 
 +Startup finished in 4.549s (firmware) + 1.994s (loader) + 495ms (kernel) + 3.042s (initrd) + 9.433s (userspace) = 19.516s  
 +graphical.target reached after 9.432s in userspace.</code> 
 + 
 +  systemd-analyze 
 + 
 +====== Drive Maintenance ====== 
 + 
 +===== Trim ===== 
 + 
 +  sudo systemctl enable 'fstrim.timer' --now 
 + 
 +  sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l 
 + 
 +  sudo fstrim -v -a 
 + 
 +===== XFS ===== 
 + 
 +  * [[linux;notes;xfs|Notes]]
  
-===== Drive Maintenance =====+  sudo xfs_fsr -v '/'
  
-==== Trim ====+===== SELinux Relabel =====
  
 **** ****
  
-  sudo systemctl enable 'fstrim.timer--now && sudo systemctl start 'fstrim&& sync && sudo systemctl status 'fstrim' -l+  sudo touch '/.autorelabel' && sudo restorecon -F -I '/.autorelabel'
  
-==== ext4 ====+====== Tweaks ======
  
-=== Repair ===+===== General =====
  
-  sync && sudo umount '/dev/sdb1'+  sudo -e '/etc/profile.d/general-tweaks.sh' && sudo restorecon -F -I '/etc/profile.d/general-tweaks.sh'
  
-  sudo e2fsck -C '0' -D -E 'discard,optimize_extents,inode_count_fullmap,check_encoding' -f -y -v '/dev/sdb1'+<code> 
 +# General 
 +export LD_BIND_NOW='1'
  
-<code>-c -c -k</code>+# End</code>
  
-=== Defrag ===+===== journald =====
  
-  sudo e4defrag -'/dev/sda2' '/dev/sda3'+  sudo -'/etc/systemd/journald.conf.d/99-tweaks.conf&& sudo restorecon -F -I '/etc/systemd/journald.conf.d/99-tweaks.conf&& sudo journalctl --vacuum-time='1s' --rotate
  
-  sudo e4defrag -v '/dev/sdb1'+<code> 
 +[Journal] 
 +Storage=none 
 +Compress=false 
 +MaxLevelStore=0 
 +MaxLevelSyslog=0 
 +MaxLevelKMsg=0 
 +MaxLevelConsole=0 
 +MaxLevelWall=0 
 +MaxLevelSocket=0
  
-==== XFS ====+# End</code>
  
-=== Repair ===+===== PackageKit =====
  
-  sync && sudo umount '/dev/sdb1'+  ''packagekitd'' to on-demand ((allows ''PackageKit-command-not-found'' to function))
  
-  sudo xfs_repair -'/dev/sdb1'+  sudo mkdir -'/etc/systemd/system/packagekit.service.d&& sudo -e '/etc/systemd/system/packagekit.service.d/on-demand.conf' && sudo restorecon -F -I -R '/etc/systemd/system/packagekit.service.d' && sudo systemctl daemon-reload
  
-=== Defrag ===+<code> 
 +[Service] 
 +RuntimeMaxSec=
 + 
 +# End</code> 
 + 
 +===== Dracut ===== 
 + 
 +  sudo -e '/etc/dracut.conf.d/99-custom.conf' && sudo restorecon -F -I '/etc/dracut.conf.d/99-custom.conf' && sudo dracut --force --regenerate-all 
 + 
 +<code> 
 +# Compression 
 +compress="cat" 
 + 
 +# Machine-specific 
 +do_strip="yes" 
 +aggressive_strip="yes" 
 +hostonly="yes" 
 +hostonly_mode="strict" 
 + 
 +# End</code> 
 + 
 +===== fstab ===== 
 + 
 +**** 
 + 
 +  sudo -e '/etc/fstab' && sudo restorecon -F -I '/etc/fstab' 
 + 
 +==== XFS ====
  
-  sudo xfs_fsr -v '/dev/sda2'/dev/sda3'+  * ''/ type xfs''
  
-  sudo xfs_fsr -v '/dev/sdb1'+  ,nodiscard,noatime
  
 ====== Automatic Updates ====== ====== Automatic Updates ======
/usr/local/www/wiki/data/attic/linux/distros/server/fedora_server.1730273971.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki