Setting up a new computer with Ubuntu

The following have been tested on MSI Katana GF66 with i5-11400H/RTX3050 and i5-12400H/RTX3050, and MSI Aegis i7-11700K/RTX3070

Step 1: Download the image for Ubuntu 20.04.6 (ubuntu-20.04.6-desktop-amd64.iso) and create a bootable USB following the official instruction (for Mac, for Windows, for Ubuntu).

Step 1.5: (For dual boot only). Boot into windows, then use disk management → shrink volumes (you may run into the error “The Volume You Have Selected to Shrink May Be Corrupted”, to resolve it, right click on the disk → properties → Tools → Check → Scan Drive → Repair Drive → Repair now).

Step 2: Insert the bootable USB drive to the new computer. Power on the computer. If you’re using a MSI computer, press and hold the Del key to enter the BIOS manu. Set boot priority such that the computer boots from the inserted USB drive. Disable the Secure Boot support (this help avoid complications when installing GPU drivers).

Step 3: Follow the instructions to finish installing Ubuntu. Make sure you check “Install third-party software …”. If the computer has both a SSD and a mechanical drive, make sure install to the SSD.

Step 4: After Ubuntu is successfully installed, you will still boot into windows by default. To fix this, press the Delete key on booting to enter the BIOS menu, then Boot → UEFI Hard Disk Drive BBS Priorities and make Ubuntu the first option.

Step 5: If the computer has a Nvidia GPU, the GPU driver should already be installed. To check, run

nvidia-smi

The following have been tested on MSI Katana 15.6" Gaming Laptop, 144Hz FHD, Intel Core i7-13620H, NVIDIA GeForce RTX 4060 8GB, 16GB DDR5 Memory, 1TB NVMe SSD, Windows 11, Black, B13VFK-817US

Step 1 : Download the desktop image for Ubuntu 22.04 (Ubuntu 22.04.2 LTS (Jammy Jellyfish)) and create a bootable USB following the official instruction (for Mac, for Windows , for Ubuntu). Note that Ubuntu 22.04 needs to be used for MSI laptops with locked intel VMD.

Step 1.5: (For dual boot only). Boot into windows, then use disk management → shrink volumes (you can leave 100 GB to Windows).

Step 2: Insert the bootable USB drive to the new computer. Power on the computer. If you’re using a MSI computer, press and hold the Del key to enter the BIOS manu. Set boot priority such that the computer boots from the inserted USB drive. Disable the Secure Boot support (this help avoid complications when installing GPU drivers).

Step 3: Follow the instructions to finish installing Ubuntu. Make sure you check “Install third-party software …”. If the computer has both a SSD and a mechanical drive, make sure install to the SSD.

Step 4: After Ubuntu is successfully installed, you will still boot into windows by default. To fix this, press the Delete key on booting to enter the BIOS menu, then Boot → UEFI Hard Disk Drive BBS Priorities and make Ubuntu the first option.

Step 5: Set up the software environment.

wget https://raw.githubusercontent.com/hongquanli/octopi-research/master/software/setup_22.04.sh
chmod +x setup_22.04.sh
./setup_22.04.sh

Step 6: Set up CUDA.

wget https://raw.githubusercontent.com/hongquanli/octopi-research/master/software/setup_cuda_22.04.sh
chmod +x setup_cuda_22.04.sh
./setup_cuda_22.04.sh

4 posts were split to a new topic: Running the software on Windows