Archive for the ‘Computers’ Category

pfSense on WRAP

Tuesday, March 23rd, 2010

I’ve been running pfSense on my WRAP board for a while now. Thus far its pleased me very well.
I had some problems getting the PPTP VPN working on 1.2.2RC1 and decided to take the plunge to 2.0-BETA.

In doing so you need to change a boot setting so that nanoBSD will boot on a WRAP board.
Fire up your favorite FreeBSD box (Or boot the pfsense LiveCD like I did) and find the device mapped to your CF card.
Then run ‘boot0cfg -o nopacket /dev/‘ That should do it.

If you’re like me an built your shiny new pfSense 2.0 install on an ALIX board, you’ll need to change the ‘vr0/vr1′ interfaces to ‘sis0/sis1′ in the pfSense config file.
The config file is located in /dev/s3/conf/config.xml.

Have fun.

Anritsu Training

Wednesday, April 15th, 2009

Fun training on gear that will do some really high speed networking.

JSON Support in Centos and PHP5

Tuesday, February 3rd, 2009

Over on my PhotoBlog I had some problems getting the fancy resize/(prev/next) AJAXy thing working. The documentation for the “Reflection” theme doesn’t mention you need this….just PHP5. The JSON support isn’t included by default until PHP5.2.

What you need to get it working on Centos without PHP5.2.

1) yum install php-devel
2) yum install php-pear
3) pear install json
4) add “extension=json.so” to /etc/php.ini
5) service httpd restart
6) You’re done.

Microsoft Annoys Me.

Monday, January 26th, 2009

I’m sure most of you have seen those new Microsoft ads.
The ones where some lady talks about “Mining the Mountains of Data find the useful nuggets of information”.

I pretty much vomit every time I see it. Maybe that sort of speak works for some people, but I just get annoyed.
The commercial doesn’t even seem to be selling anything. It’s just a bunch of marketing speak for 30 seconds with the Microsoft logo at the end.

Congratulations Microsoft, all you’ve done is annoy me into the ground.

Desktop Icons

Wednesday, December 10th, 2008

Yes, I admit it.
I judge you on the size and quantity of your desktop icons.
To be clear, the more or bigger they are. The less I think of you.

Across the five computers I use regularly at work and home, I have a total of three icons and they are set to the smallest setting possible.

Fedora 9 Panel/Applet Restore

Wednesday, October 29th, 2008

If you’re like me and like to futz with stuff and end up blowing away your lower panel in KDE, simply log out and remove this file.
It’ll make KDE think you’re a brand new user and restore everything to the defaults.

‘rm ~/.kde/share/config/plasma-appletsrc’

Times Change….

Monday, October 27th, 2008

Since I update my status so much on Facebook I pretty much always forget to update my blog.
I’m going to try to keep this more up to date. I’ll likely post more and more technical stuff and hopefully more photography related posts as well.

So, on Thursday I turned off the last server in my apartment.
The machine known as carnivore was a VALINUX 1220. It was a pretty nice ebay find way back in 2003.
I think I bought it for $300. It’s ran three or four websites for myself and a few friends over the years.

Since carnivore was my gateway I had to replace it with a Linksys BEFSR41 that I had laying in one of my tubs of electronic gear. (I’ll eventually replace this with a more modern VPN router thing to make life/work easier) I had to update the firmware but using MAC cloning I was able to swap it without any incident. It’s going to be weird not having a box I can just SSH into from anywhere and have direct access to my network. I port forward SSH to a machine inside but it still isn’t the same.

The nice thing is that I now only have two large towers running in my home office. They are still loud and way more trouble than they’re worth. I’m thinking about walking down to the Apple Store today and picking up a Mac Mini to replace the aging Windows box. Since I found out TurboTax has an OSX version, I no longer need Windows for anything. I plan to replace my aging Linux box with a Shuttle PC. This reduction of fan noise and heat in that room will be amazing.

Gallery Transition Hints

Sunday, September 28th, 2008

Because I’m likely to forget this the next time I upgrade or transition to a new server or something.
This adds the “Image resize” drop down in the Carbon Theme for Gallery2.

edit ~/gallery/themes/carbon/templates/photo.tpl

look for ‘class=”giInfo”}’ On the next line add..

{g->block type=”core.PhotoSizes” class=”giInfo”}

Smokeping RRD Generation

Wednesday, September 10th, 2008

Mostly for my own documentation purposes. This is how you do the math to calculate database sizes when you change the steps to something other than the default in smokeping.

#########################
*** Database ***

step = 30
pings = 20

# consfn mrhb steps total

AVERAGE 0.5 1 20160 #7-day worth 30-second avg
AVERAGE 0.5 10 8640 #30-day worth 5-minute avg
AVERAGE 0.5 30 38400 #400-day worth 15-minute avg
MIN 0.5 10 8640
MAX 0.5 10 8640
MIN 0.5 30 38400
MAX 0.5 30 38400
#########################

Math here:
step x #ofSteps x Y = length of database in seconds
(#ofSteps is a multiple of your step adding up to how granular you want
your data to be. In my case 30s=1, 2m=4, 5m=10, etc)

To calculate for 7 days worth of 30 second averages:
30 x 1 x Y = 7days x 24h/day x 60m/hour x 60s/min
(translated to)
30 x 1 x Y = 7 x 24 x 60 x 60
(30 x Y = 604800) or (Y = 604800/30) or 20160

Intermapper Remote and Helper Apps

Friday, July 25th, 2008

A quick note, so I don’t forget, on how to make InterMapper Remote launch ssh/telnet in iTerm instead of OSX’s Terminal.

Monitor>Helper Apps>Customize

Launcher:
osascript -e ‘tell app “iTerm”‘ -e ‘activate’ -e ‘set myterm to the first terminal’ -e ‘tell myterm’ -e ‘set mysession to (make new session at the end of sessions)’ -e ‘tell mysession’ -e ‘exec command

(leaving the last ‘ off is important)

Edit “Telnet”
Command Line:
${LAUNCHER} “/usr/bin/telnet ${ADDRESS}”‘ -e ‘end tell’ -e ‘end tell’ -e ‘end tell’

Edit “SSH”
Command Line:
${LAUNCHER} “/usr/bin/ssh username@${ADDRESS}”‘ -e ‘end tell’ -e ‘end tell’ -e ‘end tell’

And set your Double-Click preferences to either Telnet or SSH.