François Launet - Dunwich Horror
347 words
2 minutes
Fresh Linux Install Instructions
I wrote it long ago as a github gist, but decided to move it here.
ZSH
sudo apt install zsh -ychsh -s $(which zsh)
Oh My Zsh
SSH Key
ssh-keygen -t rsa -b 4096
Atuin
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"git config --global core.autocrlf falsegit clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsgit clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightinggit clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k- https://github.com/romkatv/powerlevel10k
Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- https://brew.sh/eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"brew install glab git-lfs eza helm elixir gh olets/tap/zsh-abbr fzf helix rbenv jenv openjdk@8 openjdk@11 go ruff just maven az jq graphviz gradle autojump uv gleam asdf jira-cli prek zig shellcheck typos-cli
kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Docker
sudo systemctl enable --now docker.servicesudo systemctl enable --now docker.socketsudo usermod -aG docker $USER
Ubuntu and deriviatives specific
sudo apt install git -ysudo apt install build-essential procps curl file git autojumpsudo ubuntu-drivers install nvidia:535
Arch and deriviatives specific
- https://aur.chaotic.cx/docs
sudo pacman -Syy firedragon slack-desktop spotify clamav zed visual-studio-code-bin gimp signal-desktop docker docker-buildx libreoffice-fresh qbittorrent vlc vlc-plugins-all discord kpat docker docker-compose docker-buildxcd $(mktemp -d) && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
Cachy specific
sudo pacman -S cachyos-gaming-meta cachyos-gaming-applications
asdf
git config --global core.autocrlf falseasdf plugin add java https://github.com/halcyon/asdf-java.gitasdf install java openjdk-11asdf set -u java openjdk-11asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.gitasdf install nodejs latestasdf set -u nodejs latestasdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.gitasdf install ruby latestasdf set -u ruby latest
Not longer used
Jenv
eval "$(jenv init -)"jenv add /home/linuxbrew/.linuxbrew/Cellar/openjdk@11/11.0.27/jenv add /home/linuxbrew/.linuxbrew/Cellar/openjdk@8/1.8.0-452/
Rbenv
RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib) --with-openssl-dir=$(brew --prefix openssl)" rbenv install 3.4.4rbenv global 3.4.4
Volta
- curl https://get.volta.sh | bash - https://volta.sh/
volta install node pnpm
WSL
- Download
Ubuntu 24.04 LTSfrom Microsoft Store Turn Windows features on or offcheckWindows Subsystem for Linux(on the bottom)
Oh My Posh - outdated I think
Install-Module oh-my-posh -Scope CurrentUsercode $PROFILEaddImport-Module oh-my-poshand (in next line)oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | Invoke-ExpressionSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted- https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf >
Double click>Install - Open Hyper → Edit → Preferences and change the value of
fontFamilytoMesloLGS NF. - With Admin privileges:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) choco install fzf- https://www.powershellgallery.com/packages/PSFzf
- to $PROFILE
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion } - https://github.com/PowerShell/PSReadLine/issues/687#issuecomment-586629500
- C:\Program Files\WindowsPowerShell\Modules\PSReadline\2.0.0
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackwardSet-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Fresh Linux Install Instructions
https://vulwsztyn.codeberg.page/posts/fresh-linux-install-instructions/