Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Debian 12 - KDE Setup Desktop Script

I'm upgrading from Xubutu 20/22 to Debian 12 with KDE because I really don't like what Canonical are doing, especially with regards to shoving snaps down our throats, and I really like the KDE desktop. So far everything has pretty much "just worked" and I love how easy it is to configure the KDE desktop exactly how you want it.

Steps

sudo apt update \
  && sudo apt install -y \
  byobu vim curl htop nmap nload pydf ncdu sysstat sshfs trash-cli p7zip expect tcl-expect \
  command-not-found bash-completion \
  wireguard openresolv \
  xclip nfs-common openjdk-17-jdk psensor openvpn \
  thunderbird \
  aria2 axel \
  git rabbitvcs-cli \
  postgresql-client-common postgresql-client-15 mariadb-client \
  clamav clamav-daemon \
  terminator figlet \
  filezilla chromium virt-manager \
  simplescreenrecorder gimp inkscape flameshot \
  mplayer ffmpeg mpv vlc mediainfo \
  system-config-printer hplip hplip-gui


# install sass
sudo apt update \
  && sudo apt install build-essential \
  && sudo apt install -y ruby-full rubygems \
  && sudo gem install sass


# Install php 8.3
sudo apt update \
  && sudo apt install apt-transport-https \
  && sudo curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg \
  && sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' \
  && sudo apt update \
  && sudo apt install -y php8.3-cli php8.3-curl php8.3-xml php8.3-mysql php8.3-yaml composer


# Install mullvad VPN
sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc \
  && echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" \
  | sudo tee /etc/apt/sources.list.d/mullvad.list \
  && sudo apt update \
  && sudo apt install mullvad-vpn

# Install Sublime text editor
sudo curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo gpg --dearmor -o /usr/share/keyrings/sublime.gpg \
  && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/sublime.gpg] https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list \
  && sudo apt update \
  && sudo apt install sublime-text -y

Disable Trackpad Middle Mouse Pasting

I have a buttonless trackpad, and I was having all sorts of issues until I realized that I was occasionally pressing the "middle" mouse button and pasting text instead of left/right clicking. One can easily disable this.

Sublime Theme

After having done this, one may wish to refer to installing the Flatland Sublime theme.

Screenshotting

Coming from Xubuntu 22.04 where I am used to using Shutter and Ksnip, neither of these tools would work for me. I think this is because of Wayland. In the end, one can configure KDE's spectacle application how one wishes, or one can simply install and use Flameshot, which is also pretty good and I added to my script.

Modern Firefox

Debian 12 comes with Firefox ESR (extended support release) by default. To upgraded to the latest firefox, follow my tutorial: Install Firefox From APT Repository

Last updated: 10th September 2024
First published: 4th July 2024