Help - Search - Members - Calendar
Full Version: Nfs Server
OESF Portables Forum > Everything Else > Archived Forums > Distros, Development, and Model Specific Forums > Zaurus Distro Support and Discussion > OpenBSD

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

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 get -P ports

# cd /usr
# cvs -qd 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:

To perform a batch mode port build do the following:

# cd /usr/ports
# vi mypackages and add

# 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:
It is also quite easy to setup the same kind of environment on a win32 machine, using cygwin.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.