Skip to content

Instantly share code, notes, and snippets.

@phanect
Last active August 15, 2025 10:33
Show Gist options
  • Save phanect/9c692396d6d7a468d189fca0b4939fa7 to your computer and use it in GitHub Desktop.
Save phanect/9c692396d6d7a468d189fca0b4939fa7 to your computer and use it in GitHub Desktop.
Personal setup instruction for my KDE neon box

1. Update and install software

sudo pkcon refresh
sudo pkcon update

# libappindicator3-1 is for Dropbox: https://help.dropbox.com/installs/dropbox-desktop-app-for-linux#Required-software-libraries
# uvccapture and guvcview are required for online meeting software such as Zoom
sudo apt install --ignore-missing \
  curl wget \
  git git-filter-repo \
  kate \
  kcalc \
  kolourpaint \
  fcitx5-mozc \
  uvccapture guvcview \
  vlc \
  clamav clamav-daemon clamtk \
  yakuake \
  libappindicator3-1 \
  language-pack-ja fonts-noto-cjk-extra

# im-config and its config file prevents fcitx5 from working with Wayland
sudo apt remove --purge im-config \
  maliit-framework maliit-keyboard \
  kwrite kdeconnect

snap install spotify

# Optional
sudo apt install --ignore-missing \
  podman \
  virt-manager libvirt-daemon-system
sudo flatpak install flathub io.podman_desktop.PodmanDesktop
sudo snap install intellij-idea-community --classic

NOTE: The source of thirdparty software from snap:

2. Manually install following software

Depends on machines

  • undefined: Radeon™ RX 580 Drivers
    • sudo apt install amdgpu libva-amdgpu-drm2 libva-amdgpu-glx2 libva-amdgpu-wayland2 libva-amdgpu-x11-2 va-amdgpu-driver-all vulkan-amdgpu wayland-protocols-amdgpu libwayland-amdgpu-bin
  • MSI: Proton VPN

Optional

3. Setup for installed software

sudo apt update
sudo apt install --fix-broken
sudo apt autoremove

sudo npm update --global

## Install npm completion
npm completion | sudo tee /etc/bash_completion.d/npm

## Allow Dropbox to watch more number of files
echo "fs.inotify.max_user_watches = 100000" | sudo tee /etc/sysctl.d/dropbox.conf

# ClamAV
systemctl enable clamav-freshclam
systemctl start clamav-freshclam
sudo systemctl enable clamav-daemon
sudo systemctl start clamav-daemon

## Git configs (system)

sudo git config --system core.autocrlf false # Don't convert line endings to CRLF
sudo git config --system core.fileMode false # Don't commit file permission change
sudo git config --system init.defaultBranch main # Set default branch name
sudo git config --system format.pretty fuller # Log format

# Set up better colorization of git diff
sudo chmod +x /usr/share/doc/git/contrib/diff-highlight/diff-highlight

sudo git config --system pager.log "/usr/share/doc/git/contrib/diff-highlight/diff-highlight | less"
sudo git config --system pager.show "/usr/share/doc/git/contrib/diff-highlight/diff-highlight | less"
sudo git config --system pager.diff "/usr/share/doc/git/contrib/diff-highlight/diff-highlight | less"

#
# Following commands should be run on each user accounts
#

## Dropbox
dropbox start -i

# SSH key
if [[ ! -f ~/.ssh/id_ed25519 ]]; then
  ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519
fi

## Git config (users)

git config --global core.autocrlf false
git config --global core.fileMode false
git config --global init.defaultBranch main
git config --global format.pretty fuller
git config --global pager.log "/usr/share/doc/git/contrib/diff-highlight/diff-highlight | less"
git config --global pager.show "/usr/share/doc/git/contrib/diff-highlight/diff-highlight | less"
git config --global pager.diff "/usr/share/doc/git/contrib/diff-highlight/diff-highlight | less"

# Login to GitHub for GitHub CLI (Run after generating SSH key)
gh auth login

# Install gh-poi: https://github.com/seachicken/gh-poi
gh extension install seachicken/gh-poi

4. Setup Git identity

git config --global user.name "John Doe"
git config --global user.email "[email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment