Setting Up

Chapter 6 — First Boot & Essential Setup

Linux is installed and you're logged in. Before you start using it day-to-day, there are a handful of tasks worth doing immediately — updating the system, checking that all hardware is working, and configuring a few basic settings. None of this is complicated, and most of it takes only a few minutes. Think of this as the "out of the box" setup you do with any new computer.

GUI or terminal? This chapter shows both approaches where available. For a first install, the graphical tools are perfectly fine. Terminal commands are shown alongside them because you'll start seeing them in guides and forum answers — it's useful to recognise what they do even if you don't type them yet. Chapter 11 covers the terminal properly.

1. Run the First Update

The ISO you installed from was built weeks or months ago. Security patches and bug fixes have accumulated since then. The first thing to do on any new Linux install is update everything.

Ubuntu / Linux Mint — graphical method

A notification usually appears shortly after first login offering to install updates. If not, open the Update Manager (search for it, or find it in the taskbar/system tray). Click Install Updates and enter your password when prompted. This may take 5–15 minutes depending on how much has changed since the ISO was built.

Ubuntu / Linux Mint — terminal method

$ sudo apt update && sudo apt upgrade -y
  • sudo — runs the command with administrator privileges (you'll be asked for your password)
  • apt update — fetches the latest list of available packages from the repositories
  • apt upgrade — downloads and installs all available updates
  • -y — automatically answers "yes" to any confirmation prompts

Fedora — terminal method

$ sudo dnf upgrade --refresh -y
Restart after updating. If the kernel (the core of the OS) was updated, you need to reboot to use the new version. Ubuntu and Mint will show a notification asking you to restart. On Fedora, dnf tells you if a reboot is needed.

2. Install Additional Drivers

Even if you ticked the "third-party software" option during installation, Ubuntu and Mint have a dedicated tool for managing proprietary drivers — worth checking after the first update.

Ubuntu / Linux Mint — Additional Drivers tool

  • 1
    Open Software & Updates (search for it) and click the Additional Drivers tab. On Mint it may be listed directly as "Driver Manager" in the application menu.
  • 2
    The tool scans your hardware and lists any devices that have proprietary drivers available. Common examples:
    • NVIDIA graphics — select the recommended driver (highest version number without "open" or "server" in the name for general desktop use)
    • Broadcom WiFi — select the listed driver if your WiFi isn't working
    • AMD graphics — usually no action needed; open-source driver is built in
  • 3
    Click Apply Changes and wait for the driver to install. Restart when prompted — driver changes require a reboot to take effect.

Fedora — RPM Fusion and NVIDIA

Fedora doesn't ship proprietary drivers by default. To get NVIDIA drivers, first enable RPM Fusion (a third-party repository):

# Enable RPM Fusion free and non-free repos $ sudo dnf install \ https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm # Then install the NVIDIA driver $ sudo dnf install akmod-nvidia
After installing NVIDIA drivers, reboot and wait. The driver module is compiled for your specific kernel during the first boot after install. This takes 2–5 minutes; the screen may go blank. Don't force-restart — let it complete. Subsequent boots are normal speed.

3. Locale and Timezone

You set these during installation, but it's worth verifying they're correct — especially if your clock is showing the wrong time.

Graphical — Ubuntu / Mint

Open Settings → Region & Language to check your locale (language and date/number formats). Open Settings → Date & Time to verify the timezone and confirm that "Automatic Date & Time" (NTP sync) is turned on.

Terminal — check current settings

$ timedatectl Local time: Mon 2026-06-15 14:32:10 BST Universal time: Mon 2026-06-15 13:32:10 UTC RTC time: Mon 2026-06-15 13:32:10 Time zone: Europe/London (BST, +0100) System clock synchronized: yes NTP service: active

Terminal — change timezone

$ sudo timedatectl set-timezone Europe/London # List all available timezones: $ timedatectl list-timezones | grep Europe

Dual-boot clock problem

If you dual-boot with Windows, you may notice that the clock is wrong after switching between the two OSes. This happens because Windows stores the hardware clock in local time, while Linux stores it in UTC. The fix is to tell Linux to also use local time:

$ sudo timedatectl set-local-rtc 1 --adjust-system-clock
Alternatively (the cleaner fix): configure Windows to store the clock in UTC instead. In Windows, open Registry Editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation, and add a DWORD value RealTimeIsUniversal set to 1.

4. Display Resolution and Scaling

Linux should detect your monitor's native resolution automatically. If the display looks blurry, text appears too large, or the resolution doesn't match your monitor's specification, fix it here.

Graphical — Ubuntu (GNOME)

Open Settings → Displays. You'll see your monitor(s) listed with the current resolution. Click on the resolution dropdown and select the highest available option — this is your monitor's native resolution. For 4K monitors on a laptop, also look at the Scale setting — 200% is usually correct for a 4K laptop display.

Graphical — Linux Mint (Cinnamon)

Open System Settings → Display. Select your monitor and choose the correct resolution. Mint also has a "Use system font size" option under Display if text appears too small.

Terminal — list available resolutions and change

$ xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm 1920x1080 60.00*+ 50.00 59.94 1280x720 60.00 50.00 59.94 1024x768 60.00 # Set resolution to 1920x1080 at 60Hz: $ xrandr --output HDMI-1 --mode 1920x1080 --rate 60
NVIDIA users: if you just installed the NVIDIA proprietary driver and the resolution is still wrong after rebooting, open NVIDIA X Server Settings from the application menu. Go to "X Server Display Configuration" and set the correct resolution there, then click "Save to X Configuration File".

HiDPI / 4K monitors

On GNOME (Ubuntu, Fedora), fractional scaling (e.g., 125%, 150%) can be enabled via:

$ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

Then return to Settings → Displays where fractional scale options will now appear.

5. Setting the Hostname

The hostname is the name your computer uses to identify itself on the network and in the terminal prompt. You set it during installation, but you can change it at any time.

Check current hostname

$ hostnamectl Static hostname: philip-laptop Icon name: computer-laptop Chassis: laptop 💻 Machine ID: a1b2c3d4e5f6... Boot ID: 1234abcd... Operating System: Ubuntu 24.04.1 LTS Kernel: Linux 6.8.0-39-generic Architecture: x86-64

Change the hostname

$ sudo hostnamectl set-hostname my-new-hostname

The change takes effect at the next login (open a new terminal to see it in the prompt).

Hostname rules: use only lowercase letters, numbers, and hyphens. No spaces, no underscores, no dots (those are for fully-qualified domain names). Keep it short and descriptive — philip-laptop, home-server, pi-desk.

6. Creating Additional User Accounts

If other people will use the machine, each person should have their own account. Linux user accounts are completely separate — each has their own home folder, settings, and files.

Graphical — Ubuntu

  • 1
    Open Settings → Users.
  • 2
    Click Unlock in the top-right and enter your password.
  • 3
    Click Add User. Choose the account type:
    • Standard — can use the computer normally, can't install system-wide software or change system settings. Suitable for children or guests.
    • Administrator — has sudo access; can install software and change system settings. Use for other trusted adults who share the machine.
  • 4
    Enter the full name and username, set a password, and click Add.

Graphical — Linux Mint

Open System Settings → Users and Groups. Click Add, enter the details, and set the account type.

Terminal method (all distros)

# Create a new user $ sudo adduser sarah Adding user 'sarah' ... Adding new group 'sarah' (1001) ... Adding new user 'sarah' (1001) with group 'sarah' ... Creating home directory '/home/sarah' ... New password: # If the new user needs administrator (sudo) access: $ sudo usermod -aG sudo sarah # Ubuntu/Debian $ sudo usermod -aG wheel sarah # Fedora/Red Hat
Only grant administrator access to accounts that need it. Every administrator account is a potential attack surface. A standard account can't accidentally (or intentionally) break the system — it simply doesn't have the permissions.

7. Changing the GRUB Default OS (Dual-Boot)

If you dual-boot and find yourself always choosing Windows from the GRUB menu, you can change the default. GRUB's configuration is in /etc/default/grub.

$ sudo nano /etc/default/grub

Look for the line:

GRUB_DEFAULT=0

0 means the first entry in the boot menu (usually Ubuntu/Linux). To change it, either replace 0 with the number of the entry you want (counting from 0), or use saved to remember the last choice:

# Always boot the second entry (index 1 = usually Windows on dual-boot): GRUB_DEFAULT=1 # Or remember the last OS you chose: GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true

After editing, save the file (Ctrl+O, then Ctrl+X to exit nano) and update GRUB to apply the change:

$ sudo update-grub
GRUB timeout: you can also adjust how long the boot menu waits before auto-booting. Find the line GRUB_TIMEOUT=10 and change the number (in seconds). Set it to 0 to skip the menu entirely (not recommended on a dual-boot system), or -1 to wait indefinitely until you make a choice.

8. First-Boot Checklist

  • Run system updates — Software Updater / Update Manager, or sudo apt update && sudo apt upgrade -y
  • Restart after updates if a new kernel was installed
  • Check Additional Drivers — install NVIDIA or Broadcom drivers if listed
  • Verify display resolution — Settings → Displays; set to native resolution
  • Check timezone and clock — Settings → Date & Time; NTP sync on
  • Fix dual-boot clock if time is wrong after switching from Windows — sudo timedatectl set-local-rtc 1
  • Set hostnamesudo hostnamectl set-hostname your-name if you want to change it
  • Create additional user accounts if others will use the machine
  • Set GRUB default if you prefer Windows to be the default boot option
  • Install multimedia codecs if you didn't during installation (see below)

Installing multimedia codecs (if missed during install)

If you didn't tick the third-party software option during installation, add codec support now:

# Ubuntu — install restricted extras (MP3, H.264, DVD, fonts) $ sudo apt install ubuntu-restricted-extras # Linux Mint — usually pre-installed; if not: $ sudo apt install mint-meta-codecs # Fedora — after enabling RPM Fusion: $ sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264

9. Distro-Specific Notes

Linux Mint differences
  • Update Manager has a "trust level" system — Level 1–2 updates are safest; you can safely install all levels
  • Multimedia codecs are usually installed by default
  • Driver Manager is a separate application in the menu (not inside Software & Updates)
  • The Welcome Screen on first boot has useful quick-links to all these settings
Fedora differences
  • Use sudo dnf upgrade --refresh instead of apt upgrade
  • NVIDIA drivers require RPM Fusion — not available without it
  • Btrfs filesystem: Fedora creates automatic snapshots with Timeshift or Snapper
  • SELinux may block some operations; errors include "Permission denied" even with sudo — check journalctl for AVC denials

Chapter Summary

TaskHow to do it
System update Ubuntu/Mint: Update Manager GUI, or sudo apt update && sudo apt upgrade -y. Fedora: sudo dnf upgrade --refresh -y. Restart if kernel updated.
Additional drivers Ubuntu/Mint: Software & Updates → Additional Drivers tab (or Driver Manager on Mint). Fedora: RPM Fusion + sudo dnf install akmod-nvidia.
Timezone Settings → Date & Time (GUI), or sudo timedatectl set-timezone Region/City. Fix dual-boot clock with sudo timedatectl set-local-rtc 1.
Display resolution Settings → Displays (GNOME) or System Settings → Display (Cinnamon). Use xrandr in terminal. Enable fractional scaling via gsettings on GNOME.
Hostname sudo hostnamectl set-hostname new-name. Takes effect at next login.
Additional users Settings → Users (Ubuntu) or System Settings → Users and Groups (Mint). Terminal: sudo adduser username. Add sudo: sudo usermod -aG sudo username.
GRUB default OS Edit /etc/default/grub, change GRUB_DEFAULT, then run sudo update-grub.
Next: Chapter 7 — Desktop environments. We explore GNOME, KDE Plasma, XFCE, MATE, and Cinnamon — what each looks like, how to install an alternative desktop, and how to switch between them at login.