Skip to content

Instantly share code, notes, and snippets.

@kronaemmanuel
Last active September 27, 2021 12:20
Show Gist options
  • Save kronaemmanuel/01e783b3684560ffafd5fc71025d83f2 to your computer and use it in GitHub Desktop.
Save kronaemmanuel/01e783b3684560ffafd5fc71025d83f2 to your computer and use it in GitHub Desktop.
System setup

How to setup my system

This guide is supposed to serve as a guide for me, so that I can quickly setup a system anytime I need to do so. I should probably turn all this into an shell install script so it will automatically set that up for me. Or maybe use smth like NixOS. But until I figure all that out, here are the instructions. Here I'm setting up a Pop_OS system. Even though I love the dark side of linux (Arch, manjaro, etc). I need the 'debian' stability for development.

  1. Install a Pop_OS iso image from a usb stick. I pretty much always have a bootable Pop_OS usb on hand.
  2. Download all available updates
  3. Download the following from Pop Shop:
    • Spotify
    • VSCode
    • Kitty terminal
  4. Install the snap store:
sudo apt install snapd
  1. Install Brave browser from snap store
sudo snap install brave
  1. Install zsh shell with:
sudo apt install zsh
  1. Change default shell to zsh
chsh -s $(which zsh)
  1. Install Powerlevel10k for cool looks
  2. Install Github CLI with these instructions:
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh

You'll need to do a one time auth setup. To do that run and follow the next steps.

gh auth login

Also set your Git config stuff:

git config --global user.name "Krona Emmanuel"
git config --global user.email "kronaemmanuel@gmail.com"
  1. Install z to jump around in the /builds directory
mkdir builds && cd builds
gh repo clone rupa/z

Now go to your .zshrc and put this the end if its not already there:

# Add z to jump around
. ~/builds/z/z.sh
  1. Get your dotfiles
gh repo clone kronaemmanuel/dotfiles

Also get stow to put these dotfiles to use

sudo apt install stow
  1. Fix the hissing noise in headphones by doing the following:
sudo vi /etc/modprobe.d/alsa-base.conf

After vi opens, put the following lines at the end:

# Turn off power save mode (causes hissing in headphones)
options snd-hda-intel power_save=0

The issue should be fixed on system restart, for temporary fix do this:

echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
  1. Change default terminal to kitty by going into:
sudo update-alternatives --config x-terminal-emulator

It will give an interactive prompt where you can choose your default terminal. Now Super + T will bring up kitty 14. Install neovim from snap

sudo snap install --edge nvim --classic
  1. Install vim plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  1. Install Slack from snap
sudo snap install slack --classic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment