If you’re unable to access your Proxmox guest VM due to a lockout issue, you may need to use the qm command to unlock it. In this article, we’ll walk you through the steps to unlock a Proxmox guest VM using the qm command. Skip to the bottom for a tldr; Step 1: Access the… Continue reading Title: Unlocking a Proxmox Guest VM Using the qm Command: A Step-by-Step Guide
Blog
Using Pigz with Tar
pigz is a drop in multi-threaded replacement for gzip. If you have plenty of cores then it’ll significantly speed things up.
Remove a node from a Proxmox cluster
Open a shell on one of the working nodes. If you don’t have a quorum then it may be necessary to change the number of expected votes. To do that issue the following command(s). Remove the node with: It may be necessary to restart corosync with: Reload the proxmox webgui if the node doesn’t go… Continue reading Remove a node from a Proxmox cluster
Slurping and decoding JSON in Perl
Lately been doing a bit with JSON as a config file. It is a convenient way to store config variables. Procedural/Imperative style (untested, needs error handling, etc): OOP if it floats your boat (untested, needs error handling, etc):
Cron Job for Let’s Encrypt nginx standalone renew Ubuntu
I run nginx as a reverse proxy for sites that use SSL. Normally I’m doing something a bit strange so it doesn’t quite work having certbot manage my configs. This will renew ssl certs at 3am each morning if needed.
Getting GeoJson Multipolygon for political units
Visit: https://nominatim.openstreetmap.org/ui/ and search for the location. Select the Details Button on the left for the entity you are interested in. Look for the value for the OSM relation id. In this case it is: 5396194. Visit the following URL: http://polygons.openstreetmap.fr/index.py and enter in the OSM relation id from above. You can use on eof… Continue reading Getting GeoJson Multipolygon for political units
ext4 partition resize
Never fails, I have to look it up every time. The sort though blogs, posts and generally bad information.
Static Netplan template Ubuntu 20.04
I like to leave a dhcp server up so that when I spin up a virtual machine to tinker with it’ll grab that IP and I’ll be on my marry way. If in the event that I want to later statically assign it (the ip) just use the following template and adjust.
Linux Cheat Sheet ‘ls’
One of the most common commands in Linux is the ‘ls’ command. It dates back to 1961 and is used to “list” files and directories on a filesystem. To list files and directories: To list file details (long): List all files: List all files with details:
Remote Packet Sniff with Mikrotik
Remote TZSP packet capture. Prerequisites. Working Mikrotik connected to a port/resource you would like to sniff. A Linux-like host to receive the stream. Using Winbox (it makes it so easy eh?) go to Tools->Packet Sniffer. There add a server to receive a udp stream as well as a destination udp port. Odds are you will… Continue reading Remote Packet Sniff with Mikrotik