Scenario: You have several devices within your network, you’ve changed the address range for the network but you’ve forgotten to change one in particular. It’s easier to log into the device than to physically attend to it (it may be headless, it may not be in your immediate vicinity, or you’re just to lazy to […]
Category Archives: linux
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 […]
changing hostname in ubuntu
I cloned a virtual server and late realised they had the same hostname. No problem. change the hostname in /etc/hostname: sudo nano /etc/hostname change the hostname in /etc/hosts: this file will contain localhost and your old hostname. eg, 127.0.0.1 localhost 127.0.1.1 <new-host-name> edit this file to suit. Finally, change the hostname in the current session: […]
symbolic links in linux and Ubuntu
I always seem to have a tough time getting symbolic links right and often finding myself either Googling them or running test link after test link until I nail it. Normally I follow the mantra: command {something} {somewhere} such as: mount /dev/sda1 /media/mydrive /dev/sds1 being the “something” and the /media/mydrive being the somewhere But with […]
iproutes
static routing between networks. Here’s an explanatory post I’ve taken from StackExchange (credited in post) for my reference. I hope you find it useful too.
using variables on the command line
I find I’m always repeating certain command lines with subtle changes. If the changes can be predicted, why not use a variable instead? Here’s how:
SSH key pairs and getting it onto the server
I have to go digging this one up every time I need it. I just can’t remember what to type, so here it is plain and simple.
What files is my program trying to access?
I was running concurrent hashes of two physical drives and I usually redirect the output of the hashset to a file so that I can then run an audit on it at a later time.
But my system has appeared to stall on one file. Or has it? What is it doing?
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.