Category Archives: Linux

alsa sound control

Since I’ve changed my strategy slightly on how to distribute audio to the house, I’ve needed to do some research on alsa.
Link
After coming across an article about house audio, someone mentioned the effects of pumping stereo audio to each zone…
Sound can get muddy if zones are playing the same music, lack of separation…
So the idea is to just put out mono audio to each zone. Make is easy since amplification and source becomes easier to manage.
A 5.1 surround sound card will give me 6 zones! I’m a little excited about this.

Continue reading

unraring multiple subdirectories

I recently aquired the Futuram season 1-4 collection.
The folder structure was:
Season #
–Show number #
—-multi file rar archive

I really didn’t want to have to uncompress each episode individually, since there are (4 seasons x 12 episodes = 48) lots of shows. Very tedious.
So I set out to write a script to do this for me.

for dir in *; do for filename in *.rar; do unrar x $dir/$filename ../; done; done

May also be usefull:
find -type f -name '*.rar' -execdir unrar x {} \;