Nelsonshack

Just another WordPress weblog

Archive for February, 2010

FreeBSD: First things first

without comments

Here is a sample of what I do after I first install a FreeBSD box:  After installing packages, etc., you might, as root, run rehash so that the commands in each package are available.

1.  Install PortInstall- pkg_add -r portupgrade

2.  Install BASH- pkg_add -r bash

3.  Install the ports collection:  portsnap fetch, portsnap extract, portsnap update

4.  Add ‘ServerName testingforecho:80′ under the ServerName section in your /usr/local/etc/apache22/httpd.conf

5.  Add ‘kldload accf_http’ to your /boot/loader.conf, then run ‘kldload accf_http’ as root.

6.  Add your hostname to /etc/hosts, like:

::1                     localhost localhost.my.domain
127.0.0.1               localhost .servername.com

7.  Start apache, like this /usr/local/sbin/apachectl start

(It should be noted that at this point, /usr/local/www/apache22 is owned by root.  You should chown -R www:www apache22)

MYSQL

1.  cd /usr/ports/databases/mysql55-server/
2.  make install clean
3.  /usr/local/etc/rc.d/mysql-server start
4.  mysqladmin -u root password newpassword

PERL (might already be installed)

1.  cd /usr/ports/language/perl5.10
2.  make install clean

PHP5

1.  cd /usr/ports/lang/php5
2.  make config (select apache module and zlib, or you’ll have to recompile, later.)
3.  make install clean
4.  cd /usr/ports/databases/php5-mysql and “make install clean”
5.  cd /usr/ports/www/php5-session
6.  cd /usr/ports/graphics/php5-gd and “make install clean”
7.  Make sure that your httpd.conf has LoadModule php5_module libexec/apache/libphp5.so added to it.
8.  cd /usr/ports/lang/php5-extentions and “make install clean
8.5  cd /usr/ports/archivers/php5-zlib and then make install clean
9.  cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini

10.  To the end of your httpd.conf, add:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
11.  Find the line that has "DirectoryIndex index.html" and change it to "DirectoryIndex index.php index.html"
12.  Remove the comment in front of "Include etc/apache22/extra/httpd-languages.conf"
13.  Edit /usr/local/etc/apache22/extra/httpd-languages.conf and add AddDefaultCharset On" at the end of its file.

Networking
1.  In /etc/rc.conf, add something like:  ifconfig_bge0=”inet 192.168.1.13 netmask 255.255.255.0″
2.  In /etc/resolv.conf, add something like:  nameserver xx.xx.xx.xx
3.  Add default route, like this:  route add default 192.168.0.1

Thanks to http://caffetine.org/freebsd-amp.php, http://www.freebsdmadeeasy.com, http://www.freebsd.org, and http://www.bsdguides.org

Written by Nathan Nelson

February 26th, 2010 at 10:17 am

Let the healing begin

without comments

No more cussing:  http://www.mercurynews.com/breaking-news/ci_14470454

Written by Nathan Nelson

February 25th, 2010 at 3:18 pm

Posted in Uncategorized,nathan

2100 calories a day??? *panic*

without comments

So according to this new thing I’m playing with (DailyBurn), I am supposed to keep exercising and only take in about 2100 calories a day.  As an example as to how this might change my diet, it’s 3:27 PM, right now.  I’ve already taken in 2314 calories.  So…I’m gonna starve.  Maybe I’ll start tomorrow.  Not excited about this, but need to lose weight and exercise more.  Also need to be healthier and not have so many asthma issues.

Written by Nathan Nelson

February 23rd, 2010 at 3:27 pm

20 degree run

without comments

Yesterday morning, I went for a run (the first in 16 days.)  It was cold and my asthma caught on pretty quickly.  I tried to take my inhaler only once every mile (these days, that’s all I can really hope for).

Several things have contributed to my asthma being out of control.

1.  I haven’t been taking my control inhaler like I’m supposed to.

2.  I’m overweight by about 20 pounds.

3.  The air is cold (yesterday, I finished the last mile, indoors, on a treadmill.)

4.  I’m not running consistently.

All of these things are adding up, fast.  Gotta get it under control.  I have a lot of races that I want to be in shape for.

Written by Nathan Nelson

February 23rd, 2010 at 1:25 pm

Posted in Health,nathan

Goodle says ‘deeply sorry’ for not using spellcheck

without comments

Sometimes Google’s news headlines are entertaining.

Written by Nathan Nelson

February 23rd, 2010 at 11:30 am

Posted in Geek,nathan

The Scaffolding

without comments

For those of you considering using The Ladders, please take the time to visit my most recent endeavor, The Scaffolding (“Only $1 Billion+ jobs. Only $1 Billion+ talent”) www.anyonelessisscum.com

Written by Nathan Nelson

February 22nd, 2010 at 1:12 pm

Posted in Uncategorized,nathan

Twitter Updates for 2010-02-22

without comments

  • : Turns out you can listen to paint dry, too. #
  • : Big hockey game in 20 minutes…go USA!!! (MSNBC) #
  • : Do you still believe in miracles? #

Powered by Twitter Tools

Written by Nathan Nelson

February 22nd, 2010 at 7:00 am

Posted in Admin Log,nathan,tweets

Twitter Updates for 2010-02-20

without comments

  • There is nothing that I've enjoyed more in the olympics, than the men's hockey. Man, what an exciting sport! #
  • Apparently, my tongue can't generate new cells faster than Listerine can destroy them. #
  • To the former occupant of stall #1 in bathroom C- thanks for being just one more person who can't keep the toilet paper in the toilet. #
  • "Conjunction Junction, what's your function?
    Hooking up words and phrases and clauses." That's right, now it's in YOUR head. #
  • I'll see your eye goop and raise you two ear infections… #
  • http://tweetphoto.com/11931271 Sierra Nevada gets some love at the men's Super-G in Vancouver. #

Powered by Twitter Tools

Written by Nathan Nelson

February 20th, 2010 at 7:00 am

Posted in Admin Log,nathan,tweets

Roxie and Reagan have ear infections

without comments

Roxie and Reagan went to the doctor, tonight, because they’ve had symptoms of conjuctivitus (their eyes have been draining) and Reagan’s complained about her ears.

The doctor confirmed an ear infection, so they are being prescribed an antibiotic. So we are on, like, week 5 of someone in the fam being sick.

Written by Nathan Nelson

February 19th, 2010 at 6:39 pm

Test

without comments

This is a test

Written by Nathan Nelson

February 19th, 2010 at 5:38 pm

Posted in Uncategorized,nathan