How to fix a bricked QNAP-TS 639 Pro

I've just been playing around with a QNAP TS-639 Pro, and apparently it wasn't able anymore to boot from the internal 'DOM' (disk on module). First try to 'flash' a firmware update available on their website failed.. Why...? Looks like they're encrypted by default, so useless if ...

more ...

Watch linux softwareraid rebuild progress

I just recently started to play around with software RAID's under linux, and I thought I'll share a piece of code to watch the progress of a raid-rebuild.

``` {.lang:sh .decode:true} || user@workstation ~ || while [ 1 ] ; do clear ; cat /proc/mdstat ; sleep 5; done

Personalities : [linear] [raid0] [raid1 ...

more ...

Recompile Archlinux from Scratch (+custom CFlags)

So since I run some old/slow hardware, I want to get the max out of them, speedwise, without upgrading anything on the hardware side. So one of the things I do is to re-compile the applications/libraries with some customized CFlags. CFlags allow you to instruct your compiler (GCC ...

more ...

MPD add random Album

Just a quicky for today.. I could have sworn that there was a oneliner on commandlinefu.com (which is a great page btw!) to add a random album to MPD (Music Player Daemon), but I wasn't able to find it. So time to quickly build one on my own ...

more ...

Bash - Multithreading

In the age of multi-core CPU's, there's also a need for properly optimized application. Since the vast majority of the linux utilities only allow you to specify ONE input/output file, it's our job to script it to exhaust all the Cores.
When I got my first ...

more ...

chroot abused as virtualization SW

As the title indicates, this article will show you an example usage of chroot, where we'll clone our currently running system into a disk-image (dd). Doing that, we can afterwards loop-mount it, chroot in it and let all the stuff run, that we don't want on our mainbox ...

more ...