Skip to content

Instantly share code, notes, and snippets.

@phanect
Last active November 4, 2024 13:43
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

sudo apt install --ignore-missing \
  apt-transport-https \
  curl \
  git \
  git-filter-repo \
  kate \
  kcalc \
  kolourpaint \
  fcitx5-mozc \
  uvccapture guvcview \
  vlc \
  wget \
  whois \
  yakuake \
  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
sudo apt remove --purge kwrite maliit-framework maliit-keyboard

snap install spotify

# TODO also install `clamav`

NOTE: The source of thirdparty software from snap:

2. Manually install following software

undefined machine only

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

## 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]"

5. Other manual configurations

Fonts

(TODO: Write an automation script)

https://github.com/yuru7/udev-gothic

  1. Download UDEVGothic_v*.zip (Without NF in the file name) from its Release page
  2. Extract zip and install UDEVGothicJPDOC-*.ttf (With JPDOC and without 35 & LG in the file name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment