10/23/2020
feh autoscale
$ feh --scale-down --auto-zoom
8/13/2020
ST (Simple Terminal - Suckless) install error
To compile st this will probably help:
$ sudo apt install libxft-dev libx11-dev
First try ended with errors:
x.c:11:10: fatal error: X11/Xatom.h:
x.c:15:10: fatal error: X11/Xft/Xft.h:
After installing these packets compiling worked like a charm.
6/08/2020
xfce4 - whisker menu - super left - xcape ksuperkey - arm
To use the left win buton to open Whisker Menu in XFCE4 and for keyboard shortcuts.
In keyboard settings change Alt+F1 to "xfce4-popup-whiskermenu"
With ksuperkey (wrapper for xcape):
yay -S ksuperkey
put in autostart:
ksuperkey
For arm ksuperkey is not available,
so take xcape:
sudo pacman -S xcape
put in autostart:
xcape -e 'Super_L=Alt_L|F1'
4/03/2020
BSD fzf ranger
I use the way described here:
Find and Locate using Fuzzy Finder (fzf)
But there is no mlocate package installable in BSD!
To use mlocate in BSD:
mlocate gets weekly updated as shown in /etc/defaults/periodic.conf
weekly_locate_enable="YES"
To rebuild locate database:
# /etc/periodic/weekly/310.locate
2/08/2020
Ranger - The file manager - cli
Is like handling "Finder" in OSX, just much better!
Works great in st (sterm, stterm) and in urxvt.
I encountered some problems in xfce4-terminal and konsole with previewing images - some image fragments stay.
Update: previewing images works well with ueberzug instead of w3m.
For people that are used to work with vim it will be easy to use ranger.
It previews all sort of files, plays them as well, opens files in x-apps ...
there are lot of possibilities to extend and configure ranger, for example search with fzf:
https://github.com/gotbletu/shownotes/blob/master/ranger_file_locate_fzf.md
or
https://github.com/alexanderjeurissen/ranger_devicons
that brings nerdfonts to ranger
For those who own .dsf-files (SACD), ranger can preview them with mediainfo and play with mpv (where you can specify a certain audio output in ranger's config files).
I experienced some problems with the yank-commands in ranger so make sure you got xsel or xclip installed.
Quick start:
Ranger is available in your repositories so just install it with your
favourite software manager (check dependencies and recommendations!).
then open up a terminal (CTRL+ALT+T) and do:
$ ranger --copy-config all
$ cd ~/.config/ranger
$ ls
Now you see all your config files.
commands.py - here go commands like fzf, compress
rc.conf - here you do basic configuration like color, borders, preview, shortcuts
rifle.conf - specify the software used to open files
scope.sh - how you preview files
Once you did:
$ ranger
type in ? to get a overview about commands, key-bindings, man-page and settings
Now in ranger press Tab so you can see invisible files, go to /.config/ranger (middle column is the one you're in), press m, then r - et voila, got you first bookmark.
To call bookmarks press ' and choose the letter you gave it before. You'll get a menu for that.
Moving is easy - cursor keys or, typical for the "vi-world" use hjkl
preview a file - press i
open a file - press right or enter
on a directory press dc - shows total foldersize
MediathekView - get the AppImage
https://download.mediathekview.de/stabil/MediathekView-latest-linux.AppImage
and made it work with ORF
https://forum.mediathekview.de/topic/1602/probleme-beim-download-und-abspielen-von-orf-sendungen/4
Problems solved!
2/03/2020
Linux - autofs nfs
To get easy access to nfs shared folders install autofs:
Server:
$ sudo pacman -S nfs-utils
Edit /etc/exports to add a share:
in a new line type something like
/folder/to/share 192.168.1.0/24(async,rw,no_subtree_check)
or extended like:
/srv/nfs 192.168.1.0/24(rw,sync,crossmnt,fsid=0)
/srv/nfs/music 192.168.1.0/24(rw,sync)
/srv/nfs/home 192.168.1.0/24(rw,sync,nohide)
when finished do:
$ systemctl enable nfs-server.service
$ systemctl start nfs-server.service
Client:
$ sudo pacman -S autofs nfs-utils
Edit /etc/autofs/auto.master (Arch Linux) - otherwise it's /etc/auto.master:
$ sudo nano /etc/autofs/auto.master
look for the line starting with
#net
make it:
/net -hosts --timeout=60
Note on /net and /smb:
These two default configurations may be useful for your set-up.
If you have a lot of NFS or Samba shares, you may want to uncomment these lines. /net enables auto-mounting of file systems elsewhere on the network which are exported by NFS.
For example, if you have a server named fileserver with an NFS export directory called /export, you can mount it by typing in a shell command line cd /net/fileserver/export.
In an environment with NFS file servers, such a configuration can be useful.
/smb functions the same way but is for Samba file systems.
However, if you need to authenticate before accessing the Samba share, automount will not function.
After do :
$ systemctl enable autofs.service
$ systemctl start autofs.service
To lookup nfs-shares:
$ showmount -e 192.168.1.xxx
Then connent from your remote client like (after IP auto-completion should work):
$ ls /net/192.168.1.xxx/my/share/like/in/output/of/showmountIf there appears the message
clnt_create: RPC: Program not registeredprobably the nfs-server is inactive or there's something wrong with the exports.
$ systemctl status nfs-server.service
$ systemctl restart nfs-server.service
Just a few days ago I tried to install a nfs-server on Zyxel NSA325v2/ 4.4.271-1-ARCH-armv5tel
but the latest version of nfs-utils was not working and I had to downgrade. Thanks to http://tardis.tiny-vps.com/aarm/ that isn't a big deal
If shutown or reboot system takes a long time:
automount might be a problem.
or
/etc/systemd/system/multi-user.target.wants/autofs.service
has a line:
#DefaultTimeoutStopSec=90sor
#TimeoutSec=180
which can be uncommented and changed!
TLP can cause waiting time as well!
Numlock Plasma Desktop
2/02/2020
Linux - lsDeluxe - lsd
Project's page
https://github.com/Peltoche/lsd
In Arch lsd is available in the repositories:
$ sudo pacman -S lsd
I had some problems with fonts - i ended up installing from https://github.com/ryanoasis/nerd-fonts/find/master:
patched-fonts/Hack/Regular/complete/Hack Regular Nerd Font Complete.ttf
Linux - fzf - command-line fuzzy finder
So i installed the snap version but that didn't work out as well. Snap listed the installed file but didn't start it.
My third choice was
That worked out for me.$ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf/install
On Deepin 15.11 i additionally had to run:
$ source ~/.fzf.bashto make it work.
Project's page:
https://github.com/junegunn/fzf
Use with ranger:
https://github.com/gotbletu/shownotes/blob/master/ranger_file_locate_fzf.md
1/05/2020
tty change font size arch / debian
In Arch Linux:
sudo pacman -S terminus-fontYou'll get lot of new fonts added to /usr/share/kbd/consolefonts.
I wanted to get bigger fonts in tty as my screen is distant.
So i did
sudo nano /etc/vconsole.confto add
FONT=ter-v32bsvae the file with "Ctrl+o" and exit with "Ctrl+x".
After a reboot i got the right font but my keymapping in tty was overwritten so i did
sudo localectl --no-convert set-keymap de-latin1-nodeadkeysand i got the german keyboard layout in tty back.
In Debian:
sudo dpkg-reconfigure console-setup