This note is about the problems that I met while using Debian. Below is the problems.
Add the user foo to the sudo group
# Login as root user.
$ su
# Install sudo if need.
$ apt-get install sudo
# Add the user foo to the sudo group.
$ adduser foo sudo
# Or edit /etc/sudoers
# User privilege specification
root ALL=(ALL:ALL) ALL
chun ALL=(ALL:ALL) ALL
Ctrl + Alt + T Open Terminal With Shortcut as in Ubuntu
Applications -> System Tools -> Preferences -> System Settings -> Keyboard -> Shortcuts.
Add shortcut with command gnome-terminal.
Set shortcut Ctrl + Alt + T.
Theme for XCFE
https://www.xfce-look.org/
Appearance Style
Dracula
Icons
Zafiro-icons
Fonts
Ubuntu JetBrains Mono
Window Manager Style
Sweet-mars
Windows Manager Tweaks
Uncheck Enable display compositing
to make typing faster, particularly in hyper.is
Cursor
Material light cursors
Install latest Java
Download the latest version Java from official site.
# Install with command line.
$ sudo update-alternatives --install /usr/bin/java java /home/chun/Development/java/jdk/bin/java 1
$ sudo update-alternatives --install /usr/bin/javac javac /home/chun/Development/java/jdk/bin/javac 1
$ sudo update-alternatives --install /usr/bin/javaws javaws /home/chun/Development/java/jdk/bin/javaws 1
# Configure with command line.
$ sudo update-alternatives --config java
Then choose the one you have installed.
System Locale Configuration
# Check the locale with the command below.
$ locale -a
# Reconfigure the locales.
$ sudo dpkg-reconfigure locales
Select the locales you prefer.
Fix Chrome Character Encoding Problem
# Install font wqy-zenhei.
$ sudo apt install ttf-wqy-zenhei
Input Method
Install Google Pinyin / Sogou Pinyin
$ sudo apt install fcitx fcitx-bin
$ sudo apt install fcitx-googlepinyin
$ im-config
NOTE! Remove iBus first.
Download sogou pinyin from official site and install
$ sudo dpkg -i sogou-*.deb
$ sudo apt install -f
Use sogou-qimpanel
to detect errors
$ sudo apt install libqt4-declarative
Add Norwegian layout
Instead of adding Norwegian layout in Keyboard, add it in fcitx config
Configure settings
Global Config -> Show Advanced Options ->
- Enable Hotkey to scroll Between Input Method
- Scroll between Input Method
- Include Inactivate when scrolling between Input Method
Install Infinality for Font Rendering
$ sudo vim /etc/apt/sources.list
# Add source
# deb http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E985B27B
$ sudo apt-get update
$ sudo apt-get install fontconfig-infinality
$ sudo bash /etc/fonts/infinality/infctl.sh setstyle
Install VMware Tools
# Install gcc first.
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential
# Install linux-headers then.
$ sudo apt-get install linux-headers-3.2.0-4-amd64
# Failed to start vmware-tools.service: Unknown unit: vmware-tools.service
$ sudo perl /usr/bin/vmware-config-tools.pl --skip-stop-start
Auto login
# sudo vim /etc/lightdm/lightdm.conf
[Seat:*]
autologin-user=chun
autologin-user-timeout=0
Install vsftpd
# Install vsftpd
$ sudo apt-get install vsftpd
# Configure vsftpd
local_enable=YES
local_root=/home
pam_service_name=ftp
Use filezilla on client then.
Schedule work
Configure the schedule
$ crontab -e
* * * * * bash /home/chun/example.sh
`minute hour date month year`
command with full absolute path
Vim
Avoid vim freeze
Add to .profile
stty -ixon
Copy via ssh
Host myhost
ForwardX11 yes
ForwardX11Trusted yes
Shortcut
Alt + Shift = Next Group
Comment out XKBOPTIONS
in /etc/default/keyboard
# XKBOPTIONS="grp:alt_shift_toggle,terminate:ctrl_alt_b ksp,grp_led:scroll"
Ctrl + Shift + E not working in VS Code
export GTK_IM_MODULE="xim"
Ctrl + Alt + S not working in Intellij
Remove shortcut in input method
Extra key for trigger input method
Set to disabled
Super + D
Show desktop
Super + Up / Super + Down / Super + Left / Super + Right
Move window up/down/left/right
Tools
neofetch
Show system info when launching terminal
Put neofetch before instant prompt config in .zshrc
flameshot
Screenshot tool
Add command flameshot gui
to shortcut Alt + A
Wine
# Add `deb http://deb.debian.org/debian buster-backports main` to `/etc/apt/source-list`
$ sudo apt update
$ sudo apt-get install --install-recommends winehq-stable
$ export WINEARCH=win32
$ export WINEPREFIX=~/.wine32
$ winecfg
Then google Chinese font wine
Personal settings
Keyboard speed
Repeat delay 480 Repeat speed 48
竟然无法拒绝你的打赏