View on
MetaCPAN
Oliver Gorwits > App-Netdisco-2.036011 > App::Netdisco::Manual::BSDInstall

Download:
App-Netdisco-2.036011.tar.gz

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: App-Netdisco-2.036012_001

NAME ^

App::Netdisco::Manual::BSDInstall - BSD Install Instructions

Introduction ^

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.

You could also look at the following guide for FreeBSD 11: http://www.davidbolton.com/?p=681

Ports Installs ^

Additional Steps ^

Netdisco User

 pw useradd netdisco -N -m -s /bin/sh -w no

PostgreSQL Setup

 /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":

 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.

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).

Run Control Script ^

 # 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

syntax highlighting: