Update old tips & add a few (ETS2, ssh, MSVC, etc.)

This commit is contained in:
lhark 2019-05-28 08:55:22 -04:00
parent ec04665150
commit cf84bf998a

42
how_to
View file

@ -5,6 +5,9 @@ Usefull packages :
Image viewing : Image viewing :
feh feh
sixv Suckless image viewer sixv Suckless image viewer
Screenshots :
scrot Problems with refreshing windows
maim Better than scrot, can use GL shader with slop
Monitoring : Monitoring :
htop htop
glances System overview (top, disk, mem, ...) glances System overview (top, disk, mem, ...)
@ -12,6 +15,7 @@ Usefull packages :
Terminal : Terminal :
kitty GPU accelerated term, nicely configurable kitty GPU accelerated term, nicely configurable
st Simple Terminal, very light st Simple Terminal, very light
fbterm Framebuffer terminal, doesn't need X, unmaintained
Desktop environment : Desktop environment :
dwm Dynamic Window Manager dwm Dynamic Window Manager
dmenu dmenu
@ -19,18 +23,22 @@ Usefull packages :
sent Simple slides tool sent Simple slides tool
Misc : Misc :
eg Examples of common tools usage (think find or tar) eg Examples of common tools usage (think find or tar)
Obscure/Useful vim plugins:
better-indent-support-for-php-with-html
jedi-vim
keyboard : keyboard :
console: console:
/etc/vconsole.conf /etc/vconsole.conf
X11: X11 systemd:
sudo localectl set-x11-keymap fr sudo localectl set-x11-keymap fr
Nice environment : Nice environment :
cd ~ cd ~
git clone http://gitlab.rezometz.org/lhark/rc.git git clone http://gitlab.rezometz.org/lhark/rc.git
[git -C rc checkout v2]
rc/install.sh rc/install.sh
chsh -s /bin/zsh chsh -s </bin/zsh|/usr/bin/fish>
pacman : pacman :
-Syu Upgrade system -Syu Upgrade system
@ -492,3 +500,33 @@ Fix: Failed to activate service 'org.freedesktop.login1': timed out:
Artilinux steam lib32-systemd fix: Artilinux steam lib32-systemd fix:
https://forum.artixlinux.org/index.php/topic,633.msg7437.html https://forum.artixlinux.org/index.php/topic,633.msg7437.html
[Attached file]: resources/lib32-systemd-dummy.pkgbuild [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.)
<F4> 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 <hostname> 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]