Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
debian:other-debian:usenet-indexer-debian [2017/11/15 12:20] – michael | debian:other-debian:usenet-indexer-debian [2017/11/17 10:06] – michael |
---|
# 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> |
| |
- Install ZNC and the extras: <code># apt-get install znc znc-dbg znc-dev znc-perl znc-python znc-tcl</code> | - 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 answers, change to suit your needs. <wrap em>To avoid confusion, it is advisable to set both your username and nick as the same.</wrap> <sxh plain; gutter: false;>Listen on Port: **6664, you can change this if you want** | - Run the configuration wizard: <code># znc --makeconf</code> Answer the wizard with the following answers, change to suit your needs. <wrap em>To avoid confusion, it is advisable to set both your username and nick as the same.</wrap> <sxh plain; gutter: false;>Listen on Port: **6664, you can change this if you want** |
Listen using SSL: **yes, but up to you (this is SSL for the scraper and ZNC, not to IRC** | 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** | Listen on IPv4 and IPv6: **no, but up to you** |
Username: **Make up a unique one, will be used to connect to ZNC** | Username: **Make up a unique one, will be used to connect to ZNC** |
Setup Network: **yes** | Setup Network: **yes** |
Name: **synIRC** | Name: **synIRC** |
Server host: irc.synirc.net | Server host: 192.168.1.14 |
Server SSL: **yes** | Server SSL: **no** |
Server port: **6697** | Server port: **6667** |
Server password: **leave empty** | Server password: **leave empty** |
Initial channels: **#nZEDbPRE** | Initial channels: **#nZEDbPRE** |
</sxh> | </sxh> |
- Change some settings in ZNC <WRAP center round important 100%> | - Change some settings in ZNC <WRAP center round important 100%> |
''Point your web browser to the IP and port of your ZNC machine, i.e. https://192.168.1.2:6664, and login.'' | ''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. | * Under **Global Settings**, change **Max Buffer Size** to 1000 and click Save. |
* Under **Your Settings** -> **Networks**, click Edit next to syncIRC. | * Under **Your Settings** -> **Networks**, click Edit next to syncIRC. |
| |
* 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 | * <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 |
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 | 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 |
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 | 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 |
</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> |
| |
| |