Skip to content

Instantly share code, notes, and snippets.

@Saka7
Last active January 25, 2025 11:18
Show Gist options
  • Save Saka7/fa522bcf5424a95f7abc970c3d73e9a9 to your computer and use it in GitHub Desktop.
Save Saka7/fa522bcf5424a95f7abc970c3d73e9a9 to your computer and use it in GitHub Desktop.
Debian 12 KDE 5 Postinstall
# Debloat
sudo apt remove kwrite kwrited kmail akonadi-server juk dragonplayer k3b k3b-data k3b-i18n akregator --auto-remove -y
sudo rm -rf /etc/xdg/autostart/org.kde.discover.notifier.desktop /etc/xdg/autostart/org.kde.kdeconnect.daemon.desktop /etc/xdg/autostart/geoclue-demo-agent.desktop
# Clone dotfile
git clone https://github.com/Saka7/dotfiles.git
rm -rf ./dotfiles/.oh-my-zsh
cp -R ./dotfiles/.* ./
rm -rf ./dotfiles ./.git
# CLI applications
sudo apt install vim vifm tmux tree htop nmap curl jq feh ncdu ripgrep neofetch tig keychain btop xclip wl-clipboard -y
# Kitty Terminal
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
sudo ln -s $HOME/.local/kitty.app/bin/kitty /usr/bin/kitty
mkdir ~/.local/share/applications
cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/
cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/
sed -i "s|Icon=kitty|Icon=$(readlink -f ~)/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop
sed -i "s|Exec=kitty|Exec=$(readlink -f ~)/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop
echo 'kitty.desktop' > ~/.config/xdg-terminals.list
# Zsh
sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -y
chsh -s /bin/zsh
curl -o ~/.oh-my-zsh/themes/laconic.zsh-theme https://raw.githubusercontent.com/Saka7/laconic.zsh-theme/master/laconic.zsh-theme
git clone --depth 1 https://github.com/junegunn/fzf.git && ./fzf/install
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
# source ~/.zshrc
# NodeJS
USER=$(whoami)
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh
sudo apt install -y nodejs
mkdir ~/.npm
npm config set prefix ~/.npm
sudo mkdir -p /usr/local/n
sudo chown -R $USER /usr/local/n
sudo mkdir -p /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share
sudo chown -R $USER /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share
npm i -g n
sudo ln -sf /usr/local/n/versions/node/22.12.0/bin/node /usr/bin/node
# Vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Nerd Fonts
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts && curl -fLO https://github.com/ryanoasis/nerd-fonts/raw/HEAD/patched-fonts/DroidSansMono/DroidSansMNerdFont-Regular.otf && cd ~
# Neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo tar -C /opt -xzf nvim-linux64.tar.gz
sudo ln -s /opt/nvim-linux64/bin/nvim /usr/bin/nvim
# Docker
sudo apt-get install ca-certificates
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") 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-buildx-plugin docker-compose-plugin
sudo groupadd docker
sudo usermod -aG docker $USER
# NB
sudo curl -L https://raw.github.com/xwmx/nb/master/nb -o /usr/local/bin/nb &&
sudo chmod +x /usr/local/bin/nb &&
sudo nb completions install
# Other applications
sudo apt install vlc mpv keepassx -y
# Google chrome
curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg >> /dev/null
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt update
sudo apt install google-chrome-stable
@Saka7
Copy link
Author

Saka7 commented Jan 11, 2025

GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=3"
GRUB_CMDLINE_LINUX=""

@Saka7
Copy link
Author

Saka7 commented Jan 25, 2025

Replace pulseaudio with pipewire

apt-get install pipewire pipewire-audio pipewire-pulse wireplumber libspa-0.2-bluetooth

systemctl --user --now enable wireplumber.service
systemctl --user --now enable pipewire
systemctl --user --now enable pipewire-pulse

systemctl --user status pipewire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment