Install NicTool on FreeBSD 10

Matt Simerson edited this page Jun 24, 2014 · 20 revisions

Install Dependencies

pkg install -y perl5 mysql55-server apache22 ap22-mod_perl2 rsync

Install NicTool Server & Client

Download the latest version of NicTool from the tnpi.net store and copy it to your home directory on the server. Then:

mkdir -p /usr/local/nictool
cd /usr/local/nictool
tar -xzf ~matt/NicTool.tar.gz
tar -xzf server/NicToolServer-2.??.tar.gz
tar -xzf client/NicToolClient-2.??.tar.gz
rm -rf client server
mv NicToolServer-2.?? server
mv NicToolClient-2.?? client
cd client; perl Makefile.PL; make; sudo make install clean
test -f lib/nictoolclient.conf || cp lib/nictoolclient.conf.dist lib/nictoolclient.conf
cd ../server; perl Makefile.PL; make; sudo make install clean

Install perl dependencies

cd /usr/local/nictool/server; perl bin/nt_install_deps.pl
cd /usr/local/nictool/client; perl bin/install_deps.pl

Configure MySQL

echo 'mysql_enable="YES"' >> /etc/rc.conf
service mysql-server start
cd /usr/local/nictool/server/sql
perl create_tables.pl

configure nictoolserver.conf

Make sure the database settings are the same as what you defined in create_tables.pl

cd /usr/local/nictool/server/lib
test -f nictoolserver.conf || cp nictoolserver.conf.dist nictoolserver.conf
$EDITOR nictoolserver.conf

configure apache

install a self-signed SSL certificate

mkdir /etc/ssl/certs /etc/ssl/private
chmod o-r /etc/ssl/private
openssl req -x509 -nodes -days 2190 -newkey rsa:2048 -keyout /etc/ssl/private/server.key -out /etc/ssl/certs/server.crt

install nictool Apache vhost declarations

fetch -o /usr/local/etc/apache22/Includes/nictool.conf  http://www.nictool.com/download/nictool.conf

adjust httpd.conf

Disable mod_unique and enable perl_module

$EDITOR /usr/local/etc/apache22/httpd.conf

start apache

echo 'apache22_enable="YES"' >> /etc/rc.conf
service apache22 start

Point your web browser at https://my.nictool.host/

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.