Salut.
Pentru cei ce DC++ inca mai prezinta un mod de ati petrece timpul liber, intro zi de duminica…plictisit de tv si alte bazaconii…
Mai jos gasiti cateva comenzi interesante.
1.0.0-RC1 version install. All plugins included in verlihub. Stable.
apt-get upgrade
apt-get update
apt-get install build-essential
apt-get install libgeoip-dev
apt-get install geoip-database
apt-get install cmake
apt-get install libpcre3 libpcre3-dev
apt-get install libncurses5-dev libreadline-dev
apt-get install mysql-client mysql-server libmysqlclient-dev
apt-get install gettext
apt-get install curl
apt-get install libssl-dev
apt-get install python2.7-dev
apt-get install git-core
===============================================
Lua install:
Lua 5.2.3 (32bit)
wget http://www.lua.org/ftp/lua-5.2.3.tar.gz
tar -xf lua-5.2.3.tar.gz
cd lua-5.2.3
Note: If your server runs on 64 bit os, for correct lua install you need manually edit these lines on lua-5.2.3/src/makefile
Find:CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
and change it to: CFLAGS= -O2 -fPIC -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)

make linux
make install
================================================
git clone git://github.com/Verlihub/verlihub-1.0.0.git
cd verlihub
mkdir build && cd build && cmake ..
make
make install
ldconfigOther needed things for Ledokol.lua script:
apt-get install curl
apt-get install ngrepOk installing verlihub after compiling:
vh -i
ulimit -n 7000
vh -r or just 1 command: ulimit -n 7000 && vh -r /etc/verlihub
1.0.0 version from git has all plugins included, so you don’t need to install it manually.
For security we recommended to use ledokol.lua security and entertainment bot.
If some plugins aren’t accessible but they are compiled normaly.
!delplug lua
!addplug lua -p “/usr/local/lib/liblua_pi.so” -d “Support for lua scripts” -a 1
!modplug lua -a 1  <– for autostart lua plugin
and so on.

If you got an error with lua plugin:
<Verlihub> /usr/local/lib/liblua_pi.so: undefined symbol: lua_setglobal
That means there are 2 different lua libraries installed on your server, one is installed with apt-get in /usr/lib and second one is compiled manually in /usr/local/lib , you need either to specify which one to use and remove one of them.
For example if you had lua 5.0, lua 5.1 installed by apt-get, and now installing 5.2.x from source first remove:
apt-get remove liblua50
apt-get remove liblua5.1

Downloading the most powerfull verlihub bot named Ledokol and antivirus created for protecting hub from trajan-bots sharers:
wget http://ledo.feardc.net/ledokol.lua -P /etc/verlihub/scripts/
Other usefull thing is blacklist.py which allow to block entires ip lists. For example TOR network:
wget http://ledo.feardc.net/python/blacklist.py -P /etc/verlihub/scripts/
!onplug python
!modplug python -a 1
!bl listadd http://torstatus.blutmagie.de/ip_list_exit.php/tor_ip_list_exit.csv single “Tor exit” 30
!bl listadd http://torstatus.blutmagie.de/ip_list_all.php/tor_ip_list_all.csv single “Tor exit” 30

Update GeoIp City database:
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -P /usr/share/GeoIP
cd /usr/share/GeoIP
gunzip GeoLiteCity.dat.gz

Update GeoIp Database:
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
mv -f GeoIP.dat /usr/share/GeoIP/GeoIP.dat

