status:

Early weekend woo! Salmon beware, I'm on my way. 2009-07-23

solar project

This is just notes for now, will turn into the real deal soon enough.

Update 2:

http://www.solarpowerrocks.com/washington/
(long winded and annoying, but has info on incentives)

http://solardat.uoregon.edu/NorthwestSolarResourceMaps.html
(PNW solar potential)

http://www.gaisma.com/en/location/lacey-washington.html
(Solar path diagram- they’re kinda hard to read, but that’s basically the path the sun follows across the sky from equinox to equinox.)

Update 1:

http://www.windsun.com/ChargeControls/ChargeCont.htm

http://www.youtube.com/watch?v=Tmb5MB9_TaM

Sun tracking solar panel w/ arduino
http://www.youtube.com/watch?v=ATnnMFO60y8

Arduino solar Tracker
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1224541956/9

http://www.batteryuniversity.com/partone-13.htm

http://www.discovercircuits.com/B/batt-chrg2.htm

Links:

How to make solar power generator
http://www.rain.org/~philfear/how2solar.html

Solar generator diagram
http://www.thefarm.org/charities/i4at/surv/solargen.htm

Optomize Panel w/ mirrors
http://www.thefarm.org/charities/i4at/surv/panplus.htm

Harbor freight solar panel demo
http://www.youtube.com/watch?v=caeEyhJZnTs

pt2
http://www.youtube.com/watch?v=N86eHRGRJwQ

Inverter:
http://www.lanescarproducts.com/225-watt-power-inverter-450-watt-peak.html

inverter faq:
http://www.donrowe.com/inverters/inverter_faq.html

What are amps, watts, volts and ohms?:
http://science.howstuffworks.com/question501.htm

DC Cabling Calculator:
http://www.energymatters.com.au/climate-data/cable-sizing-calculator.php

Connect Mac to Server 2008

Had problems connecting OSX 10.4.11 to our new 2008 Small Business Server. Lots of stuff on Google but no one place seemed to have the silver bullet so I turned to old reliable, the [H]Forums. Turns out you need to adjust some settings on the domain controller having to do with encryption.

Problem: Macs couldn’t access shares over SMB
Solution:

Group Policy Management > +Domains > +Domain.Name > +Domain Controllers > Right click Edit Default Domain Controllers Policy

+Policies > +Windows Settings > +Security Settings > +Local Policies > Click User Security Options

Microsoft network client: Digitally sign communications (if server agrees) : ENABLED
Microsoft network server: Digitally sign communications (always) : DISABLED
Microsoft network server: Digitally sign communications (if client agrees) : ENABLED

Start > Run > gpupdate /force (not sure if this step is needed)

exchange 2007 sending email from copier

