Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
debian:other-debian:usenet-indexer-debian [2017/11/11 14:03] – michael | debian:other-debian:usenet-indexer-debian [2019/04/16 15:02] (current) – michael | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Voraussetzungen ===== | ===== Voraussetzungen ===== | ||
- | * Fertig installiertes **Debian 9** / **Ubuntu 16.04** System | + | * Fertig installiertes **Debian 9** / **Ubuntu 16.04** System |
- | * ''< | + | * ''< |
* Putty Client | * Putty Client | ||
- | ---- | + | https:// |
+ | FIXME | ||
- | * https:// | + | <wrap em> |
- | * https:// | + | |
- | * https:// | + | |
+ | |||
+ | ---- | ||
Line 56: | Line 57: | ||
ErrorLog / | ErrorLog / | ||
- | Alias /covers / | ||
< | < | ||
Options FollowSymLinks | Options FollowSymLinks | ||
Line 62: | Line 62: | ||
Require all granted | Require all granted | ||
</ | </ | ||
+ | | ||
+ | Alias /covers / | ||
ProxyPassMatch ^/ | ProxyPassMatch ^/ | ||
Line 70: | Line 72: | ||
# sed -i " | # sed -i " | ||
# sed -i " | # sed -i " | ||
+ | |||
+ | # vim / | ||
</ | </ | ||
Line 102: | Line 106: | ||
< | < | ||
- | # sed -i " | + | # sed -i " |
# sed -i " | # sed -i " | ||
</ | </ | ||
Line 108: | Line 112: | ||
<wrap em>Now we have to do the same for our php7.0-fpm Configuration:</ | <wrap em>Now we have to do the same for our php7.0-fpm Configuration:</ | ||
< | < | ||
- | # sed -i " | + | # sed -i " |
- | # sed -i " | + | # sed -i " |
+ | # sed -i " | ||
# sed -i " | # sed -i " | ||
</ | </ | ||
Line 135: | Line 140: | ||
# 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 | ||
</ | </ | ||
Line 174: | Line 179: | ||
MariaDB [(none)]> | MariaDB [(none)]> | ||
MariaDB [(none)]> | MariaDB [(none)]> | ||
+ | MariaDB [(none)]> | ||
MariaDB [(none)]> | MariaDB [(none)]> | ||
MariaDB [(none)]> | MariaDB [(none)]> | ||
Line 243: | Line 249: | ||
<WRAP center box 100%> | <WRAP center box 100%> | ||
==== Tmux Version 2 installieren ==== | ==== Tmux Version 2 installieren ==== | ||
- | * https://forums.nzedb.com/index.php? | + | < |
+ | # apt-get remove tmux | ||
+ | # cd /tmp/ | ||
+ | # git clone https://github.com/tmux/tmux.git --branch 2.0 --single-branch | ||
+ | # cd tmux | ||
+ | # ll | ||
+ | # ./ | ||
+ | # ./ | ||
+ | # make -j4 | ||
+ | # make install | ||
+ | # make clean | ||
+ | </ | ||
</ | </ | ||
Line 255: | Line 272: | ||
# mkdir -p / | # mkdir -p / | ||
+ | # cp / | ||
+ | # chown www-data: | ||
+ | |||
# chmod 777 / | # chmod 777 / | ||
</ | </ | ||
Line 265: | Line 285: | ||
domain.com/ | domain.com/ | ||
- | </ | ||
+ | Step1 -> System Check should be OK! | ||
+ | Step2 -> Setup Database! | ||
+ | Step3 -> Enter CA-Cert Path: -> / | ||
+ | Step4 -> Configure primary News-Server! | ||
+ | .. | ||
- | + | </ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ---- | + | |
- | + | ||
- | FIXME | + | |
<WRAP center box 100%> | <WRAP center box 100%> | ||
- | ==== Einrichten | + | ==== Einrichten |
- | + | PreDB is a database that contains information about releases. Utilizing PreDB will assist nZEDb in renaming releases and picking up valid releases. It will also allow nZEDb to mark bad releases. Using a preDB will use up disk/database space however, so if you plan on utilizing it, be aware. | |
- | < | + | |
- | # vim / | + | |
- | </ | + | |
- | + | ||
- | <sxh bash; first-line: 1> | + | |
- | #! /bin/bash | + | |
- | + | ||
- | SERVER_BIN=programm | + | |
- | cd /opt/ | + | |
- | + | ||
- | if [ " | + | |
- | then | + | |
- | echo $SERVER_BIN | + | |
- | else | + | |
- | screen -dmS $SERVER_BIN andRequiretOPTIONShere | + | |
- | echo $SERVER_BIN is now alive! | + | |
- | fi | + | |
- | </sxh> | + | |
- | + | ||
- | '' | + | |
- | < | + | |
- | # chmod +x / | + | |
- | # chown -R mcuser: | + | |
- | # ./start_server.sh | + | < |
+ | # php data/predb_import_daily_batch.php 0 local true | ||
</ | </ | ||
</ | </ | ||
- | |||
<WRAP center box 100%> | <WRAP center box 100%> | ||
- | ==== Automatischer Server-Start nach reboot | + | ==== Einrichten von IRCScraper |
+ | Prior to setting up the IRCScraper, you may want to import previous preDB dumps. It’s not necessary, but will help matching/ | ||
- | Damit nun der Server, auch nach einem reboot des Systems wieder automatisch startet, erstellen wir hier einen neuen cronetab eintrag, der dies bei jedem Reboot für uns erledigt: | + | - We need to add a PPA so we can install a better version of ZNC.< |
- | (Achtung !!! Bei einem öffentlichen Minecraft Server sollte es aus Sicherheitstechnischen Gründen __nicht root__ sein, der per crontab der screen startet!) | + | - Install ZNC and the extras: < |
+ | - Run the configuration wizard: < | ||
+ | Listen using SSL: **no, but up to you (this is SSL for the scraper and ZNC, not to IRC** | ||
+ | Listen on IPv4 and IPv6: **no, but up to you** | ||
+ | Username: **Make up a unique one, will be used to connect to ZNC** | ||
+ | Password: **Make up a unique one, will be used to connect to ZNC** | ||
+ | Nick: **Make up a unique one, will be used to connect to IRC** | ||
+ | Alt nick: **Make up a unique one, will be used to connect to IRC** | ||
+ | Ident: **Leave as default** | ||
+ | Real Name: **Leave as default** | ||
+ | Bind host: **Leave as default** | ||
- | < | + | Setup Network: **yes** |
- | # vim / | + | Name: **synIRC** |
- | </ | + | Server host: 192.168.1.14 |
+ | Server SSL: **no** | ||
+ | Server port: **6667** | ||
+ | Server password: **leave empty** | ||
+ | Initial channels: **# | ||
- | < | + | Launch ZNC: **yes** |
- | SHELL=/ | + | </sxh> |
- | PATH=/sbin:/bin:/usr/sbin:/usr/bin | + | |
- | MAILTO=root | + | '' |
+ | |||
+ | * Under **Global Settings**, change **Max Buffer Size** to 1000 and click Save. | ||
- | # For details see man 4 crontabs | + | * Under **Your Settings** -> **Networks**, |
- | # Example of job definition: | + | * <wrap em>(Nur falls SSL = yes)</ |
- | # .---------------- minute | + | 23: |
- | # | .------------- hour (0 - 23) | + | 54: |
- | # | | .---------- day of month (1 - 31) | + | 67: |
- | # | | | .------- month (1 - 12) OR jan, | + | 72: |
- | # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun, | + | 8e: |
- | # | | | | | | + | b3: |
- | # * * * * * user-name | + | d9: |
+ | ef: | ||
+ | 0b: | ||
+ | 23: | ||
+ | 67: | ||
+ | 72: | ||
+ | 8e: | ||
+ | b3: | ||
+ | d9: | ||
+ | </ | ||
- | @reboot root / | + | * '' |
- | </sxh> | + | |
</ | </ | ||
+ | * Under Default Settings, change Channel Modes to +stn | ||
- | <wrap em>Wenn nun bis hier alles geklappt hat, ist die Grundlage des neuen Minecraft Server fertig! Für die Client Authentifizierung mit einem gehackten Client, weiter unten schauen! : | + | * Under Default Settings, change Buffer Size to 1000 |
- | ---- | + | |
- | + | ||
- | + | ||
- | <WRAP center round important 100%> | + | |
- | **Debugging: | + | |
- | Um für Debugging-zwecke auf die Server Console zu verbinden, wird folgendermassen vorgegangen: | + | |
- | < | + | |
- | screen -r BineriNamend | + | |
- | </ | + | |
- | + | ||
- | '' | + | |
+ | http:// | ||
</ | </ | ||
+ | - Configure IRCScraper: ''< | ||
+ | # cp ircscraper_settings_example.php ircscraper_settings.php | ||
+ | # vim ircscraper_settings.php</ | ||
- | ---- | ||
- | ===== Web-GUI Konfiguration des frisch installierten Indexers ===== | + | https:// |
- | FIXME | + | |
- | '' | + | http:// |
- | <WRAP center box 100%> | + | ==== TO DO ==== |
- | <wrap em> | + | < |
- | < | + | # usermod -a -G nzedb www-data |
- | <sxh plain; gutter: false;> | + | |
- | con=false | + | |
- | </sxh> | + | ***Login with nzedb*** |
+ | # / | ||
+ | # php scrape.php true false true | ||
+ | </code> | ||
- | </ | ||
- | ==== Download des Clients ==== | ||
+ | ---- | ||
- | ---- | + | * https:// |
- | + | * https:// | |
- | ===== Weitere Informationen ===== | + | * https:// |
- | + | * http:// | |
- | * Unordered List Item | + | |