***************************************************FREEBSD NFS SERVER FOR OPENBSD PORTS & SRC***************************************************Using a NFS server to store/build your ports collection and system sources will reduce wear and tear on your zaurii's internal hard drive and save you ~1.0GB of diskspace over time. Create an NFS share on a FreeBSD box:# ssh or login on locally to NFS server
# cd /usr
# mkdir openbsdports
# mkdir openbsdsrc
# vi /etc/rc.conf and add
mountd_flags="-r"
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
# vi /etc/exports and add
/usr/openbsdports /usr/openbsdsrc -maproot=root zaurusipaddress
# reboot
You may want to check that the nfs mount points are being exported after the reboot. On the nfs server do the following: # showmount -e
Exports list on localhost:
/usr/openbsdsrc <---
If you see this/usr/openbsdports <---
and this then your good to go!Now on the Zaurus:# vi /etc/fstab and add
nfsserverip:/usr/openbsdsrc /usr/src nfs rw,noauto 0 0
nfsserverip:/usr/openbsdports /usr/ports nfs rw,noauto 0 0
# mkdir /usr/ports <---
If it doesn't exist# mkdir /usr/src <---
If it doesn't exist# mount /usr/ports
# mount /usr/src
Use cvs to download the ports collection and openbsd source from some cvs mirror into your NFS share:# cd /usr
# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P ports
# cd /usr
# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src
Once this has completed you can either rebuild your system from source, build your ports one-by-one or do a batch mode port build (Thanks gen2 for providing this info!) all on the nfs server: To rebuild your system from source checkout my other post: https://www.oesf.org/forums/index.php?showt...ndpost&p=140611To perform a batch mode port build do the following: # cd /usr/ports
# vi mypackages and add
www/w3m
net/nmap,no_x11
port-type-dir/portname
# make BUILD=yes SUBDIRLIST=/usr/ports/mypackages install
or to build ports one-by-one: (common sense)# cd /usr/ports/port-type-dir/portname
# make
# make install
If you would like to use a OpenBSD box for the nfs server then read the faq found here: http://www.openbsd.org/faq/faq6.html#NFS