Install Linux Ubuntu 24.04 with the most useful tools
Notes on standard Ubuntu 24.04 install sequence
Here is my favorite set of steps when doing fresh install of the Ubuntu 24.04. What I like here - not need to install NVidia drivers! they are installed automagically.
Ubuntu 24.04
After downloading ubuntu from usual place and installing usual way, keeping root / partition separately from /home, the time has come to install some extra useful tools and packages.
That’s an image (see it there), so don’t click too much on that play button!
Installing second or third distro
In rare cases - if you are installing second or third distro on the same sdd/hdd, your GRUB might not be updated, and it loads into previously installed and perfectly working distro, you might need to edit the GRUB.
To update GRUB run
sudo update-grub If you need to add GRUB menu item manually - execute command like:
sudo grub-install /dev/nvme0n1 Useful tools
To use ifconfig tool install net-tools:
sudo apt install net-tools Then standard set of my favorite linux tools, like I did before:
sudo apt-get install git git-lfs gimp mc flameshot htop nvtop chkservice nvitop sudo apt-get install imagemagick git lfs install sudo apt-get install poppler-utils sudo apt-get install jq jo Install Go development environment
Install from package repo
sudo apt-cache policy golang-go sudo apt-get install golang-go # sudo apt-get remove golang-go go version Can install Go with snap
sudo snap install go #sudo snap remove go go version Install Hugo - Static website generator
This hugo package might be old, first let’s have a look. In this version deploy is not supported
sudo apt list -a hugo # If you like it, install sudo apt install hugo hugo version Another option - snap, but still, deploy is not supported, though you might not need it…
# Standard sudo snap install hugo hugo version sudo snap remove hugo # Extended sudo snap install hugo --channel=extended hugo version sudo snap remove hugo Download and compile hugo with go to get most recent extended and withdeploy version
git clone https://github.com/gohugoio/hugo.git cd hugo go install -tags extended,withdeploy hugo version see more https://gohugo.io/installation/linux/
AWS Command Line: aws-cli
Without further ado lets install aws-cli with snap
snap install aws-cli --classic aws --version Nice editor GEdit
sudo apt-get install gedit Install Ollama
Our standard way to install ollama:
curl -fsSL https://ollama.com/install.sh | sh A bit more documentation see here: How to configure ollama models location, and see also the Ollama cheatsheet.
My proper way to install Docker
Uninstall existing docker version:
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done Install Docker using the aptitude repository
# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update if you use ubuntu deriviatives you need to use UBUNTU_CODENAME instead VERSION_CODENAME, like
# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$UBUNTU_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update Install the docker latest version:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin Verify docker installation
sudo docker run hello-world Optionally, add current user to docker group
usermod -aG docker $USER AppImages
To be able to run AppImages install libfuse
# dlopen(): error loading libfuse.so.2 # AppImages require FUSE to run. sudo apt install libfuse2t64 Installing VSCode
Extensions: Container Tools, Dart, Flutter, Go, Python
After installed flutter sdk, add it’s to path:
echo 'export PATH="$HOME/App/flutter/bin:$PATH"' >> ~/.bash_profile To debug and compile flutter apps install the cmake and other packages, see the detailed instructions on how to install flutter development environment: Install Flutter
Installing Cursor IDE
Some AI Coding Assistants Comparison…
Ubuntu 24.04 has troubles running AppImages… you need to run it specifically like
./Cursor-1.1.6-x86_64.AppImage --no-sandbox Linux Mint works fine without all that sh… just chmod +X Cursor-1.1.6-x86_64.AppImage and execute it…
Anyway, here we are on Ubuntu 24.04!
-
Download from cursor website and put it to ~/Apps dir:
~/Apps/Cursor-1.1.6-x86_64.AppImage -
Find some icon:
wget https://registry.npmmirror.com/@lobehub/icons-static-png/latest/files/dark/cursor.png -O ~/Apps/icons/cursor.png - Create file
cursor.desktop
gedit ~/.local/share/applications/cursor.desktop Put there:
[Desktop Entry] Name=Cursor IDE Comment=Cursor AI IDE Exec=/home/rg/Apps/Cursor-1.1.6-x86_64.AppImage --no-sandbox %U Icon=/home/rg/Apps/icons/cursor.png Terminal=false Type=Application Categories=Development;IDE; StartupWMClass=cursor Yes, your home folder might not be the /home/rg at all, but rather something completely different.
Python package manager: uv
See more details about uv: uv - New Python Package, Project, and Environment Manager
curl -LsSf https://astral.sh/uv/install.sh | sh you will see something like
downloading uv 0.7.17 x86_64-unknown-linux-gnu no checksums to verify installing to /home/rg/.local/bin uv uvx everything's installed! To add $HOME/.local/bin to your PATH, either restart your shell or run: source $HOME/.local/bin/env (sh, bash, zsh) source $HOME/.local/bin/env.fish (fish) ok. running:
source $HOME/.local/bin/env # check if all's ok uv Or can skip all this nonesense and just use snap
sudo snap install astral-uv AWS SAM
Installing aws-sam how instructed in official documentation
wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip unzip aws-sam-cli-linux-x86_64.zip -d sam-installation sudo ./sam-installation/install sam --version After installation we should see
SAM CLI now collects telemetry to better understand customer needs. You can OPT OUT and disable telemetry collection by setting the environment variable SAM_CLI_TELEMETRY=0 in your shell. Thanks for your help! Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html OK… now opting out of sam telemetry:
echo 'export SAM_CLI_TELEMETRY=0' >> ~/.bash_profile Install VistualBox
- Ininstall Aptitude’s VirtualBox
sudo apt purge virtualbox virtualbox-dkms virtualbox-ext-pack virtualbox-qt -
Download the official .deb from the VirtualBox website: https://www.virtualbox.org/wiki/Linux_Downloads, particularly, this version: https://download.virtualbox.org/virtualbox/7.1.10/virtualbox-7.1_7.1.10-169112~Ubuntu~noble_amd64.deb
-
A bit of cleanup and fresh install
sudo apt autoremove sudo apt install ~/Downloads/virtualbox-7.1_7.1.10-169112~Ubuntu~noble_amd64.deb Have a great day!