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 

running eggdrop in chrooted environment (openbsd)

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


Joined: 23 Feb 2011
Posts: 20

PostPosted: Fri Feb 25, 2011 3:12 am    Post subject: running eggdrop in chrooted environment (openbsd) Reply with quote

I'm not sure if this is right section for posting this one, but i'll take my chances anyway. So i'm running an eggdrop in chrooted environment (openbsd 4.8), it wasn't really complicated to set it up. With the help of lsof and ktrace i could successfully find out all the files it needs and to copy them to chroot. Anyway, i believe something is missing. Eggdrop runs ok, all scripts work except for Djoezy's weather. Well it works, but doesn't collect an information from google. Or from db file. Well i have no idea if it lacks some certain network resources or some dependency... Any help would be appreciated.
Back to top
View user's profile Send private message
Pixelz
Voice


Joined: 15 Jun 2005
Posts: 24
Location: EFnet

PostPosted: Fri Feb 25, 2011 3:23 pm    Post subject: Reply with quote

Tcl comes with a bunch of default packages. My guess is that you didn't copy those over to your chroot. This particular script needs the http package to work properly, but I would suggest that you copy all of it over.

You will probably see open() calls to pkgIndex.tcl all over the place.
_________________
Pixelz @ EFnet, freenode, QuakeNet, Undernet
Back to top
View user's profile Send private message
sputnik
Voice


Joined: 23 Feb 2011
Posts: 20

PostPosted: Fri Feb 25, 2011 3:38 pm    Post subject: Reply with quote

Well i did copy all of tcl execs and libraries, that's for sure. I'm not really sure about all the dependencies of tcl, though... Anyway, fsck, urban dictionary, rss parser scripts are working without any trouble, and they do also require http package to work properly, don't they? Thanks for the tip, i'll try to copy all the depenencies of tcl into the chroot and let you know if it will do the trick... But maybe there's a way to ensure if http script works properly, or the sugest would be just to ktrace more carefully?
Back to top
View user's profile Send private message
Pixelz
Voice


Joined: 15 Jun 2005
Posts: 24
Location: EFnet

PostPosted: Fri Feb 25, 2011 3:40 pm    Post subject: Reply with quote

There's always the possibility that the script just doesn't work and that it's unrelated to your chrooted eggdrop. Websites often change and scripts will break without warning.
_________________
Pixelz @ EFnet, freenode, QuakeNet, Undernet
Back to top
View user's profile Send private message
sputnik
Voice


Joined: 23 Feb 2011
Posts: 20

PostPosted: Fri Feb 25, 2011 4:04 pm    Post subject: Reply with quote

You're right about this pkgIndex.tcl, i can see in ktrace output it couldn't find it, though this pkgIndex.tcl exists in the chroot just as all other tcl files... Any suggestions?
Back to top
View user's profile Send private message
Pixelz
Voice


Joined: 15 Jun 2005
Posts: 24
Location: EFnet

PostPosted: Fri Feb 25, 2011 4:19 pm    Post subject: Reply with quote

I suspect that the problem is that the script doesn't work because the website changed. Try one of the weather scripts on the Script Support & Releases board.
_________________
Pixelz @ EFnet, freenode, QuakeNet, Undernet
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