52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
$OpenBSD: README,v 1.2 2011/06/02 13:41:40 ajacoutot Exp $
|
|
|
|
+-----------------------------------------------------------------------
|
|
| Running ${FULLPKGNAME} on OpenBSD
|
|
+-----------------------------------------------------------------------
|
|
|
|
To start with prewikka, you have to create the "prewikka" database.
|
|
|
|
Instructions for PotsgreSQL:
|
|
|
|
# su - _postgresql
|
|
$ createdb -O prelude prewikka
|
|
$ cd ${TRUEPREFIX}/share/prewikka/database/
|
|
$ psql -U prelude -W prewikka < pgsql.sql
|
|
|
|
Then, fill-in prewikka.conf, sections [idmef_database] and [database]
|
|
to use postgresql ("type", "host", "user", "pass", "name").
|
|
|
|
Instructions for MySQL:
|
|
|
|
Login as a privileged user, e.g. 'root':
|
|
|
|
# mysql -u root -p
|
|
mysql> CREATE DATABASE prewikka;
|
|
mysql> GRANT ALL PRIVILEGES on prewikka.* to prelude IDENTIFIED by '...';
|
|
|
|
# cd ${TRUEPREFIX}/share/prewikka/database/
|
|
# mysql -u prelude -p prewikka < mysql.sql
|
|
|
|
Then, fill-in prewikka.conf, sections [idmef_database] and [database]
|
|
("host", "user", "pass", "name").
|
|
|
|
Instructions for SQLite:
|
|
|
|
# cd /var/prelude/
|
|
# sqlite3 prewikka.db < ${TRUEPREFIX}/share/prewikka/database/sqlite.sql
|
|
# chmod 700 prewikka.db
|
|
|
|
Then, fill-in prewikka.conf, sections [idmef_database] and [database]
|
|
to use this/these database file(s), thanks to the "file" keyword
|
|
(which indicates the location of the database).
|
|
|
|
Eventually, you can start prewikka's webserver (or Apache) which is
|
|
listening by default on 8000/tcp using:
|
|
|
|
if [ -x ${TRUEPREFIX}/bin/prewikka-httpd ]; then
|
|
echo -n ' prewikka-httpd'; ${TRUEPREFIX}/bin/prewikka-httpd &
|
|
fi
|
|
|
|
The default user is "admin", with "admin" as password and should be
|
|
changed.
|