Skip to content

Ashmin-Bhujel/my-ubuntu-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

💻 My Ubuntu Setup

Install Ubuntu

  • Make a bootable drive
  • Boot with the drive
  • Install Ubuntu with appropriate configurations

Update The Packages

# Update packages
sudo apt update
sudo apt upgrade
sudo apt install nala git -y
sudo nala full-upgrade

Update Snap Store

# Update Snap Store
sudo snap refresh snap-store

Uninstall snap version of Firefox browser

Install necessary packages

# Install essential packages
sudo nala install curl wget git git-flow build-essential net-tools gnome-tweaks gnome-shell-extension-manager btop gdb ubuntu-restricted-extras vlc libgtop2-dev -y

Install Fastfetch

# Install fastfetch
sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
sudo nala update
sudo nala install fastfetch

Install Ghostty Terminal

# Download Ghostty terminal
source /etc/os-release
GHOSTTY_DEB_URL=$(curl -s https://api.github.com/repos/mkasberg/ghostty-ubuntu/releases/latest | grep -oP "https://github.com/mkasberg/ghostty-ubuntu/releases/download/[^\s/]+/ghostty_[^\s/_]+_amd64_${VERSION_ID}.deb")
GHOSTTY_DEB_FILE=$(basename "$GHOSTTY_DEB_URL")
curl -LO "$GHOSTTY_DEB_URL"

Install the .deb setup file

Setup the config for ghostty at ~/.config/ghostty/config

See the precedence of terminal apps

sudo update-alternatives --config x-terminal-emulator

Setup Zsh and Oh My Zsh

  1. Install Zsh

    # Install zsh
    sudo nala install zsh
    chsh -s $(which zsh)

    Restart terminal

  2. Setup Oh My Zsh

    # Setup Oh My Zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  3. Add zsh-sytax-highlighting plugin

    # Install syntax highlighting plugin
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

    Add zsh-syntax-highlighting in plugins list in .zshrc file

  4. Install Powerlevel10k theme for OhMyZsh

    Install Nerd Font for symbols e.g. JetBrainsMono Nerd Font

    # Install powerlevel10k theme
    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

    change theme to powerlevel10k/powerlevel10k in .zshrc file

Setup Ubuntu's look and feel

NOTE: My personal configurations

  1. Tweak system settings and configure I/O sound using alsamixer

  2. Install fonts such as JetBrainsMono Nerd Font and Nepali fonts

  3. Gnome extensions

    • Appindicator and KStausNotifierItem Support - [ 3v1n0 ] (Disable System Appindicator First)
    • Apps Menu - [ fmuellner ]
    • Blur my Shell - [ aunetx ]
      • Default pipeline - NGB { R: 0, B: 1 }
      • Overview pipeline - NGB { R: 40, B: 0.2 }
      • Transparent pipeline - No Effects
      • Panel - Static, Transparent, Disable in overview
      • Overview - Overview, Transparent, Sigma: 100, B: 0.6, Folder: Transparent
      • Dash - Off
      • Application - Off
      • Other - LSB(Overview pipeline), SCB (Overview pipeline), Alt-Tab (Default pipeline)
    • Clipboard Indicator - [ Tudmotu ]
    • Logo Menu - [ Aryan Kausik ]
      • Extension Manager
      • Software Center: snap-store
    • Places Status Indicator - [ fmuellner ]
    • [QSTweak] Quick Setting Tweaker - [ qwreey ] - Mostly options on except JS Regex
    • System Monitor - [ fmuellner ]
    • Ubuntu Dock
      • Icon Size: 32
      • Behaviour - { CA: Focus, minimize or show preview, SA: Cycle through windows }
      • Appearance - { Indicator: Dots (Dominant color), Dynamic: 0 to 100 }

Install Web Browser

  • Brave browser

    # Install Brave browser
    curl -fsS https://dl.brave.com/install.sh | sh
    • Setup Brave browser
    • Import Bookmarks
    • Extensions
      • Color Picker - Eyedropper Tool
      • CSS Peeper
      • Dark Reader
      • GoFullPage - Full Page Screen Capture
      • JSON Formatter
      • React Developer Tools
      • VisBug
      • Wappalyzer
      • WhatFont
      • Material Icons for GitHub

Login to Gnome with Google account

Install other GUI apps

  • Spotify Music Player

    # Install Spotify
    curl -sS https://download.spotify.com/debian/pubkey_C85668DF69375001.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
    echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
    sudo nala update
    sudo nala install spotify-client
  • OBS Studio

    # Install OBS Studio
    sudo add-apt-repository ppa:obsproject/obs-studio
    sudo nala update
    sudo nala install ffmpeg obs-studio

Install development tools

  • Setup Git and GitHub

    • Git config

      git config --global user.name "Your Name"
      git config --global user.email "Your Email"
      git config --global init.defaultBranch "main"
    • Setup SSH key

      ssh-keygen

      Copy the public key from .ssh/ directory

      Go to GitHub > Settings > SSH and GPG Keys then add the generated SSH key

      Check the connection by ssh -T git@github

  • VS Code

    Download and install the .deb setup file

    Login to GitHub account and setup VS Code

  • Tmux

    # Install Tmux
    sudo nala install tmux
    git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm

    Setup the config for tmux at ~/.config/tmux/tmux.config

  • Neovim

    # Install Neovim
    sudo add-apt-repository ppa:neovim-ppa/unstable -y
    sudo nala update
    sudo nala install make gcc ripgrep unzip git xclip neovim
    git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim

    Start Neovim

    Setup the config for neovim at ~/.config/nvim

    Enable neo-tree, nerdfont, tabstop = 2, shiftwidth = 2, lsp

  • NodeJS

    # Install NodeJS
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
    nvm install --lts
  • DenoJS (Oprional)

    # Install DenoJS
    curl -fsSL https://deno.land/install.sh | sh
  • PNPM (Oprional)

    # Install PNPM
    curl -fsSL https://get.pnpm.io/install.sh | sh -
  • Python

    sudo nala install python3-full python3-pip python3-venv
  • Docker (Oprional)

    # Add Docker's official GPG key
    sudo nala update
    sudo nala 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
    
    # Install packages
    sudo nala update
    sudo nala install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
    # Download Docker Desktop
    wget https://desktop.docker.com/linux/main/amd64/docker-desktop-amd64.deb

    Install the .deb setup file

Releases

No releases published

Packages

No packages published

Languages