Practical Linux Tutorial

Setting up Ubuntu/Linux on a desktop PC or a laptop.

A step-by-step tutorial for installing Ubuntu Desktop or another Linux distribution, preparing installation media, choosing clean install or dual boot, configuring drivers and updates, and turning a PC or laptop into a reliable scientific and bioinformatics workstation.

1. Overview

Linux is widely used in research computing, bioinformatics, software development, cloud infrastructure and data science. Ubuntu Desktop is one of the easiest Linux distributions to install on a desktop PC or laptop because it has a graphical installer, broad community support and extensive official documentation.

Prepare Back up data, check hardware, choose install mode and download the ISO.
Install Create bootable USB media, boot the installer and complete the installation.
Configure Update packages, install drivers, enable backups and add scientific tools.
Important safety note: installing an operating system can erase existing data. Back up your files before changing partitions or installing Linux.

2. Choose the right Linux option

For most desktop and laptop users, an Ubuntu Desktop LTS release is the safest default choice. LTS releases are intended for stability and receive standard security maintenance for five years. Other Linux distributions may be excellent choices, but Ubuntu is usually the easiest starting point for users who want broad documentation and compatibility.

Option Best for Notes
Ubuntu Desktop LTS Most laptops, desktops, research users and long-term projects. Recommended default for stability and support.
Linux Mint Users who prefer a familiar Windows-like desktop. Ubuntu-based, friendly desktop experience.
Pop!_OS Developers and users with NVIDIA GPUs on supported systems. Good desktop experience; check latest hardware compatibility.
Fedora Workstation Users who want newer Linux software and GNOME desktop features. Shorter lifecycle than Ubuntu LTS, but modern packages.
Debian Users who value conservatism and stability. Excellent base, but sometimes less beginner-friendly for desktop hardware.

3. Before you start

Preparation avoids most installation problems. Spend time checking hardware, power, storage and backups before booting the installer.

Checklist

  • Back up important files to an external drive or trusted cloud storage.
  • For Windows systems, save your BitLocker recovery key if BitLocker is enabled.
  • Connect the laptop to power.
  • Use a reliable USB stick, preferably 8 GB or larger.
  • Make sure you know how to enter the boot menu or UEFI/BIOS settings for your computer.
  • Check Wi-Fi adapter, graphics card and storage type if the computer is unusual or very new.
  • Decide between clean install, dual boot or installation on a separate drive.
Clean install Simplest option for a dedicated Linux machine. It can erase the existing operating system and data.
Dual boot Keeps Windows or another OS alongside Ubuntu. It is useful but requires careful disk planning and backups.

4. Download Ubuntu Desktop

Download Ubuntu Desktop only from the official Ubuntu website or official release mirrors. For stability, choose a current LTS release unless you specifically need newer packages from an interim release.

  1. Open the official Ubuntu Desktop download page.
  2. Download the ISO image for the current LTS version.
  3. Optionally verify the checksum if you need extra assurance that the file was downloaded correctly.
  4. Keep the ISO file in an easy-to-find folder.

5. Create a bootable USB stick

A bootable USB stick contains the Ubuntu installer. You can create it from Windows, macOS or Linux.

Current OS Recommended tools Notes
Windows balenaEtcher, Rufus Use the downloaded Ubuntu ISO and write it to the USB stick. Rufus may ask whether to write in ISO or DD mode; follow Ubuntu/Rufus recommendations.
macOS balenaEtcher Simple graphical workflow. Make sure the USB stick can be erased.
Ubuntu/Linux Startup Disk Creator, GNOME Disks, balenaEtcher, dd Graphical tools are safer for beginners. The dd command is powerful but can overwrite the wrong drive if used carelessly.
Creating the bootable USB stick erases the USB drive. Double-check that you selected the correct device.

6. Boot from the USB stick

Insert the USB stick into the target PC or laptop, restart the computer and open the boot menu. Common keys include F12, F10, F9, Esc, F2 or Del, depending on manufacturer.

Typical boot steps

  1. Insert the bootable USB stick.
  2. Restart the computer.
  3. Open the boot menu during startup.
  4. Select the USB device, preferably in UEFI mode.
  5. Choose “Try or Install Ubuntu” when the installer menu appears.
