Raspberry PI DHCP and DNS Server (dnsmasq)

IT Tips
SETTING UP A RASPBERRY PI AS A DHCP AND DNS SERVER dnsmasq: If dnsmasq is used as dhcp server, the local hostnames are automatically added "on the fly" to its dns cache. No need for an additional daemon. Dnsmasq is easier to install, and administrate than ISC dhcp-server+bind Its lease file is much easier to parse if need arises. Dnsmasq takes up less memory and CPU than ISC dhcp-server + Bind (approx. 10 times less) Dnsmasq does not bypass the kernel firewall rules like ISC daemon allegedly does in some configurations. There is a package for the Pi and so you can install it in the usual way using apt-get. DNS forwarding and cache - You still use your existing DNS (be it your ISP's DNS, Google public DNS, or…
Read More

VirtualBox Headless on Ubuntu 16.04

IT Tips
This guide explains how you can run virtual machines with VirtualBox 5.1 on a headless Ubuntu 16.04 server. Normally you use the VirtualBox GUI to manage your virtual machines, but a server does not have a desktop environment. Fortunately, VirtualBox comes with a tool called VBoxHeadless that allows you to connect to the virtual machines over a remote desktop connection, so there's no need for the VirtualBox GUI. 1 Preliminary Note I have tested this on an Ubuntu 16.04 server (host system) where I'm logged in as a normal user. 2 Installing VirtualBox To install VirtualBox 5.1 on our Ubuntu 16.04 server, we add virtualbox sources to apt ... echo 'deb http://download.virtualbox.org/virtualbox/debian xenial contrib' | sudo tee /etc/apt/sources.list.d/virtualbox.list Then we download the VirtualBox public key... wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- |…
Read More