• Info

    I typically try and keep the blog up-to-date but apparently I'm not very good at posting!

How to recursively unzip all files in their existing directoies and remove the orginals

So, I am trying to restore a Newznab installation by importing in all my NZBs from my previous installation. Except during the import, all your NZBs need to be unzipped/decompressed and not in a ".nzb.gz" format.   Well I needed to figure out a way to unzip the compressed NZBs into their existing directories and also removing the original compressed NZB (mainly, to save hard drive space). Thankfully after a little research I was able to put together the following command that would accomplish this.


How to have Newznab behind a Apache reverse proxy

I spent a considerable amount of time trying to figure out how to get Newznab behind a Apache reverse proxy. Unlike SABnzbd, Sickbeard, CouchPotato and Headphones there was no web_root, url_base or http_root for Newznab to use with a reverse proxy. Just with my luck too, there is very little documentation available online on this subject.


Ubuntu Server 12.10 add-apt-repository

Today I was trying to install Oracle Java 7 (aka 1.7) on a Ubuntu Server 12.10 and was greeted by this lovely error, admin@ubuntuserver:~$ sudo add-apt-repository ppa:webupd8team/java sudo: add-apt-repository: command not found


The following packages have been kept back

Ran across this problem/feature "The following packages have been kept back:" when trying to update some of my Ubuntu servers. Typically this means there is some kind of dependency issue(s) with the listed packages. For me I had the package "open-vm-tools" installed and it was causing a dependency conflict with the listed packages.   So how do you tell apt-get to ignore the "conflict(s)" and proceed anyways. Well you have two options available,   Option one: manually upgrade the individual package   [crayon attributes] sudo apt-get install open-vm-tools [/crayon]   Option two(recommended method): tell apt-get to intelligently handle updating the dependencies with new versions of packages   [crayon attributes] sudo apt-get -s dist-upgrade [/crayon]   Either option works but instead of having to update each package individually, I personally like letting the apt-get do the work!


Have too many old kernels installed or running out of /boot space?

If you have every had a server online for some time. You've probably updated it a couple of times and maybe noticed that the old kernels stay loaded in /boot partition. Well eventually you will run out of space in your /boot partition and need to clear out those old kernels.   Don't just take my word for it, take a look yourself and to see how many old kernels you have by running the following command (excluding current kernel of course).   [crayon attributes] dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' [/crayon]   As you can see there are a couple old kernels stored in your /boot. So how do you get rid of them and free up a little space, same command as above just adding on apt-get purge.   [crayon attributes] dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r |...


Rebuild Missing Configuration Files Command

For those Debian / Ubuntu fans out there that need to rebuild a missing or deleted configuration file without purging the package. Use the following command with just replacing PACKAGENAME with the name of the package you want to rebuild the config files for.   [crayon attributes] sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install PACKAGENAME [/crayon]   Definitely a good command to remember or save!