The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,346 other followers

Archive for the ‘*nix’ Category

Using hardware security tokens cross-platform is only slightly more complicat…

Posted by jpluimers on 2018/01/17

Thanks for the excellent comment explaining how to use hardware tokens as a comment to [WayBack] Using hardware security tokens cross-platform is only slightly more complicated than piloting a Space Shuttle. ##sarcasm – Jan Wildeboer – Google+

Jan Wildeboer:

+Jeroen Wiert Pluimers OK. Let’s look a bit at how this works. There are several competing standards/ways to use a security token. Typically you’ll decide between the two most used ones. As a CCID device AKA SmartCard with OpenSC or using gpg-agent. And that’s an either/or question. Some of the security tokens can only work with gpg-agent, some can do both (but not at the same time) and some are only useful as CCID style (e.g. the Nitrokey HSM).

OK. So now we look at platforms. CCID using OpenSC mostly works everywhere, but you might need to install some additional software depending on your OS. Older versions of MacOS X were notoriously bad, since (High) Sierra it has become better.

On Linux it again really depends. The gnome-keyring-agent that is active in a Gnome session really messes everything up, so better deactivate that. Which is not really trivial. But you have to have a socket for ssh-agent to pick up the key, so some stuff goes to your .bash.rc and you have to make some changes to Gnome config.

If you want to use a Yubikey for 2FA, note that it cannot do TOTP (Time based One Time Password) which Amazon wants for AWS auth. So you need another helper app on your computer.

Here’s some articles that explain it in detail:

The middle two links are actually part of the series [WayBack] Yubikey All The Things | EngineerBetter | More than Cloud Foundry specialists which has a third post [WayBack] Yubikeys for Static Secrets | EngineerBetter | More than Cloud Foundry specialists

–jeroen

Posted in *nix, *nix-tools, Communications Development, Development, Internet protocol suite, Power User, Security, SSH, TCP | Leave a Comment »

Ubuntu – changing hostname without rebooting

Posted by jpluimers on 2018/01/15

Assembled from various bits in [WayBackHow do I change the hostname without a restart? – Ask Ubuntu.

Assume your new host name is newHostName.

  1. edit /etc/hosts and replace the old hostname with newHostName
  2. Perform these commands:
    hostnamectl set-hostname newHostName
    exec bash
    hostname -f

Both the command prompt and the hostname output should show newHostName.

Note: if you get this when performing hostname -f then you forgot to edit /etc/hosts as per [WayBack] Just so everyone knows, the edit of /etc/hosts did the trick the 12.04 – Why I get hostname: Name or service not known error? – Ask Ubuntu:

hostname: Name or service not known

–jeroen

Posted in *nix, Linux, Power User, Ubunto | Leave a Comment »

du -h -c -s *  — shows human readable total sizes of all subdirectories and a overall total

Posted by jpluimers on 2018/01/15

Inspired by [WayBacklinux command line: du — how to make it show only total for each directories – Stack Overflow

du -h -s -c *

This displays the human readable (-h) total (-s) with a grand total (-c) of all subdirectories (*).

–jeroen

Posted in *nix, *nix-tools, Power User | Leave a Comment »

Zabbix: better “Disk space usage” graphs for Windows systems

Posted by jpluimers on 2018/01/09

The default [WayBack] Zabbix Disk space usage graph (named Disk space usage {#FSNAME}) for Windows looks like this:

Total disk space on C:

Total disk space on C:

What I want is a graph over time. Based on that, I can start working on different triggers than the default “less than 20% free space available“, for instance:

So I want graphs similar to the CPU load (in the graph itself called Processor load) graph which looks like this:

CPU load (a.k.a. Processor load) is actually graphed

CPU load (a.k.a. Processor load) is actually graphed “over time”

It is part of the Graph prototypes for the Template OS Windows discovery list Mounted filesystem discovery:

For now I’ve added this graph prototype as Line chart with 95th percentile:

If that work, I can start working on the triggers:

–jeroen

Posted in *nix, Monitoring, Power User, Zabbix | Leave a Comment »

LAUNCHED https://uberpdf.org/

Posted by jpluimers on 2018/01/01

It is a lot (~300 megabyte compressed download!), but worth it.

Here are the links:

And the quote from [WayBack] LAUNCHED https://uberpdf.org/ … – Joe C. Hecht – Google+

LAUNCHED https://uberpdf.org/

337 MB of source and utils in 2,308 Files, 910 Folders before you build (not counting 3rd party source UberBuild downloads).

It’s a start, with much to come.It will get easier now that UberBuild is clean.

I will be updating the docs and website in the next few days.

Special thanks …

I already see room for improvement (such as a setup screen for extra compilers such as Delphi and Free Pascal to keep folks out of shell scripts and from hunting for help in the documentation).

–jeroen

Posted in *nix, C, C++, Delphi, Development, Linux, Power User, Software Development, Windows | 3 Comments »

 
%d bloggers like this: