From cf84bf998a8f166e542b7e49c0c5b546c180ce31 Mon Sep 17 00:00:00 2001 From: lhark Date: Tue, 28 May 2019 08:55:22 -0400 Subject: [PATCH] Update old tips & add a few (ETS2, ssh, MSVC, etc.) --- how_to | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/how_to b/how_to index c816c24..498e7ac 100644 --- a/how_to +++ b/how_to @@ -5,6 +5,9 @@ Usefull packages : Image viewing : feh sixv Suckless image viewer + Screenshots : + scrot Problems with refreshing windows + maim Better than scrot, can use GL shader with slop Monitoring : htop glances System overview (top, disk, mem, ...) @@ -12,6 +15,7 @@ Usefull packages : Terminal : kitty GPU accelerated term, nicely configurable st Simple Terminal, very light + fbterm Framebuffer terminal, doesn't need X, unmaintained Desktop environment : dwm Dynamic Window Manager dmenu @@ -19,18 +23,22 @@ Usefull packages : sent Simple slides tool Misc : eg Examples of common tools usage (think find or tar) + Obscure/Useful vim plugins: + better-indent-support-for-php-with-html + jedi-vim keyboard : console: /etc/vconsole.conf - X11: + X11 systemd: sudo localectl set-x11-keymap fr Nice environment : cd ~ git clone http://gitlab.rezometz.org/lhark/rc.git + [git -C rc checkout v2] rc/install.sh - chsh -s /bin/zsh + chsh -s pacman : -Syu Upgrade system @@ -492,3 +500,33 @@ Fix: Failed to activate service 'org.freedesktop.login1': timed out: Artilinux steam lib32-systemd fix: https://forum.artixlinux.org/index.php/topic,633.msg7437.html [Attached file]: resources/lib32-systemd-dummy.pkgbuild + +LibreOffice unlock write-protected doc: + Format -> Sections... -> [Uncheck Protect in "Write protection"] + +Euro truck simulator 2: + Enable additional beams (roof, bumper, etc.) + then tick "Roof" and "Aux" + Run ETS2Studio under wine + winetricks dotnet45 + Confirmed to work on a 32 bits prefix, untested on 64 + +SSH, get machine fingerprints: + Local + find /etc/ssh/ -name "ssh_host_*.pub" -exec ssh-keygen -lf '{}' \; + Remote + ssh-keyscan 2>/dev/null | ssh-keygen -lf /dev/stdin + +Run MSVC on linux with Wine: + As seen on the internet, not tested: + https://hackernoon.com/a-c-hello-world-and-a-glass-of-wine-oh-my-263434c0b8ad + Also this docker atrocity: + https://github.com/mstorsjo/msvc-wine + /!\ You need to get the original files from a windows machine/VM + +Simple python HTTP server: + Supports --help option + python3: + python -m http.server [port] + python2: + python -m SimpleHTTPServer [port]