Skip to content

Instantly share code, notes, and snippets.

@KevCaz
Last active July 2, 2023 21:34
Show Gist options
  • Save KevCaz/8c4074549d460c3f4cab168b3f6c63ab to your computer and use it in GitHub Desktop.
Save KevCaz/8c4074549d460c3f4cab168b3f6c63ab to your computer and use it in GitHub Desktop.
My debian bookworm setup
# Debian bookworm setup
## 4th version of my Debian install on my Lenovo T470p
## This time I kept it "light" it includes the tools I used the most.
## Note that much software was already installed with the way I did the
## installation (e.g. sudo, ssh, git, python, inkscape, libreoffice, etc.)
# configure sudo
su
echo "kc ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
exit
# wifi
## I first edited my source list and added the component non-free to
## be able to use the wifi on my Lenovo
sudo apt update && sudo apt install firmware-iwlwifi
# package I frequently used
sudo apt install \
arp-scan byobu curl duf emacs gpick htop inxi pass ssh zsh \
fonts-firacode fonts-powerline \
python3-pip docker.io docker-compose youtube-dl hunspell hunspell-fr \
calibre hugo nextcloud-desktop pandoc taskwarrior thunderbird vlc xournal
# flatpak (https://flatpak.org/)
sudo apt-get install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y flathub \
com.discordapp.Discord com.slack.Slack us.zoom.Zoom org.zotero.Zotero \
com.google.Chrome org.musicbrainz.Picard
# R + R packages
sudo apt install r-base r-base-dev r-recommended \
r-cran-littler r-cran-docopt r-cran-rmarkdown \
r-cran-tidyverse r-cran-devtools r-cran-dbi r-cran-shiny \
r-cran-sf r-cran-stars r-cran-terra
# Python packages
pip3 install --user numpy scipy matplotlib bpython radian \
pandoc-fignos pandoc-tablenos pandoc-eqnos
# git
git config --global credential.helper 'cache --timeout=20000'
git config --global init.defaultBranch main
git config --global user.name 'Kevin Cazelles'
git config --global user.email kevin.cazelles@gmail.com
git config --global core.editor nano
git config --global pull.rebase true
git config --global github.user KevCaz
## NB add signing key https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key
# gh cli (https://github.com/cli/cli)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/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
# julia (https://github.com/JuliaLang/julia)
mkdir ~/Apps && cd ~/Apps \
git clone https://github.com/JuliaLang/julia.git julialang
cd julialang && git checkout v1.8.5 && make
echo 'using Pkg
Pkg.add(
["Parameters", "RecursiveArrayTools", "Statistics", "Optim", "DifferentialEquations", "PyPlot", "ColorSchemes", "LaTeXStrings",
"DataFrames", "FileIO", "ForwardDiff", "JLD", "JLD2", "CSV", "NLsolve"]
)' >> install.jl && ./julia install.jl && rm install.jl
cd ~
# Pastel
wget "https://github.com/sharkdp/pastel/releases/download/v0.8.1/pastel_0.8.1_amd64.deb"
sudo dpkg -i pastel_0.8.1_amd64.deb && rm pastel_0.8.1_amd64.deb
# Prezto (https://github.com/sorin-ionescu/prezto)
zsh
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
chsh -s /bin/zsh
# Other configuration steps
## Add dotfiles
## Add terminals and code editor themes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment