Collection of different small How To articles¶
This is a small and incomplete collection of some Problems I had to fix, to keep them if I may need them again.
Synology Diskstation Mount¶
If you use it as CIFS share for local applications a s I do to store callibre ebooks on Diskstation for the best performance and to make it work do:
- mount it with
nobrloption to disable byte-range-lock (otherwise calibre can not properly write) - disable trash for the share, because this will take most of the performance while calibre adds books
- disable indexing (if activated) for the share while uploading a whole library
Tunnel Git through socks proxy¶
# open tunnel
ssh -D 1337 -q -C -N alinex@peacock.uberspace.de # Ctrl-C to stop
# use tunnel for git
git config --global http.proxy 'socks5://127.0.0.1:1337'
# remove tunnel from git
git config --global --unset http.proxy
Touch click events not working after suspend¶
Create a script which is called on resume event under /etc/pm/sleep.d/0000trackpad:
#!/bin/sh
case "$1" in
resume)
DISPLAY=:0.0 su <USER> -c '/usr/bin/synclient TouchpadOff=0' ;;
esac
Last update: November 21, 2021