This is an expanded guide to importing the large predb, importing the daily dumps since the large dump and setting up ZNC and IRC Scraper to automaticallly update the predb. It is a supplement to my expanded
nZEDb Ubuntu Guide based heavily on your official guide.
Create the predbCreate the predb and update it
This is a large predb, it can take hours to import on a low end machine.
If you are on a low end machine you should stop your indexer updating scripts.
cd /tmp
wget
https://www.dropbox.com/s/qkmgbvmdv9a5w8q/predb_dump_08172015.tar.gzgunzip predb_dump_08172015.tar.gz
cd /var/www/nZEDb/./misc/testing/Dev
php dump_predb.php local /tmp/predb_dump_08172015.tar.gz
Import updated databases, these are smaller daily updates since July 2014
cd /var/www/nZEDb/cli
sudo chmod 777 /var/www/nZEDb/resources
sudo chown -R username:www-data /var/www/nZEDb/cli
php /var/www/nZEDb/cli/data/predb_import_daily_batch.php 0 local true
When this is done enable IRC scraping
It consists of ZNC to connect to the predb channel and IRC Scraper to scrape the data from the channel
Install the required app for adding PPA's:
sudo apt-get install python-software-properties
Add the PPA:
sudo add-apt-repository ppa:teward/znc
Update your sources:
sudo apt-get update
Install ZNCsudo apt-get install znc znc-dbg znc-dev znc-perl znc-python znc-tcl -y
znc --makeconf
znc server config
port 6665
ipv4 yes
ipv6 up to you
ssl false
load partyline
load webadmin
make yourself an admin
make nick whatever you want
alt nick different from regular nick
ident can be same as nick
realname same as nick
bindhost 0.0.0.0
buffer 100 lines (can increase)
chanmodes +stn
load modules chansaver, control panel, perform and webadmin
choose network synirc
load modules chansaver, keepnick, kickrejoin, nickserv, perform, simple_away
server contego.ny.us.synirc.net
password leave blank
port 6697
SSL yes
Add another srever, yes
server toronto.on.ca.synirc.net
port 6697
add channels
automatically join yes
channel name #nZEDbPRE
add another channel no
add another network no
add another user no
launch znc now yes
Make ZNC run on boot
http://wiki.znc.in/Running_ZNC_as_a_system_daemonConfigure IRC ScraperIrc scraper uses perl to scrape the data from the IRC channel that ZNC is connected to
sudo cp /var/www/nZEDb/misc/testing/IRCScraper/settings_example.php /var/www/nZEDb/misc/testing/IRCScraper/settings.php
sudo nano /var/www/nZEDb/misc/testing/IRCScraper/settings.php
change $username to what you chose in ZNC
$username = 'htpcguides';
SCRAPE_IRC_SERVER to 0.0.0.0
SCRAPE_IRC_PORT to 6665
SCRAPE_IRC_TLS to false
define('SCRAPE_IRC_PASSWORD', 'htpcguides');