Skip to content

Instantly share code, notes, and snippets.

@lucataco
Last active October 19, 2025 23:24
Show Gist options
  • Save lucataco/331cbad774d261b59ddd42dd2d1dc017 to your computer and use it in GitHub Desktop.
Save lucataco/331cbad774d261b59ddd42dd2d1dc017 to your computer and use it in GitHub Desktop.
Clean Ubuntu Install - Machine Learning setup
# Install Ubuntu 22.04
sudo apt-get update
sudo apt-get upgrade -y
# Install tools
sudo apt install git htop btop
# Install miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
conda update conda
# Install nvitop
conda install -c conda-forge nvitop
# Install docker
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
# Install cog
sudo curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)"
sudo chmod +x /usr/local/bin/cog
# Install zsh
sudo apt install zsh
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
cd .oh-my-zsh/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting
# Install nvm
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
nvm install --lts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment