.bashrc

export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux

$hg clone -r release https://go.googlecode.com/hg/ $GOROOT
$cd $GOROOT/src
$./all.bash

Note: fedora case selinux error:
http://groups.google.com/group/golang-nuts/browse_thread/thread/5ffcecb0814b01b8

$hg clone https://gobuild.googlecode.com/hg/ gobuild
$make

error: gobuild.go:62: undefined: os.Dir
edit: os.Dir -> os.PathInfo

$make
$cp gobuild $HOME/bin

$hg clone https://gopages.googlecode.com/hg/ gopages
$cd gopages
$gobuild gopages.go
$cp gopages $HOME/bin

$gobuild main.go
$./main
gopages serving on :9999