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:
- Google Chrome
- Node.js (from Nodesource repo)
- VirtualBox
- Dropbox
- Slack
- Zoom
- Docker & Docker Desktop
- Zed
- VisualStudio Code
- GitHub Desktop
- GitHub CLI
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
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
(TODO: Write an automation script)
https://github.com/yuru7/udev-gothic
- Download UDEVGothic_v*.zip (Without
NF
in the file name) from its Release page - Extract zip and install UDEVGothicJPDOC-*.ttf (With
JPDOC
and without35
&LG
in the file name)