egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

So I needed to build an irc server.. [SOLVED]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
kukhuvud
Voice


Joined: 12 Jun 2007
Posts: 4
Location: Hollywood, CA

PostPosted: Tue Jun 12, 2007 11:00 pm    Post subject: So I needed to build an irc server.. [SOLVED] Reply with quote

I built a Mandriva 2007 box, installed & configured the latest Unreal 3.2, and my friends and I can log into my server with no issues using various clients. Cool!

Now I wanted to add a bot to this server. I urpmi'd tcl & eggdrop, set up eggdrop.conf and launched it... and it claims to be working:

[me@mandriva eggdrop]$ ./eggdrop

Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[04:45] --- Loading eggdrop v1.6.17 (Tue Jun 12 2007)
[04:45] Listening at telnet port 7772 (all).
[04:45] Module loaded: dns
[04:45] Module loaded: channels
[04:45] Module loaded: server
[04:45] Module loaded: ctcp
[04:45] Module loaded: irc
[04:45] Module loaded: console (with lang support)
[04:45] Module loaded: blowfish
[04:45] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[04:45] use '.help userinfo' for commands.
[04:45] Userfile loaded, unpacking...
[04:45] === locutus: 1 channels, 1 users.
Launched into the background (pid: 8262)
[me@mandriva eggdrop]$

...but it never actually logs into the server/chan. I'm able to telnet to the bot with no issues, but the info it gives isn't informative enough to tell me what's wrong:

[04:47] #borg# servers
Server list:
my.dyndns.name:9999
my.external.ip:9999 <- I am here
my.internal.ip:9999
End of server list.
[04:48] Trying server my.internal.ip:9999
[04:48] Connected to my.internal.ip
[04:48] Disconnected from my.internal.ip
[04:49] Trying server my.dyndns.name:9999
[04:49] Connected to my.dyndns.name
[04:49] Disconnected from my.dyndns.name
[04:50] Trying server my.external.ip:9999
[04:50] Connected to my.external.ip
[04:50] Disconnected from my.external.ip

And so on. Eggdrop.log doesn't seem to have any useful info in this case, and I'm really stuck. This is my first irc server & bot setup ever, so I'm hoping that I'm just missing something small & stupid.

Can anyone here set this newbie straight? Smile


Last edited by kukhuvud on Wed Jun 13, 2007 5:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Jun 13, 2007 12:01 am    Post subject: Reply with quote

Setting up an Eggdrop

Note: eggdrop cannot be run from root.
Code:
./eggdrop -n eggdrop.conf

The above will display all connection details. CTRL + C will terminate.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
kukhuvud
Voice


Joined: 12 Jun 2007
Posts: 4
Location: Hollywood, CA

PostPosted: Wed Jun 13, 2007 12:23 am    Post subject: Reply with quote

Alchera wrote:

Note: eggdrop cannot be run from root.
Code:
./eggdrop -n eggdrop.conf

The above will display all connection details. CTRL + C will terminate.


Thanks, that -n is badass! Smile

And the program makes it clear that it doesn't wanna run as root, so I run it as another user "me" Smile

This is the putput from ./eggdrop -n :

