Automate DVD Ripping for Mac

I like to rip my DVD’s and put them in iTunes to sync with my phone or iPad. I’m sure I’m not alone and over time I’ve slowly added movies here and there as needed. You know the process rip the dvd, encode, add to iTunes, add the images, blah, blah. Its a long process if you do it right. So while searching for a better way to rip some of my TV show DVDs, I came across the best tutorial I’ve ever seen. Its all wrapped up in automater and I can’t save thank enough for how much time I think this will save me in the future. So if you been looking like I have check out: How-To: Automate DVD & Blu-Ray (Backup, Encoding & Tagging) for Mac OS X 10.6

Status Messages in screen

In the February 2011 issue of Linux Journal Kyle Rankin wrote an article called Status Messages in Screen. I’ve been using screen for years but never thought much about what it could do beside keep my shell open on a remote server. Well this article opened my eyes. I quickly dug in and start working on my .screenrc on my macbook. I was able to write a couple of applescripts to pull inbox counts from entourage and mail.app. Cool stuff i look forward to seeing what other useful info I can get in there since i do like to work at the cli a lot. Thanks Kyle.

Delicious Clean Up

I’ve been using delicious since way back when it was del.icio.us. Pretty much as soon as I heard about it. For some reason today i decided to do a little clean up. I have thousands of bookmarks going back to the beginning of 2004.

Lots of these are dead or just not needed anymore. Like a link to a linux distro in 2004 really isn’t going to help me anymore. Its been interesting looking back and seeing what was interesting to me over the years. All this data is also stored in my lifestream so deleting them, really doesn’t take away from those memories at all.

After just an hour or so of my spare time i got this list down to 99 items. I’m just glad they have a bulk edit option.

Now the next challenge will be to go through these bookmarks and see if the original linked info still exists. If it does then this time if i still find it useful i’ll grab a copy for my offline copy as so many of these links will probably be dead. Well back to it!

Nagios – Notify via Prowl

If your not familiar with Prowl, then check it out. It allows your growl notifications to be sent to your iPhone via push. I use this in several different ways on my home computer to notifications when I’m out at about. You can also access the prowl service directly with its API, so no need to even have it go to growl first.

I like using Prowl (in addition to Growl) with nagios. This allows me to get my notifications anywhere as long as I have my iphone. Just like with the growl notifications, the prowl notifications are just as easy to setup. It is very well documented here at the Reluctant Hacker.

Nagios – Notify via Growl

There are several different ways to get notified by nagios when there is a problem. The most common way is via email. This is usally just fine, except when the service that goes down is the mailserver. There are ways to mitigate this of course.

One simple was is to get your notifications via growl. I really like this, it lets me know almost instantly when some is going on and I don’t have to worry about keeping my eyes on my email program while I’m busy on something else.

The way I implemented it was from a great script and good write up on the Nagios-users mailing list, you can see it all right here: Notify via Growl

Checking the snort process from nagios

I’m checking the snort basically like i’m checking most processes, if you’ve been following allong then you’ll already have a check_procs setup.

So I simply edit my localhost.cfg and add:
define service{
use generic-service
host_name localhost
service_description Snort
check_command check_snort_procs!1:1!snort
}

Edit the commands.cfg and add:
define command{
command_name check_snort_procs
command_line $USER1$/check_procs -c $ARG1$ -C $ARG2$
}

reload nagios and thats it.

My BASE (for Snort) Install Notes for OSX

To get base up and going with snort already installed I did the following.
1. Downlaod ADOdb (database abstraction library for PHP) : http://sourceforge.net/projects/adodb/files/
The version I got was adodb510.tgz

2. Unzip and untar the file
tar -xvzf adodb510.tgz

3. Move the folder
I did:
cp -R adodb5/ /Library/WebServer/Documents/adodb5/

4. Download base: http://sourceforge.net/projects/secureideas/ The version I got was: base-1.4.4.tar.gz

5. Unzip and tar the file
tar -xvzf base-1.4.4.tar.gz

6. You should now have a folder: base-1.4.4/
cd base-1.4.4/

7. Copy the base folder to your webserver folder
cp base-1.4.4/ /Library/WebServer/Documents/base/
change the owner on the folder
sudo chown -R _www:_www /Library/WebServer/Documents/base/
*NOTE*
With this version there was a known problem with the file: base_state_citems.inc.php on some setups, mine included.
So I had to download the fixed version from CVS
You can also download it from the website, follow the link from here:
http://secureideas.cvs.sourceforge.net/viewvc/secureideas/base-php4/includes/base_state_citems.inc.php?view=log
it goes in your /base/templates/

8. Now install the needed pear extensions for graphs to work in base
On my system it was as follows:
First I had to update pear to the rest of the packages would work:
sudo /usr/local/php5/bin/pear install PEAR-1.9.0

Then the following packages:
sudo /usr/local/php5/bin/pear install Image_Color
sudo /usr/local/php5/bin/pear install Image_Canvas-0.3.2
sudo /usr/local/php5/bin/pear install Image_Graph-0.7.2

9. Open up base in your browser:
http://localhost/base/setup/index.php
You should get the page up with the settings, if you have any errors you need to fix them first with their suggestions.
Once you answer all the setup questions you should have a working base install.