Skip to content

Instantly share code, notes, and snippets.

@noizbuster
Last active September 7, 2023 03:49
Show Gist options
  • Save noizbuster/b5007d23d6d06d76fc2a067bfea5e881 to your computer and use it in GitHub Desktop.
Save noizbuster/b5007d23d6d06d76fc2a067bfea5e881 to your computer and use it in GitHub Desktop.
Ubuntu 22.04

update ubuntu

sudo apt update
sudo apt dist-upgrade && sudo apt autoremove && sudo apt autoclean

ubuntu-restricted-extras (when you forgot installing extra softwares)

sudo apt install ubuntu-restricted-extras

install my recommand softwares

sudo apt install zsh htop terminator gnome-tweak-tool chrome-gnome-shell -y
# if you are programmer, probably need this
sudo apt install git git-gui gitg vim meld curl -y
# if you are korean, probably need this
sudo apt install fcitx-hangul fonts-nanum-coding -y

remove unnecessary apps

  • games (like sudoku...)
  • ubuntu pro shits sudo pro config set apt_news=false
    • In case of configuration not working sudo mv /etc/apt/apt.conf.d/20apt-esm-hook.conf /etc/apt/apt.conf.d/20apt-esm-hook.conf.disabled

install language pack

  1. open language support
  2. fallow instructions
  3. (if you are korean) change input method to fcitx

install & configure oh-my-zsh

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/g' .zshrc

install nerd fonts (better than powerline fonts in terminal)

using dejavu

git clone --filter=blob:none --sparse [email protected]:ryanoasis/nerd-fonts
cd nerd-fonts
git sparse-checkout add patched-fonts/DejaVuSansMono
./install.sh DejaVuSansMono
cd ..
rm nerd-fonts -rf

install powerline fonts (if you don't want to install nerd fonts)

git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

(optional) if you want to use numix theme

sudo add-apt-repository ppa:numix/ppa
sudo apt-get install numix-gtk-theme numix-icon-theme-circle -y

and then, change theme on gnome-tweak-tools

install gnome extensions (https://extensions.gnome.org/)

configure gnome

  1. open gnome-tweak-tools
  2. change monospace font to DejaVuSansMono Nerd Font Book
  3. configure your extenstions

configure keyboard shortcuts

  • set super+e to nautilus -w

(optional, if you are korean) configure

  1. reboot
  2. open fcitx config
  3. add keyboard layout Hangul
  4. (optional) if you want, change shortcut for changing keyboard layout

configure git

git config --global core.editor vim
git config --global user.name "YOUR NAME"
git config --global user.email "[email protected]"

Extra software install for developer

Docker

https://docs.docker.com/install/linux/docker-ce/ubuntu

node.js

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash

and than, add below into end of .zshrc

# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

rust

curl https://sh.rustup.rs -sSf | sh

and update .zshrc file by following instructions

Maybe someone like this

  • discord
  • gimp
  • inkscape
  • editors
    • vscode
    • atom
    • sublime
  • postman
  • telegram sudo snap install telegram-desktop

install latest shutter

shutter only working on x11 desktop server not wayland. since ubuntu use wayland as default desktop server, shutter is not usable please condider using ksnip instead

sudo add-apt-repository ppa:linuxuprising/shutter && sudo apt install shutter -y

configure keyboard shortcut for shutter

  • shutter save screenshot active window
    • command: shutter -w
    • recommand key: alt + print
  • shutter save screenshot selected area
    • command: shutter -s
    • recommand key: shift + print

setup ksnap

installation

sudo snap install ksnip

keyboard shortcuts

  • screenshot rectangular
    • command : ksnip -r
    • shortcut : Shift + Ctrl + PrintScr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment