This guide will help you set up your Ubuntu environment with essential tools and configurations.
First, update your package list and install some essential utilities:
sudo apt update
sudo apt install git zsh build-essential curl gdebi
Download the google-chrome-stable_current_amd64.deb
package from the official Google Chrome website, then install it using gdebi
:
sudo gdebi google-chrome-stable_current_amd64.deb
To remap Caps Lock to an additional Ctrl key:
- Open Tweaks.
- Go to
Keyboard & Mouse
->Additional Layout Options
. - Select
Caps Lock behavior
->Make Caps Lock an additional Ctrl
.
Generate SSH keys and add them to the SSH agent:
ssh-keygen
ssh-agent bash
ssh-add
Add the contents of ~/.ssh/id_rsa.pub
to your GitHub account.
Install Homebrew on Linux:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> ~/.bashrc
Reload your shell:
source ~/.bashrc
Install necessary packages via Homebrew:
brew install stow tmux vim neovim git ripgrep eza zoxide bat lazygit
Clone your dotfiles repository and set up the environment:
git clone https://github.com/xukaihub/dotfiles.git ~/.local/dotfiles
cd ~/.local/dotfiles
./nerdfont.sh UbuntuMono DejaVuSansMono
./dotfiles.sh stow
Follow your terminal emulator's instructions to set the installed Nerd Fonts as the terminal font.
Change your shell to Zsh and configure it:
chsh -s $(which zsh)
zsh
Start Tmux and configure it:
tmux
Tmux plugin will be installed automatically when you start Tmux.
Open Neovim and install plugins:
nvim
Plugin will be installed automatically when you start Neovim.
Open Vim and install plugins:
\vim
:PlugInstall