# How do I install Ubuntu on a new machine?

**Published:** February 16, 2021
**Tags:** Shell


---

Viet-Anh maintains this note as an instruction to install Ubuntu on a new machine and setup development environment as fast as possible. This note contains my autonomous scripts, and instructions to install necessary packages that I often use.

- **Supported Ubuntu versions:** 20.04 -> 24.04. These instructions may work with other versions too.

## Install most packages using a script

Below is my script to quickly install my environment with popular packages. You can copy and modify it a little to fit yours. You can save this script as `install_ubuntu_packages.sh` and use command `sh install_ubuntu_packages.sh` to install these packages.

## Setup other packages

- Cursor AI IDE: [https://gist.github.com/vietanhdev/ebe561753d32b76730a880f8a5018227](https://gist.github.com/vietanhdev/ebe561753d32b76730a880f8a5018227).
- Fira Code - my favorite font for VS Code [/notes/installation/install-firacode-fonts](/notes/installation/install-firacode-fonts).
- ZSH - my favorite shell: [/notes/installation/zsh-on-ubuntu](/notes/installation/zsh-on-ubuntu).

