Fedora Linux


Title: Essential Steps to Configure Your Fresh Fedora Linux Install


Introduction

Welcome to Fedora! After a fresh installation, there are several important steps to take to ensure your system is secure, up-to-date, and tailored to your needs. Follow this guide to get your Fedora system up and running smoothly.


1. Initial Setup and Update System

Log in to your new Fedora installation and open a terminal. Update all packages with the following commands:

sudo dnf update -y
sudo dnf upgrade -y

2. Enable RPM Fusion Repositories

RPM Fusion provides additional software that Fedora does not ship by default. Enable these repositories with:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

3. Install Essential Software

Here are some commonly needed packages:

sudo dnf install -y vim git wget curl htop

4. Set Up Firewall

Fedora uses firewalld by default. Enable and start it with:

sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo firewall-cmd --add-service=ssh --permanent
sudo firewall-cmd --reload

5. Configure SELinux

SELinux is enabled by default. Check its status and ensure it’s enforcing:

sudo sestatus
sudo setenforce 1

6. Create a Non-root User

It’s best to perform day-to-day tasks as a non-root user. Create one with:

sudo adduser username
sudo passwd username
sudo usermod -aG wheel username

Replace username with your desired username.


7. Set Hostname

Set a proper hostname for your system with:

sudo hostnamectl set-hostname your-hostname

Replace your-hostname with your desired hostname.


8. Install Development Tools

If you plan on compiling software or doing development work, install development tools:

sudo dnf groupinstall -y "Development Tools"

9. Configure Time and Date

Ensure system time is accurate by enabling and starting the chronyd service:

sudo systemctl enable chronyd
sudo systemctl start chronyd

10. Enable Power Management Tools

Useful for laptops and power efficiency:

sudo dnf install -y tlp tlp-rdw
sudo systemctl enable tlp
sudo systemctl start tlp

11. Install GNOME Tweaks (if using GNOME)

For additional customization of the GNOME desktop environment:

sudo dnf install -y gnome-tweaks

12. Set Up Automatic Updates

Configure automatic updates to keep your system secure:

sudo dnf install -y dnf-automatic
sudo systemctl enable --now dnf-automatic.timer

13. Backup and Restore Tools

Set up tools like rsync or Timeshift for backups:

sudo dnf install -y rsync

14. Optional: Install Media Codecs

For better media playback support:

sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
sudo dnf groupupdate sound-and-video

15. Clean Up

Remove unnecessary packages and clean up the package manager cache:

sudo dnf autoremove -y
sudo dnf clean all

Conclusion

By following these steps, you’ll ensure your Fedora Linux system is secure, up-to-date, and ready for use. Enjoy your new Fedora environment!

Leave a Reply

Your email address will not be published. Required fields are marked *