** FreeBSD make.conf for t61 p

The first lesson here is that optimizations are overrated, and can in some cases slow your machine down.

I once rebuilt, just for the hell of it, xorg and gnome2 via ports and found that the system slowed down to a halt. The most you should do is, add your cputype to make.conf so appropriate flags could be passed to gcc during compile. For t61p, it is prescott if you're running i386, and nocona if you're runing freebsd x86_64

    CPUTYPE?=prescott
    CFLAGS= -O2 -pipe 
    CXXFLAGS+= -pipe -O2 
    NO_SHARE=yes
    NO_CLEAN=yes
    NO_CLEANDIR=yes
    COPTFLAGS= -O2 -pipe
    INSTALL=install -C
    BOOTWAIT=0
    DOC_LANG=       en_US.ISO8859-1
A description of the variables listed above is in /usr/share/examples/etc/make.conf

* Enabling iwn4965AGN on freebsd-current/8.0

1. Checkout latest sources from http://svn.freebsd.org/base/head || use cvsup
2. Edit ${PATH_TO_YOUR_LATEST_SOURCE}/sys/${YOUR_ARCH}/conf/GENERIC and add the following lines:
device iwn device iwnfw freebsd-current has debugging options built into the GENERIC config file. Feel free to remove them ;)
3a. Update your system:
make buildworld make buildkernel KERNCONF=GENERIC (or replace GENERIC with name of your conf file) make installkernel reboot After rebooting, merge any updated config files in /etc/ using mergemaster: mergemaster -p Edit the relevant files... in my case i had a fresh install of freebsd so I simply backed up my user password files from /etc/ (group, passwd, pwd.db, spdw.db ) and installed the /etc defaults that came with freebsd-current....thus bypassing the deadly merges..
3b. Acknowledge that you've read and accepted Intel's licence, add the following line to loader.conf :
legal.intel_iwn.license_ack=1
4. Create a vap and set its ifconfig options by adding the following lines to /etc/rc.conf
wlans_iwn0="wlan0" #following example is to setup a basic wep....highly recommended for the paranoid, #just to make life fun ifconfig_wlan0="ssid SSID channel CHANNEL authmode shared wepmode on wepkey KEY weptxkey 1 DHCP"
5. try to bring up wlan0 through general means and see if it picks up your SSID and connects to grab a dhcp address.

* Enable synaptics touchpad on freebsd-current (deprecated and is now officially a port of xorg in FreeBSD

1. Build and install /usr/ports/x11/xorg 2. Build and install /usr/ports/x11-drivers/synaptics 3. Run Xorg -configure and edit the xorg.conf.new file with instructions provided by synaptics install in 2 above 4. Restart Xorg server and see if synaptics works....

* Enable nvidia driver

(note, now nvidia-driver can be built from ports /usr/ports/x11/nvidia-driver )
1. Install xorg (via prebuilt binaries if possible, building through ports and then installing nvidia's driver creates dep issues)
	    export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/"
	    pkg_add -r xorg-7.4
	    
2. Follow the instructions in this thread: http://www.nvnews.net/vbulletin/showthread.php?t=127292

firefox crashes with linuxpluginwrapper

set XLIB_SKIP_ARGB_VISUALS=1