debian:other-debian:usenet-indexer-debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
debian:other-debian:usenet-indexer-debian [2017/11/11 14:03] michaeldebian:other-debian:usenet-indexer-debian [2017/11/17 10:06] michael
Line 6: Line 6:
 ===== Voraussetzungen ===== ===== Voraussetzungen =====
  
-  * Fertig installiertes **Debian 9** / **Ubuntu 16.04** System +  * Fertig installiertes **Debian 9** / **Ubuntu 16.04** System mit **statischer IP** 
-  * ''<wrap em>Minimum 16 GB verbaute / allozierte RAM!</wrap>''+  * ''<wrap em>Minimum 12 GB verbaute / allozierte RAM!</wrap>''
   * Putty Client   * Putty Client
  
-----+FIXME
  
 +<wrap em>ACHTUNG: Nicht komplett!</wrap>
  
-  * https://forums.nzedb.com/index.php?topic=2464.0 
-  * https://www.linuxbabe.com/ubuntu/set-up-nzedb-usenet-indexer-ubuntu-16-0417-04 
-  * https://forums.nzedb.com/index.php?topic=2366.0 
  
 +----
  
  
Line 56: Line 55:
     ErrorLog /var/log/apache2/error.log     ErrorLog /var/log/apache2/error.log
  
-    Alias /covers /var/www/nZEDb/resources/covers 
     <Directory "/var/www/nZEDb/www">     <Directory "/var/www/nZEDb/www">
         Options FollowSymLinks         Options FollowSymLinks
Line 62: Line 60:
         Require all granted         Require all granted
     </Directory>     </Directory>
 +    
 +    Alias /covers /var/www/nZEDb/resources/covers
  
     ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/run/php/php7.0-fpm.sock|fcgi://localhost/var/www/nZEDb/www     ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/run/php/php7.0-fpm.sock|fcgi://localhost/var/www/nZEDb/www
Line 70: Line 70:
 # 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>
  
Line 255: Line 257:
  
 # mkdir -p /var/www/nZEDb/resources/tmp/unrar # mkdir -p /var/www/nZEDb/resources/tmp/unrar
 +# cp /var/www/nZEDb/configuration/settings.example.php /var/www/nZEDb/configuration/settings.php
 +# chown www-data:www-data /var/www/nZEDb/configuration/settings.php
 +
 # chmod 777 /var/www/nZEDb/resources</code> # chmod 777 /var/www/nZEDb/resources</code>
 </WRAP> </WRAP>
Line 265: Line 270:
  
 domain.com/install domain.com/install
-</WRAP> 
  
 +Step1 -> System Check should be OK!
 +Step2 -> Setup Database!
 +Step3 -> Enter CA-Cert Path: -> /etc/ssl/certs/cacert.pem
 +Step4 -> Configure primary News-Server!
 +..
  
- +</WRAP>
- +
- +
- +
- +
- +
- +
- +
- +
- +
----- +
- +
-FIXME+
  
  
 <WRAP center box 100%> <WRAP center box 100%>
