Compiling Eggdrop My Way
I will just show it in my way. So it maybe different for
someone else.
To get eggdrop running you need a few things:
a) Some sort of a Unix account
b) Pretty good knowledge of IRC and Unix
c) The TCL libraries
First you need to logon to the shell then
--> downloading eggdrop to your shell
- you can get it from eggheads.org / eggdrop.org
-->untar and compiling
- i will show compiling eggdrop1.3.23 that i'm familiar
with
[farking@how farking]$ tar zxvf eggdrop1.3.23.tar.gz
[farking@how farking]$ cd eggdrop1.3.23
[farking@how eggdrop1.3.23]$ ./configure ; make
- wait till it stop, when it stop without
an error it mean that you have successfully compiling your
eggdrop, try to check if file eggdrop in your directory
(just to make sure)
[farking@how farking]$ ls -l eggdrop
- not finish yet, to run an eggdrop you should upload eggdrop
configuration file, here is an edited example eggdrop config
file. After editing the file, you can run your eggdrop.
[farking@how farking]$ ./eggdrop -m bot.conf
- while bot.conf is your config filename.
Note:
Next time you will run the bot (if it goes down, for example)
you don't need the '-m'
Now start an IRC client to connect to the
bot's server, join it's channel and wait for it to come
in. When you see the bot message it with 'hello'(/msg BotNick
hello. You need to replace the word BotNick with the bot's
nickname). Then it will tell you to set a password. You
do that by messaging it with 'pass password' (/msg BotNick
pass mypassword). Replace the word mypassword with your
password, whatever it is (for example: if your password
is IRC, you need to do /msg BotNick pass IRC)
Compile and Setup BNC
First you need to logon to the shell then
--> downloading eggdrop to your shell
-->untar and compiling
- we will compile bnc2.6.2
[farking@how farking]$ tar zxvf bnc2.6.2.tar.gz
[farking@how farking]$ cd bnc2.6.2
[farking@how bnc2.6.2]$ ./configure ; make
-->edit a config file (example of config file)
-->run the bnc
[farking@how bnc2.6.2]$ ./bnc
Compile and Setup psyBNC
Original psyBNC 2.3.1
This just a basic to compile and setup psyBNC,
you can use this step to run another version.
--> downloading psyBNC to your shell (ftp,
wget or lynx.. which you prefer)
--> untar and compiling, follow below command
[farking@how farking]$ tar zxvf psyBNC2.3.1.tar.gz
[farking@how farking]$ cd psybnc
[farking@how psybnc]$ make
--> create psybnc.conf
After 'make' stop without any error, it mean
that you have successfully done compiling it. You now need
to create psybnc.conf that hold psybnc listen port. For
this example i will choose port 12345, you can specify any
port greater than 1024 that currently not used. Open your
favourite text editor (pico, vi, emac, joe..etc), paste
this and save as psybnc.conf
PSYBNC.SYSTEM.PORT1=12345
PSYBNC.SYSTEM.HOST1=*
PSYBNC.HOSTALLOWS.ENTRY0=*;*
--> run the psyBNC
[farking@how psybnc]$ ./psybnc
psyBNC then will goes to background. Now open
your IRC client and connect to your psybnc host and port.
It will ask you a password that will assigned for you. For
command, type /bhelp
Precompiled psyBNC
Normaly SunOS/Solaris doesn't have compilers
like gcc / cc so you aren't able to compile psyBNC by yourself
using above steps, so we will use precompiled psyBNC that
compiled on SunOS on other box that have it.
I also use precompiled bnc/eggdrop for quick
run so i don't have to compiled it every time i wan't to
run it in new box. So i just uploaded already compiled binary
and run it on new box. Quick and saving time. Please take
note that SunOS precompiled will only run on SunOS platform
and will not run on others. Linux precompiled for linux,
AIX precompiled for AIX and the rest. For this example we
will use psyBNC2.2.1-precompiled-SunOs5.6.tar.Z that you
can found in my 'IRC Wares' section.
--> downloading psyBNC to your shell (ftp,
wget or lynx.. which you prefer)
--> uncompress and untar
[farking@how farking]$ uncompress psyBNC2.2.1-precompiled-SunOs5.6.tar.Z
[farking@how farking]$ tar xvf psyBNC2.2.1-precompiled-SunOs5.6.tar
[farking@how farking]$ cd psybnc
--> create psybnc.conf and run it
Open your favourite text editor (pico, vi,
emac, joe..etc), paste this and save as psybnc.conf
PSYBNC.SYSTEM.PORT1=12345
PSYBNC.SYSTEM.HOST1=*
PSYBNC.HOSTALLOWS.ENTRY0=*;*
[farking@how psybnc]$ ./psybnc
Done! Quick and much simpler than using original
psyBNC.
Setting up crontab
To keep you bot or bnc/psybnc running 24 hours you need
to setup a crontab. I will show you how to install it.
--> First you must set up chk script for
each bot/bnc you run on your shell. For bot a chk script
for it is botchk located in scripts/botchk and for bnc a
chk for it is bncchk. Edit it to fit your need and save
it.
-->we want to set the script executable
[farking@how farking]$ chmod +x scripts/botchk
-->At this point, it might be wise to test
if you have everything set up correctly so far. Kill the
bot, and run the botchk script
[farking@how farking]$ kill -9 `cat pid.EggBot`
- If it works, it will launch your bot
-->Next step is to set up the crontab.
Open your favorite editor with a new empy file called "cron"
in your home dir.
- For each bot you run on your shell, add one of these lines:
0,10,20,30,40,50 * * * * /home/myhome/egg/scripts/botchk1
>/dev/null 2>&1
0,10,20,30,40,50 * * * * /home/myhome/egg/scripts/botchk2
>/dev/null 2>&1
- Save and exit the editor, and install crontab
to use the file you just made.
[farking@how farking]$ crontab cron
- This cron will check for every 10 minutes
if bot not running. If it still doesn't work, you may not
have access to crontab on your shell, so check with your
admin.
[ back ]
copydown © 2001-2002 farking.da.ru.
all left weserved
|