Basic installation
-
Back everything up
-
Download Ubuntu
Note: For the best experience, download the latest LTS version
-
In most cases you’ll want to download Ubuntu
-
If you’re looking for a more lightweight alternative for an older computer you may want to instead download Xubuntu
-
-
Create the installation media
-
Copy Ubuntu/Xubuntu to a USB stick
-
Or burn Ubuntu/Xubuntu to a DVD
-
Advanced installation
-
Boot to the BIOS and disable Secure Boot
-
If it has Windows installed, boot the install media and select Try Ubuntu (instead of Install Ubuntu)
-
Open GParted, and delete all the partitions
-
Then start the install
-
-
Updates and other software
-
Select Minimal installation
-
Check Download updates while installing Ubuntu
-
Check Install third-party software for graphics and Wi-Fi hardware and additional media formats
-
-
Installation Type
-
Select Erase disk and install Ubuntu
-
To enable encryption
-
Click Advanced features
-
Select Use LVM with the new Ubuntu installation
-
Check Encrypt the new Ubuntu installation for security > OK
-
-
-
(Optional) Resize the swap partition
Ubuntu may create a swap partition of only 1 GB, which isn’t really enough if you want to use hibernate and seems a bit undersized in general
-
Once the installation has finished, click Continue Testing
-
Resize the swap partition
-
If you’re using LVM
-
Open a terminal window
-
Reduce the size of the primary partition, e.g.
(These examples will increase the swap partition to 32 GB)
sudo lvreduce --resizefs -L 32G /dev/vgubuntu/root
-
Increase the size of the swap. e.g.
sudo lvextend -L 32G /dev/vgubuntu/swap_1
-
Increase the size of the primary partition to use the remaining available free space
sudo lvextend --resizefs -l +100%FREE /dev/vgubuntu/root
-
Format the swap partition
sudo mkswap /dev/vgubuntu/swap_1
-
-
If you’re not using LVM, resize the swap partition using GParted
-
-
Reboot
-