Biobug.org

Projects, notes, etc by Will O’Brien

Entries


My WishList
Resume
Want My Coffee?

Production

Photo Gallery
Articles
Podcasting
News

Amusements

Audio
Brewing
Cigars
Coffee
GPS/GeoCaching
Hacks
Home Theater
Kayak
Machine Shop
Photography
Recipes
SCUBA Diving

Research

CNC
CAD
Scripts
VR Interface
Environment
KarKomp
KarKompV2
MythTV

Reference

OWLNet
Quit Soda
Mac
Linux
Tech Ref
Panasonic Toughbook
Dreamhost hosting

Communication

Blackberry
T-mobile MDA
Danger Sidekick
WRT54G(s)

Transport

4Runner
Beetle
Jeeps
Motorcycles
EV Motorcycle
About
Links
Search

Ubuntu 14.04 smokeping

27 August, 2014 (10:13) | Linux | No comments

Smokeping is usually trivial to install on Ubuntu, but 14.04 has some extra quirks. Sigh.

If you’ve installed smokeping, configured a target and added the smokeping.conf to the apache conf-available directory, then used a2enconf to turn it on….

You might be getting ‘Service Unavailable’ on your host when you visit http://yourbox/cgi-bin/smokeping.cgi.

Well, smokeping uses fastcgi so that performance doesn’t suck. You need to install the fastcgi mod.

sudo apt-get install libapache2-mod-fcgid

Go forth and enjoy. More on stupid apache changes later…

Annd we’re back.

4 July, 2013 (13:13) | Uncategorized |

This site was murdering my web server every so often. After looking around a bit, I found that I had 2GB worth of comment/comment meta data. The comment system was just murdering the server. I’ve decided to turn off comments for now. I just don’t have the time to sift through them (this site makes enough from the ads to cover hosting, but that’s about it.) Let’s all take a moment and thank the SEO jerks for ruining something else on the internet.

I’ll keep posting from time to time, but comments are dead for now.

Setting up an awesome home media system

20 April, 2013 (09:17) | Uncategorized | 1,155 comments

I used to spend a lot of time playing with various home theater toys. It was one of my main hobbies before I owned a house. Once I bought a house, my priorities changed a bit out of necessity. When we got the house, I did replace my diy video screen with an electric drop down screen. Then I sold my old projector and replaced it with a 720p Mitsubishi. I’m a bit on the cheap side when it comes to HT gear. I’m far too used to Moore’s Law in computing. I thought I’d post a bit about the state of my cheap geek home theater.

Let me talk about my goals for the project: Enjoyment! I want good sound! I don’t want to cringe if things get broken! (I have kids after all.) My kids are allowed to use everything. My wife needs to be able to use it without turning into the incredible hulk. Oh, and it’s got to be awesome.

0) Just a bit regarding layout. See the doorway above? It meant that I was limited to a 16:9 for maximum screen size. The setup needed to be centered on the wall for ascetics. I also built in a cabinet that goes into my garage. That provides inset shelving for my audio gear. It also has a door on the back. I can walk into the garage, open the door and access all my wiring without bending over – and there’s good lighting in my shop! This has saved my sanity for years now. I love it every time I need to access stuff. I recently pulled the TV feeds through the wall, so now I just need to get the controller for the screen tucked away and the only wires will be the speaker lines. I’m OK with seeing the wires – wife not so much. I also added the can lights to the room. All of them are on dimmers and light the room in three sections. The room used to be all brown paneling. Now it’s all textured drywall. The Ceiling is a dark Matte color in the palette with the walls to reduce reflection from the screen. Finally, the drop down screen is mounted to a pair of wood spacers that place it in front of the plasma for clearance.

1) Plasma screen” I have a commercial grade Panasonic plasma that weighs something like 80 lbs. It’s pretty hard core. Cost: infinite (Hand me down from father in law) Ok, it was free but I did have to fetch it from Texas. Advantage? Saves projector life, it’s usable during the day with the windows uncovered. Actual cost: $0.

2) Projector: Mitsubishi HC-1500. This unit has served me well. It’s 720p and uses bulbs that clock in at around $100. It’s hard to replace it with a newer unit based on TCO. Cost: $800 new. $600 was offset by my old projector. Actual cost: $200

