Wednesday, September 29, 2010

Auto Emails from Linux

I recently needed to find out the IP address of a test machince on the network.
The machince was set up DCHP and every time it rebooted I needed to know what the IP was, so I wrote this little script.
What this script does is send me an email with the IP address and some other information I found useful.

A coulple of things you need, Mutt installed and fuctioning and access to the /etc/rc.local file.

Copy this script into a file  called
echo "Reboot from Test Machine" > /tmp/rrmessage.txt 
echo -e >> /tmp/rrmessage.txt 
hostname >> /tmp/rrmessage.txt 
echo -e >> /tmp/rrmessage.txt 
/sbin/ifconfig eth0 >> /tmp/rrmessage.txt 
uname -a >> /tmp/rrmessage.txt 
echo -e >> /tmp/rrmessage.txt 
cat /etc/issue >> /tmp/rrmessage.txt 
mutt -s "Reboot Report" < /tmp/rrmessage.txt

Then chmod +x
Now move the to where ever you keep your startup scripts.

Now gedit /etc/rc.local and add the /path/to/scripts/ to the end of the file.

Every time the system reboots you will get a nice little email like this.

Subject: Reboot Report
Reboot from Test Machine


eth0      Link encap:Ethernet  HWaddr 90:24:55:5A:2A:4D  
  inet addr:  Bcast:  Mask:
  RX packets:32 errors:0 dropped:0 overruns:0 frame:0
  TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:4311 (4.2 KiB)  TX bytes:3250 (3.1 KiB)
  Interrupt:169 Memory:fe8f0000-fe900000 

Linux TESTcentos64-bit 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

CentOS release 5.5 (Final)

This will also let you know when the server has had an unplanned reboot.


Thursday, August 5, 2010

Flash for Fedora 12 64bit

I spent a lot of time searching and trying different methods and processes for getting Flash to work on Fedora 12. I finally found a method that works. This is a rpm for the 64bit alpha flash, keep in mind this is an Alpha.

Here are the steps on the command line to get Flash working on Fedora 12:


#yum erase flash-plugin nspluginwrapper*

#cd /etc/yum.repos.d/

#curl -O

#rpm –import

#yum install flash-plugin

For more Fedora 12 tips and tricks go to


Tuesday, July 27, 2010

Update Older RHEL with YUM

I had a running version RHEL 3 WS that had not been updated in a while (more than a year). I found out that it was no longer getting updates from Redhat because the update contract was not renewed. I needed more current software on it to perform software testing. I like to do my updates with YUM which was not available on Redhat EL3, but here is how I got the updates I needed using YUM.
The first problem I encountered was that there is no public repository to update RHEL machines i.e you have to pay for it. I have used CentOS and know that CentOS offers public repositories and they work with RHEL as well. After struggling for some time, I discovered that I was accessing older version of repos through the latest yum, that was not working. I had to use an older version of yum with RHEL 3, since old repos do not support xml based updating.

Now I have a fully updated system. Here is how I did it.

1) Since I needed a older version of YUM I had to looked all over the web for the needed version, once I found it I saved it so you could find it more easily.

2) Download yum-2.0.8-1.noarch.rpm (for RHEL 3) from

3) Install it using
rpm –i yum-2.0.8-1.noarch.rpm

4) Configure your yum.conf to look like this:

name=CentOS-$releasever – Base

name=Red Hat Linux $releasever – Updates

5) Download the gpg key for CentOS rpm packages from
6) Import the key like this:
rpm –import RPM-GPG-KEY-CentOS-3

7) Run “yum update”.

You can change the 3 in the conf files to what ever version of RHEL you are using.


Tuesday, June 8, 2010

How to Clear your Flash Cache

If you use your computer for web browsing and for watching Flash content. There is a good chance you have a lot of flash information cached on your machine. This can cause you not to see updates on flash enabled sites. Just cleaning out your web cache is not enough, your Flash Media Cache can still have information in it. Here is how to clean out your Flash Cache:

Point your browser to:

You should see a screen like this:

Now click on the site you want to want to clean up and click on Delete Website, or you can just click on Delete all sites.

You are all set to get the new version of the flash video or flash game you were looking for.

Thanks to the team at for the tip.


Thursday, June 3, 2010

Install Handbrake on Ubuntu 10.04

Handbrake is a great DVD ripper. Unfortunately the version on theHandbrake website is not working. Here is a ubuntu how to for installing Handbrake on Ubuntu 10.04.
First we need to get DVD playback enabled:
sudo aptitude install ubuntu-restricted-extras
sudo /usr/share/doc/libdvdread4/

Next we need to add the PPA for the Handbrake Snapshots:

sudo add-apt-repository ppa:stebbins/handbrake-snapshots

Your system will now fetch the PPA’s key. This enables your Ubuntu system to verify that the packages in the PPA have not been interfered with since they were built.
Then do and update of the Apt repos lists:
sudo apt-get update
Next you need to install the software. Use the Ubuntu Software Center to install Handbrake. Do a search for Handbrake and install the GTK GUI.
After it installs you should have Handbrake working in Ubuntu 10.04.
Now Start Ripping!
This is a great tool for ripping data for your PS3 Media Server or your Xbox Media Server.

Thursday, April 29, 2010

OpenDNS homeKeeping your family safe online can be a hard. There are some great tools out there, but you need one that is easy to use and cost effective

A great solution is OpenDNS. I have been using OpenDNS in my home for the last 2 years. It is easy to set up and works on your whole network and best of all it is free. OpenDNS has Award-winning OpenDNS Parental Controls that divides the Internet’s content into more than 50 categories. Simply choose your desired filtering level, from “High” to “Minimal,” and check a box. Your filtering preferences take effect in just minutes. Further customize your preferences by adding additional categories like “Social Networking,” “Hate” and “Gambling,” or individual Web sites like that are problematic or unsafe for your household. Also since using OpenDNS my computers have been virtual free of spyware!

Read how to set it up at

Monday, April 26, 2010

Antivirus 2010 Removal

Antivirus 2010 is a rogue anti-spyware program from the same family as Antivirus 2008 and Antivirus 2009. Like its previous incarnations, Antivirus 2010 is advertised through the use of advertisements on the Web pretending to be online anti-malware scanners. These advertisements pretend to scan your computer and then state that your computer is infected and that you should download and install Antivirus 2010 to remove these infections. These rogues are also known to be advertised and installed through Trojans that display fake security alerts in your Windows taskbar stating you are infected. Once you click on one of these alerts, it will bring you to the download page for Antivirus 2010, or even download and install it without your permission.

Read how to remove this nasty virus at