Fedora Linux Install
- 1. About
- 2. OS Install
- 3. Post Boot Setup
- 4. OpenSSH-Server
- 5. Disable Suspend Mode
- 6. Update System
- 7. Install the
DNFPackage Manager - 8. Limit Available Kernals
- 9. Resize Root partition
- 10. Open Ports
- 11. Install Apps
- 12. Install Desktop
- 13. Install Backup Software
- 14. Additional Configurations
- 15. Troubleshooting
2. OS Install
-
Download the OS
-
Download Fedora Linux from here.
-
-
Copy to USB stick with
Rufus -
Set PC to boot from the USB stick
3. Post Boot Setup
| These steps require console access. |
-
After booting for the first time into Fedora you can
-
Enable 3rd Party Repositories
-
Set your UserName and Password
-
-
Change the hostname
-
Check the current hostname
hostnamectl -
Set the hostname
sudo hostnamectl set-hostname my-new-computer -
Reboot
-
4. OpenSSH-Server
4.1. Confirm if SSH is already installed
-
Confirm if the
openssh-serveris already installedRun this commandrpm -qa | grep openssh-serverExample output indicatingopenssh-serveris already installedopenssh-server-7.9p1-5.fc30.x86_64
4.2. Install OpenSSH-Server
-
If the above command produced no output, then install:
sudo dnf install openssh-server -
Enable:
sudo systemctl enable sshd -
Start:
sudo systemctl start sshdNow you can connect remotely via
sshand continue with the remaining installation steps.
4.3. Configure X11
-
Confirm X11 forwarding is configured.
Execute thissudo cat /etc/ssh/sshd_config|grep ForwardingThe following is an example where Xll is not configured#AllowAgentForwarding yes #AllowTcpForwarding yes #X11Forwarding no # X11Forwarding no # AllowTcpForwarding no -
If not configured:
Editsudo vi /etc/ssh/sshd_configAdd these linesX11Forwarding yes #X11DisplayOffset 10 # Not sure if this is required #X11UseLocalhost yes # Not sure if this is requiredRestart the daemonsudo systemctl daemon-reloadInstallxauthsudo dnf -y install xauth -
Now exit the current
sshsession and reconnect for the change to take place.
5. Disable Suspend Mode
-
Run the following to disable GDM’s sleep and idle timers:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
6. Update System
-
Update System via
dnf.sudo dnf -y updateIf the above seems to hang, run this first:
sudo dnf clean allThis will take a long time…
-
Upgrade the System via
dnf.sudo dnf -y upgradeThis will take a long time…
7. Install the DNF Package Manager
-
Install the
DNFpackage manager (not required on RedHat 8/CentOS 8/Rocky 8)sudo yum install -y dnf -
Install EPEL repository
sudo dnf install -y epel-releaseIf the previous command failed, try this one:
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -
Enable the CodeReady Builder (CRB) repository.
sudo /usr/bin/crb enable -
Make the DNF cache
sudo dnf makecache
8. Limit Available Kernals
-
The
/bootpartition is 1GB large. To prevent running out of space, limit the number of available kernals.Edit this filesudo nano /etc/yum.confChange this valueinstallationonly_limit=2
9. Resize Root partition
9.1. Rocky
| Incomplete! |
-
On
Rocky Linux, the root partition will start off at ~70GB with the /home partition being allocated with the bulk of the remaining space.
Use the following to first shrink the /home file system and grow the root file system.-
First, get the Filesystem name for the /home filesystem:
lsblkExample outputsda 8:0 0 931.5G 0 disk ├─sda1 8:1 0 576M 0 part /boot/efi ├─sda2 8:2 0 1G 0 part /boot └─sda3 8:3 0 929.8G 0 part ├─rl_p--rocky--phoenix-root 253:0 0 70G 0 lvm /var/lib/containers/storage/overlay │ / ├─rl_p--rocky--phoenix-swap 253:1 0 15.7G 0 lvm [SWAP] └─rl_p--rocky--phoenix-home 253:2 0 844.1G 0 lvm /home
-
9.2. Fedora Server
-
On Fedora Server, the root partition will start off at 15GB.
Use the following to use all of the available space.-
First, get the Filesystem name for the root / filesystem:
df -hTSampleFilesystem Type Size Used Avail Use% Mounted on /dev/mapper/fedora_p--fed--phoenix-root xfs 15G 12G 3.3G 79% / (1) devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev tmpfs tmpfs 16G 168K 16G 1% /dev/shm1 Note the Filesystem name required for the next steps. -
Resize the volume
sudo lvextend /dev/mapper/fedora_p--fed--phoenix-root -l+100%FREESample ResultSize of logical volume fedora_p-fed-phoenix/root changed from 15.00 GiB (3840 extents) to <929.80 GiB (238028 extents). Logical volume fedora_p-fed-phoenix/root successfully resized. -
Grow
sudo xfs_growfs /dev/mapper/fedora_p--fed--phoenix-rootSample Resultmeta-data=/dev/mapper/fedora_p--fed--phoenix-root isize=512 agcount=4, agsize=983040 blks . . . data blocks changed from 3932160 to 243740672 -
Confirm the / Filesystem has grown:
df -hTSampleFilesystem Type Size Used Avail Use% Mounted on /dev/mapper/fedora_p--fed--phoenix-root xfs 930G 30G 901G 4% / (1) devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev tmpfs tmpfs 16G 168K 16G 1% /dev/shm1 Note the Filesystem has a new size.
-
10. Open Ports
-
Add ports
sudo firewall-cmd --add-port={8080/tcp,8443/tcp,5435/tcp,7912/tcp,7878/tcp,8010/tcp,8081/tcp,8082/tcp,8085/tcp,9443/tcp,11434/tcp,3013/tcp,3012/tcp,3010/tcp,3011/tcp,8447/tcp} --permanent -
Reload FW Daemon
sudo firewall-cmd --reload
11. Install Apps
11.3. Fastfetch
-
Install fastfetch:
sudo dnf -y install fastfetchSample output
$ fastfetch __wgliliiligw_, *@* _williiiiiiliilililw, ---------------------- _%iiiiiilililiiiiiiiiiii_ OS: Rocky Linux 10.1 (Red Quartz) x86_64 .Qliiiililiiiiiiililililiilm. Host: B650D4U-2L2T/BCM _iiiiiliiiiiililiiiiiiiiiiliil, Kernel: Linux 6.12.0-124.20.1.el10_1.x86_64 .lililiiilililiiiilililililiiiii, Uptime: 52 seconds _liiiiiiliiiiiiiliiiiiF{iiiiiilili, Packages: 1592 (rpm), 5 (snap) jliililiiilililiiili@` ~ililiiiiiL Shell: bash 5.2.26 iiiliiiiliiiiiiili>` ~liililii Display (default): 3440x1440 in 39" liliiiliiilililii` -9liiiil Cursor: Adwaita iiiiiliiliiiiii~ "4lili Terminal: /dev/pts/0 4ililiiiiilil~| -w, )4lf CPU: AMD Ryzen 7 8700G (16) @ 5.18 GHz -liiiiililiF' _liig, )' GPU 1: ASPEED Technology, Inc. ASPEED Graphics Family )iiiliii@` _QIililig, GPU 2: AMD Phoenix1 [Integrated] )iiii>` .Qliliiiililw Memory: 2.24 GiB / 122.94 GiB (2%) )<>~ .mliiiiiliiiiiil, Swap: 0 B / 23.29 GiB (0%) _gllilililiililii~ Disk (/): 7.44 GiB / 69.90 GiB (11%) - xfs giliiiiiiiiiiiiT` Disk (/SingleDisk): 128.00 KiB / 886.89 GiB (0%) - zfs -^~$ililili@~~' Disk (/home): 3.43 GiB / 137.91 GiB (2%) - xfs Disk (/mnt/MirroredPool): 143.88 MiB / 56.54 GiB (0%) - zfs Local IP (enp10s0f1np1): 192.168.*.*/24 Locale: en_US.UTF-8
11.6. Snap
-
Install
sudo dnf -y install snapdThis will take some time…
-
To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:
sudo ln -s /var/lib/snapd/snap /snap -
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
-
To test your system, install the hello-world snap and make sure it runs correctly:
Runsudo snap install hello-worldExample Resulthello-world 6.3 from Canonical✓ installed $ hello-world Hello World!
11.7. Developer Tools
11.7.2. Visual Studio Code
-
Reference this VSCode doc.
Snapneeds to be installed first.
11.8. Samba
-
Reference this doc: Samba Notes
11.9. ZFS
-
Reference the ZFS Notes to install
ZFS. -
Reference the above Doc to also import ZFS Storage Pools.
11.10. Install Containerization
11.10.1. Podman
-
Reference doc.
-
Install via this doc: Podman-Notes
11.11. Video Driver
-
Install a graphics driver:
Nvidia: Nvidia Fedora Notes
11.12. Cockpit
-
Reference this doc: Cockpit Notes
11.13. Podman
-
Reference this doc: Podman Notes
12. Install Desktop
-
Follow Linux Desktops