User Tools

Site Tools


linux

This is an old revision of the document!


nspawn

create Arch Linux container:

wget https://mirror.rackspace.com/archlinux/iso/latest/archlinux-bootstrap-x86_64.tar.zst
#setup pacman:
pacman-key --init
pacman-key --populate
#enable container:
systemctl enable systemd-nspawn@arch

create Debian container:

debootstrap --include=systemd,dbus stable /var/lib/machines/debian [mirror]

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

Workaround for generic wayland icons for GTK apps showed in taskbar on KDE 6 wayland session:

#from: https://discussion.fedoraproject.org/t/whats-with-the-wayland-icons-and-associated-apathy/40180/5

Open the app you are wanting to fix (Vivaldi, Firefox Nightly, HandBrake, etc.)
Add new kwin rule with Alt+F3 → More Actions → Configure Special Application Settings → Add Property → Desktop file name →
Enter the desktop file name without extension (e.g. chromium-browser.desktop, fr.handbrake.ghb.desktop, vivaldi-stable.desktop, etc.)
If you are using standard package, check name in “/usr/share/applications/”
if you are using flatpak package, check name in “var/lib/flatpak/exports/share/applications/”

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

no-cloud images:

https://cdimage.debian.org/cdimage/cloud/

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.1749607399.txt.gz · Last modified: by ealmr

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki