Showing posts with label Linux Stuff. Show all posts
Showing posts with label Linux Stuff. Show all posts

Friday, February 22, 2013

The dreaded SMART failed email

My NAS emailed me about a 3 weeks ago telling me that a drive had failed.

This email was generated by the smartd daemon running on:
host name: shank-nas   
DNS domain: dhcp.theshanks.net   
NIS domain: (none) 

The following warning/error was logged by the smartd daemon: 
Device: /dev/sdc [SAT], Self-Test Log error count increased 
from 0 to 1 For details see host's SYSLOG. You can also use 
the smartctl utility for further investigation. Another 
email message will be sent in 24 hours if the problem 
persists.

I ignored these messages for a while, after all, this drive had just been replaced. It was part of a 2-drive enclosure that I purchased from woot a few years ago. The enclosure starting stalling on data reads in November of 2012 and I sent it in for RMA repair. They send me a new unit with supposedly new drives. Less than 1 month later, this one starts failing. Go Hitachi.

Sunday, January 6, 2013

Home NAS

I've officially exceeded 500 titles on my HTPC and recently had a scare in which one of the drives in the LVM array started exhibiting errors. I decided it was time to separate the disk from the front-end and put some redundancy in-place. I checked out some of the turn-key solutions like Synology and QNAP. It seemed steep to spend $650 for an enclosure with no drives so I set out to build my own.

Monday, July 9, 2012

Cutting Credits with EDL in XBMC

MythTV has been serving me wonderfully for years. It's an incredible system and is still my primary media solution to this day. Unfortunately, the tools provided for managing video metadata have fallen a little behind. I recently switch away from Boxee and gave XBMC a try. What a fantastic front end and the media management tools are perfect.

My wife and I watch Star Trek Voyager each night to fall asleep (I hear you snickering). A minor frustration is that I have to fast forward through the intro credits, and I also have to exit out at the end, select the next episode and then get through those intro credits in a few minutes. It's a really minor annoyance but one I am proud to say I have overcome with the build-in EDL (edit decision lists) that are supported by XBMC.

Saturday, June 4, 2011

Dabbling in Android

My school district recently switched from Verizon to Sprint for service allowing me to select a new phone to replace my Verizon Blackberry 8830. In the interest of understanding the Android camp, I choose a Samsung Epic 4g (Galaxy S) running Andoid Froyo 2.2.1. Based on release dates this puts the generation on par with my iPhone 4. My goal is not to replace my iPhone 4 but to understand if it would be possible and what I would lose (or possibly gain) in a switch to Google's promising mobile OS. 

Sunday, March 7, 2010

Cisco Unified Communication Manager 7 (CUCM7) on VMWare Fusion 3.0 for Mac

I know, catchy title isn't it. Last week I finished Administering Cisco Unified Communication Manager 7 & Unity Connection class in order to help with my overall understanding of our telecom infrastructure at the school district. It was a great class and really filled in the fundamentals I was missing. More importantly, on one of the labs, I noticed a message that CUCM was running under VM. I did some more research and Cisco actually allows this!

When I got home on Friday evening, freshly excited about the class, I grabbed the CUCM 7 media and fired up a new fusion VM. Settings are as follows:

Sunday, February 14, 2010

MythTV Lives On

About a week ago I took the plunge to upgrade my MythTV system to .22 using Mythbuntu. My original backed and bedroom front end were getting on in years and it was time to take advantage of the new package. In order to preserve as much as possible and provide quick back out in-case things went south, I purchased a new 500GB HD to put the OS on. It's overkill but space is cheap and I got a great deal on it.

The other big feature of MythTV .22 is support for hardware acceleration on certain NVidia cards. I looked up VDPAU and selected the least expensive card that supported all of the features. I found a great deal on a  PNY VCG8600GXXB GeForce 8600 GT on NewEgg for a mere $25 after MIR.

When everything arrived, I set aside a full day for the upgrade. I moved the whole MythBuntu install onto a USB flash disk using Unetbootin, backed up the old database and the etc folder, disconnected the old HD and installed the new HD. Booting from the flash disk worked fine and I was quickly into the setup. Installation was a snap and recognized all of the hardware immediately, a task that has taken many weeks before. I followed the steps from MythPVR.com to migrate existing recordings to a new server. There is a comment at the end of the article that if the database is different enough, you should add a -f option to the import which did the trick for me.

I pointed the storage groups for videos at my already installed media drive (640GB) and then hot plugged in the old 500GB HD (love SATA), mounted it and then copied the recordings to the new recordings path. I launched the frontend and recordings were up and running. I was a little bummed that the video metadata didn't come through but instead of going back to the original database, I used the included jamu script to gather metadata for all of my movies. It looked a lot nicer and the information was much more accurate and detailed than before.

I went into the Playback settings and set it for VDPAU+. The difference is amazing between the old video card and this one. It's not just the VDPAU but having a dedicated card that seems to make the difference. The one major problem I did run into was pixelation of anything that was in MPEG2 format (recordings). I finally tracked down a thread that this is a known bug on certain motherboards and they are working on a fix. In the mean-time I have reverted to CPU Slim.

Overall I am very pleased with the new software and distribution.

Thursday, May 7, 2009

Oh no! My SSL Certificate Expired.

