Arch Linux and issues with sbin/init

Arch linux boot error

I love Arch linux, including the seemingly intimidating installation process (which is easy if not fun after a while). However I ran into an error not apparently covered any where:

ERROR: Root device mounted successfully, but /sbin/init does not exist
Bailing out, you are on your own. Good luck

Managing iptables - A proper firewall

I’d like to take this time to go on a rant, beginning with this classic line:

####You must never stop a firewall, if you do, you will get hacked

This line is one I probably hate the most. Iptables does nothing to stop malicious attacks or compromises. Compromises occur because of outdated software, poor administration policies and other security flaws, not having a firewall in place is not as taboo as some would have you to believe.

####Why, you ask?

Sony MDR-7506 Mod

It’s been a while since I’ve handled a soldering iron. To be honest, it’s been forever. Electronics have always been a hobby of mine, but life has a way of rearranging priorities. I accidentally ran into Linux along the way and that’s where almost the last decade of time has been spent (and before the Linux jokes start rolling in, no it did not take me that long to configure Linux; no I was not recompiling a kernel this whole time - xD). That has not stopped me from building quite a long list of projects to ‘get me back in the game’, but you know what happens to post-it notes; they just end up as clutter around your monitors and stuck to nearly every object in site. However when the cable to my Sony MDR-7506’s got damaged, I decided it was time to break out that soldering iron. I love music, so this instantly became priority #1.

Goodbye Wordpress, hello Poet!

Poet is a blog generator in node.js to generate routing, render markdown/jade/whatever posts, and get a blog up and running fast. Poet may not make you blog-famous, and it may give you one less excuse for not having a blog, but just imagine the insane hipster cred you get for having node power your blog. “Cool blog, is this Wordpress or something?” your square friend asks. “Nah dude, this is in node,” you respond, while skateboarding off into the sunset, doing mad flips and stuff. Little do they know you just used Poet’s autoroute generation to get your content in, like, seconds, up on that internet. – source

Riak on Debian

Riak is an open source, highly scalable, fault-tolerant distributed database – Basho (Riak)

I have this friend that points and laughs at me when he catches me using “caveman” technology [he doesn’t really point and laugh, but I know he is on the inside]. On one occasion, I was discussing with him a project I wanted to tackle: I had invisioned a simple pastebin-like script that would allow me to note my day-to-day internet findings. My list included: php, mysql, a crap-ton of [bash] cgi scripting and lots of late nights trying to get all that to work together. So I gave him my plan, listed the software I would use and he begins his ‘laughter’. “MySQL will present a lot of over head and why would you use bash?”. A few nights later he was giving me far superior mysql alternatives. The one that I liked the most was Riak.

Desktop Screenshot (Debian/Xfce4)

The Linux desktop, a thing of beauty.

The base for this build is Debian 6 (64-bit). Debian was choosen because it’s rock solid and it works. The Debian distro has an extensive package selection.

“ Much of why Debian is perhaps the best Linux Distribution (and in fact, the best Unix) comes from the core of Debian being its package management. Everything in Debian – every application, every component – everything – is built into a package, and then that package is installed onto your system (either by the Installer, or by you).

There are over 25 thousand software packages available for Debian – everything from the Linux kernel to games “ —

MySql Backup (one-liner)

Yes, it can be done.

One-liner to backup mysql databases

for i in `mysql -e 'show databases;' | tail -n +2`;do mysqldump $i > ./$i.sql;done;tar cvzf dbase-backups.`date +%s`.tar.gz ./*.sql;

Now, what is backed up will depend on what user you are running the script as. Often, servers are configured to where normal users are jailed (locked) into their own environment and are not able to see other users or user databases. If this is the case, you will have to run this as root, which would allow you to see/access all the databases.