How to change the hostname of your Linux machine without needing to restart

hostnamectl method Since Ubuntu 16.04 (and most recent Linux distros) use Systemd you can simply use the hostnamectl command to change hostname. To see current setting, run your Terminal just…

How to password protect web sites via .htaccess

SKILL LEVEL: SYSADMIN/ADVANCED – TIME: 5-10 MINS Introduction In this tutorial we are going to show you how to protect a web site, or just a folder within a site,…

Quick and dirty hacks: one line HTTP Server

Some times you just want to prove a concept by running a web server on a server, or even your desktop somewhere. The problem is, it seems a bit overkill…

How to get to a service/server which is on an inaccessible network (using SSH tunnels)

In the latest of our ‘just the examples’, imagine you are in a scenario where you want to ssh to a server (or even browse a web page etc) on a…

How to setup a KVM server the fast way

This is a very short quick setup on how to get KVM (The Linux Kernel Virtual Machine hypervisor) server up and running. Why KVM? KVM is a hypervisor, just like…