The Wiert Corner – irregular stream of stuff

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

  • 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,839 other subscribers

Archive for the ‘Power User’ Category

unxz on Mac OS X requires the xz formula from homebrew

Posted by jpluimers on 2018/01/30

Most sites explaining how to decompress an xz file mention you should use unxz from the xz utils toolbox.

Running unzx on Msc OS X requires the xz formula from homebrew:

$ brew install xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.2.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.2.2.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/xz/5.2.2: 91 files, 1.4M

–jeroen

Posted in Apple, Home brew / homebrew, Mac OS X / OS X / MacOS, macOS 10.12 Sierra, OS X 10.10 Yosemite, OS X 10.9 Mavericks, Power User | Leave a Comment »

Gratis WiFi met Fon HotSpots (voor klanten) | KPN

Posted by jpluimers on 2018/01/29

Voor het geval ik het buiten Europa een keer nodig heb:

Als klant met een Internet, Internet en TV of mobiel abonnement kun je in Nederland en in het buitenland gratis gebruikmaken van KPN WiFi Fon HotSpots.

Source: [WayBackGratis WiFi met Fon HotSpots (voor klanten) | KPN

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

WhatsApp FAQ – Formatting your messages

Posted by jpluimers on 2018/01/26

Oh cool:

Formatting your messages –

WhatsApp allows you to format selected text inside your messages.

Italic

To italicize your message, place an underscore on both sides of the text, like so: _text_

Bold

To bold your message, place an asterisk on both sides of the text, like so: *text*

Strikethrough

To strikethrough your message, place a tilde on both sides of the text, like so: ~text~

Monospace

To monospace your message, place three backticks on both sides of the text, like so: ```text```

Alternatively: On Android, you can tap and hold the text you’re typing > More …

Source: [WayBackWhatsApp FAQ – Formatting your messages

–jeroen

Posted in Android Devices, Power User, SocialMedia, WhatsApp, WhatsApp for Android | Leave a Comment »

Wat is het rekeningnummer van ICS – Mijn ICS

Posted by jpluimers on 2018/01/26

Voor als ik het een keer nodig heb: [WayBackWat is het rekeningnummer van ICS – Mijn ICS

Betalen aan ICS via internetbankieren

Benodigde gegevens

Wilt u een betaling doen aan ICS via internetbankieren? Gebruik één van onderstaande rekeningnummers:

  • ABN AMRO: NL75 ABNA 0844 9970 56
  • ING: NL43 INGB 0005 6353 34
  • Rabobank: NL88 RABO 0187 4987 92

Vermeld in de omschrijving altijd uw ICS-klantnummer. U vindt dit nummer bovenaan de pagina als u bent ingelogd op Mijn ICS.

Betaalt u via een buitenlandse bank?

Dan kan u ook om de volgende gegevens van ICS gevraagd worden:

 BIC:  ABNANL2A
 Adres:  ICS BV
Wisselwerking 32
1112 XP Diemen
The Netherlands

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Proxmox with Windows VMs and backups: why you want qemu-agent and how to install it

Posted by jpluimers on 2018/01/26

When running Windows VMs on Proxmox and you want to make snapshot backups you really want to run the qemu-agent inside the Windows VMs.

First of all you really want snapshot mode backups as of all backup modes they have the least downtime. By default they have a small inconsistency risk, but on Windows that can be alleviated by running qemu-agent as described in [WayBackBackup and Restore – Proxmox VE: Backup Modes

More on snapshot backup mode

Backup modes for VMs:

snapshot mode
This mode provides the lowest operation downtime, at the cost of a small inconstancy risk. It works by performing a Proxmox VE live backup, in which data blocks are copied while the VM is running. If the guest agent is enabled (agent: 1) and running, it calls guest-fsfreeze-freeze and guest-fsfreeze-thaw to improve consistency.

A technical overview of the Proxmox VE live backup for QemuServer can be found online here (https://git.proxmox.com/?p=pve-qemu-kvm.git;a=blob;f=backup.txt -> https://git.proxmox.com/?p=pve-qemu-kvm.git;a=blob;f=vma_spec.txt;).

Proxmox VE live backup provides snapshot-like semantics on any storage type. It does not require that the underlying storage supports snapshots.

On Windows the trick is that qemu-agent can use VSS to get a frozen state of the filesystem as described in [WayBackQemu-guest-agent – Proxmox VE:

In Proxmox VE, the qemu-guest-agent is used for mainly two things:

  1. To properly shutdown the guest, instead of relying on ACPI commands or windows policies
  2. To freeze the guest file system when making a backup (on windows, use the volume shadow copy service VSS).

So: installing qemu-agent.

Start with the VM options

Start with the VM options

Don’t make the mistake to start at [WayBackQemu-guest-agent – Proxmox VE: Installation; guest; Windows as it will give you a hard time. Always use the full [WayBackQemu-guest-agent Installation steps beginning at the[WayBackHost; these steps worked for me:

  1. Download a recent set of [WayBackWindows VirtIO Drivers – Proxmox VE
  2. Ensure the ISO image is in /var/lib/vz/template/iso on the Proxmox host so they show up as local:iso for mounting.
  3. Shutdown the Windows VM
  4. [WayBackQemu-guest-agent – Proxmox VE: Host; enable guest for VM: on the “Options” page for a VM, ensure the “Qemu Agent” setting is set to “yes”  
    • This will add a PCI serial device to your computer that Windows – after a fresh boot – sees as “PCI Simple Communications Controller”
  5. Mount the ISO image to a CD/DVD drive 
  6. Boot the Windows VM
  7. Start Device Manager (devmgmt.msc)
  8. In the Device Manager, observe a new device “PCI Simple Communications Controller” that doesn’t have drivers installed yet 
  9. Right click the”PCI Simple Communications Controller” device and select “Update Driver Software…” 
  10. Indicate you want to browser for the files (as opposed of Windows finding them on-line: they’re not on-line): 
  11. On the CD/DVD drive letter you mounted the ISO image to, select D:\vioserial\[OS-Version]\ where OS-Version is your Windows Version and ensure “Include subfolder” has a checkmark so it will find the Win32 or Win64 drivers depending on your processor architecture.
    • I used D:\vioserial\w7  
  12. Finish the driver installation 
  13. Observe it now has a driver installed
     
  14. From D:\guest-agent install either qemu-ga-x64.msi for Win64 or qemu-ga-x86.msi for Win32.
  15. During installation, confirm the UAC prompt for sofware by Red Hat, Inc.
  16. Start the Service Manager (services.msc) and execute from any command promt the following statments to verify the check if these services are running: 
  17. Now reboot the VM, logon and start the Service Manager again; now it should look like this 

Note you can obtain the same information from the console by executing these commands.

  • sc queryex "QEMU-GA"
  • sc queryex "QEMU Guest Agent VSS Provider"

Before the reboot, they should show output like this:

C:\Windows\system32>sc queryex "QEMU-GA"

SERVICE_NAME: QEMU-GA
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 4444
        FLAGS              :

C:\Windows\system32>sc queryex "QEMU Guest Agent VSS Provider"

SERVICE_NAME: QEMU Guest Agent VSS Provider
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 0
        FLAGS              :

After reboot it should have become this:

C:\Windows\system32>sc queryex "QEMU-GA"

SERVICE_NAME: QEMU-GA
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 1680
        FLAGS              :

C:\Windows\system32>sc queryex "QEMU Guest Agent VSS Provider"

SERVICE_NAME: QEMU Guest Agent VSS Provider
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 1624
        FLAGS              :

Verification

Verifying the qemu-agent is reachable from the Proxmox host:

  1. Note the VM ID of the VM as #
  2. Reboot the VM (for instance by typing this on the command prompt: shutdown -r -t 0)
    • I’m not sure this step is needed under all circumstances; if the below steps don’t work then you definitely need it.
  3. Verify the Proxmox host can communicate with the qemu-agent on the VM:
    On the Proxmox host, start a terminal session, then type these commands where # is the ID of the VM (I’ve used 112 as an example here):

# socat /var/run/qemu-server/112.qga -
{"execute":"guest-sync", "arguments":{"id":1234}}

It should get you this result:

{"return": 1234}

Note there’s all sorts of nice stuff you can do with socat /var/run/qemu-server so maybe I’ll put more about it in a future blog post.

–jeroen

Some more links with background information:

Easiest is to download the ISO image to /var/lib/vz/template/iso on the Proxmox host so they show up as local:iso for mounting.

Easiest is to download the ISO image to /var/lib/vz/template/iso on the Proxmox host so they show up as local:iso for mounting.

Posted in Power User, Proxmox, Virtualization, Windows | Leave a Comment »

mikrotik CRUD examples for all APIs · danikf/tik4net Wiki

Posted by jpluimers on 2018/01/25

tik4net – Connect from .NET C# application to mikrotik router via ADO.NET like API or enjoy O/R mapper like highlevel api.

Source: CRUD examples for all APIs · danikf/tik4net Wiki

[Archive.isC# API – tik4net on GitHub – Page 2 – MikroTik RouterOS

–jeroen

 

 

Posted in .NET, C#, Development, MikroTik, RouterOS, routers, Scripting, Software Development | Leave a Comment »

Many people realised that “You are right” cuts short of a lot of discussions. But it has made coaching my brother as a custodian lot harder.

Posted by jpluimers on 2018/01/22

This actually is become more and more of a problem, so any hints to handle situations like this are more than welcome.

The problem is that my mentally retarded brother found this out all by himself some 18 months ago, which makes it extremely hard to coach him and be his custodian.

Source: [WayBack] #lifehack Source: @sindresorhus on Twitter  – Jeroen Wiert Pluimers – Google+

Via: [WayBack] #lifehack Source: @sindresorhus on Twitter  – Jan Wildeboer – Google+

–jeroen

 

 

Posted in About, LifeHacker, Personal, Power User | Leave a Comment »

When clonezilla shows “overlayfs missing workdir” during boot, then hangs

Posted by jpluimers on 2018/01/22

Clonezilla is a nice partition cloning tool, but sometimes booting it just gives you this message on the screen:

overlayfs missing workdir

As it’s the first message during boot, searching for clonezilla “overlayfs missing workdir” returns no meaningful results towards the top of the list.

From what I could trace back from the search results is that somewhere before 2.4.x this started to happen in the “stable” branch.

There are actually two branches that in practice are stable on the http://clonezilla.org/downloads.php:

  • alternative stable (which doesn’t have a version number but a YYYYMMDD date followed by -yakketty)
  • stable (which has a version number)

I think because of the naming, people usually start downloading the stable version. That doesn’t boot on most of the physical and virtual machines I’ve tried.

In my experience however, alternative stable doesn’t suffer from the overlay missing workdir issue on all the physical and virtual machines I’ve tried booting it with so far.

So I did some digging:

  • alternative stable is often referred to a alternative but it’s an Ubuntu-based branch running the same clonezilla software as the stable branch
  • stable is the Debian-based branch.
  • Ubuntu is based on Debian but Ubuntu releases in a much faster pace than the release frequency of Debian Stable.
  • Ubuntu has support for more recent hardware than Debian

TL;DR: Use alternative stable when stable fails to boot.

–jeroen

Posted in *nix, Debian, Power User, Ubuntu | Leave a Comment »

How can I reset a PC if I forgot the administrator password? – The Old New Thing

Posted by jpluimers on 2018/01/22

What I reboot three times is true.

[WayBackHow can I reset a PC if I forgot the administrator password? – The Old New Thing:

There is an emergency reset button that you can activate like this:

  • Turn off the computer.
  • Turn on the computer, but while it is booting, turn off the power.
  • Turn on the computer, but while it is booting, turn off the power.
  • Turn on the computer, but while it is booting, turn off the power.
  • Turn on the computer and wait.

After three failed reboot attempts, Windows goes into recovery mode and one of the options there is to reset the computer. One of the reasons for that option is to address this specific problem of finding an old machine that you forgot the password to, and you want to just reset the PC and start over clean.

–jeroen

Posted in Development, Power User, Software Development, The Old New Thing, Windows, Windows Development | Leave a Comment »

Notifications – Google+

Posted by jpluimers on 2018/01/20

As I keep forgetting the Notifications – Google+ URL and G+ kills “older” notifications: https://plus.google.com/notifications/all

–jeroen

Posted in G+: GooglePlus, Google, Power User, SocialMedia | Leave a Comment »