UEFI mode Recommended for modern computers. It works better with GPT disks and modern boot managers.
Secure Boot Ubuntu often works with Secure Boot, but some proprietary graphics or Wi-Fi drivers may require extra steps.

7. Try Ubuntu before installing

Ubuntu can run from the USB stick without installing. This live session is useful for checking whether the hardware works.

Test before installation

  • Wi-Fi and Ethernet connectivity.
  • Keyboard, mouse and trackpad.
  • Screen resolution, brightness controls and external monitors.
  • Sound input and output.
  • Bluetooth, webcam and card readers if needed.
  • Sleep, resume and battery behavior on laptops.
If critical hardware does not work in live mode, search the exact laptop model plus “Ubuntu” before installing. Many issues can be fixed, but it is better to know in advance.

8. Install Ubuntu Desktop

Start the installer from the live session or installation menu. The exact screens can change between Ubuntu versions, but the overall sequence is similar.

  1. Choose the installation language.
  2. Choose keyboard layout.
  3. Connect to the network if available.
  4. Choose normal or minimal installation.
  5. Select whether to install updates and third-party codecs/drivers during installation.
  6. Choose the installation type: erase disk, install alongside, or manual partitioning.
  7. Set timezone, user name, computer name and password.
  8. Review the summary and start installation.
  9. Reboot when installation completes and remove the USB stick when prompted.
The “Erase disk” option can delete the entire selected drive. Verify the target disk before confirming.

9. Partitioning and storage planning

For most beginners, automatic partitioning is sufficient. Advanced users and workstations may benefit from a separate data partition or dedicated drives for large datasets.

Partition / storage Suggested use Notes
EFI System Partition UEFI boot files. Usually created automatically or already present on dual-boot systems.
/ Linux system and applications. 80–120 GB can be enough for general use; more is useful for development tools.
/home User files and settings. Optional separate partition; useful for preserving user files during future reinstalls.
swap Memory overflow and hibernation support. Ubuntu may use a swap file automatically; hibernation needs special planning.
/data Large datasets, NGS files and projects. Recommended for bioinformatics workstations with large SSDs or HDDs.
For NGS and bioinformatics, storage disappears quickly. One human WGS project can produce hundreds of gigabytes of FASTQ, BAM/CRAM, VCF and intermediate files. Plan storage and backups early.

10. First boot after installation

After logging in for the first time, update the system and install essential tools.

Update Ubuntu and install basic utilities
sudo apt update
sudo apt upgrade -y

sudo apt install -y \
  build-essential curl wget git unzip zip \
  htop tree ca-certificates gnupg lsb-release \
  software-properties-common

Recommended first checks

  • Open “Software Updater” and apply available updates.
  • Restart if a kernel or driver update was installed.
  • Open “Additional Drivers” and check whether proprietary GPU or Wi-Fi drivers are recommended.
  • Set display scaling, keyboard shortcuts and power settings.
  • Configure online accounts, printers, VPN and network storage if needed.

11. Drivers, graphics and hardware

Most hardware works automatically, but some GPUs, Wi-Fi chips and docking stations may need additional drivers or firmware.

NVIDIA GPU Use “Additional Drivers” to install a recommended NVIDIA driver. For CUDA-based analysis, match the NVIDIA driver, CUDA toolkit and software requirements carefully.
Wi-Fi and Bluetooth If wireless devices fail, connect by Ethernet or USB tethering first, then install updates and additional drivers.
Docking stations USB-C docks can depend on firmware, DisplayLink drivers or Thunderbolt authorization settings.
Power management Laptop battery life can often be improved by adjusting power profiles and checking background services.

12. Security, updates and backups

Linux is robust, but it still needs updates, sensible permissions and backups.

Recommended baseline

  • Use a strong login password.
  • Enable full-disk encryption during installation if the laptop contains sensitive data.
  • Keep automatic security updates enabled.
  • Enable a firewall if the machine connects to untrusted networks.
  • Use encrypted backups for sensitive research or clinical data.
  • Do not run analysis tools as root unless required.
Firewall and backup-related tools
sudo apt install -y ufw deja-dup

sudo ufw enable
sudo ufw status verbose
For clinical genomics, patient-derived data or regulated projects, follow institutional rules for encryption, access control, audit trails, storage location and retention.

