Last active
November 2, 2025 12:50
-
-
Save izam-mohammed/3748322259e79fa8ab68d659591642c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # commands to run in ubuntu 24.04 | |
| # basic | |
| sudo apt-get update -y | |
| sudo apt-get install -y build-essential libssl-dev libffi-dev curl git | |
| # python | |
| sudo apt-get install python3-pip -y | |
| sudo apt update -y | |
| sudo apt install pipx -y | |
| pipx ensurepath | |
| pipx install poetry | |
| pipx install uv | |
| pipx ensurepath | |
| poetry --version | |
| uv --version | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
| bash ~/Miniconda3-latest-Linux-x86_64.sh | |
| source ~/.bashrc | |
| pipx install jupyterlab | |
| # node js | |
| curl -o- https://fnm.vercel.app/install | bash | |
| source /home/izam/.bashrc | |
| fnm install 22 # might change the node version | |
| node -v | |
| npm -v | |
| # zsh | |
| sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh -y | |
| chsh -s $(which zsh) | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH:-~/.oh-my-zsh}/custom/plugins/zsh-autosuggestions | |
| git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH:-~/.oh-my-zsh}/custom/plugins/zsh-syntax-highlighting | |
| git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting | |
| git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH:-~/.oh-my-zsh}/custom/plugins/zsh-autocomplete | |
| sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)/' ~/.zshrc | |
| echo 'export PATH="$HOME/.local/bin:$PATH" # If you have any bash-specific environment settings you want to keep | |
| if [ -f ~/.bashrc ]; then | |
| # Source only the export statements from bashrc | |
| grep "^export" ~/.bashrc >> ~/.zshrc | |
| fi' >> ~/.zshrc | |
| source ~/.zshrc | |
| # Nerd Fonts (needed for p10k icons to work) | |
| mkdir -p ~/.local/share/fonts && cd ~/.local/share/fonts && wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip && unzip JetBrainsMono.zip && fc-cache -fv && cd | |
| git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k | |
| echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc | |
| # docker | |
| for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
| # 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:-$VERSION_CODENAME}") stable" | \ | |
| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| sudo apt-get update | |
| sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y | |
| sudo docker run hello-world | |
| # other tools | |
| sudo apt-get update -y | |
| wget -O vscode.deb "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" && sudo apt install -y ./vscode.deb && rm vscode.deb | |
| wget -O bitwarden.deb "https://bitwarden.com/download/?app=desktop&platform=linux&variant=deb" && sudo apt install -y ./bitwarden.deb && rm bitwarden.deb | |
| code --install-extension ms-python.python | |
| code --install-extension ms-toolsai.jupyter | |
| code --install-extension eamodio.gitlens | |
| sudo apt-get install -y flatpak gnome-software-plugin-flatpak | |
| flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo | |
| sudo apt-get install vlc -y | |
| pipx install thefuck | |
| # cuda toolkit | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-ubuntu2404.pin | |
| sudo mv cuda-ubuntu2404.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
| wget https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda-repo-ubuntu2404-12-8-local_12.8.1-570.124.06-1_amd64.deb | |
| sudo dpkg -i cuda-repo-ubuntu2404-12-8-local_12.8.1-570.124.06-1_amd64.deb | |
| sudo cp /var/cuda-repo-ubuntu2404-12-8-local/cuda-*-keyring.gpg /usr/share/keyrings/ | |
| sudo apt-get update -y | |
| sudo apt-get -y install cuda-toolkit-12-8 | |
| # drivers | |
| sudo apt-get install -y nvidia-open | |
| sudo apt-get install -y cuda-drivers | |
| echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.zshrc | |
| echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> ~/.zshrc | |
| # finally | |
| sudo apt autoremove -y | |
| sudo apt clean | |
| sudo apt remove --purge thunderbird rhythmbox gnome-mahjongg gnome-mines gnome-sudoku totem simple-scan remmina -y | |
| sudo apt remove --purge $(dpkg -l | grep language-pack | grep -v en | awk '{print $2}') -y # non-english lang | |
| sudo apt remove --purge aisleriot gnome-chess five-or-more four-in-a-row gnome-klotski gnome-nibbles gnome-robots gnome-taquin tali -y # games | |
| sudo apt remove --purge cups cups-browsed cups-daemon printer-driver* system-config-printer* -y # printing related | |
| sudo apt remove --purge yelp gnome-user-docs -y # help docs | |
| sudo apt autoremove --purge -y | |
| sudo apt clean | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment