Ubuntu Tutorial: A Beginner’s Guide to Ubuntu Linux
Ubuntu is one of the most popular Linux distributions. It is user-friendly, free, open-source, and used by both beginners and professionals for various tasks. This tutorial will guide you through the basics of Ubuntu, from installation to daily usage.
Part 1: Getting Started with Ubuntu
Step 1: Downloading Ubuntu
- Visit the Ubuntu website: Go to https://ubuntu.com/download and download the Desktop version.
- Choose the Version: Download the latest LTS (Long Term Support) version for the most stability, or go with the regular release if you prefer newer features.
- Create a Bootable USB: Use software like Rufus, UNetbootin, or Balena Etcher to create a bootable USB drive.
- Insert a USB flash drive (at least 4GB).
- Run the bootable USB software and select your downloaded Ubuntu ISO file.
- Write the ISO to your USB drive.
Step 2: Installing Ubuntu
- Boot from USB: Restart your computer and boot from the USB flash drive by accessing the boot menu (usually by pressing F12, Esc, or Del during startup).
- Start Ubuntu Installer: Once your computer boots from the USB, you’ll see an option to either Try Ubuntu or Install Ubuntu. Select Install Ubuntu.
- Installation Steps:
- Keyboard Layout: Select your preferred keyboard layout.
- Updates & Other Software: Choose whether to download updates and third-party software during installation. It’s recommended to enable these options.
- Installation Type:
- If you’re installing Ubuntu alongside another operating system (like Windows), select Install Ubuntu alongside.
- To erase the disk and install a fresh copy of Ubuntu, select Erase disk and install Ubuntu.
- Set Time Zone: Select your time zone.
- Create User Account: Set up your username, computer name, and password.
- Complete Installation: After setup, Ubuntu will install. Once finished, restart your computer and remove the USB drive.
Part 2: Using Ubuntu for the First Time
After installation, you will be greeted with the Ubuntu desktop. Here’s an overview of how to use and navigate the system.
Step 1: Ubuntu Desktop Overview
- Top Bar: Displays the date/time, system notifications, and quick settings for Wi-Fi, sound, power, and shutdown.
- Dock (Sidebar): Contains shortcuts to frequently used applications (Firefox, Files, Terminal, Software Center).
- Activities Overview: Press the Super key (Windows key) or click Activities in the top-left corner to see open windows and a search bar for launching applications.
Step 2: Installing and Managing Software
- Using the Ubuntu Software Center:
- Open the Ubuntu Software Center from the Dock.
- Search for and install applications by clicking Install. Popular apps include GIMP, LibreOffice, and VLC Media Player.
- Installing Applications via Terminal:
- Open the Terminal (Ctrl + Alt + T).
- Use the command
sudo apt install <package-name>to install software. For example:sudo apt install vlc
- Updating and Upgrading Software:
- Keep your system up-to-date by running:
sudo apt update && sudo apt upgrade
- Keep your system up-to-date by running:
Step 3: File Management
- File Explorer:
- Open the Files application from the Dock.
- You can browse your home directory, desktop, and other folders. The file explorer works similarly to Windows’ File Explorer or macOS Finder.
- Basic File Commands in Terminal:
- List files:
ls - Change directory:
cd <directory-name> - Create a directory:
mkdir <directory-name> - Remove a file:
rm <file-name>
- List files:
Step 4: Customizing Ubuntu
- Changing Desktop Background:
- Right-click on the desktop and choose Change Background to select a new wallpaper.
- Adding/Removing Applications in Dock:
- Right-click on an application in the Dock and choose Remove from Favorites to remove it.
- Drag an application from the Activities Overview to the Dock to add it.
- System Settings:
- Open Settings from the Activities Overview to adjust Wi-Fi, Bluetooth, display, sound, and other system configurations.
Part 3: Essential Terminal Commands
The Terminal is a powerful tool in Ubuntu. Here are some basic commands:
1. Navigating the Filesystem
- Change Directory:
cd <directory>- Example:
cd Documents
- Example:
- List Files:
ls- List files in a directory:
ls -l
- List files in a directory:
- Go Up One Level:
cd ..
2. File Operations
- Create a New File:
touch <file-name>- Example:
touch myfile.txt
- Example:
- Create a Directory:
mkdir <directory-name>- Example:
mkdir newfolder
- Example:
- Remove a File:
rm <file-name>- Example:
rm myfile.txt
- Example:
- Copy a File:
cp <source> <destination>- Example:
cp myfile.txt ~/Documents
- Example:
3. System Information
- Check Disk Space:
df -h - Check Memory Usage:
free -h - Check CPU Information:
lscpu
4. Managing Processes
- Check Running Processes:
toporhtop(for a more user-friendly view, install htop viasudo apt install htop). - Kill a Process:
kill <process-id>(Find the process ID usingps auxortop).
Part 4: Installing Software via PPA and Snap
Ubuntu supports multiple methods for installing software:
1. Installing Software via Snap
- Snap is a software packaging system developed by Canonical (Ubuntu’s parent company). It allows for easy installation of applications across various Linux distributions.
- Install Snap packages with:
sudo snap install <package-name>For example, to install Spotify:
sudo snap install spotify
2. Installing Software via PPA
- Personal Package Archives (PPAs) allow users to add custom software repositories for specific software.Steps:
- Add a PPA:
sudo add-apt-repository ppa:<ppa-name> - Update your system:
sudo apt update - Install the software:
sudo apt install <package-name>
Example to add LibreOffice PPA:
sudo add-apt-repository ppa:libreoffice/ppa sudo apt update sudo apt install libreoffice - Add a PPA:
Part 5: Troubleshooting and Advanced Tips
1. Fixing Broken Packages
Sometimes, package installations might fail, leaving broken packages. To fix them, run:
sudo apt --fix-broken install
2. Installing Graphics Drivers
If you’re using a dedicated graphics card (e.g., NVIDIA), you may want to install proprietary drivers for better performance:
- Go to Settings > Software & Updates > Additional Drivers.
- Select the proprietary driver (e.g., NVIDIA) and click Apply Changes.
3. Dual Booting with Windows
If you want to install Ubuntu alongside Windows, the Ubuntu installer will offer this option automatically during installation. Ensure that you create a backup of your data and sufficient partition space beforehand.
Conclusion
Ubuntu is a versatile and powerful operating system that is widely used for personal, educational, and professional purposes. With its strong community support, robust features, and ease of use, you can start using Ubuntu for daily tasks, development, and more. Whether you’re new to Linux or an experienced user, this tutorial provides a good foundation for understanding and using Ubuntu Linux efficiently.