Hvordan sette opp, installere emech ?
Foerst og fremst, oensker aa fremheve at dette er kun et eksempel
paa hvordan sette opp emech hurtig. Les gjerne readme -filene osv.
Det finnes FAQ paa websiden til de som laget emech, hint hint..:)
// MrKI - mrki@c2i.net //
Steg 1, hent emech, saa pakk ut
Steg 2, konfigurer for aa kunne kompilere, samt hva du oensker
Steg 3, kompiler emech (programmet)
Steg 4, dette trengs egentlig ikke.. men gjoer det for det
Steg 5, sett opp en "master", admin-bruker.. deg:)
Steg 6, kopier og rediger konfigurasjons-filen til emech-boten!
Steg 7, lag en katalog og kopier de viktige filene dit.
Steg 8, start opp og proev.. :)
Steg 1, hent emech, saa pakk ut
http://www.energymech.net
http://cvs.energymech.net
mrki@bsd:~$ tar xvfz emech-2.9.3p1.tar.gz
mrki@bsd:~$ cd emech-2.9.3p1/
Steg 2, konfigurer for aa kunne kompilere, samt hva du oensker
mrki@bsd:~/emech-2.9.3p1$ ./configure
checking system type ... NetBSD-i386
checking for C compiler ... gcc
checking whether gcc works or not ... yes
checking whether C compiler (gcc) accepts -g ... yes
checking whether C compiler (gcc) accepts -Wall ... yes
checking whether C compiler (gcc) accepts -Wshadow ... yes
checking whether C compiler (gcc) accepts -pipe ... yes
checking whether C compiler (gcc) accepts -O2 ... yes
checking pointer size ... 4
checking for inet_addr() ... yes
checking for socket() ... yes
checking for usleep() ... yes
checking for proper function of strchr() ... yes
checking for chmod ... /bin/chmod
checking for rm ... /bin/rm
checking for mv ... /bin/mv
checking for objcopy ... /usr/bin/objcopy
Creating src/Makefile
Do you want ...
Debug support? ............................. [y/N]
Seen support? .............................. [y/N] y
Linking support? ........................... [Y/n]
Telnet support? ............................ [Y/n] n
Pipeuser support? .......................... [Y/n]
Dynamic command levels support? ............ [Y/n]
Newbie support? ............................ [Y/n]
Alias support? ............................. [Y/n]
WinGate support? ........................... [Y/n] n
Session support? ........................... [Y/n]
Services support? .......................... [Y/n]
Trivia game support? ....................... [y/N]
Dynamic channel limiting support? .......... [Y/n]
IPV6 support? .............................. [Y/n] n
Creating src/config.h
All done.
Send your bugreports to <emech-dev@energymech.net>
This is a mailing-list so you might not receive a direct answer.
Steg 3, kompiler emech (programmet)
mrki@bsd:~/emech-2.9.3p1$ make
( cd src ; make mech )
/usr/bin/gcc -g -o gencmd gencmd.c
./gencmd > mcmd.h
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c cfgfile.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c channel.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c com-ons.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c combot.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c commands.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c dcc.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c debug.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c function.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c link.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c main.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c parse.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c socket.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c userlist.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c vars.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c xmech.c
/usr/bin/gcc -pipe -g -Wshadow -Wall -O2 -c trivia.c
/usr/bin/gcc -g -o mech cfgfile.o channel.o com-ons.o combot.o commands.o
dcc.o
debug.o function.o link.o main.o parse.o socket.o userlist.o vars.o
xmech.o trivia.o
objcopy --remove-section=.note --remove-section=.comment mech
Steg 4, dette trengs egentlig ikke.. men gjoer det for det
mrki@bsd:~/emech-2.9.3p1$ make install
( cd src ; make install )
/bin/chmod 0700 mech
/bin/mv mech ..
Steg 5, sett opp en "master", admin-bruker.. deg:)
mrki@bsd:~/emech-2.9.3p1$ ./genuser
Checking system, please wait...
Welcome to genuser.
This is used for creating the initial userlist (the superuser record)
for your Energymech. You will need to supply a handle, which is the
name that the bot gives your user details in the userlist. You will
also need to specify a hostmask that uniquely identifies you on IRC.
Global masks are not acceptable. An acceptable hostmask goes in the
form of nick!ident@hostname. A couple of examples are..
*!*jimmy@*.linux.org
*!*haxor@192.168.*.*
Once the bot comes onto IRC, you should message it to set your
password using...
/msg <botname> -setpass <yourhandle> <yourpass>
Enter a handle (8 chars or less): mrki
Enter a hostmask (ctrl-c quits): MrKI!*@*.prophecy.no
Userfile emech.users created.
All done.
Steg 6, kopier og rediger konfigurasjons-filen til emech-boten!
mrki@bsd:~/emech-2.9.3p1$ cp sample.set mech.set
..og rediger mech.set, dette er standard-konfigurasjons-filen..
..bruk joe, pico, vi, hva enn du oensker.. bruk gjerne litt tid!
Steg 7, lag en katalog og kopier de viktige filene dit.
mrki@bsd:~/emech-2.9.3p1$ mkdir ../em
mrki@bsd:~/emech-2.9.3p1$ cp -r mech.set mech logs genuser randfiles emech.users mkindex mech.levels mech.help ../em/
mrki@bsd:~/emech-2.9.3p1$ cd ../em
Steg 8, start opp og proev.. :)
mrki@bsd:~/em$ ./mech
EnergyMech 2.9.3p1, March 12th, 2003
Compiled on Jul 6 2003 13:23:36
Features: SEE, LNK, PIP, DYN, NEW, ALS, SEF
init: Restoring previously saved session...
init: Mech(s) added [ ki ]
init: EnergyMech running...
Dette er et minimum-eksempel av mech.set -filen
SERVER 192.168.1.50 6667
NICK ki
USERFILE emech.users
CMDCHAR -
LOGIN ki
IRCNAME Dette er et eks
MODES +ix-ws
# Channel-Independant toggles and sets. See the -REPORT command for a full
# listing.
HASONOTICE # Yes for Undernet.
TOG CC 1 # We want the bot to require command character
TOG CLOAK 1 # Ignore CTCP's from non-users? Yes.
TOG SPY 1 # Tell who is executing what in the partyline.
SET OPMODES 6 # How many modes in a line? 6 on undernet...
SET BANMODES 6 # How many bans in a line? 6 on undernet...
SET CTIMEOUT 90 # Server connection timeout
SET CDELAY 30 # Delay between connection attempts
# Basic channel setup. You can have as many of these as your server
# supports. See the -REPORT command for a listing.
CHANNEL #lala # Channel name
TOG PUB 1 # Allow public(in-channel) commands? Yes.
TOG MASS 1 # Do mass-mode/kick/ban checks...
TOG SHIT 1 # Activate the shitlist for this channel
TOG PROT 1 # Activate protection of users
TOG ENFM 0 # Dont enforce channel modes.
SET MDL 7 # How many -o before killing the guy?
SET MKL 7 # How many kicks?
SET MBL 7 # And how many Bans?
SET MPL 1 # What to do with massmoders?
# 0 = nothing,
# 1 = kick the bastard,
# 2 = kickban 'em,
# 3 = kickban & shitlist them.