3) Now semi retired Onkyo 7.1 home theater system. This was a refurb that has since keeled over. It was around $300. It was a great deal with speakers, subwoofer and receiver. The speakers are still in use.

3.1) New receiver: Pioneer Elite SC-25. This was a total ebay score. New retail in 2009 was $1800. 140 watts per channel, 1080p video scaling, multiple zone support, very good sound. The seller couldn’t get it to work with hdmi. The manual is 150 pages long. I guessed that it was user error and appear to have been correct! Total cost with shipping: $100.

4) Electric screen – 104″  16:9 Flexio electric screen. (Links to the 103″ version)This is a Chinese made, but good quality screen. The drop down provides the ability to use the plasma or the screen and keeps the screen safe from kids who may be throwing things (balls, snot, etc). The kids are getting older, but it’s nice not to worry about it. It was my treat to myself when we closed on the house: Total Cost: $230.

5) Blu-ray player – Sony BDP-S570. This player does netflix, hulu, is made by the king of blu-ray (it’s a Sony Format) and does a great job. Cost $130. The user interface could be better, but even the 6 year old has managed to use it.

6) XBox 360 – used for nefarious purposes. Rock band, odd video playback, etc. It was hijacked by my wife from my office, I spent $100 to replace my office unit later on. Cost $100.

7) 2010 Mac Mini – This Mac had issues with ram over 2Gb. It appears to be the controller rather than a particular stick of ram. This was my old home machine forever, so cost for the HT was $0. I added an old apple remote that was getting tossed out at work. It runs Mac OS 10.8 and the Plex media player client. It provides HDMI out for the projector and VGA to the plasma (which doesn’t have an HDMI port). It’s also great for playing emulated games like NES, etc. New cost for the Mac was $600. Actual cost for the theater since it long paid for itself in consulting work: $0.

8) Cables. Over the years, I’ve spent about $100-150 at Monoprice.com on various cables. Those include 50ft HDMI and Component video cables (projector), short HDMI, Audio and TOSlink.

That’s it for the home theater proper. Now we need to add some nerd stuff.

My media storage system is based on the Plex media server. I store my videos on a mac and Plex provides access to systems via the internet, to mobile phones, iPads and my plex player Mac Mini. I have a few other tricks to make it even sweeter. The Plex server is acutally a virtual machine that lives on a VMware ESXi host. Why? I do alot of consulting work with VMware and running the system as a virtual machine means that I can replace the physical host as needed. I can add more ram, storage, processor – all without making major changes to the virtual Mac. The server I use cost about $300 and has totally paid for itself in consulting earnings. Cost: $0. (not including power to keep it running)

A bit of info on the server itself. It’s got four SATA drive bays, 8Gb of ram, and a quad core server grade Xeon CPU. It’s running ESXi 5.1 and sits quietly in a corner of my house. It’s pretty sweet!

So, what’s coming in the future? At some point I’ll get a 1080p projector. Before that, I’m thinking of building some custom speakers. This depends on getting my new gantry CNC mill up and running, but it’ll happen! I’ll be doing a MTM (Mid, Tweeter, Mid design) but am still researching options for design. I’d really like to come up with something unique that really takes advantage of my manufacturing process rather than just a plain box design. The audio from the new Pioneer is great! I feel like the sub is coming up a little short, so I may have a sonotube in my future.

Android ADK and ubuntu 12.10

3 March, 2013 (10:02) | Android | 1,049 comments

I while back I played with setting up an android dev environment. It was annoying. I ended up throwing my hands up in the air and forgot the whole thing.

Now I’ve got a project that needs android, and I’ve had some requests for certain android apps. So, I’ve acquired a Nexus 7 for dev testing and decided to set up a linux workstation to develop on. I had a quad core xeon poweredge tower that’s been sitting in the floor for a few months. (previously it was my test ESXi host.)

So, I installed Ubuntu 12.10 in the usual fashion. (downloaded the iso and wasted a CD since I couldn’t find a thumb drive for it). Post installation, I updated.

sudo apt-get update
sudo apt-get upgrade

