" />

mikerochford.com Being technical


Cleaning up /boot of old kernels on Debian based Operating systems

dpkg -l | grep linux-image | awk '{print $2}' | egrep -v "($(uname -r)|^linux-image-server$)" | xargs dpkg --purge

Filed under: Uncategorized No Comments

Filesystem backups

I always deal with friend and family's computers. They are always full of viruses and mail-ware. All they care is "Backup my music and pictures." Well I got tired of always trying to search and finding these files on there disk. So I wrote a quick little python script to gather all the files I want based on the file extension. Please see the script below and let me know what you think.


Filed under: Uncategorized No Comments

Find all the perl modules in your script and make sure they are installed

Ever migrated code from one server to another and never remember if you captured all the modules that need to be installed? I have, its a pain in the ass sometimes. So I thought I would throw together a little script to check if I have all the modules I used installed. I have written it in python and perl (Dont ask!)



mrochford@mrochford-linux:~/bin$ ./perl_module_check.pl simpleMenu.pl
Found 5 modules in simpleMenu.pl
Testing Config: OK
Testing Data::Dumper: OK
Testing FindBin: OK
Testing Strings::IO: NOT INSTALLED
Testing strict: OK


Installing VMWare tools for Debian or Ubuntu

Packages that are required to install VMWare Tools in debian or ubuntu

apt-get install make gcc linux-headers-$(uname -r)

Tagged as: , No Comments