Skip to content

Instantly share code, notes, and snippets.

@rek
Last active January 4, 2023 05:42
Show Gist options
  • Save rek/296c6544e08cc8198f4e04ce68e8d7fc to your computer and use it in GitHub Desktop.
Save rek/296c6544e08cc8198f4e04ce68e8d7fc to your computer and use it in GitHub Desktop.
Things to do after installing Ubuntu

Install:

$ sudo apt-get install aptitude git guake byobu python3-pip zsh htop curl

Manual install:

$ sudo pip3 install rainbowstream
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt update && sudo apt install yarn

ZSH

Install:

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

Add completions:

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions 
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions

Get fonts:

https://github.com/romkatv/powerlevel10k#manual-font-installation

Dev config

$ git clone https://github.com/rek/devconfig.git && cd devconfig
$ mv .* ~

K8S Stuff

sudo git clone https://github.com/ahmetb/kubectx /opt/kubectx
sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx
sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens

Fix keyboard

sudo vi /usr/share/X11/xkb/symbols/pc   

and change:

key <CAPS> { [ acute ] };

key <RCTL> { [ Delete ] };

then apply:

setxkbmap -layout us

Setup Guake

Main Window ->

  • Placement: turn appear on mouse display off
  • Hide on lose focus on

Shell -> default interpreter: zsg

Scrolling -> Scrollback lines: 10000

Appearance -> Built-in schemes: homebrew

Quick open -> command line: code -g %(file_path)s:%(line_number)s

Misc

git config --global pager.branch false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment