server

htaccess and htpasswd give basic authentication measures with Apache2

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, by password protecting it. We will be using the most popular web server, Apache2 for this example, however similar methods can be done with other web servers. The method we will be using is a basic authentication system, however it is easy to set up…


SimpleHTTPServer with Python

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 to install a whole web server on a host, just to get a few pages served up, right? Well, as long as your machine has python on it (almost every linux box does these days), you can set up a web server, in one eensy…


shell prompt image

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 server you cannot directly get to. You do, however have access from your box (localhost) to a server (server1) that can connect to that server (let’s call that server2). Here’s how to ssh tunnel that shit! Let’s assume that your username is bob, but the…


The Linux Kernel Virtual Machine Logo

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 VmWare ESX, Microsoft’s Hyper-V and XEN. The great thing (as usual) about KVM, is that it’s part of Linux, meaning its free, and it’s performance is excellent. Using it in a production environment as a standalone hypervisor is an excellent choice, has a low host…