Both sides previous revision Previous revision Next revision | Previous revision |
debian:other-debian:usenet-indexer-debian [2017/11/15 12:34] – [Installation des Indexers] michael | debian:other-debian:usenet-indexer-debian [2019/04/16 15:02] (current) – michael |
---|
* ''<wrap em>Minimum 12 GB verbaute / allozierte RAM!</wrap>'' | * ''<wrap em>Minimum 12 GB verbaute / allozierte RAM!</wrap>'' |
* Putty Client | * Putty Client |
| |
| https://www.linuxbabe.com/ubuntu/set-up-nzedb-usenet-indexer-ubuntu-16-0417-04 |
| |
FIXME | FIXME |
# sed -i "s/ServerTokens OS/ServerTokens Prod/" /etc/apache2/conf-available/security.conf | # sed -i "s/ServerTokens OS/ServerTokens Prod/" /etc/apache2/conf-available/security.conf |
# sed -i "s/ServerSignature On/ServerSignature Off/" /etc/apache2/conf-available/security.conf | # sed -i "s/ServerSignature On/ServerSignature Off/" /etc/apache2/conf-available/security.conf |
| |
| # vim /etc/apache2/apache2.conf #->> change at "<Directory /var/www/>... AllowOverride None" to -> AllowOverride All |
</code> | </code> |
| |
| |
<code> | <code> |
# sed -i "s/max_execution_time = 30/max_execution_time = 120/" /etc/php/7.0/cli/php.ini | # sed -i "s/max_execution_time = 30/max_execution_time = 300/" /etc/php/7.0/cli/php.ini |
# sed -i "s/;date.timezone =/date.timezone = Europe\/Zurich/" /etc/php/7.0/cli/php.ini | # sed -i "s/;date.timezone =/date.timezone = Europe\/Zurich/" /etc/php/7.0/cli/php.ini |
</code> | </code> |
<wrap em>Now we have to do the same for our php7.0-fpm Configuration:</wrap> | <wrap em>Now we have to do the same for our php7.0-fpm Configuration:</wrap> |
<code> | <code> |
# sed -i "s/max_execution_time = 30/max_execution_time = 120/" /etc/php/7.0/fpm/php.ini | # sed -i "s/max_execution_time = 30/max_execution_time = 300/" /etc/php/7.0/fpm/php.ini |
# sed -i "s/memory_limit = 128M/memory_limit = 1024M/" /etc/php/7.0/fpm/php.ini | # sed -i "s/post_max_size = 8M/post_max_size = 64M/" /etc/php/7.0/fpm/php.ini |
| # sed -i "s/memory_limit = 128M/memory_limit = 2048M/" /etc/php/7.0/fpm/php.ini |
# sed -i "s/;date.timezone =/date.timezone = Europe\/Zurich/" /etc/php/7.0/fpm/php.ini | # sed -i "s/;date.timezone =/date.timezone = Europe\/Zurich/" /etc/php/7.0/fpm/php.ini |
</code> | </code> |
# configurations by nZEDb | # configurations by nZEDb |
innodb_file_per_table = 1 | innodb_file_per_table = 1 |
max_allowed_packet = 16M | max_allowed_packet = 128M |
group_concat_max_len = 8192 | group_concat_max_len = 8192 |
</sxh> | </sxh> |
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nzedb.* TO 'nzedbuser'@'localhost' IDENTIFIED BY 'YOUR-PASSWORD'; | MariaDB [(none)]> GRANT ALL PRIVILEGES ON nzedb.* TO 'nzedbuser'@'localhost' IDENTIFIED BY 'YOUR-PASSWORD'; |
MariaDB [(none)]> GRANT FILE ON *.* TO 'nzedbuser'@'localhost'; | MariaDB [(none)]> GRANT FILE ON *.* TO 'nzedbuser'@'localhost'; |
| MariaDB [(none)]> GRANT RELOAD ON *.* TO nzedbuser@'localhost'; # (used when optimising DB) |
MariaDB [(none)]> FLUSH PRIVILEGES; | MariaDB [(none)]> FLUSH PRIVILEGES; |
MariaDB [(none)]> quit</code> | MariaDB [(none)]> quit</code> |
<WRAP center box 100%> | <WRAP center box 100%> |
==== Tmux Version 2 installieren ==== | ==== Tmux Version 2 installieren ==== |
* https://forums.nzedb.com/index.php?topic=2464.0 | <code># apt-get install libevent-dev build-essential git autotools-dev automake pkg-config ncurses-dev |
| # apt-get remove tmux |
| # cd /tmp/ |
| # git clone https://github.com/tmux/tmux.git --branch 2.0 --single-branch |
| # cd tmux |
| # ll |
| # ./autogen.sh |
| # ./configure |
| # make -j4 |
| # make install |
| # make clean |
| </code> |
</WRAP> | </WRAP> |
| |
</code> | </code> |
| |
* Unordered List ItemUnder Modules, check the following boxes: chansaver, keepnick, kickrejoin, nickserv, perform, simple_away -> Click “Save and Return” | * ''**Under Modules, check the following boxes:** __chansaver__, __keepnick__, __kickrejoin__, __nickserv__, __perform__, __simple_away__ -> Click “Save and Return”'' |
</WRAP> | </WRAP> |
| |
http://nzedb.readthedocs.io/en/master/ircscraper.html#ircscraper | * Under Default Settings, change Channel Modes to +stn |
FIXME | |
| |
| * Under Default Settings, change Buffer Size to 1000 |
| |
| * Click Save and Return |
| |
| http://nzedb.readthedocs.io/en/master/ircscraper.html#ircscraper |
</WRAP> | </WRAP> |
| - Configure IRCScraper: ''<wrap em>(We’re assuming you install nZEDb to /var/www/nZEDb/)</wrap>'' <code># cd /var/www/nZEDb/configuration/ |
| # cp ircscraper_settings_example.php ircscraper_settings.php |
| |
| # vim ircscraper_settings.php</code> <sxh bash; gutter: false;> |
| |
| |
| https://github.com/nZEDb/nZEDb_Misc/blob/master/Guides/Various/IRCScraper/Guide.md |
| |
| http://nzedb.readthedocs.io/en/master/ircscraper.html#ircscraper |
| |
| ==== TO DO ==== |
| <code># useradd -c nzedb nzedb |
| # usermod -a -G nzedb www-data |
| |
| ***Login with nzedb*** |
| # /var/www/nZEDb/misc/IRCScraper |
| # php scrape.php true false true |
| </code> |
| |
| |