W W W . G R O N D K L O N T . N L

FreeBSD based Home Server

Software Package Installation

Yesterday I already installed smartmontools and ataidle, but I did not know exactly how I did this. (Partly because I am new to all this, partly because I was also following the news about MH17...).

Most likely the ports directory was installed automatically, somewhere i must have enabled it.

root@server:/usr/ports/ports-mgmt/portaudit # portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Thu Jul 17 02:11:19 CEST 2014:
6d70a1403c385bded1b0c7fb052b21bd00073006253d91100% of   68 MB 6287 kBps 00m11s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Thu Jul 17 02:11:19 CEST 2014 to Fri Jul 18 08:44:23 CEST 2014.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 272 patches. 
(272/272) 100.00%  done.                                       
Applying patches... 
Fetching 4 new ports or files... done.

Hm. portsnap extract was needed. Now it is rewriting the whole /usr/ports directory...

I wonder if this is what I wanted. :)

Building new INDEX files... done.

So the output from update was quite short:

root@server:/usr/ports/ports-mgmt/portaudit # portsnap update
Ports tree is already up to date.

Retrieving the current installed packages still looks as it should:

root@server:/usr/ports/ports-mgmt/portaudit # pkg info
ataidle-2.7.2                  Utility to spin down ATA drives
dialog4ports-0.1.5_2           Console Interface to configure ports
gettext-               GNU gettext package
gmake-3.82_1                   GNU version of 'make' utility
pkg-1.2.4_1                    New generation package manager
smartmontools-6.2              S.M.A.R.T. disk monitoring tools

This is how you can see the dependencies of a port (sort of):

root@server:/usr/ports/editors/vim # make showconfig
===> The following configuration options are available for vim-7.4.364:
     CSCOPE=on: cscope support
     EXUBERANT_CTAGS=on: Use exctags instead of ctags
     LUA=on: Lua scripting language support
     NLS=on: Native Language Support
     PERL=on: Perl scripting language support
     PYTHON=on: Python bindings or support
     RUBY=on: Ruby bindings or support
     TCL=on: Tcl scripting language support
     XTERM_SAVE=off: Restore xterm screen after exit
====> User interface: you have to select exactly one of them
     ATHENA=off: Athena GUI toolkit
     CONSOLE=off: Console/terminal mode
     GNOME=off: GNOME desktop environment support
     GTK2=on: GTK+ 2 GUI toolkit support
     MOTIF=off: Motif widget library support
     X11=off: X11 (graphics) support
===> Use 'make config' to modify these settings

After make config-recursive and make install it was busy for quite some time.

And behold. VIM works.


It occured to me that I have 196Gb of swap, which is 32Gb per disk. When installing I assumed that the total swap space would be 32Gb...

Unable to find how to decrease swapspace. Because this is also zfs it might not even be possible. Since nothing has been installed yet a reinstall was the easiest way. And, this is all a learning experience so.. Nothing bad about it.

Reinstall (2)

Some points I did not mention before:

But I am quite sure I used a different command the last time...

Added smartmon to rc.conf, not sure wat rc.conf exactly is. Checking this is something I have to do..

Starting smartmontools:

root@server:/usr/ports/sysutils/ataidle # /usr/local/etc/rc.d/smartd start
Starting smartd.
(pass6:ahciem0:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 01 00
(pass6:ahciem0:0:0:0): CAM status: CCB request was invalid
(pass6:ahciem0:0:0:0): ATAPI_IDENTIFY. ACB: a1 00 00 00 00 40 00 00 00 00 01 00
(pass6:ahciem0:0:0:0): CAM status: CCB request was invalid

Finding out what is in /usr/local/etc/smartd.conf must be done too.

Forgot the do portsnap extract... I wonder how this will go in future.