So by default if you’re running a single server Exchange solution such as SBS then your server is configured not to accept “anonymous” connections. In other words, devices that aren’t authenticated with the domain can’t send email (with the exception of other Exchange servers. This will stop *nix boxes or multifunction devices like copiers from sending emails.

Run this command from the Exchange management shell to allow anonymous connections.

Set-ReceiveConnector -Identity “Default <insert server name>” -PermissionGroups “AnonymousUsers”

companyweb doesn’t work in firefox

I was trying to access the internal SharePoint site at work and kept getting authentication requests while in FireFox. Some googling turned up the following fix.

In the Firefox address bar type “about:config”
Locate the key called “network.automatic-ntlm-auth.trusted-uris”

Double click and put in a comma seperated list of all your internal sites. In this case I needed to add “companyweb” Didn’t even need a restart and FF no longer asks me for authentication to the SharePoint site

Freebsd Samba won’t start.. silly cups

I don’t provide any print services from my FreeBSD box. So when samba refused to start because of a cups connection problem I was pretty confused.

[user@test ]$ tail -f /var/log/samba/log.smbd

[2009/07/29 10:06:14, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused

After some google work I found this.

For those seeing the same error, it’s apparently solved by adding this
line to [global]:
printcap name = /etc/printcap

So a quick trip to “/usr/local/etc/smb.conf” and I uncomment:

;     printcap name = /etc/printcap

Then I start samba “/usr/local/sbin/smbd -D” and all is good in the world once again.

OpenAudit views

Working on my OpenAudit view.  Trying to get down to 1 report that I can use to prioritize software/hardware upgrade paths for all staff.

This test is just to pull out Office and Windows verision/keys. Not interested in extra stuff like Visio or Project right now since they’re special cases.

Had to do some hacking because even though only Outlook from SBS 2003 is installed on a few computers OpenAudit reads it as full Office 2003 messing up the reporting. To fix this on machines that had OEM Office 2000 installs that don’t register I added the search for ‘Microsoft Office Outlo’

SELECT s.net_user_name, s.system_name, m1.ms_keys_uuid,
if( left( m1.ms_keys_name, 22 ) = ‘Microsoft Office Outlo’, ‘n/a’, m1.ms_keys_name ) AS OfficeVersion,
if( left( m1.ms_keys_name, 22 ) = ‘Microsoft Office Outlo’, ‘n/a’, m1.ms_keys_cd_key ) AS OfficeKey,
m2.ms_keys_name as WindowsVersion, m2.ms_keys_cd_key as WindowsKey
FROM `system` AS s
INNER JOIN `ms_keys` AS m1 ON s.system_uuid = m1.ms_keys_uuid
LEFT JOIN `ms_keys` AS m2 ON m1.ms_keys_uuid = m2.ms_keys_uuid
WHERE left( m2.ms_keys_key_type, 6 ) = ‘window’
AND (left( m1.ms_keys_name, 22 ) = ‘Microsoft Office Profe’
OR left( m1.ms_keys_name, 22 ) = ‘Microsoft Office Small’
OR left( m1.ms_keys_name, 22 ) = ‘Microsoft Office Outlo’)
GROUP BY m1.ms_keys_uuid

memories and coleslaw

L2 Check Mirrors

Just south of Amanda Park, dude in 20+ foot RV gets into fast lane (left lane) going up hill. I decide to pass on the right since this guy can’t read signs. “Slow moving vehicles stay right”. Big 4×4 Dodge truck in front of me passes him, I’m about 50% of the way past and he starts to merge right with no blinker.

I honk my horn and go 2 feet out onto the shoulder, basically as far as I can go without hitting ditch. Check my rear view mirror to make sure I can safely slow down without someone running into me. Red car that was in the left lane had switched right to pass as well. Luckily they backed off fast enough and I corrected back onto the road.

I laid on the horn for the next 30 seconds adrenaline pumping. This is the closest I’ve ever been to a serious accident, also the only time I’ve ever felt like road raging.

This reaffirms my previous suspicions held when growing up that RV drivers on the peninsula are all noobs.

Nagios conquered

I finally have a functional Nagios install going. It’s monitoring all major services mostly through check_tcp currently but will be expanded to be more precise through some plugins soon. Also installed a new theme from http://www.nagiosexchange.org Thanks to Sitzmar for the link.

Nagios

Once I understood the relationships between services, hosts, and commands the whole thing came together pretty quickly. Also props to Brian for answering all my questions and helping me fix the final email problem. Definitely the most rewarding work project I’ve had in a while.

Links:

http://www.section6.net/wiki/index.php/Setting_up_Nagios_in_FreeBSD

http://bobcares.com/index.php/blog/?p=67

http://nagioswiki.com/

http://nagiosexchange.org/

kids fishing

I’m taking my niece to a kids fishing event this weekend. They cram a small pond full of trout and let the kids go crazy. If it’s anything like the derbies in Forks I went to growing up then it will be a cluster F of sharp/barbed & weighted objects.

I’ll be wearing long pants and sunglasses to keep myself safe.