Installation Steps -
We change into the users HOME directory.
cd
-
We create and an extra directory for iroffer.
mkdir iroffer cd iroffer/
-
Gettting the sources of the program.
wget http://iroffer.dinoex.net/iroffer-dinoex-3.30.tar.gz
-
Extract the sources.
tar -xvzf iroffer-dinoex-3.30.tar.gz
-
We configure the sources for our Linux version.
cd iroffer-dinoex-3.30 ./Configure -curl -geoip -ruby
-
Should "Configure" report some errors, we have to retry after installing the missing packages.
Sufficient under Debian:
sudo aptitude install make sudo aptitude install gcc sudo aptitude install libc-dev sudo aptitude install libcurl4-openssl-dev sudo aptitude install libgeoip-dev sudo aptitude install libssl-dev sudo aptitude install ruby1.8-dev sudo aptitude install ruby1.8 sudo aptitude install libruby-extras
-
We build the program.
make
-
Now we copy the program to the right place.
cp -p iroffer .. cp *.html .. cp -r htdocs ../
-
We start with the "sample.config.
cp sample.config ../mybot.config cd .. chmod 600 mybot.config
-
Only the bot needs to have write permissions here.
chmod 700 .
-
We create a password for the admin-chat.
./iroffer -c mybot.config
-
We add the directories to the configuration file "mybot.config".
"adminhost" should be set to your hostmask. We activate the internal webserver. The directories for the files is added and we uses it also for uploads.
mybot.config should include:
http_port 8000 http_dir htdocs filedir /home/bot/files uploaddir /home/bot/files
(replace 'bot' with your own login)
-
We create the directory for the files.
cd .. mkdir files
Here we can upload the files with FTP or with XDCC later.
-
We create a startup script.
cd ..
then
nano -w start-iroffer.sh
then
vim start-iroffer.sh
Here we add:
#!/bin/sh cd /home/bot/iroffer ./iroffer -b /home/bot/iroffer/mybot.config
(replace 'bot' with your own login)
-
Make the script executeable.
chmod +x start-iroffer.sh
-
Start.
sh start-iroffer.sh
Now the bot should run and connect.
Share with your friends: |