Flush DNS cache in Ubuntu

According to quite a few users on Stack Exchange, Ubuntu doesn’t cache DNS queries, but I got into an awkward situation where I couldn’t hit an internal server because my installation was convinced my internal server was being hosted on an external IP.  It wasn’t entirely incorrect, because the server is (sometimes) available externally, but it’s only […]

How to setup BASH custom prompt in Ubuntu I wanted two things: the time in my prompt a colour prompt Basics: it’s located in: ~/.bashrc uses Environment Variable: PS1 time is inserted using: \t time I started here: http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html colour http://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/ PixelBeat discussion on coloured command prompts http://www.pixelbeat.org/docs/terminal_colours/ how to guid for customing the command prompt […]

ZFS on Ubuntu 14.04

I found 4x old 750GB hard drives from 2008 which came up as ZFS when I installed them into a new ubuntu system on an old box. I installed ZFSonLinux (specifically ubuntu 14.04), samba (smb) and SSH (OpenSSH) and set to the task of re-creating the volume. Essentially, it was very painless… except for a couple of hours in there one of the power cables had come off one of the raid drives and it took a fair bit of diagnoses to get it sorted. In the end. I resilvered 1.3TB of data and set to the task of working out whether I should delete it or back it up to my new RAID… This is how I did it.