Fedora Linux Install
1. OS Install
-
Download the OS
-
Download Fedora Linux from here.
-
-
Copy to USB stick with
Rufus -
Set PC to boot from the USB stick
2. 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
-
3. OpenSSH-Server
3.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
3.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.
3.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.
4. 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…
5. 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 -
Make the DNF cache
sudo dnf makecache
6. Resize Root partition
6.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
-
6.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.
-
7. Install Apps
7.5. 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!
7.6. Developer Tools
7.6.2. Visual Studio Code
-
Reference this VSCode doc.
Snapneeds to be installed first.
7.7. Samba
-
Reference this doc: Samba Notes
7.8. ZFS
-
Reference the ZFS Notes to install
ZFS. -
Reference the above Doc to also import ZFS Storage Pools.
7.9. Install Containerization
7.9.1. Podman
-
Reference doc.
-
Install
sudo dnf install -y podman podman-compose -
Config
systemctl --user enable --now podman.socket
7.10. Video Driver
-
Install a grahics driver:
Nvidia: Nvidia Fedora Notes
7.11. Cockpit
-
Reference this doc: Cockpit Notes
7.12. Podman
-
Reference this doc: Podman Notes
8. Install Desktop
-
Follow Linux Desktops