Then I needed a version of java to run this thing. The standard free dev environment is eclipse, which needs java.

sudo apt-get install openjdk-7-jre-headless

So now java -version returns some useful information.

java -version
java version “1.7.0_15″
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

After that I downloaded the Android ADT bundle. The ADT bundle has eclipse preconfigured for android development. This is a huge improvement from before. My frustration on my previous attempt was really that eclipse wouldn’t configure properly. This way, it’s pretty trivial to get things running. However, I ran into a problem. When I launched eclipse from the adt bundle, I got an error. Eclipse popped up a window complaining about no such file when trying to run adb.

I have a 64 bit install of ubuntu. I installed the 64bit ADT bundle. However, it wants some 32bit tools! Back to apt-get!

sudo apt-get install ia32-libs

Say yes and let it install the 5 billion dependencies.

Try running eclipse again…

Boom! Headshot! For a second, it looked like it was broken. However, it’s just Ubuntu window management being goofy. Mouse over the menu bar at the top of the screen and the file menu and friends will appear. Now for some development….

Juniper MX LAG to Cisco Nexus 7000 port channel

11 January, 2013 (09:20) | networking | 1,102 comments

I recently needed to set up some aggregated ethernet connections. (LAGs, Etherchannel, port channel, Agg, etc). In this case, it was between a Cisco Nexus 7k series switch and a Juniper MX 480 with trio based blades (MPC-2 to be exact). I did NOT configure this with multi-chassis technology – this is between single devices.

On the MX, you must enable aggregate ethernet interfaces. 100 is overkill, but this is actually from a MX960 in my lab. It’s upper limit is thousands.

set chassis aggregated-devices ethernet device-count 100

Without this, your new interface will never even appear in the interface list.

Now configure your first agg ethernet interface.

set interfaces ae0 description “test aggro port to lexus1″
set interfaces ae0 flexible-vlan-tagging
set interfaces ae0 mtu 9192
set interfaces ae0 encapsulation flexible-ethernet-services
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 unit 1234 encapsulation vlan-bridge
set interfaces ae0 unit 1234 vlan-id 1234

Note the vlan interface. I’m using bridge domains here. You don’t have to do it that way. Here’s the rest of the config for vlan 1234:

set interfaces irb unit 1234 description “test vlan for agg”
set interfaces irb unit 1234 family inet address 192.168.200.1/24

set bridge-domains vlan-1234 domain-type bridge
set bridge-domains vlan-1234 vlan-id 1234
set bridge-domains vlan-1234 interface ae0.1234
set bridge-domains vlan-1234 routing-interface irb.1234

That’s it for the MX configuration. This will work from MX to MX as well if you want a consistent LAG configuration. Now for the Nexus configuration.

Create a port channel:

interface port-channel1234
description “test agg link”
switchport mode trunk
switchport trunk allowed vlan 1234
spanning-tree port type normal
mtu 9216

Now configure and add the interfaces:

interface Ethernet1/3
description “link1 to mx”
switchport mode trunk
switchport trunk allowed vlan 1234
spanning-tree port type normal
mtu 9216
channel-group 1234 mode active
no shutdown

Note the mode active on the channel group. That forces active LACP. Also note the lack of VPC number in the port channel. That’s because it’s a single Nexus that’s not part of a VPC pair. I got burned on my original configuration because I’d left it in there. (Facepalm)

 

Snow Hunting (101?)

30 November, 2012 (09:16) | Adventuring, Travel | 944 comments

When I plot my annual trip – in which I strap sticks to my feet and aim for the best powdered ice I can afford to find – I perform a few rituals to stoke the snow hunter inside.

First of all, I start watching films by Warren Miller, Teton Gravity Research, etc. (I was fortunate enough to win most of the TGR films at a premier a couple years ago) This helps me get excited. I’ve got no desire to pull 360s (well, maybe a little) but seeing people attempt moments of awesomeness on snow is exciting.

Second, I start reading snow forecasts. This doesn’t do much good until a couple weeks out, but it can still get the blood pumping. (Either triumph in not going too early or heartbreak at missing the epic snow of the year) So, without further a due, let’s get to the snow hunting toys.

