Skip to content

Instantly share code, notes, and snippets.

@gema-arta
Forked from lurepheonix/.bashrc
Created January 27, 2023 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gema-arta/985100b4cd92cbcaab7aec456bf39e45 to your computer and use it in GitHub Desktop.
Save gema-arta/985100b4cd92cbcaab7aec456bf39e45 to your computer and use it in GitHub Desktop.
Debian server sample configuration
# add to end of file
export PATH=/usr/lib/cargo/bin:$PATH
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
alias cat='batcat --style=plain'
alias l='exa'
alias la='exa -a'
alias ll='exa -lah'
alias ls='exa --color=auto'
# Starship
eval "$(starship init bash)"
# Tools
eval "$(zoxide init bash)"
# Install useful tools
sudo apt install bat zoxide curl httpie ncdu htop fd-find exa tldr git vim rsync pv zip unzip p7zip-full make
# install duf from https://github.com/muesli/duf/releases
# Starship
curl -sS https://starship.rs/install.sh | sh
# Time for actual development tools
sudo apt remove docker docker-engine docker.io containerd runc
sudo apt install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo usermod -aG docker USERNAME
# increase watcher limit
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
# Re-login
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment