sodcalculator

10 Tech How-To

Things to Do Right After Installing Linux

Guide 10-51007 · Updated · Step by step

The first few minutes after a fresh Linux install determine how smooth your daily experience will be. This guide walks you through the essential setup steps—updating your system, enabling firewall, installing multimedia codecs, and more—so you can start with a secure, functional, and pleasant system.

Why the First Hour Matters

A newly installed Linux system is like a blank canvas: it boots, but it lacks the polish and security hardening that make it comfortable for daily use. Most distributions ship with a minimal set of packages to keep the ISO small. That means you often miss common codecs, fonts, and proprietary drivers. More importantly, the system may not have the latest security patches. Taking the time right after installation to update and configure a few basics prevents frustration later—like trying to watch a video and getting no sound, or discovering your Wi-Fi card needs a driver that isn’t loaded.

Step 1: Update Your System

Before doing anything else, run a full system update. This pulls in the latest security fixes, bug patches, and software versions. The command differs by distribution family:

  • Debian/Ubuntu: sudo apt update && sudo apt upgrade
  • Fedora: sudo dnf upgrade
  • Arch: sudo pacman -Syu
  • openSUSE: sudo zypper update

If you installed from a recent ISO, the update might be small. If the ISO is older, expect a large download. Reboot after a kernel update to ensure the new kernel is active.

Step 2: Enable the Firewall

Most desktop Linux distributions do not enable a firewall by default. While Linux is generally more secure than other operating systems out of the box, a firewall adds an important layer of protection, especially if you connect to public networks. The most common tool is ufw (Uncomplicated Firewall) on Debian/Ubuntu, and firewalld on Fedora/RHEL.

For Ubuntu/Debian:

sudo ufw enable
sudo ufw status

For Fedora:

sudo systemctl enable --now firewalld
sudo firewall-cmd --state

By default, these firewalls allow outgoing connections and block incoming ones, which is perfect for a desktop. If you run servers (like SSH), you’ll need to allow those ports explicitly.

Step 3: Install Multimedia Codecs

Out of the box, many distributions cannot play MP3, H.264 video, or DVD due to patent restrictions. This is a legal issue, not a technical limitation. To get full multimedia support, you need to install codec packages. On Ubuntu, the package is ubuntu-restricted-extras:

sudo apt install ubuntu-restricted-extras

Fedora offers a similar set via RPM Fusion:

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav

Arch users can install codecs from the multilib repository. After installation, test with a known video file. If audio still doesn’t work, check your sound settings—some systems default to the wrong output device.

Step 4: Install Proprietary Graphics Drivers

If you have an NVIDIA or AMD GPU, the open-source drivers might not give you the best performance or support for newer games. For NVIDIA, the proprietary driver is almost essential. On Ubuntu, you can install it via:

sudo ubuntu-drivers autoinstall

This detects your GPU and installs the recommended driver. After installation, reboot. For AMD, the open-source amdgpu driver is excellent and usually sufficient—you rarely need the proprietary AMDGPU-PRO driver unless you do specific professional work. Intel users generally need nothing extra.

Step 5: Set Up Snapshots and Backups

Before you start tweaking your system, set up a way to revert if something breaks. Two popular tools are Timeshift (for system snapshots) and Deja Dup (for personal files). Timeshift works similarly to Windows System Restore—it takes a snapshot of your system files that you can restore if an update goes wrong. Install it with:

sudo apt install timeshift

Configure it to take daily snapshots to a separate drive if possible. For personal files, enable Deja Dup and back up to an external drive or cloud service. This step is often skipped, but it’s the difference between a minor inconvenience and a reinstall.

Step 6: Customize the Desktop Environment

Linux offers many desktop environments—GNOME, KDE Plasma, XFCE, Cinnamon, and more. After installation, spend a few minutes adjusting the look and feel to match your workflow. This includes:

  • Setting up keyboard shortcuts (e.g., terminal launcher, window tiling).
  • Changing the theme and icon set if the default isn’t to your taste.
  • Enabling desktop icons or a dock if you prefer that over a minimal panel.
  • Adjusting power settings to prevent the screen from sleeping too early.

Remember that you can install multiple desktop environments and switch at the login screen. But be aware that having many DEs can cause settings conflicts and bloat, so it’s better to pick one and stick with it.

Step 7: Install Essential Software

Your new system likely has a web browser, but you’ll want more. A good starting set includes:

  • Media player: VLC (sudo apt install vlc)
  • Office suite: LibreOffice (usually preinstalled, but update it)
  • Code editor: VS Code, Sublime Text, or Vim/Neovim
  • Communication: Slack, Discord, or Zoom (download from official sites)
  • Cloud sync: Nextcloud client or Dropbox

Use your distribution’s package manager or the software center to install these. Avoid downloading random .deb or .rpm files from the internet—use the official repositories whenever possible for security and easier updates.

Frequently Asked Questions

Do I need to run antivirus on Linux?

Not for typical desktop use. Linux’s permission model and package repositories make it very difficult for malware to spread. However, if you run a mail server or share files with Windows users, you might want clamav to scan for Windows viruses. For most people, a firewall and common sense are enough.

What if I don’t like my desktop environment?

You can install another one. For example, on Ubuntu you can install KDE with sudo apt install kubuntu-desktop. You’ll then choose which one to use at the login screen. You can also remove the old one later, but be careful—removing a desktop can also remove important system packages. It’s often easier to reinstall if you really hate the default.

How do I know which driver my GPU needs?

Run lspci | grep VGA to see your graphics card. If it says NVIDIA, you almost certainly want the proprietary driver. If it says AMD or Intel, the open-source drivers are built into the kernel and work well. You can check which driver is currently loaded with lsmod | grep nvidia or lsmod | grep amdgpu.

Is it safe to delete the Windows partition after installing Linux?

Only if you are sure you won’t need Windows again. Deleting the partition frees space, but you cannot easily recover it. If you have a dual-boot setup, consider shrinking the Windows partition instead of deleting it, and use the free space for Linux. Always back up important data before touching partitions.

Why does my Wi-Fi not work after installation?

This is often due to missing proprietary firmware. On Ubuntu, install linux-firmware and reboot. For some Realtek cards, you may need to install a driver from the manufacturer’s website. Check if the card is detected with lspci | grep Network. If it shows up but doesn’t connect, the driver is likely missing.

Should I use a swap file or swap partition?

Modern Linux distributions default to a swap file, which is easier to resize. A swap partition is slightly faster but harder to change. For most users, the default swap file is fine. If you have plenty of RAM (16GB+), you can even reduce swap size, but keep at least 2GB for hibernation.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →