Forgotten raspberry pi login password

Today I am working on an old raspberry pi (model B, original version) and need to get this project up and running, but I have forgotten the password. No problem. Let’s take the SD card and edit the `cmdline.txt` file in the root directory and add `init=/bin/sh` to the end of it (make sure there …

Reset admin account login

Ive had to do this more than I care to mention. I should really know it by heart now, but the short version is: boot into the grub menu and select advanced options head into recover mode drop to root shell prompt you’ll need to remount the filesystem that is currently read only:mount -o rw,remount \ change …

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.