dt.iki.fi

64 posts are tagged "linux"

How to not only encrypt but also decrypt a (password) string

Towards the end (points 4. and 5.) this article has instructions on how to encrypt/decrypt any string. It might come in handy when e.g. checking your Email with curl, because one wouldn't want the password in plain text either on the command line or in some file. Here's a slightly refined version: o.....

How to provide information about peripherals with dmesg

You want to see how your Linux system reacts to a certain peripheral being plugged in (smartphone, monitor, USB stick etc.). dmesg can provide that information, but one needs to separate it from previous messages. Here's how: Make sure the device in question is unplugged. Open a terminal, maximise .....

Using GNU bash? Forget date!

Since Version 4.2.0 GNU bash can print times in strftime format with printf. OK, the external date command can do a lot that bash's builtin cannot do, but for most use cases this is enough - and it's always better to use builtins, because if you're using bloated bash, at least take full advantage of.....

Search man pages with less: Unhighlight search results

The man command uses a pager, that is responsible for pagination, but also search and highlight. If your pager is less, you can search man pages with /search string. It will then highlight the search results, and they can be traversed with n/N. The highlighting helps to find the search string, but i.....

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.....