← All writing
blog

Ubuntu - The start of an amazing journey

This guide covers transitioning from Windows to Ubuntu, beginning with setup instructions and progressing through extensive FAQs addressing common challenges.

Initial Setup

Pre-Installation Steps:

  • Allocate 200GB+ of disk space via Windows Disk Utility
  • Disable Windows fastboot to prevent filesystem conflicts
  • Create bootable USB using Etcher and Ubuntu ISO image

Partition Scheme for dual-boot systems:

  • Swap: 11 GB (primary)
  • Root (/): 75 GB (ext4, logical)
  • Boot (/boot): 1 GB (ext4, logical)
  • Home (/home): 75 GB (ext4, logical)

Package Management

Essential commands:

Terminal window
sudo apt update
sudo apt upgrade

Understanding sudo privileges before executing commands affecting system directories is crucial.

Development Tools

Sublime Text 3

Terminal window
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt update
sudo apt install sublime-text

Git

Terminal window
sudo apt install git
git config --global user.name "Your Name"
git config --global user.email "your@email.com"

Python Virtual Environments

Terminal window
sudo apt install python3-pip python3-venv
python3 -m venv myenv
source myenv/bin/activate

Docker

Terminal window
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER

System Administration

Partition Resizing

Use GParted for graphical partition management:

Terminal window
sudo apt install gparted

Network Monitoring

Terminal window
sudo apt install nethogs
sudo nethogs

exFAT USB Support

Terminal window
sudo apt install exfat-fuse exfat-utils

Multimedia

VLC

Terminal window
sudo apt install vlc

Spotify

Terminal window
curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update
sudo apt install spotify-client

Advanced Topics

CUDA Installation

Terminal window
sudo apt install nvidia-cuda-toolkit

Add to your shell profile:

Terminal window
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

WiFi Hotspot

Use create_ap for creating a WiFi hotspot from your Linux machine:

Terminal window
sudo create_ap wlan0 eth0 MyAccessPoint MyPassPhrase

This collection of solutions grew organically from real problems encountered during my early Linux days. The beauty of Linux is that every problem has a solution - you just need to know where to look.