User Tools

Site Tools


osinstallation:fedora

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
osinstallation:fedora [2021/08/21 20:12] – ↷ Page moved from minimal:fedora to osinstallation:fedora senioradminosinstallation:fedora [2023/04/22 19:23] (current) – [A minimal Wayland environment] senioradmin
Line 1: Line 1:
 ====== Minimal installation of Fedora ====== ====== Minimal installation of Fedora ======
  
-**For Fedora 33**+**For Fedora 38**
  
 This is how to do a minimal installation of Fedora.  This is how to do a minimal installation of Fedora. 
  
-Obviously Fedora is not the best distro to do a minimal install. However, it can be done. +  - Grab the Netboot ISO from https://fedoraproject.org/server/download
- +  - Boot the CD, choose “Install Fedora 38
-  - Grab the Network Installer ISO from https://alt.fedoraproject.org/ +
-  - Boot the CD, choose “Install Fedora 33+
   - Choose your language, click continue   - Choose your language, click continue
   - Choose "Installation Destination", choose "Storage Configuration" -> "Custom", click "Done"   - Choose "Installation Destination", choose "Storage Configuration" -> "Custom", click "Done"
-  - Create partitions as you wish+  - Create partitions as you wish, click "Done"
   - Back in the Installation summary choose "Software selection"   - Back in the Installation summary choose "Software selection"
   - choose “Fedora Custom Operating System” (**Note:** this is even smaller than the “Minimal Installation” option)   - choose “Fedora Custom Operating System” (**Note:** this is even smaller than the “Minimal Installation” option)
 +  - Create a User account by clicking at "User Creation"
   - Click “Done”, then “Begin Installation”    - Click “Done”, then “Begin Installation” 
-  - Create a root password and a user +  - When finished click "Reboot System"
-  - reboot+
  
  
-After installaton login as **root** and execute the following script+After installation login and become **root** and execute the following commands
  
 <code bash> <code bash>
- +systemctl disable systemd-userdbd 
-#!/bin/sh +systemctl disable systemd-oomd
- +
-systemctl disable dbus-broker+
 systemctl disable systemd-resolved systemctl disable systemd-resolved
-systemctl disable systemd-homed +rm -f /etc/resolv.conf
-systemctl disable systemd-userdbd +
-dnf -y remove firewalld +
-dnf -y remove sssd-* +
-dnf -y remove audit +
-dnf -y remove NetworkManager+
  
-E=`grep ^e /proc/net/dev|cut -d: -f1`+# a privacy respecting nameserver from https://dnsforge.de/ 
 +echo "nameserver 176.9.93.198" >/etc/resolv.conf 
 +dnf update 
 +# replace dnf with dnf5, a more lightweight and faster implementation of dnf 
 +dnf install dnf5 
 +ln -sf /usr/bin/dnf5 /usr/bin/dnf 
 +dnf upgrade
  
-cat <<EOF >/etc/systemd/network/wired.network +# remove unnecessary packages 
-[Match] +dnf remove firewalld 
-Name=$E+dnf remove sssd-* 
 +dnf remove audit 
 +dnf remove NetworkManager
  
-[Network] +# Install DHCP client daemon 
-DHCP=yes +dnf install dhcpcd 
-EOF+systemctl enable dhcpcd@eth0 # replace eth0 with your network interface
  
-systemctl enable systemd-networkd 
-rm -f /etc/resolv.conf 
- 
-# a privacy respecting nameserver from german non-profit association digitalcourage  
-echo "nameserver 46.182.19.48" >/etc/resolv.conf 
  
 </code> </code>
 +
  
 Then reboot. Congratulation, you have now the smallest Fedora system possible.  Then reboot. Congratulation, you have now the smallest Fedora system possible. 
  
 +Memory consumption (htop): 125 MB
  
  
-===== A minimal X environment ===== 
  
-In this example we use [[:wm:tiling:bspwm]]. Unfortunately Xorg won't work without dbus, so we have to re-enable dbus-broker. 
  
-As **user** execute the following script+===== A minimal X environment ===== 
 + 
 +In this example we use [[:wm:tiling:herbstluftwm]].  
 +Execute the following commands as user
  
 <code bash> <code bash>
-#!/bin/sh 
  
-sudo dnf -y install bspwm sxhkd +sudo dnf install herbstluftwm xterm xorg-x11-server-Xorg xorg-x11-xinit xorg-x11-drv-* mesa-dri-drivers 
-sudo dnf -y install xterm +echo "exec herbstluftwm" >~/.xinitrc 
-sudo dnf -y install xorg-x11-server-Xorg +startx
-sudo dnf -y install xorg-x11-xinit +
-sudo dnf -y install xorg-x11-drv-* +
-sudo dnf -y install mesa-dri-drivers +
-sudo dnf -y install rofi+
  
-install -Dm644 /usr/share/doc/bspwm/examples/sxhkdrc ~/.config/sxhkd/sxhkdrc +</code>
-install -Dm755 /usr/share/doc/bspwm/examples/bspwmrc ~/.config/bspwm/bspwmrc+
  
-sed -ie s/dmenu_run/'rofi -show run'/g  ~/.config/sxhkd/sxhkdrc +Once X and herbstluftwm has launched press ''Alt'' + ''Return'' to launch ''xterm''
-sed -ie s/urxvt/xterm/g  ~/.config/sxhkd/sxhkdrc+
  
-sudo systemctl enable dbus-broker+Memory consumption (X+herbstluftwm+xterm+htop): 168 MB
  
-echo "exec bspwm" >~/.xinitrc 
  
 +===== A minimal Wayland environment =====
 +
 +In this example we use [[https://github.com/riverwm/river|river]], a simple tiling Wayland compositor
 +
 +Execute the following commands as user
 +
 +<code bash>
 +sudo dnf install river foot
 +mkdir -p ~/.config/river
 +cp /usr/share/river/init.example  ~/.config/river/init
 +river
 </code> </code>
  
-Then reboot, login as **user** and execute ''startx''. Once X has launched press ''Super'' (or Windows key) ''Return'' to launch ''xterm''+Hit Super+Shift+Return for launching foot terminal
  
 +Memory consumption (river+foot+htop): 159 MB
  
  
osinstallation/fedora.1629576743.txt.gz · Last modified: 2021/08/21 20:12 by senioradmin

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