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 [2024/07/17 20:50] 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)) 
-  * 40 
- 
-====== Download ====== 
- 
-  * https://getfedora.org/en/server/download 
- 
-====== Installation Notes ====== 
- 
-===== Partitioning ===== 
- 
-  - :!: Delete ''/'' 
-  - Re-create ''/'' without specifying a size ((this uses all available remaining space)) 
-  - ''/boot'' and ''/'' should be XFS 
- 
-====== HOSTS ====== 
- 
-   * https://github.com/StevenBlack/hosts/ 
-  * Unified hosts + fakenews + gambling 
- 
-===== Initial ===== 
- 
-  * Only run once 
- 
-  ls '/etc/hosts~' || wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/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/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 
- 
-====== Software ====== 
- 
-===== Update ===== 
- 
-==== System ==== 
- 
-**** 
- 
-  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 ===== 
- 
-  * TODO: Figure out ''policycoreutils-devel'' 
- 
-  sudo dnf install aria2 binutils hdparm htop kernel-tools lm_sensors p7zip p7zip-plugins unar wget 
- 
-  policycoreutils-devel 
- 
-====== Settings ====== 
- 
-===== Laptop Server ===== 
- 
-  * 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 -e '/etc/systemd/logind.conf.d/99-laptop-server.conf' 
- 
-===== Network ===== 
- 
-==== Anaconda ==== 
- 
-  * [[notes:dns_servers#for_families|1.1.1.1 for Families]], see [[notes:dns_servers]] for other servers 
- 
-<code>1.1.1.2,1.0.0.2</code> 
- 
-<code>2606:4700:4700::1112,2606:4700:4700::1002</code> 
- 
-===== Hostname ===== 
- 
-  * Change ''x'' to computer name 
-  * Likely not needed if set through Anaconda 
- 
-  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 ===== 
- 
-==== 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 
- 
-==== Trim ==== 
- 
-**** 
- 
-  sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l 
- 
-====== 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 ===== 
- 
-  * ''00:00'' 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=*-*-* 00:00: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.1721263833.txt.gz · Last modified: (external edit)