1) Freshy Map – This is a great use of spatial data. It’ll give you a quick view that you can drill into if you’re really on the hunt for snow. Currently it seems to only have the western United States covered. Sorry East Coasters.

2) Open Snow – These guys are great. They have a widget that you can source into your web site if you like. They have dedicated forecasters who focus on powder and they write up some interesting blog posts about their conclusions along with their hopes and dreams for the coming of The Powder.

3) Pre-trip deal hunting. I tend to haunt Winter Park because they’re a fantastic value. They’re also a pretty good drive for me. I head there from Missouri, take a run through Denver (sometimes with a stop in Boulder to drop off a friend). Winter park is pretty short drive from there. Other spots like Steamboat are a good clip away. My second favorite drive is probably Breckenridge – a place that really really wants 2-300/night for a decent room. Breck is a great place for a larger group, Winter Park is my choice for small inexpensive trips. Each town has it’s own flavor – I suggest exploring to find the right fit.

I’ve noticed a trend with resort web sites. They always have some sort of ‘deal’ which usually ends up being the standard price anyway. I have better luck watching the sites and getting a feel for the normal price. Once in a while there’s a really good deal – like free lift tickets with the hotel. It’s all subjective.

4) The season pass pondering. Sometimes, it’s really truly worth the money to buy a season pass. A WP pass can be a heck of a deal. Buying it in the summer is always cheapest. But it can reap some great benefits. The vouchers will save your friends and family $20-30 depending on the time of year. You’ll usually find discounts on gear and lessons with the pass too. That can really pay off. Saving 10-20% on gear or lessons can help your trip funds last longer. It can also save your wallet – they can typically tie a credit card to your pass for on mountain charges. Less digging around to pay for emergency chap stick is often the best thing ever!

Mount a remote directory via SSH on mac with port and friends

28 November, 2012 (19:51) | mac | 1,148 comments

 

I played with a few broken gui deals and finally happened to find a great link for making this work (if you use homebrew)

However, I use MacPorts – I’ve been using it for a while on various macs. So…

port install fuse4x

port install sshfs

On my first try I had a fail to build. Looking at the referenced logfile, I had to agree to the xcodebuild license.

sudo xcodebuild -license

Scroll to the end and agree (if you do), then re-run the above commands to get things built.

Then, create a mount point. I made mine in my home directory.

sshfs user@domain.com:/dir mountpoint

 

Motherboard bios updating for fun and profit

26 October, 2012 (10:09) | hardware | 1,110 comments

My Gigabyte ga-z68x-ud3h-b3 was due for some updating. It was trivial to use QFlash to update to the latest Award Bios, but it took a little extra work to get it up to the new UEFI bios. Here’s how I did it.

Follow the bootable dos usb tutorial here.

Download the appropriate bios updater and unzip it on the flash drive you used.

Boot your machine. The bios update starts automatically. :)

Follow the boot/power instructions and enjoy your new bios.

OK, it’s really clean this time.

7 October, 2012 (10:15) | News | 846 comments

I was overjoyed yesterday when I pulled up my site and found that it had been blacklisted as an attack site. Yay.

After the last incident, I simply rebuilt the blog, but the new data suggested that the site had been compromised via a plugin that was still there from last time.

So, just to clean things up, I duplicated all my data to a virtual server I spun up just for the occasion and rebuilt the entire web server. It was time to do this anyway – the OS was a few years old and toward the end of the support cycle.

The blacklist turned out to be via Google – so I loaded up their webmaster tools and finally found the malware review link. Before submitting a request, I had the site scanned by several different security tools. Once I was satisfied, I put in the request. Happily, today it’s back off the blacklist. Thank you to the internet jerks who made sure I spent an entire morning rebuilding the server. It needed to be done anyway, but I would have preferred to kick it off in the background while I’m at work rather than on my precious Saturday!

Malicious link removed

17 September, 2012 (10:44) | News | 1,027 comments

It seems that wordpress picked up a nasty little malicious javascript. I’ve cleaned it out.

Details:

It was inserting text sidebars that I don’t use. More info here:

http://labs.sucuri.net/db/malware/mwjs-include-rebots?v5

« Older entries