Jackl0phty's Blog

Rants, tirades, and sporadic outbursts from 'the Linux guy'.

How to Back Files Up to S3 DevOPS Style With OpsChef

| Comments

This blog post will discuss how to copy files to Amazon’s simple storage service (S3) using Opscode Chef.  Awright, let’s get krack-a-lackin!

This Blog Post Makes the Following Assumptions

   1. You have successfully installed chef-client.

   2. You have a working knife config.

   3. You have either a working open source chef server or you’re using enterprise chef.

    Note: Enterprise Chef comes with 5 free nodes!

Jackl0phty’s Raspberry Pi Adventures Part 1: Format SDCARD and Write Raspbian Image

| Comments

This blog post will discuss how to get started using your Raspberry Pi. Hopefully, this will be the first of many Raspberry Pi related posts to come. This post will focus on how to format your SDCARD and write the Raspbian image to it. This blog post will assume that you’re using either a UNIX or Linux based system.

Awright, let’s get crackin’ and hopefully learn some stuff! :).

First, tail -f whatever log you’re writing kernel messages to. For most people this is either /var/log/messages or /var/log/kern.log.

[email protected] ~ # tail -f /var/log/kern.log

Deploy a Caching Bind9 CHROOTed DNS Server With Opscode Chef

| Comments

This blog post will discuss how to use the industry leading configuration management tool Chef, from Opscode, to deploy a caching Bind9 DNS server installed in a CHROOT jail environment.

First download and install my bind-chroot cookbook from within your main chef-repo like so:

Install my bind-chroot cookbook from the community site
[email protected] ~/chef-repo/ $ knife cookbook site install bind-chroot

Howto: Upgrade From Debian Squeeze to Wheezy

| Comments

This blog post will discuss how to upgrade from Debian squeeze to wheezy.

We’ll start by cleaning a few things up.

Clear out local repository of retrieved package files no longer needed
apt-get autoclean
Remove packages no longer needed
apt-get autoremove

Using Perl to Print Avery Labels

| Comments

This blog will discuss how to use the Perl module PostScript::MailLabels to print Avery labels.

The basic design is to have your user(s) run the following BASH shell script, which will then call a Perl script that builds a postscript file, then the BASH script will send the postscript file to the printer.

Here is the shell script your user(s) will run.

How to Recover the Password for the Cisco ASA 5505 Adaptive Security Appliance

| Comments

This blog will discuss how to reset the password on Cisco’s ASA 5505 Adaptive Security Appliance. First I will assume you are using Cisco’s gudie for recovering your password located at http://www.cisco.com/en/US/docs/security/asa/asa71/configuration/guide/trouble.pdf . Start at page 7 entited “Performing password Recovery for the ASA 5500 Series Adaptive Security Appliance.

Using Perl to Execute Remote Commands

| Comments

This blog will discuss how to both securely execute a command on a remote server and securely copy a file from that server.

Here is the Perl script that can securely execute commands on as well as securely copy files from a server.

Net::Hulu Perl Module on CPAN

| Comments

I wrote a Perl CPAN module Net::Hulu a while back. You can install it like so:

perl -MCPAN -e 'install Net::Hulu' 

Net::Hulu provides methods to download all XML-formatted RSS feeds provided by hulu.com and return a data structure to the user containing the Data from the RSS feeds.

The following methods will download RSS feeds from hulu.com to directory where Hulu.pm is installed.