If you want to create 2 or more verlihubs:  choose other mysql database, other verlihub directory.
And for loading hubs use this from your console, for example:
VERLIHUB_CFG=/etc/verlihub/ /usr/local/bin/vh_runhub
VERLIHUB_CFG=/etc/verlihub2/ /usr/local/bin/vh_runhub
Old plugin “forbid” install and some antispam suggestions:
wget http://downloads.sourceforge.net/verlihub/forbid-1.3.tar.gz
tar -xvf
cd forbid
./configure
make
sudo make install
From hub:
!addforbid “dchub” -C1 -f3 -r “_BAN_5h Reklama”
!addforbid “\.lt” -C1 -f3 -r “_BAN_5m Reklama”
!addforbid “\.com” -C1 -f3 -r “_BAN_5m Reklama”
!addforbid “\.ro” -C1 -f3 -r “_BAN_5m Reklama”
!addforbid “\.ru” -C1 -f3 -r “_BAN_5m Reklama”
!addforbid “\.it” -C1 -f3 -r “_BAN_5m Reklama”
!addforbid “fucking” -C1 -f3 -r “_BAN_5m Stfu Noob”
!addforbid “shit” -C1 -f3 -r “_BAN_5m Stfu Noob”
!addforbid “411” -C1 -f3 -r “_BAN_5m Hubo reklama”
!addforbid “1209” -C1 -f3 -r “_BAN_5m Hubo reklama”
or smth like that:
!addforbid (\.no-ip|\.zapto|\.dyndns|\.bounceme|\.hopto|\.sytes|\.homeip|\.gotdns|\.mine|\redirectme|\.myftp|\.dyn) -f3 -C2 -r “Hub spam! _ban_1h”
!addforbid (\.ro|\.com|\.net|\.biz|\.org|\.info|\.pl|\.fr) -f3 -C2 -r “Hub spam! _ban_1h”
!addforbid (\www|dchub|http://|ftp://) -f3 -C2 -r “Spam! _ban_1h”

Older Verlihub version 0.9.8e-r2 install on Ubuntu by Trumpy

sudo apt-get install build-essential
sudo apt-get install libgeoip-dev
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install mysql-client-5.1 mysql-server libmysqlclient15-dev
wget http://www.verlihub-project.org/download/verlihub-0.9.8e-r2.tar.bz2
tar xvjf verlihub-0.9.8e-r2.tar.bz2
cd verlihub-0.9.8e-r2
./configure
make
sudo make install
if error with mysql tables then type in konsole: ldconfig
Lua plugin install with luasocket(needed for ledokol security and entertainment script and others lua scripts) : http://forums.verlihub-project.org/viewtopic.php?f=26&t=4244
Curl install needed for ledokol update:
For debian and ubuntu distros just: sudo apt-get install curl
For others:
wget http://curl.haxx.se/download/curl-7.16.0.tar.gz
tar -pxzf curl-7.16.0.tar.gz
cd curl-7.16.0
./configure –with-ssl
make
make install
ldconfig -v
OK. No we just need to start the hub:
sudo su
ulimit -n 10240 (unix’s max open files, default is 1024. This also limits hub’s maximum users. Raise if needed.)
vh_runhub
If you want to run 2 or more. Run hub this way:
VERLIHUB_CFG=/your-directory/verlihub/ /usr/local/bin/vh_runhub
For example:
VERLIHUB_CFG=/etc/verlihub/ /usr/local/bin/vh_runhub
VERLIHUB_CFG=/etc/verlihub2/ /usr/local/bin/vh_runhub
!onplug lua     by hub console
!modplug lua -a 1  by hub console for auto load script after restart.

and then paste ledokol.lua to your verlihub scripts directory, load it( !luaload /directory/ledokol.lua) and after it configure it.
To configure ledokol use !ledoconf !ledohelp and !ledoset for changes.
First what you have to set is: !ledoset enableantispam 1
and paste some patterns. Like these. For example:
!antiadd h%s*t%s*t%s*p%s*:%s*/%s*/.+%..+ 3 2 3
!antiadd %.no%-ip%. 3 2 3
!antiadd d%s*c%s*h%s*u%s*b%s*:%s*/%s*/.+%..+ 3 2 3
!antiadd 411 3 2 3
!antiadd 1209 3 2 3
!antiadd listen%.pls 3 2 3
!antiadd 27015 3 2 3
Add spam exeption:
!antiexadd youtube%.%S+
!antiexadd dchublist%.com
You can add forbidden tags, desc, share size, conection types and so on. For it you have to turn on:
!ledoset micheck 1
!ledoset micallall 1
!ledoset michnick 1
!ledoset michdesc 1
!ledoset michtag 1
!ledoset michconn 1
!ledoset michemail 0
!ledoset michshare 1
!ledoset michip 1
!ledoset michcc 0
!ledoset michdns 0
!ledoset michfake 1
!ledoset michclone 0
!ledoset michsameip 0
0 off 1 on
!myinfadd nick spamer
!myinfadd desc http
!myinfadd desc dchub
!myinfadd desc supernova
!myinfadd share 11111111111111111
!myinfadd ip 78.57.146.243
and so on.
In general:
To enable chat antiflood:
!ledoset chatantiflood 1
To enable history lines on mc:
!ledoset histlimit 150
!ledoset histautolines 10
!authadd <nick> <lre> – Add IP authorization entry for nick
!authadd root 78.57.146.243
Don’t forget !ledoconf to see all available variables. There is included chat responder(talking bot), chat reminder, chat words replacer and a lot others… about 140 functions.

Downloading ledokol.lua script: git clone https://github.com/Verlihub/ledokolVerlihub Admins Zone dchub://hub.verlihub.net:7777  24-7 support hub, paste your hub adress in description and use your real admin name like in your hub. Then ask for reg, type: +regme  in main chat.
Verlihub install using Virtualbox virtual machine host: Windows guest os: Ubuntu
First need open the port: 411 or 4111
type in cmd:
cd C:\Program Files\Sun\VirtualBox
VBoxManage setextradata “Mex” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/betkas/Protocol” TCP
VBoxManage setextradata “Mex” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/betkas/GuestPort” 411
VBoxManage setextradata “Mex” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/betkas/HostPort” 411
VBoxManage getextradata “Mex” enumerate
cd C:\Program Files\Sun\VirtualBox
VBoxManage setextradata “Mex” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/betkas2/Protocol” TCP
VBoxManage setextradata “Mex” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/betkas2/GuestPort” 4111
VBoxManage setextradata “Mex” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/betkas2/HostPort” 4111
VBoxManage getextradata “Mex” enumerate
Verlihub – Ultima versiune stabila

Post navigation


Leave a Reply

Your email address will not be published. Required fields are marked *