Category Archives: Geekery

Fun with Linux!

After my success with Raspbian Wheezy on the Pi, I decided to challenge myself to get Linux running on my torrent/file server box running XP.  I also ran across a website that really helped me to understand how I wanted to approach my set up (

The set up that is used on that site mirrored alot of what I wanted to be able to do myself at home.  I attempted to duplicate the setup from that site for my own uses, but encountered some issues with getting the virtual machines working the way i wanted.  The set up outlined on that site consists of one physical machine running Ubuntu Server 64 bit with 2 virtual machines running Ubuntu server 32 bit (1 media server and 1 web/mail server.)

I took the XP hard drive out of the machine and installed an older 250GB drive that I had laying around and installed Ubuntu Server 12.04 on it.  I borked something up when doing the virtual machine set up and had to start from scratch.  After evaluating my real needs, I decided to forego the virtual machine route.  I realized that my main focus needed to be torrenting using Deluge and Flexget and then serving those files via samba or nfs to my other machines on the network.  I was less inclined to go the web/mail server route only because i could not really see a need for it.  I have a site hosted via GoDaddy and i’ve been happy with the service for the last few years.

I managed to get the server working with Deluge and Flexget and it was polling my favorite sites to get the stuff I wanted and appeared to be working perfectly.  After a week or so of monitoring the system, I realized that i was barely taxing the quad core processor and 4GB of RAM with the torrent part and figured I could utilize that horsepower in other ways.  Enter Handbrake.

I have been converting my DVD collection of movies and TV shows for my AppleTV for the last few years using my Mac Mini and it would convert fine.  I wasn’t really happy with the amount of time it took to convert a single movie/TV show and it typically taxed my processor quite a bit when it was running, so using my machine while converting was a bit of a pain.

I found a CLI version of handbrake that would run on my server and installed it and was amazed at the speed of the conversions.  i’m sure that the quad core and 64bit OS helped with that 🙂

I bought a few 2TB hard disks a few weeks ago and migrated the server to a 2TB internal drive and created more storage space for it.  I haven’t yet put the other 2TB drive in the system yet, but i’m planning on migrating the 12TB or so of music, software, audiobooks, ebooks, movies and TV shows to the server as I can.  The data is split up among numerous 1.5TB, 2TB and 1 TB drives on my Mini.  I’ll have to move data over to the server, convert the drives to ext4 and then move the data back once I have it all on the server.  This should help to make the media more manageable as it’ll all be in the same place and not split between my server and my Mac.

All in all, it’s been a fun and educational experience doing this.  I can’t wait to see what comes next…

Raspberry Pi and download automation

OK, so I’ve had a Raspberry Pi Model 2 for a while. I installed Raspbian Wheezy on it when i first got it and played for a bit. Neat device, but I had no “real-world” application for using it.

Since last year, I’ve been getting closer and closer to cutting my cable TV out since I can get 90% of what I want to watch via Netflix, Hulu or torrents. I’ve been researching ways that I could locate most of what the wife and kid watch on cable via streaming or downloading and how I could automate the process so that they could just sit down and have what they wanted to watch available to them. Right now, when i download shows/movies I have to manually push them to the AppleTV so that they can be watched by them.

I usually watch stuff on my phone or Nexus so I don’t mind the process of copying the media to my devices or streaming it. The wife and kid like the ability to just turn on the TV and just consume. I also tend to download the TV shows that I watch and keep them for a while in case I want to watch them again in the future. Most of the shows that my wife watches are throwaways, meaning that chances are the shows will get watched and then discarded or maybe re-watched if there’s nothing on standard programming.  My daughter is hooked on old family shows and cartoons, which I’ve either ripped from DVD or streamed.

I thought a bit about what I wanted to do for this.  I have some RSS feeds that I monitor to get the TV shows that I like and watch regularly so the automation piece was a no brainer.  RSS all the way.  I’ve also been having issues with Utorrent crashing.  I run that system pretty much headless, so it becomes a problem when I don’t check on it regularly.

My requirements were pretty basic:

  • automation – I wanted the system to automatically download the shows I tell it to and sort them to folders as TV Show -> Season which is mapped as a source for XBMC on the AppleTV in the living room.
  • transparency – The system had to be pretty much maintenance free once it’s up and running.  I wanted to avoid having to constantly tweak and move files manually.
  • Low power consumption and noise – I was planning on putting this system into our entertainment center cabinet, so it had to be quiet and not jack up my power bill running a full PC rig.  An added benefit would be if the system was unobtrusive so it didn’t look too out of place if I couldn’t tuck it back into a corner and hide it.

Based on this, I started looking at using my Pi as the device.  There are a few distros that run Linux under the hood with an XBMC gui.  I figured that this might be the best solution, but after tinkering with it for a bit in testing, this is not the solution for me.  I have multiple media player devices and the AppleTV is already set up and in use in the living room.  I had hacked it when I first got it so that I could play non-apple media, add additional storage and other fun hacker-ish things.  I’ve not been disappointed.  XBMC on it is responsive and i’m able to map shared drives with no serious issues.

I started building the Pi with Xbian and installed Deluge and Flexget.  Seemed to be working pretty well.  Now to test out some automation.  A little stumbling with creating the config files for Flexget to do what I wanted, but ironed those out and set it up to download a few shows and see how it went.  Everything seemed to be going well, but after a few days, i found I couldn’t connect to Deluge with the thinclient from my Mac.  Tried restarting deluge as root to no avail.  Rebooted Pi and it started working again.  Let it run for a few more days and it happened again.   So, back to the drawing board.  The more I thought about what I wanted, i decided to pursue getting the Pi set up as a Linux desktop that would be a torrent downloader and NAS.


Update:  The Pi has been running as a torrent/NAS machine for the last few weeks without any major issues.

Viewsonic gTablet and Asus Nexus 7

Recently i’ve been getting back into reading comics since getting a Nexus 7. I had tried using comic readers on my old Viewsonic gTablet, but it was heavy and cumbersome. The gtab was one of my first forays into the Android world. I had been wanting to get an iPad for the longest time after using one of the ones that the corporate support team has, but could not justify the expense of it. I didn’t see the logic in paying the same amount as i would for a pretty good laptop for a large ipod touch.

I had picked up the gtablet cheap from a few years back and started learning about the process of rooting and installing new roms. Thanks to a pretty active developer community on there was a lot of different things to do with the gtab. The stock ROM was pretty much useless and crippled the functionality of the tablet. The hardware specs of it were very similar to that of the Motorola Xoom just no 3G. The screen was pretty crappy which is ironic considering Viewsonic is/was a monitor manufacturer.

After using the gtablet for a while, i discovered an issue with the charging port. If the tablet was plugged in just right, it would charge, otherwise, there was no connection to the charger. I picked up a Malata Zpad stand that would allow me to charge the tablet via the 15 pin connection at the bottom of the tablet so that took care of the charging issue. I did find that this caused me to not use the tablet as a tablet. I was treating it like a tv; using it for netflix and watching downloaded movies while sitting at my desk.

I posted it for sale on xda and got no nibbles and was able to sell it to a co-worker for his kid. Found a 1st gen Nexus 7 for sale cheaply from Staples and i’m back in business.

Since I had experience with rooting on the gtab, doing it on the Nexus 7 was pretty simple. It also helps that the Nexus is Google’s flagship hardware device and gets all of the newest Android updates before other devices out there. I had it rooted within about 6 hours of picking it up.