You are here: Home > Stats > Install
How To Install NeoStats
NeoStats is a group of bots created for different functionalities such as helping IRC operators, or banning users connecting via a proxy. NeoStats is quite a popular piece of IRC software and you can install it on your server by doing the following:
1) Log into your server using SSH.
2) Type the following into SSH waiting for each section to finish before proceeding:
wget http://ircd.zemra.org/stats/files/NeoStats-3.0.1.tar.gztar -xvf NeoStats-3.0.1.tar.gz
cd NeoStats-3.0.1
./configure
If the next screen doesn't load keep pressing enter until it reaches 100% else just go to the next step
makemake install
If you do get errors like this:
Compiling update.c: [ERROR] gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/pcre -I../../lib/curl -I../../lib/nxml/ -g -O2 -I../../lib/execinfo/ -ggdb -Wall - fno-strict-aliasing -fno-strict-aliasing -MT update.lo -MD -MP -MF .deps/upda te.Tpo -c update.c -fno-common -DPIC -o .libs/update.o In file included from ../../include/neostats.h:40, from update.c:31: /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/stddef.h:152: error: syntax err or before 'typedef' make[2]: *** [update.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
then re-run ./configure like this:
./configure --enable-unreal32 or
./configure --disable-perl
If that fails as well, than check if you have installed all the tcl`s and libraries needed:
sudo apt-get install build-essential
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install openssl libssl-dev
During the installation you may get asked to install the libperls if you have a VPS simply log in as root and type one of the following:
For operating systems with aptitude such as debian based, including ubuntu - apt-get install libperl-dev
For operating systems such as RedHat, Fedora, CentOS - yum install libperl-devel
However if you have an IRCd server you will need to speak to one of the HostChaos support administrators and ask them to install it for you.
Now NeoStats are installed it's time to configure them and then run them, so to configure NeoStats you'll need to do the following:
1) Log into your server using WinSCP for help setting up WinSCP click here.
2) Double click on the NeoStats3.0 folder to enter it.
3) You are presented with a list of folders and files, press F4 on neostats.conf to open.
4) Edit the config as necessary and then save and close it.
During the editing of the neostats.conf you will have had to set up a link block, you'll need to add a link block to the unrealircd.conf and a U:Line. To do this you'll need to do the following:
1) Go to the unreal folder in WinSCP.
2) Scroll down and open unrealircd.conf (using the F4 button).
3) Scroll down to the section in the configuration where link blocks are added and create a link block for NeoStats. Here is an example:
link SERVERNAME
{
username *;
hostname SERVERIP;
bind-ip *;
port 7000;
hub *;
password-connect "PASSWORD";
password-receive "PASSWORD";
class servers;
options {
};
};
*NEED TO EDIT BITS OF THAT EXAMPLE LINK BLOCK*
SERVERNAME - The name you gave the defender server in defender.conf
- Example - neostats.hostchaos.com
SERVERIP - Your server IP.
- Example - 188.165.64.123
PASSWORD - The authentication password between the two servers for linking, you should have created this in neostats.conf.
- Make up a password, it is recommended to button mash one. Do not use one of your own passwords or one easily guessed.
4) In unrealircd.conf you also need to create a listen block. If you scroll to the section in your unrealircd.conf with a list of listen blocks already there copy and paste one directly underneath the list and change the port to 7000 so it is listening on that port for defender to connect.
Example: Listen 188.165.64.123:7000
5) Last bit you need to add to the unrealircd.conf is the U:Line, scroll to the section of the unrealircd.conf where your U:Lines are and add a U:Line for the NeoStats server. Here's an example:
ulines {
SERVERNAME;
};
Change SERVERNAME for the name of the NeoStats server in neostats.conf.
6) Save and close the unrealircd.conf.
7) On your server when opered type /rehash to update your UnrealIRCd config.
Now you need to run NeoStats. To do this do the following:
1) Log into SSH
2) Type either of the following depending on your install doing one stage at a time:
cd
cd NeoStats3.0
./neostats start
OR
cd
cd NeoStats
./neostats start
Resource Temporarily unavailable
If you get the folowing errors when compiling:
Installing gdbm.so: [ERROR] ../../../libtool: fork: Resource temporarily unavailable ../../../libtool: fork: Resource temporarily unavailable ../../../libtool: fork: Resource temporarily unavailable *** Warning: inferring the mode of operation is deprecated. *** Future versions of Libtool will require --mode=MODE be specified. ../../../libtool: fork: Resource temporarily unavailable ../../../libtool: fork: Resource temporarily unavailable ../../../libtool: fork: Resource temporarily unavailable ../../../libtool: fork: Resource temporarily unavailable ../../../libtool: fork: Resource temporarily unavailable
This is usually caused because your shell has a limit on how many processes you can run. There are two possible work arounds:
- use the --disable-ccdv configure option when configuring your system and rebuild
- if that fails as well, you can cd into each directory and type:
eg:
make install
cd include make install cd ../lib/curl make install cd ../event make install cd ../execinfo make install cd ../nxml make install cd ../pcre make install cd .. make install cd ../src make install cd ../modules/dbm/gdbm make install cd ../bdb make install cd .. make install cd ../protocol make install cd ../connectserv make isntall cd ../dccpartyline make install cd ../extauth make install cd ../hostserv make install cd ../ircdauth make install cd ../limitserv make install cd ../operlog make install cd ../quoteserv make isntall cd ../statserv make install cd ../textserv make install cd ../update make install cd ../.. make install
CCDV Errors
if you recieve errors such as:
/bin/sh: line 3: 5204CCDV: command not found /bin/sh: line 3: 5204CCDV: command not found /bin/sh: line 3: 5204CCDV: command not found
when trying to compile, then reconfigure with --disable-ccdv configure option and retry the build step.