App::Netdisco::Manual::BSDInstall - BSD Install Instructions
This document is compiled from suggestions and comments on the Netdisco mail lists. We're grateful for the help, and if you have any additions please do let the project staff know.
Perl (if not already installed)
p5-DBD-Pg (will also pull in postgresqlXX-client)
p5-DBD-Pg
postgresqlXX-client
postgresqlXX-server
net-snmp (should install the Perl binding SNMP.pm)
net-snmp
SNMP.pm
pw useradd netdisco -N -m -s /bin/sh -w no
/usr/local/etc/rc.d/postgresql initdb /usr/local/etc/rc.d/postgresql start
Make sure PostgreSQL starts at boot by adding the following to "/etc/rc.conf":
/etc/rc.conf
postgresql_enable="YES"
When installing postgresqlXX-server port, it creates the pgsql user with "nologin" shell. As root, do vipw and change the shell to /bin/sh or whichever shell you want, so that you can do the createuser step from the main instructions.
pgsql
nologin
vipw
/bin/sh
createuser
pgtune doesn't seem to work on NetBSD. This needs looking into. Nothing will break, but it just means the server probably isn't tuned to your system's hardware (RAM, etc).
pgtune
# PROVIDE: netdiscoweb # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown rcvar="netdisco_enable"
See also https://www.freebsd.org/doc/en/books/porters-handbook/rc-scripts.html
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Netdisco
CPAN shell
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.