This guide walks you through the essential steps to configure a fresh Ubuntu Desktop installation for daily use. You’ll set up system updates, drivers, essential software, and privacy/performance tweaks, turning a bare install into a comfortable, secure workstation.
What You’ll Need
- A computer with Ubuntu Desktop installed and bootable
- An internet connection (wired or Wi-Fi)
- Your user account password (for sudo commands)
- Optional: a USB drive for backups if you plan to move data
Step-by-Step
- Run a full system update. Open the terminal (Ctrl+Alt+T) and run:
sudo apt update && sudo apt upgrade -y
This refreshes the package list and installs all available security and software updates. Reboot if the kernel was updated (
sudo reboot). - Enable automatic security updates. Go to Software & Updates (search in the activities overview), select the Updates tab, and set “Automatically check for updates” to Daily and “Install security updates” to Automatically.
- Install proprietary drivers if needed. Open Additional Drivers (search in the activities overview). If any proprietary drivers are listed (e.g., for NVIDIA or Wi-Fi), select the recommended one and click Apply Changes. Reboot after installation.
- Configure the firewall. Ubuntu ships with `ufw` (Uncomplicated Firewall). Enable it and allow SSH if you need remote access:
sudo ufw enable sudo ufw allow ssh
Check status with
sudo ufw status. - Set up automatic disk encryption (if not done during install). If your home directory isn’t encrypted, consider using
sudo apt install ecryptfs-utilsand thensudo ecryptfs-migrate-home -u $USER. Log out and back in, then runsudo ecryptfs-setup-swapfor swap encryption. This is optional but recommended for laptops. - Install essential software. Use the Ubuntu Software center or terminal. Common picks:
sudo apt install vlc gimp libreoffice firefox gnome-tweaks
For media codecs (MP3, H.264, etc.), install the restricted extras:
sudo apt install ubuntu-restricted-extras. - Enable Snap and Flatpak support. Snap is preinstalled. For Flatpak, run:
sudo apt install flatpak flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Reboot to make Flatpak apps appear in the application menu.
- Configure privacy settings. Go to Settings > Privacy. Turn off “File History” if you don’t want activity logs, and review “Location Services” — disable if not needed.
- Set up backup. Use the built-in Backups tool (Deja Dup). Choose a local folder or external drive, and set a schedule (e.g., daily). If you have cloud storage, install the client (e.g.,
sudo apt install rclonefor command-line sync). - Customize the desktop. Install GNOME Tweaks (already above) to change themes, fonts, and startup apps. You can also install GNOME Extensions for added functionality (e.g., dash-to-dock, clipboard indicator).
- Set up development tools (optional). If you code, install git, build-essential, and your preferred editor:
sudo apt install git build-essential code
(The
codepackage installs VS Code from Microsoft’s repository.) - Clean up unnecessary packages. Remove unused packages and old kernels:
sudo apt autoremove --purge sudo apt autoclean
This frees disk space and keeps the system tidy.
Common Mistakes
- Skipping the reboot after updates. Not rebooting can leave you with a partially updated system, causing driver or kernel issues.
- Installing drivers from the manufacturer’s website. For most hardware, the open-source drivers in Ubuntu are sufficient. Downloading .run files from NVIDIA can break the system; use the Additional Drivers tool instead.
- Disabling the firewall. Some users turn off ufw because it “blocks things,” but it’s essential for security, especially on public networks.
- Forgetting to enable automatic updates. Without them, you’ll miss critical security patches.
- Using the terminal for everything without understanding. Copy-pasting commands from random blogs can be risky. Always read what a command does before running it.
Tips
- Use Timeshift for system snapshots. Install Timeshift (
sudo apt install timeshift) and set up periodic snapshots. It’s a lifesaver if a future update breaks something. - Keep a separate /home partition. If you didn’t do this during install, consider it next time. It makes reinstalling Ubuntu much easier without losing personal files.
- Learn basic terminal commands. Knowing
cd,ls,cp,mv, andsudowill make many tasks faster. - Use the Ubuntu Software Center for GUI installs. It’s safe and handles dependencies automatically. For command-line lovers,
aptis more efficient. - Enable hibernation if you need it. By default, Ubuntu disables hibernation. You can enable it by editing
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla(create the file with the proper content) — but only if you have enough swap space.
Troubleshooting
- System won’t boot after update. If you see a black screen or GRUB menu, try booting into an older kernel from the GRUB “Advanced options.” If that works, you can remove the problematic kernel later. If not, use a live USB to chroot and fix.
- Wi-Fi not working. Check if the interface is blocked (
rfkill list). Install the proprietary driver via Additional Drivers. If that fails, check if you have a Realtek card that needs a specific driver — search the Ubuntu forums for your model. - NVIDIA driver causes screen flickering. Boot into recovery mode (hold Shift at boot), select “root”, and run
sudo apt purge nvidia-*to remove the driver, then reinstall the recommended one from Additional Drivers. - Flatpak apps don’t appear in the menu. Log out and back in, or run
flatpak listto verify installation. If missing, installgnome-software-plugin-flatpak. - Firewall blocks network sharing. If you use Samba, allow it with
sudo ufw allow samba. - Low disk space. Run
sudo apt cleanto clear package cache, and check large files withdu -sh *in your home directory.
Frequently Asked Questions
Do I need to install antivirus on Ubuntu?
Generally no, but if you share files with Windows users, you might install ClamAV (sudo apt install clamav) to scan for Windows malware. The built-in AppArmor and firewall provide solid protection.
How do I change the desktop environment?
You can install alternatives like Xfce (sudo apt install xubuntu-desktop) or KDE (sudo apt install kubuntu-desktop). After installation, log out and select the new session from the gear icon on the login screen.
Can I use Ubuntu on a Mac with Apple Silicon?
Yes, but only through virtualization (e.g., UTM) or by using the Asahi Linux project for native installation. Standard Ubuntu images don’t boot natively on M1/M2 Macs yet.
Why is my fan always spinning?
Check for background processes with top or htop. Install tlp (sudo apt install tlp) for better power management on laptops. Also ensure you’re using the correct graphics driver.
How do I reset my forgotten password?
Reboot, hold Shift to enter GRUB, choose “Advanced options”, select recovery mode, then “root” — then run passwd username to set a new password. This requires physical access.
Is it safe to remove old kernels?
Yes, but keep at least one older kernel as a fallback. The command sudo apt autoremove will remove old kernels automatically, but you can also do it manually with sudo apt purge linux-image-* (be careful).
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
- Fix Unfortunately App Has Stopped: Step-by-Step
- Restart a Frozen Samsung Galaxy A12
- HomePod Stereo Pair with AirPlay 2 from iPhone
- Open Apps From Anywhere on macOS Sierra
- Cancel Roku Subscriptions & Remove Payment Methods
- Fix 0x8e5e0247 Error on Windows