For the last few days I have been getting emails from my server to the tune of:
################# SSL Certificate Warning ################
Certificate for hostname 'myserver.example.com', in file:
/etc/pki/tls/certs/myserver.example.com.cert

The certificate needs to be renewed; this can be done
using the 'genkey' program.

Browsers will not be able to correctly connect to this
web site using SSL until the certificate is renewed.

##########################################################
Generated by certwatch(1)

which leads me to believe my certificate has expired. I logged into my site and sure enough, it expired 30-days after I created it. I don't think I have ever had a certificate with such a short life.

Tuesday, June 3, 2008

Zenoss

I am working on an HPSwitching ZenPack and needed a place to store the attachment.

HPSwitching ZenPack

Thursday, May 29, 2008

Asterisk Still Rocks

A few days ago I heard a knock at the door and went to see who it was. I usually just don't open the door for people I don't know but the kid looked so excited for someone to open it that I did. He was offering Comcast IP phone service for $20 a month and offered to discount my Comcast High Speed Internet $10 a month if I signed up. Telephone service for $10/mo! I had to break the news to him that I had that price beat.

"How could that be?", he asked.

"Well, Asterisk".

Monday, February 4, 2008

How to Copy Series DVD's into MythVideos

One of the big benefits of Myth is on-demand access to any episode of your favorite shows. I have a few full-series on DVD's and wanted to find the most efficient way to copy them onto my Myth system. The first tool you need is something that can copy the DVD episodes individually to be processed into AVI's. DVD Decrypter fits the bill nicely although there are many tools you can use. The big time saver is a nice little batch file called DVD Decrypter Multiple Feature Ripper. DDMFRip is a simple menu driven process that will allow you to define the basic structure of a DVD through a series of questions and then create multiple subdirectories correctly named for the series you want to copy. You can get a copy and a more in-depth guide here. I made one small change to the ddmfrip.bat file that capitalizes the E for episode in the filename so that a step in the later process of inserting video metadata into MythVideo will work correctly.

Call forwarding with Asterisk

This is more a note for myself to try later and then post my results:

 http://blog.carrel.org/2005/07/calling-features-with-asterisk.html

Friday, January 25, 2008

Whim Discovery: My Experience with Asterisk

It all started at Barnes and Noble in Downtown Denver. It was our anniversary weekend and one of the things we like to do downtown is hit the bookstore and enjoy quiet reading time. I was looking for a book on SELinux which I just couldn’t find in the Linux section. I came across another O’Reilly book called Asterisk: The Future of Telephony. I enjoyed a sunny afternoon reading through the book next to my wife. I only made it a few chapters in but I was hooked. I had just completed a MythTV project and was saving dough on TV already, why not the phone too! After we were done, I put the book back but the fire had already been started.

Saturday, January 12, 2008

My MythTV Setup

I have made a few large changes to my home services in the last year that I wish I had taken the time to document. It's hard to have something working and remember all of the tricks you had to do in order to get things working right. I won't say that setting MythTV up was easy but the result is fantastic.

I have been a die hard TiVo fan from the start. I won my first TiVo in an essay contest with an essay on why every pregnant woman needs a TiVo. The TiVo was great to begin with, it was provider agnostic, Linux based, configurable, upgradable and with a few additional codes you could enable some of the anti-commercial features like 30-seconds skip. When I switched over to DirectTV and purchased a DirectTivo, I noticed that each version of the software that came out provided less and less end-user features and more provider features. It is the sad fate of most companies that they must first service their stock holders and then their retail customers. I wanted to get into a series 2 TiVo but then DirectTV decided they could do it better and abandoned the TiVo platform altogether. I was also looking in to HD and I realized I could either use money or brains to solve the problem. It was time to take control of my PVR and try to provide TV recording, on-demand viewing of my DVD collection and some integrated web services like weather and browsing.

Monday, August 22, 2005

IBM DB2 on Fedora Core 3 64-Bit

I have moved on to my next adventure in writing a native database interface. We have decided to add native DB2 support to our product offering. I was fairly excited when I first started out to install this but after 5 days, I am frustrated and dismayed at the lack of forethought or testing put into the product. I downloaded DB2 8.2 from IBM's web site and installed the 90-day trial for enterprise edition on my Sun Sunfire V20Z development server running Redhat Fedora Core 3, 64-bit edition. Now I bet there are alot of people who want to test DB2 under these types of conditions and from what I read, it just won't work.

Friday, August 12, 2005

Callvantage QoS

I finally got around to fixing the QoS problem with my Callvantage VoIP setup. After determining about 3 months ago that my Callvantage box was dropping packets and causing general outbound havok on my system, I decided to move it inside my network behind my trusty linux firewall/router/mailserver/gameserver box. The unfortunate side effect was that I lost the Quality of Service capabilities. This caused a serious delay in voice transmission and sometimes even stuttering while I was talking on the phone. I usually just accepted it until my friend got his new Actiontec router and it handled VoIP QoS automatically. Now if Actiontec can do it, I know my outdated Redhat 7.3 install should be able to.

Tuesday, February 1, 2005

Oracle Time

Sorry it's been so long since an update. I have been working and coding hard. I was presented with the challenge of adding native ODP.NET (Oracle Data Provider) support to my current project. For those who are looking to get a start on Oracle here is what I did.