-==== Einrichten des Server-start Skripts ==== +==== Einrichten von PreDB ==== 
- +PreDB is a database that contains information about releasesUtilizing PreDB will assist nZEDb in renaming releases and picking up valid releasesIt 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.
-<code> +
-# vim /opt/BLAAA/start_server.sh +
-</code> +
- +
-<sxh bash; first-line: 1> +
-#! /bin/bash +
- +
-SERVER_BIN=programm +
-cd /opt/ +
- +
-if [ "$(screen -ls | grep $SERVER_BIN)"+
-then +
-        echo $SERVER_BIN is already running.. +
-else +
-    screen -dmS $SERVER_BIN andRequiretOPTIONShere +
-    echo $SERVER_BIN is now alive! +
-fi +
-</sxh> +
- +
-''Berechtigungen korrekt setzen und den Server starten!:'' +
-<code> +
-# chmod +x /opt/blaa/start_server.sh +
-# chown -R mcuser:mcuser /opt/blaaa+
  
-./start_server.sh+<code>cd /var/www/nZEDb/cli 
 +# php data/predb_import_daily_batch.php 0 local true
 </code> </code>
 </WRAP> </WRAP>
- 
  
 <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/renaming releases. Follow the guide to do this.
  
-Damit nun der Serverauch nach einem reboot des Systems wieder automatisch starteterstellen 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.<code># add-apt-repository ppa:teward/znc && sudo apt-get update</code> 
-(Achtung !!! Bei einem öffentlichen Minecraft Server sollte es aus Sicherheitstechnischen Gründen __nicht root__ seinder per crontab der screen startet!)+  - Install ZNC and the extras: <code># apt-get install znc znc-dbg znc-dev znc-perl znc-python znc-tcl</code> 
 +  - Run the configuration wizard: <code># znc --makeconf</code> Answer the wizard with the following answerschange to suit your needs. <wrap em>To avoid confusionit is advisable to set both your username and nick as the same.</wrap> <sxh plain; gutterfalse;>Listen on Port: **6664, you can change this if you want** 
 +Listen using SSL: **no, but up to you (this is SSL for the scraper and ZNCnot 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**
  
-<code> +Setup Network: **yes** 
-# vim /etc/crontab +Name: **synIRC** 
-</code>+Server host: 192.168.1.14 
 +Server SSL: **no** 
 +Server port: **6667** 
 +Server password: **leave empty** 
 +Initial channels: **#nZEDbPRE**
  
-<sxh bash; first-line: 1+Launch ZNC: **yes** 
-SHELL=/bin/bash +</sxh
-PATH=/sbin:/bin:/usr/sbin:/usr/bin +  Change some settings in ZNC <WRAP center round important 100%
-MAILTO=root+''Point your web browser to the IP and port of your ZNC machine, i.e. http://192.168.1.14:6664, and login.'' 
 + 
 +  * Under **Global Settings**, change **Max Buffer Size** to 1000 and click Save.
  
-# For details see man 4 crontabs+  * Under **Your Settings** -> **Networks**, click Edit next to syncIRC.
  
-# Example of job definition: +  * <wrap em>(Nur falls SSL = yes)</wrap> //Paste the following into the textbox for Trusted SSL fingerprints:// <code>0b:35:ba:24:e7:1c:f6:9e:1f:82:1d:9a:4e:0d:9f:70:8e:91:74:26:57:13:9e:f9:c7:8e:9c:5c:a6:8e:30:62 
-# .---------------- minute (0 - 59+23:2d:7d:fd:79:09:d1:20:ad:6a:88:f1:fc:49:b5:34:cc:00:2a:7f:95:10:07:e7:b7:d7:90:af:7d:eb:7f:07 
-# |  .------------- hour (0 - 23) +54:86:50:b5:7e:08:cb:b4:95:d8:54:9e:fb:8d:f3:6b:97:8a:b7:25:95:d6:3e:38:4c:fb:42:b0:4e:2a:d8:de 
-# |  |  .---------- day of month (1 - 31) +67:7b:f5:25:0d:c0:2d:06:b8:57:2a:ef:9f:5c:2f:c9:48:e9:17:f0:43:22:2e:67:0a:56:ca:f8:ee:98:79:71 
-# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ... +72:26:00:f7:f0:7f:1d:13:a6:20:88:73:ba:42:6c:8b:5e:ef:fd:04:b3:98:90:f7:23:63:bf:08:46:6d:2e:41 
-# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat +8e:17:a3:cd:ea:5c:55:ff:06:14:91:23:3b:d8:26:d5:b0:d5:8f:69:88:5a:b7:60:dd:73:01:54:d0:b2:18:65 
-# |  |  |  |  | +b3:75:8a:5a:a7:ed:5e:ef:22:45:d4:07:bd:06:32:1e:b8:92:07:49:72:cc:7e:7a:63:fb:3f:e1:92:c3:9a:5a 
-# *  *  *  *  * user-name  command to be executed+d9:10:d9:8a:96:0d:f2:89:d1:a0:87:d0:26:42:b8:51:f9:1d:72:fc:fb:ee:d4:32:14:e8:0c:0d:f3:7a:fa:63 
 +ef:da:d9:13:be:ad:97:aa:64:65:42:ed:77:24:89:65:97:44:81:da:3d:38:97:56:86:27:67:90:99:57:48:7c 
 +0b:35:ba:24:e7:1c:f6:9e:1f:82:1d:9a:4e:0d:9f:70:8e:91:74:26:57:13:9e:f9:c7:8e:9c:5c:a6:8e:30:62 
 +23:2d:7d:fd:79:09:d1:20:ad:6a:88:f1:fc:49:b5:34:cc:00:2a:7f:95:10:07:e7:b7:d7:90:af:7d:eb:7f:07 
 +67:7b:f5:25:0d:c0:2d:06:b8:57:2a:ef:9f:5c:2f:c9:48:e9:17:f0:43:22:2e:67:0a:56:ca:f8:ee:98:79:71 
 +72:26:00:f7:f0:7f:1d:13:a6:20:88:73:ba:42:6c:8b:5e:ef:fd:04:b3:98:90:f7:23:63:bf:08:46:6d:2e:41 
 +8e:17:a3:cd:ea:5c:55:ff:06:14:91:23:3b:d8:26:d5:b0:d5:8f:69:88:5a:b7:60:dd:73:01:54:d0:b2:18:65 
 +b3:75:8a:5a:a7:ed:5e:ef:22:45:d4:07:bd:06:32:1e:b8:92:07:49:72:cc:7e:7a:63:fb:3f:e1:92:c3:9a:5a 
 +d9:10:d9:8a:96:0d:f2:89:d1:a0:87:d0:26:42:b8:51:f9:1d:72:fc:fb:ee:d4:32:14:e8:0c:0d:f3:7a:fa:63 
 +</code> 
  
-@reboot root /opt/minecraft/start_server.sh +  * ''**Under Modules, check the following boxes:** __chansaver__, __keepnick__, __kickrejoin__, __nickserv__, __perform__, __simple_away__ -Click “Save and Return”''
-</sxh>+
 </WRAP> </WRAP>
  
 +  * Under Default Settings, change Channel Modes to +stn
  
-<wrap em>Wenn nun bis hier alles geklappt hatist die Grundlage des neuen Minecraft Server fertig! Für die Client Authentifizierung mit einem gehackten Client, weiter unten schauen! :)</wrap>+  * Under Default Settingschange Buffer Size to 1000
  
----- +  Click Save and Return
- +
- +
-<WRAP center round important 100%> +
-**Debugging:** +
-Um für Debugging-zwecke auf die Server Console zu verbinden, wird folgendermassen vorgegangen: +
-<code> +
-screen -r BineriNamend +
-</code> +
- +
-''**Server Console anschliessend verlassen, ohne den Server zu beenden** -> <wrap em>CTRL + a</wrap> //dann// <wrap em>d</wrap> drücken!''+
  
 +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;>
  
----- 
  
-===== Web-GUI Konfiguration des frisch installierten Indexers ===== +https://github.com/nZEDb/nZEDb_Misc/blob/master/Guides/Various/IRCScraper/Guide.md
-FIXME+
  
-''Um nun ''+http://nzedb.readthedocs.io/en/master/ircscraper.html#ircscraper
  
-<WRAP center box 100%> +==== TO DO ==== 
-<wrap em>Beispiel einer korrekt angepassten "server.properties":</wrap> +<code># useradd -c nzedb nzedb 
-<code># cat /opt/m</code> +# usermod -a -G nzedb www-data
-<sxh plain; gutter: false;> +
-con=false+
  
-</sxh>+***Login with nzedb*** 
 +# /var/www/nZEDb/misc/IRCScraper 
 +# php scrape.php true false true 
 +</code>
  
-</WRAP> 
  
-==== Download des Clients ==== 
  
 +----
  
  
  
----- +  * https://forums.nzedb.com/index.php?topic=2464.0 
- +  * https://www.linuxbabe.com/ubuntu/set-up-nzedb-usenet-indexer-ubuntu-16-0417-04 
-===== Weitere Informationen ===== +  * https://forums.nzedb.com/index.php?topic=2366.0 
- +  * http://nzedb.readthedocs.io/en/master/general_guides.html
-  * Unordered List Item+
  
  
  
  • debian/other-debian/usenet-indexer-debian.txt
  • Last modified: 2019/04/16 15:02
  • by michael