User Tools

Site Tools


linux

This is an old revision of the document!


nspawn

download arch linux container:

wget https://mirror.rackspace.com/archlinux/iso/latest/archlinux-bootstrap-x86_64.tar.zst

virt-manager

enable Debian guest serial console:

systemctl enable --now [email protected]

Wine

enable CJK fonts:

ch_font.reg:

REGEDIT4
 
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="PingFang.ttc"
"Microsoft Sans Serif"="PingFang.ttc"
"MS Sans Serif"="PingFang.ttc"
"Tahoma"="PingFang.ttc"
"Tahoma Bold"="PingFang.ttc"
"SimSun"="PingFang.ttc"
"Arial"="PingFang.ttc"
"Arial Black"="PingFang.ttc"

Arch Linux

makepkg

Download PKGBUILD of a package:

asp export pkg-name

install dependency and extract its source code:

makepkg -so

create package of modified source code:

makepkg -ei

KDE tweaks

Scroll slow in KDE apps:

#https://forum.manjaro.org/t/kde-dashboard-scrolls-very-slowly/10050
#https://plus.google.com/+Micha%C5%82VonFlyneeofficial/posts/4pc5pUtMkRw
pacman -Rdd xf86-input-libinput

Desktop disable cursor bouncing while launch new application:

System Settings -> Applications -> Launch Feedback

Desktop double click to start application:

System Settings -> Input Devices -> Mouse

disable transparent while dragging windows:

System Settings -> Desktop Effects -> Translucency

window switcher(Alt+Tab) style:

System Settings -> Task Switcher -> Visualization -> Thumbnail Grid

alt + left click to resize window:

System Settings -> Window Behavior -> Window Actions

gnome-terminal full screen workaround:

https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/880734

meta key start Application Launcher(KDE Plasma 5.11.5):

https://askubuntu.com/a/961407

Fcitx

fcitx
fcitx-configtool
fcitx-gtk2
fcitx-gtk3
fcitx-libpinyin
fcitx-qt4
fcitx-qt5
fcitx-sogoupinyin
fcitx5-git

for SDDM, LightDM, `cat > ~/.xprofile`:

 export GTK_IM_MODULE=fcitx
 export QT_IM_MODULE=fcitx
 export XMODIFIERS=@im=fcitx

Debian

time:

# set /etc/adjtime to UTC when your hardware clock is UTC time, LOCAL to current zone time
hwclock --show #show hardware clock
date -R #show time
tzselect
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 
cat /etc/adjtime
#0.000000 1528473643 0.000000
#1528473643
#UTC

Command

cat ~/.ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
linux.1730702727.txt.gz · Last modified: by A User Not Logged in

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki