Install, Run & Use Ubuntu Linux: Step-by-Step Guide
In this article
Ubuntu is a free, open-source Linux operating system that’s beginner-friendly and works on most computers. This guide walks you through installing it (either alongside Windows or as the only OS), booting it up, and using the essential everyday features. You don’t need to be a tech expert—just follow the steps in order.
What You'll Need
- A USB drive (8 GB or larger) or a DVD if your computer has a drive.
- A computer with at least 4 GB of RAM and 25 GB of free disk space (more is better).
- Another working computer to download Ubuntu and create the installation media.
- Internet connection for downloading Ubuntu and updates.
- Backup of any important files on the target computer—installing Ubuntu can erase data if you choose the wrong option.
Step-by-Step
- Download Ubuntu: Go to ubuntu.com/download/desktop and download the latest LTS (Long-Term Support) version. Choose the 64-bit ISO file.
- Create a bootable USB: Use a tool like Rufus (Windows), Etcher (macOS/Linux), or the built-in Startup Disk Creator on Ubuntu. Open the tool, select your USB drive, and point it to the downloaded ISO. Follow the prompts to write the image to the USB. This erases the USB, so make sure it’s empty.
- Back up your data: Before proceeding, copy any important files from the target computer to an external drive or cloud storage. Installing Ubuntu can overwrite your hard drive.
- Boot from the USB: Insert the USB into the target computer, restart it, and press the key to open the boot menu (often F12, F2, Esc, or Del—varies by brand). Select the USB drive from the list. If you don’t see it, you may need to disable Secure Boot in the BIOS/UEFI settings.
- Try or install Ubuntu: When the USB boots, you’ll see a menu. Choose “Try Ubuntu” to test it without installing, or “Install Ubuntu” to start the installer. Trying first is a good way to check hardware compatibility.
- Choose installation type: The installer will ask how you want to install. If you want to keep Windows, choose “Install Ubuntu alongside Windows Boot Manager.” If you want to replace everything, choose “Erase disk and install Ubuntu.” If you’re unsure, pick the “alongside” option—it’s safer.
- Set up partitions (optional): If you choose “Something else,” you’ll see a partition editor. For most users, the automatic options are fine. If you do manual partitioning, create a root partition (mount point /) with at least 20 GB, and a swap partition equal to your RAM size if you have less than 8 GB.
- Select time zone and keyboard layout: The installer will ask for your location and keyboard layout. Pick what matches you.
- Create a user account: Enter your name, a username, and a strong password. This is the account you’ll use to log in. You can also choose to require a password for login.
- Install and reboot: Review your choices and click “Install.” The process takes 10–20 minutes. When done, remove the USB and click “Restart Now.”
- Log in: After reboot, you’ll see the GRUB menu (if you’re dual-booting, pick Ubuntu). Then enter your password at the login screen.
- Update your system: Open “Software Updater” or run
sudo apt update && sudo apt upgradein a terminal to install security patches and latest software. - Install drivers (if needed): Go to Settings > Software & Updates > Additional Drivers. If you have a NVIDIA graphics card, select the proprietary driver and click “Apply Changes.”
- Browse and install apps: Open “Ubuntu Software” (the app store). Search for apps like Firefox, LibreOffice, GIMP, or VLC. Click Install. You can also use the terminal with
sudo apt install. - Customize your desktop: Right-click the desktop to change wallpaper, or go to Settings > Appearance to change themes, font, and dock position.
Common Mistakes
- Choosing “Erase disk” when you meant to keep Windows—double-check the option before clicking.
- Not backing up data before installation.
- Forgetting to disable Secure Boot if the USB doesn’t boot—some systems need it off.
- Installing the wrong architecture (e.g., 32-bit ISO on a 64-bit machine). Most modern computers are 64-bit.
- Skipping the update step, leading to missing drivers or security patches.
Tips
- Use the LTS version—it’s stable and supported for 5 years.
- Keep your system updated regularly via the “Software Updater.”
- Learn a few terminal commands:
sudofor admin tasks,lsto list files,cdto change directories, andaptto install packages. - If you dual-boot, always restart Windows after installation—Windows may overwrite the boot loader.
- Use the “Try Ubuntu” mode to test Wi-Fi, sound, and graphics before committing.
Troubleshooting
If something goes wrong, try these in order:
- Computer won’t boot from USB: Reboot and press the boot menu key again. Check BIOS/UEFI settings: enable USB boot, disable Secure Boot, or set boot order to USB first.
- Black screen after install: Restart and hold Shift to get the GRUB menu. Select “Advanced options” and choose a recovery mode, then “Resume” to boot. If it works, you may need to install graphics drivers.
- No Wi-Fi: Plug in an Ethernet cable, then run
sudo apt updateandsudo apt install linux-firmware. If that doesn’t work, check the manufacturer’s website for a Linux driver. - Windows doesn’t appear in GRUB: Open a terminal and run
sudo update-grub. If that fails, you may need to repair the boot loader with Boot-Repair (boot from USB, runsudo add-apt-repository ppa:yannubuntu/boot-repairthen install and run it). - System is slow: Check available disk space with
df -h. If low, remove unused packages withsudo apt autoremove. Also consider increasing RAM or using a lighter desktop environment like Xubuntu. - Forgot your password: Reboot, hold Shift to get GRUB, select “Advanced options,” then “Recovery mode,” and choose “root.” Then type
passwd your-usernameand set a new password.
Frequently Asked Questions
Can I install Ubuntu without losing my Windows files?
Yes, if you choose “Install alongside Windows,” the installer will shrink your Windows partition and create space for Ubuntu without deleting your files. However, always back up first—accidents happen.
Is Ubuntu free?
Yes, Ubuntu is completely free to download, install, and use. There’s no trial or paid version.
Can I run Windows programs on Ubuntu?
Not natively, but you can install Wine or use a virtual machine like VirtualBox to run Windows inside Ubuntu. Not all programs work perfectly.
How do I uninstall Ubuntu and get Windows back?
You’ll need a Windows installation USB. Boot from it, choose “Custom install,” and delete the Ubuntu partitions (those labeled Linux or ext4). Then install Windows. This erases everything, so back up first.
What is the terminal and do I have to use it?
The terminal is a text-based command line. You don’t have to use it—most tasks can be done graphically—but it’s powerful and often faster for advanced tasks.
Why is my Wi-Fi not working after install?
Often it’s a missing proprietary driver. Connect via Ethernet, run sudo apt update and sudo apt install linux-firmware, then reboot. If that doesn’t work, check the manufacturer’s support page for a Linux driver.