Posts

Showing posts with the label Unix

Ultra Cheap ZFS Array

Make your own ZFS array (mirrored) with USB Flash drives, for cheap! http://megalomaniacbore.blogspot.co.uk/2017/12/using-flash-drives-in-zfs-mirror.html Since this... interesting post of mine... has only about 10 views, and my tech items usually get a few hundred, I figure somewhere along the lines it got trampled by my silly New Years post....

Bash : Power of Pipes

Subtitle: "Get IP Address Easily" When I say easily, I mean not so easily, but with the proper tools... Let me explain, it's been one of those days... I've a remote server running some flavour of Linux, and no-one knows it's remote IP Address, they all SSH into the box run " ifconfig " and note down the value, they then plug this into a config (or worse still were baking it directly into some code) and running their services.... The trouble of course being, years later, they're no-longer the programmers nor maintainers of this machine, I am... And to be frank whenever the IP address changes I don't want to recompile their java code, nor use vi to edit the various configuration files, I want a script to at least update the settings automatically. I therefore changed their code to load the IP address, not hard code it, and used some other scripts to put the IP address into the config file at boot... The first line of that script is what I'm goi