Freebsd & NBSP Install Hints
User documentation
24 February 2010
Some Notes on installing Freebsd and NBSP:
by Philip Berkowitz
Insert your CD or DVD Installation disk and follow the on-screen directions. When you reach the point of partioning the drives you might
want to try this:
For a standard 1 or 2 Drive Computer:
Install the OS in the smaller drive, and leave the larger drive(s) for the data. As an example:
/ 1GB
swap twice the RAM
/tmp 1GB
/usr 6GB
/home 12 GB
/var the rest
Then mount the second disk, or a partition of it, on /var/noaaport/data.
The important thing is that the spool directory will take about 5-6 GB.
The data directory takes about 40 or 50 GB in the default configuration.
------------------------------------------------------------------------
For a Server with multiple drives (6 in this example):
Partition of da0 -
When you get to the point of defining the partitions for that disk (da0), create the partitions like this:
da0s1a / 1GB
da0s1b swap 12 GB
da0s1d swap 12 GB
da0s1e /usr 12 GB
da0s1f /home (whatever you think you will need) I use 6 GB
da0s1g /var whatever is left
Install the OS as you do normally. Configure the network, etc, but do not yet install Nbsp.
Add this seeting to rc.conf
tmpmfs="YES"
1) Edit the file
/etc/fstab
and delete (or comment out) the entry that starts with
/dev/da0s1d none swap
(If it is not da0s1d, let me know, and don't do step 3 yet).
After doing that, reboot agin.
2) Go to the directory
cd /var
and create some directories in "noaaport":
mkdir -p noaaport/data
mkdir -p noaaport/nbsp/spool
3) Execute the following commands:
zpool create zpool0 da0s1d
zfs create -o mountpoint=/var/noaaport/nbsp/spool -o atime=off zpool0/noaaport-nbsp-spool
zpool create zpool1 da1 da2 da3 da4 da5
zfs create -o mountpoint=/var/noaaport/data -o atime=off zpool1/noaaport-data
4) Add
zfs_enable="YES"
to /etc/rc.conf.
5) You are done. Install Nbsp now and proceed as usual.Once Freebsd has finished installing, open a terminal window and add these two packages before rebooting (if you want a Desktop GUI, otherwise don't add).
- pkg_add -r xorg
- pkg_add -r gnome2
When this is completed add this to your rc.conf file:
# ee /etc/rc.conf
and add
gdm_enable="YES" add gnome_enable="YES" hald_enable="YES" dbus_enable="YES"
If you need to add any additional ports at this time (such as receiver or Lan)
follow this example for the rc.conf file.(You should have already setup one port during the installation).
ifconfig_dc0="inet 192.168.0.3 netmask 255.255.255.0" Novra ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0" DHCP
Now that you have completed these changes you can reboot and log in.
Now to add some packages that NBSP needs to work:
#pkg_add -r db47 #pkg_add -r tk85 #pkg_add -r tcllib #pkg_add -r tcl86 #pkg_add -r netpbm expect #pkg_add -r gd #pkg_add gnuplot (Download from NBSP website). #pkg_add nbsp2.0.X.
If installing gempak add these packages first:
#pkg_add -r open-motif #pkg_add -r gcc34
Open /etc/rc.conf.local in an editor, and add this line:
nbspd_enable=1
It is also important to make sure that your server has the correct time. Specifically it has been shown that if the server time is slightly off, GRlevel 3 will not ftp the correct series of images to your website.
After that, nbspd is started and stoped by executing the following in a terminal, as root/usr/local/etc/rc.d/nbspd start
/usr/local/etc/rc.d/nbspd stop
You can be in any directory.
If you have a problem stopping NBSP and get a message like this:
#Stopping nbspd.
Waiting for PIDS: 857.857.857 etc.
Open another terminal and type:
kill -KILL 857 (substitute your numbers)