systemd.mount replacing autofs

I have been a very satisfied user of autofs for several years. Using a laptop in multiple location without reboot, could often cause annoying timeouts with hard mounted NFS shares. So I found autofs, which did a great job, especially the ghost option is nice, making you able to browse the filesystem when it’s not…

Continue Reading

Find and unmount CD drives with PowerCLI

Sometimes someone forgets to unmount the CD drive of a VM. This will interfere with operation tasks like setting a host in maintenance mode or using Update Manager. I recently had this issue, and the “update manager compliance check” told me that several VM’s where connected to a CD drive, which may interrupt the update…

Continue Reading

Move the docker data directory

The default location for the docker data directory, when using overlay2 storage driver is /var/lib/docker. Maybe you want to move it to another location, and it’s actually pretty easy. Stop the docker service: sudo systemctl stop docker.service Copy the docker folder to the new location:sudo cp -rp /var/lib/docker /path/to/new/locationThe p in -rp will preserve ownership,…

Continue Reading

Windows 10 missing ssh-copy-id

Microsoft is finally shipping Windows with SSH. On my Windows 10 machine, it’s OpenSSH: PS C:\Users\Kasper> ssh -VOpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 Somehow they missed to get the ssh-copy-id tool implemented, so we need to find another way of copying our ssh keys. Thankfully it’s not that complicated, we can use powershell (probably even cmd) cat .\.ssh\id_rsa.pub…

Continue Reading