How to Fix the “VT-x is not available” in VirtualBox

I recently ran across this error when moving a VM to a different machine. To fix it: Close VirtualBox Go into the VM folder (usually inside a folder like VirtualBox VMs) and open the text file ending in .vbox. Look for a line like <HardwareVirtEx enabled=”true”/> and change it to <HardwareVirtEx enabled=”false”/>. That should fix the “VT-x is […]

Rsync, Mac OS, Debian, and Modified Times. Oh My.

While writing a backup script to back up my data from Mac OS to a Raspberry Pi, I ran into an issue with relative modification times of the files being transferred: rsync thought every file on the Mac side was always more recently updated than on the Debian side. I was using the -a flag for archive mode, which includes, […]

Password Protect a Domain with nginx

It’s very easy to place a simple htpasswd-based authentication system on a domain served by nginx. To do this, you’ll want your server block to look like this: The relevant lines here are the last two defining auth_basic and auth_basic_user_file. Notice that the file is /etc/nginx/htpasswd. This means you need to use htpasswd to create that file: This will […]