dt.iki.fi

All Articles (133)

TerminusV Variable Width Bitmap Font

Download here | Browse the Repository TerminusV (Variable Width) & TerminusC (Fixed Width Condensed), both based on the original Terminus font. So far, only iso8859-1 (usually called western) is implemented, and only three rather small sizes (10, 11 and 12 pixels high). Comparison to the regular.....

AUR installation: PGP signatures could not be verified

When trying to build an AUR package, i got this error: ==> Verifying source file signatures with gpg... freetype-2.9.tar.bz2 ... FAILED (unknown public key C1A60EACE707FDA5) ==> ERROR: One or more PGP signatures could not be verified! ==> ERROR: Makepkg was unable to build freetype2-clearty.....

Fonts on Linux, Chapter Two: Improving freetype rendering

I have previously shown how to change default and fallback fonts with a user configuration. The results are already very good. Nevertheless, I have adjusted the substitutions a little more now, and went through all files in /etc/fonts/conf.dto see what is what and if I can delete some, and uninstall.....

Checking hard drive and filesystem health

...wip... SMART Assuming the smartctl command (manual) is available (part of smartmontools package) and your drive is SMART1 capable and enabled. If it isn't, check this article. SMART tests and queries can be run on a hard drive that is in use. All smartctl commands require elevated privileges. Fir.....

Where is the VLC log?

The VLC media player sometimes errors out with the message "Check the log for details": But where is the log? What you need to do: Type <Ctrl>-M or click Top Menu => Tools => Messages Increase the verbosity to "1 (warnings)": (You could increase the verbosity even more, but that mi.....

Load bash builtin from file

A few years ago I noticed that sleep is not built into bash and instead calls an external command each time. I like to make my scripts responsive and unobtrusive by relying on bash builtins as much as possible; my reasoning: I am using one of the heaviest shells with all its bells and whistles, so a.....

Bash: Test if a string is a web link

I sometimes need this in my scripts: if a string starts with either http:// or https://, it must be a web link. How can I test for that in a single query? Like this: $ restore="$(shopt -p extglob)" $ regex="http?(s)://" $ shopt -s extglob $ x="http://wiki.archlinux.org/index.php" $ [[ "$x" == $regex.....

Github Misidentifies my Project's Coding Languages and How To Fix that

I have a project on github that is 100% bash - yet github sees it as 70% shell and 30% CSS. Turns out one large file is seen as CSS only because of its extension .less. since this is really a help file, I created a .gitattributes file that marked it as documentation (which causes github's language i.....