What you need before you start
Installing Linux means replacing or alongside your current operating system with a free, open-source one. Before you begin, you need three things: a computer with at least 20 gigabytes of free storage space, a USB drive with at least 4 gigabytes of capacity, and about 30 minutes to an hour of uninterrupted time. Back up any files you want to keep — the installation process will erase data on the drive you choose.
You also need to decide whether you want to replace your current system entirely or run Linux alongside Windows or macOS. A full replacement is simpler for beginners. Running both systems on one computer (called dual-booting) requires more disk space and an extra step during startup to choose which system to use.
Finally, pick a Linux distribution — the packaged version you'll install. Ubuntu, Linux Mint, and Fedora are the most common for people new to Linux. They all work the same way during installation, so choose whichever appeals to you. You can always try a different one later.
Key Takeaways
- You need a USB drive, a computer with 20 gigabytes of free space, and a backup of any files you want to keep before starting.
- Download your chosen Linux distribution from its official website, then use a tool like Balena Etcher or Rufus to write it to the USB drive.
- Restart your computer, boot from the USB drive, and follow the on-screen installer to choose your language, timezone, and disk partition.
- The entire process takes 30 minutes to an hour, and you can remove the USB drive once installation finishes.
- If something goes wrong, you can restart the installer or try a different Linux distribution without losing your original system if you dual-boot.
Download Linux and create a bootable USB drive
Go to the official website for your chosen distribution. For Ubuntu, visit ubuntu.com. For Linux Mint, go to linuxmint.com. For Fedora, visit fedoraproject.org. Download the ISO file — a single file that contains the entire operating system. The file is usually 2 to 3 gigabytes, so the download may take 10 to 20 minutes depending on your internet speed.
Once the download finishes, you need to write this file to your USB drive using a tool designed for that purpose. On Windows, download and open Rufus (rufus.ie). On macOS or Linux, download Balena Etcher (balena.io/etcher). Insert your USB drive into your computer, open the tool, select the ISO file you just downloaded, select your USB drive from the list, and click the button to write or flash the drive. This takes a few minutes. Do not unplug the USB drive until the tool says it is finished.
Restart your computer and boot from the USB drive
Insert the USB drive into your computer and restart it. As your computer starts up, watch the screen for a message telling you to press a key to enter the boot menu — this is usually F12, Escape, or Delete, but the exact key depends on your computer's manufacturer. Press that key repeatedly until a menu appears listing your boot options.
Select the option that mentions your USB drive — it may say "USB" or the brand name of your drive. Your computer will then load Linux from the USB drive. This takes about a minute. You will see the Linux desktop or a menu asking whether you want to install or try Linux first. Choose install.
Walk through the installation steps
The installer will ask you to choose your language, then your timezone. Select the timezone where you are located — this ensures your system clock is correct. Next, you will see a keyboard layout screen. Choose the layout that matches your keyboard.
The installer will then ask where you want to install Linux. If you are replacing your entire system, select the disk that currently holds your operating system — the installer will show you the size and name. If you are dual-booting, you will need to manually create a partition, which means dividing your disk into separate sections. This step is more complex; if you are new to Linux, replacing your system entirely is simpler.
After you choose the disk, the installer will ask for a username and password. Use a password you will remember — you will need it to install programs and change system settings later. The installer will then begin copying files to your disk. This takes 10 to 20 minutes depending on your computer's speed.
Complete installation and restart
Once the file copying finishes, the installer will ask you to restart your computer. Remove the USB drive before restarting — your computer will then boot into Linux for the first time. The first startup takes a few minutes as the system completes its setup.
When you see the login screen, enter the username and password you created during installation. You are now in your Linux desktop. You can begin using the system immediately, or spend time exploring the applications menu to see what programs are already installed.
What to do if installation fails or you want to try a different distribution
If the installer crashes or stops responding, restart your computer and insert the USB drive again. You can run the installer as many times as you need — each attempt starts fresh. If you replaced your entire system and want to go back to Windows or macOS, you will need an installation disk or USB drive for that system, which you can create on another computer.
If you dual-booted and want to remove Linux, restart your computer and boot into Windows or macOS. Open the disk management tool (Disk Management on Windows, Disk Utility on macOS) and delete the Linux partition. The space will become available for your other system to use.
If you installed Linux but want to try a different distribution, you can create a new USB drive with a different ISO file and install it over your current system. Your files will be erased, so back them up first.
Frequently Asked Questions
Can I install Linux without erasing Windows or macOS?
Yes, by dual-booting. During installation, choose the manual partitioning option and create a new partition for Linux on unused disk space. Your computer will then show a menu at startup asking which system you want to use. This requires at least 40 gigabytes of free space total.
What if my computer won't boot from the USB drive?
Restart your computer and try pressing a different key during startup — common options are F2, F10, or Delete. If you are unsure which key your computer uses, search online for "[your computer model] boot menu key". You can also check your computer's manual or the manufacturer's website.
Do I need an internet connection during installation?
No, but you will need one afterward to download updates and programs. The installer may offer to download updates while installing, which speeds up the process if you have a fast connection, but it is optional.
Can I go back to my old system after installing Linux?
If you replaced your system entirely and did not back up your old disk, you cannot recover it. If you dual-booted, you can restart your computer and choose your original system from the boot menu. To remove Linux entirely, use your original system's disk management tool to delete the Linux partition.
What happens if I unplug the USB drive during installation?
The installation will fail and your computer may not start. Insert the USB drive again, restart, and run the installer from the beginning. Your disk will be in an incomplete state, but running the installer again will overwrite it and complete the process.