Friday, August 31, 2007

install pfsense on a CF card

Having just gone through my first pfsense & m0n0wall installation *yawn* I thought I would share and record this before I forget. Installing pfsense on a compact flash can be pain since the embedded images are meant to be used on a small appliance device that doesn't have VGA support. You will hear the line that it supports serial access only.

If you try to boot up a CF card with the regular embedded image you will get a message that looks like this:

Searching for Boot Record from IDE-0..OK

BTX Loader 1.00 BTX version is 1.01 Consoles: internal video/keyboard BIOS drive C: is disk0 BIOS 639KB/257024kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1 (sullrich@builder.livebsd.com, Sun Oct 29 01:30:00 UTC 2006) Loading /boot/defaults/loader.conf /

and then it hangs. It is actually working in the background, just not echoed to the screen.

In order to get pfsense onto your compact flash card with vga support you will need a 3rd party modified version of the image. Hacom is currently a source for those images:

Network Appliances \ pfSense Appliances \ pfSense Firewall Software

When you get there, you will see file names like this:

You will notice that there are several version of each firmware:

pfSense-1.2-RC2-1gb-ad0.img.gz

The first part is the firmware version, in this case it's version 1.2 RC2.

pfSense-1.2-RC2-1gb-ad0.img.gz

The second portion is the the size of the compact flash card you will be using not RAM (e.g.128, 256, 512, 1gb). The example is for a 1 GB memory card. They have already expanded the images to make up to that size usable, I'm guessing this is much the way a Tivo hard drive upgrade works).

pfSense-1.2-RC2-1gb-ad0.img.gz

The next part is the location of the CF card on your IDE chain (e.g. ad0, ad2, da0). I'm no expert but I believe this is what they mean:

  • ad0: primary master IDE (/dev/ad0)
  • ad1: primary slave IDE (/dev/ad1)
  • ad2: secondary master IDE (/dev/ad2)
  • ad3: secondary slave IDE (/dev/ad3)
  • da0: USB memory stick (/dev/da0)

and the final section just shows that it is a gzipped image.

To write these onto a compact flash card, unzip them and use physdiskwrite.

http://m0n0.ch/wall/physdiskwrite.php

  1. Connect your compact flash to your computer.
  2. save phydiskwrite.exe and the ungzipped pfsense image (pfSense-1.2-RC2-1gb-ad0.img) to the same directory
    • c:\temp\phydiskwrite.exe
    • c:\temp\pfSense-1.2-RC2-1gb-ad0.img
  3. open DOS window
    • start > run > cmd
  4. navigate to the directory
    • c:
    • cd \temp
  5. start phydiskwrite
    • phydiskwrite pfSense-1.2-RC2-1gb-ad0.img
    • if the image file you're writing to the compact flash card is larger than 2GB then you may need to use the "-u" switch. Currently 1Gb is the largest size downloadable.
      • phydiskwrite -u pfSense-1.2-RC2-1gb-ad0.img
  6. phydiskwrite will now ask for which device to write to. If you pick the wrong one you could over write your hard drive. Make absolutely sure before you select one.
    • Roadkil's Disk Image is another utility to write an image and is GUI based, it looks friendlier than phydiskwrite, but I haven't used it before. Try at your own risk.
  7. Get those thumbs twiddling. If you are writing the 1GB image, it will take a looooooong time, over an hour.
  8. Properly drop the compact flash using the Safely Disconnect Hardware utility in your system tray.
  9. YOU'RE DONE!!!!!!!!!!!
Sept 20, 2007: Just an update that everything is amazingly still working great!

Monday, July 23, 2007

dryers and stupid clothing companies

There should be a rule. EVERYTHING CAN GO IN THE DRYER UNLESS IT SAYS IT CAN'T! If the clothes will shrink if they go anywhere near heat then there should be a label on them with exact instructions on what should be done with them. I don't see labels on each individual sock I own, they all go in the dryer. 100% cotton into the dryer. And what's with the stores and you ask them if the clothes will shrink. Every store says it might shrink a little bit in length. It won't shrink in width...

Friday, July 20, 2007

Beijing's Cardboard-Stuffed Buns a Hoax -- South Florida Sun-Sentinel.com

Beijing's Cardboard-Stuffed Buns a Hoax -- South Florida Sun-Sentinel.com: "BEIJING - A freelance reporter for a Beijing television station has been detained for faking a hidden camera report about street vendors who used chemical-soaked cardboard to fill meat buns, local media said."

Thursday, July 19, 2007

Lifehacker Code: Better Gmail (Firefox extension) - Lifehacker

Lifehacker Code: Better Gmail (Firefox extension) - Lifehacker:
Gmail's good, but it could be better. We've featured several Greasemonkey scripts that enhance Gmail in lots of different ways - like adding saved searches, attachment icons, label colors, keyboard macros, a filter assistant and right-click conversation previews.

Tuesday, July 17, 2007

STEWART/STAND: woven stainless steel wallets

STEWART/STAND

Blackberry Solutions Guide

Bring your worlds together, virtually anywhere.
Whether you're an entrepreneur, executive or busy parent, one thing's for certain: the world is changing. With BlackBerry® solutions, you can connect and collaborate virtually wherever you are. Not just through email, PIM and voice but with access to the applications and information necessary to make important decisions quickly. The BlackBerry Solutions Guide contains hundreds of applications and services that have been developed to help you do just that. Allowing you to access everything you need to be successful right at your fingertips.

Sunday, July 15, 2007

Medbroadcast: Report: Cardboard main ingredient in steamed buns sold as Beijing street food

Infections - Signs, Symptoms, Causes & Treatment - Medbroadcast:
BEIJING (AP) - Chopped cardboard, softened with an industrial chemical and made tasty with pork flavouring, is a main ingredient in batches of steamed buns sold in one Beijing neighbourhood, state television said...

"What's in the recipe?" the reporter asks. "Six to four," the man says.

"You mean 60 per cent cardboard? What is the other 40 per cent?" asks the reporter. "Fatty meat," the man replies.

The bun maker and his assistants then give a demonstration on how the product is made.

Squares of cardboard picked from the ground are first soaked to a pulp in a plastic basin of caustic soda - a chemical base commonly used in manufacturing paper and soap - then chopped into tiny morsels with a cleaver. Fatty pork and powdered seasoning are stirred in.

Soon, steaming servings of the buns appear on-screen. The reporter takes a bite.

"This baozi filling is kind of tough. Not much taste," he says. "Can other people taste the difference?"

"Most people can't. It fools the average person," the maker says. "I don't eat them myself."

The police eventually show up and shut down the operation