13. Scientific and bioinformatics workstation setup

Ubuntu/Linux is especially useful for NGS analysis and AI-powered bioinformatics because most command-line tools, workflow engines and scientific libraries are developed for Linux first.

Tool category Recommended tools Purpose
Version control Git, GitHub CLI Track scripts, pipelines and analysis history.
Python environments Miniforge, mamba, conda, venv Install reproducible Python and bioinformatics environments.
R environment R, RStudio, Bioconductor Statistical analysis, RNA-seq, plots and reports.
Containers Docker, Apptainer/Singularity Run software stacks reproducibly.
Workflow engines Nextflow, Snakemake Run reproducible NGS pipelines locally, on HPC or in the cloud.
Editors VS Code, Vim, Nano Write scripts, notebooks and pipeline configuration files.
Install common development and scientific tools
sudo apt update

sudo apt install -y \
  git git-lfs curl wget build-essential cmake \
  python3 python3-pip python3-venv \
  r-base r-base-dev \
  openjdk-17-jre \
  samtools bcftools bedtools fastqc
Install Nextflow
curl -s https://get.nextflow.io | bash
mkdir -p "$HOME/.local/bin"
mv nextflow "$HOME/.local/bin/"
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

nextflow -version
Recommended project directories for bioinformatics
mkdir -p ~/projects ~/datasets ~/software ~/references ~/scratch

# Example
mkdir -p ~/projects/rnaseq_project/{data,results,scripts,logs,reports}

14. Troubleshooting common installation issues

Problem Possible cause What to try
Computer does not boot from USB Wrong boot key, bad USB image, UEFI setting or USB port issue. Recreate the USB stick, try another port, open the boot menu, check UEFI boot order.
Installer cannot see disk Storage controller mode, RAID/RST settings or driver issue. Check BIOS/UEFI storage mode and vendor documentation before changing settings.
Wi-Fi not working Missing firmware or proprietary driver. Use Ethernet or phone USB tethering, update system and open Additional Drivers.
Black screen after boot Graphics driver problem, especially with NVIDIA systems. Boot with safe graphics, install recommended drivers, check Secure Boot if needed.
Windows missing after dual boot Bootloader or UEFI boot-order issue. Check UEFI boot order; update GRUB from Ubuntu if Windows is still present.
Low disk space after installation Small root partition, Docker images, conda environments or large data in home folder. Move projects to a data drive, clean package caches and plan storage layout.

15. Useful Linux commands after installation

These commands are useful for checking system information, storage and hardware.

System information
lsb_release -a
uname -a
hostnamectl
lscpu
free -h
df -h
lsblk
lspci
lsusb
Package maintenance
sudo apt update
sudo apt upgrade
sudo apt autoremove
apt search package-name
apt show package-name
Check NVIDIA GPU if installed
nvidia-smi

Frequently asked questions

Should I install Ubuntu or another Linux distribution?

Ubuntu Desktop LTS is a good default choice for most users because it is widely supported, has extensive documentation and works well for scientific computing. Linux Mint, Pop!_OS, Fedora, Debian and openSUSE are also good options depending on hardware, preference and support requirements.

Can I try Ubuntu before installing it?

Yes. A bootable Ubuntu USB stick can run a live session so that you can test Wi-Fi, graphics, sound, keyboard, trackpad and external monitors before installing.

Should I choose clean install or dual boot?

A clean install is simpler and usually best for a dedicated Linux workstation. Dual boot is useful if you still need Windows or another operating system, but it requires more careful disk planning and backups.

Do I need to disable Secure Boot?

Not always. Ubuntu supports Secure Boot on many systems, but some proprietary drivers or older hardware may require additional steps. If installation or graphics drivers fail, Secure Boot settings are worth checking.

How large should the Linux partition be?

For a basic desktop installation, 80–120 GB can be enough. For bioinformatics, NGS data, Docker images and analysis projects, 500 GB to several TB of storage is much more practical.

What should I install after Ubuntu?

Update the system, install additional drivers, enable backups, configure security updates, install development tools, and then add scientific or bioinformatics software such as Git, Python, mamba/conda, R, Docker, VS Code, Nextflow or Snakemake as needed.