[me@mandriva eggdrop]$ ./eggdrop -n

Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[05:58] Allocated bind table unld (flags 1)
[05:58] Allocated bind table time (flags 1)
[05:58] Allocated bind table note (flags 0)
[05:58] Allocated bind table nkch (flags 1)
[05:58] Allocated bind table load (flags 1)
[05:58] Allocated bind table link (flags 1)
[05:58] Allocated bind table filt (flags 1)
[05:58] Allocated bind table disc (flags 1)
[05:58] Allocated bind table dcc (flags 0)
[05:58] Allocated bind table chpt (flags 1)
[05:58] Allocated bind table chon (flags 1)
[05:58] Allocated bind table chof (flags 1)
[05:58] Allocated bind table chjn (flags 1)
[05:58] Allocated bind table chat (flags 1)
[05:58] Allocated bind table bot (flags 0)
[05:58] Allocated bind table bcst (flags 1)
[05:58] Allocated bind table away (flags 1)
[05:58] Allocated bind table act (flags 1)
[05:58] Allocated bind table evnt (flags 1)
[05:58] --- Loading eggdrop v1.6.17 (Tue Jun 12 2007)
[05:58] Listening at telnet port 7772 (all).
[05:58] Module loaded: dns
[05:58] Module loaded: channels
[05:58] Allocated bind table wall (flags 1)
[05:58] Allocated bind table raw (flags 1)
[05:58] Allocated bind table notc (flags 1)
[05:58] Allocated bind table msgm (flags 1)
[05:58] Allocated bind table msg (flags 0)
[05:58] Allocated bind table flud (flags 1)
[05:58] Allocated bind table ctcr (flags 1)
[05:58] Allocated bind table ctcp (flags 1)
[05:58] Module loaded: server
[05:58] Module loaded: ctcp
[05:58] Allocated bind table topc (flags 1)
[05:58] Allocated bind table splt (flags 1)
[05:58] Allocated bind table sign (flags 1)
[05:58] Allocated bind table rejn (flags 1)
[05:58] Allocated bind table part (flags 1)
[05:58] Allocated bind table nick (flags 1)
[05:58] Allocated bind table mode (flags 1)
[05:58] Allocated bind table kick (flags 1)
[05:58] Allocated bind table join (flags 1)
[05:58] Allocated bind table pubm (flags 1)
[05:58] Allocated bind table pub (flags 0)
[05:58] Allocated bind table need (flags 1)
[05:58] Module loaded: irc
[05:58] LANG: Section loaded: console
[05:58] LANG: 10 messages of 15 lines loaded from ./language/console.english.lang
[05:58] LANG: 10 adds, 0 updates to message table
[05:58] Module loaded: console (with lang support)
[05:58] Module loaded: blowfish
[05:58] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[05:58] use '.help userinfo' for commands.
[05:58] Userfile loaded, unpacking...
[05:58] === locutus: 1 channels, 1 users.
[05:58] main: entering loop
[05:58] Trying server my.dyndns.name:9999
[05:58] DNS resolved my.dyndns.name to my.external.ip
[05:58] net: connect! sock 8
[05:58] Connected to my.dyndns.name
[05:58] net: eof!(read) socket 8
[05:58] Disconnected from my.dyndns.name
[05:59] Trying server my.external.ip:9999
[05:59] net: connect! sock 8
[05:59] Connected to my.external.ip
[05:59] net: eof!(read) socket 8
[05:59] Disconnected from my.external.ip
[06:00] Writing user file...
[06:00] Writing channel file...
[06:00] Trying server my.internal.ip:9999
[06:00] net: connect! sock 8
[06:00] Connected to my.internal.ip
[06:00] net: eof!(read) socket 8
[06:00] Disconnected from my.internal.ip
[06:01] Trying server my.dyndns.name:9999
[06:01] DNS resolved my.dyndns.name to my.external.ip
[06:01] net: connect! sock 8
[06:01] Connected to my.dyndns.name
[06:01] net: eof!(read) socket 8
[06:01] Disconnected from my.dyndns.name


What does this mean? Could this be related to ssl and/or blowfish? Beats me Wink


Last edited by kukhuvud on Thu Jun 14, 2007 1:52 am; edited 1 time in total
Back to top
View user's profile Send private message
kukhuvud
Voice


Joined: 12 Jun 2007
Posts: 4
Location: Hollywood, CA

PostPosted: Wed Jun 13, 2007 1:14 am    Post subject: One more thing Reply with quote

My servers in eggdrop.conf are set like so:

# Eggdrop has trouble detecting it when it starts up.
set my-hostname "my.dyndns.name"
#set my-ip "my.external.ip"
#set my-ip "my.internal.ip"

If I uncomment "my.external.ip" at any point before eggdrop startup, I'm told that the port isn't listening. This is very untrue; the port forwarding on the wrt54g is set exactly proper. I have only 3 machines here, so handling 3 ip's isn't exactly rocket science Wink

Perhaps a clue?
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Jun 13, 2007 2:36 pm    Post subject: Reply with quote

1) check the ircd's log
2) look through each line of your bot's conf file again.
Back to top
View user's profile Send private message
kukhuvud
Voice


Joined: 12 Jun 2007
Posts: 4
Location: Hollywood, CA

PostPosted: Wed Jun 13, 2007 5:06 pm    Post subject: Reply with quote

The trick seems to be that the urpmi'd tcl & eggdrop aren't good enough to function.

Downloading the eggdrop 1.6.18 tarball, patching it with ssl, and compiling it manually did the trick. Though, ./configure would complain that I had no tcl installed and this was solved by urpmi of libtcl8.4-devel and libtk8.4-devel.

Smile


Last edited by kukhuvud on Thu Jun 14, 2007 1:51 am; edited 1 time in total
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Thu Jun 14, 2007 1:23 am    Post subject: Reply with quote

Gah, GNU seems to be acting like Microsoft lately, I'll stick with BSD.
Glad you found and worked out your problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber