Installing Ubuntu 26.04 from scratch for AI (Windows 11 already present)

From wiki.ferrari.mo.it
Jump to navigation Jump to search

Optimize Windows disk

Click DX on Start

Go to Disk Management

Select Windows Partition with right click

Go to properties -> tools -> optimize

This will enlarge the available part of the disk to shrink by about 20%.

Shrink

Right click on C:\ and click on shrink the volume

Download Ubuntu

Download ubuntu-26.04-desktop-amd64.iso

Use Balena Etcher (or other similar software) to mount it on a 16GB+ pendrive (an SD card reader is OK too)

Use F2 or DEL to enter BIOS, select the right drive to boot (F8)

Warning: select the right partition (free space) assigning it the "/" mountpoint and select monitor safe mode

Installation

Use mainly the default options, apart from interactive installation. This will ensure that you don't erase Windows.

Update

Do

apt update
apt upgrade

Install Nvidia drivers

apt install nvidia-utils-595-server

Ma soprattutto

ubuntu-drivers install

E successivamente

systemctl reboot -i
nvidia-smi

Install Ollama

apt install curl

curl -fssL https://ollama.com/install.sh | sh
ollama run llama3.2
ollama run qwen2.5:3b
ollama run phi4-mini
ollama run gemma4:e2b

Last operations

apt-get install nvtop

E poi

apt install grub-common
apt install libnautilus-extension4
apt-install python3-software-properties