Linux

Releases and bugs in here...
Persson
Posts: 18
Joined: 2003-02-02 13:21
Location: Sweden

Linux

Post by Persson » 2003-07-19 16:41

I have just installed Linux som i'm a big noob at this.
Why do I get Permission denied when i try to start dchpp?
I have tried with su but no changes.

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-07-20 10:30

forgot to chmod a+x dchpp ?

example:

Code: Select all

[0:wza:df]# touch nix
[0:wza:df]# ll nix
-rw-r--r--    1 root     root            0 Jul 20 12:29 nix
[0:wza:df]# ./nix
bash: ./nix: Permission denied
[126:wza:df]# chmod a+x nix
[0:wza:df]# ll nix
-rwxr-xr-x    1 root     root            0 Jul 20 12:29 nix
[0:wza:df]# ./nix
[0:wza:df]#
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-07-20 11:58

ow.. and create the logs dir _before you start_ dchpp ("mkdir logs"),
because dchpp will create it with strange permissions, and won't be able to write any logs to it.
(or.. if this message is too late, and the dir already exists, do "chmod 755 logs")
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Persson
Posts: 18
Joined: 2003-02-02 13:21
Location: Sweden

Post by Persson » 2003-07-20 14:39

Well, I've done what you told me but now I get this error

Code: Select all

dch++ $ ./dchpp -console
IOCTL failed
Unauthorized


Nothing in the logs

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-07-20 15:19

./dchpp ethX
(where ethX is eth0, eth1 or whatever NIC from which you gave the MAC address to arne)
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Persson
Posts: 18
Joined: 2003-02-02 13:21
Location: Sweden

Post by Persson » 2003-07-20 15:41

Sorry but I don't seem to get it working

Code: Select all

$ ./dchpp eth0
Unauthorized
$


Does that mean that my MAC adress is not in the Linux version?
It worked fine in the windows version.

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-07-20 15:55

join wza.digitalbrains.com:1416 and I'll lay out how you can fix it
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

yakko
Posts: 258
Joined: 2003-01-27 06:04

Post by yakko » 2003-08-26 22:16

I've got a linux question. I'm trying to create an init script to startup and shutdown my hub. How would I send a shutdown command in the script?

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-08-27 15:13

I don't think it's possible..

..a workaround would be to use the CrappyOs plugin, it will save your access.xml every 30mins, so you shouldn't have to worry about lost data.
you'll simply let init SIGTERM the process.

*must bug arne about trapping sigterm or sighup to shutdown the hub, and about not being able to run it in background (although one can use openvt(1) to allocate a virtual terminal for it)*
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

yakko
Posts: 258
Joined: 2003-01-27 06:04

Post by yakko » 2003-08-28 20:45

i figured as much. I'm using screen to keep it running and crappyos to save the data. thanks!

yakko
Posts: 258
Joined: 2003-01-27 06:04

Post by yakko » 2003-08-31 16:53

I've been having bad luck with the linux version of the hub the past few days. I downloaded all of Sedulus's plugins and now when I change the .dll to .so in the config for the plugins I get "Illegal instruction" when i try to start the hub. any ideas?

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-08-31 22:40

=)

my first guess would be:
you are not running a 686?

building 386 versions now..
see if that helps
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-08-31 23:10

http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

yakko
Posts: 258
Joined: 2003-01-27 06:04

Post by yakko » 2003-09-01 05:52

actually the kernel's for i586, it's an AMD k6-2 processor in the box.

yakko
Posts: 258
Joined: 2003-01-27 06:04

Post by yakko » 2003-09-01 06:47

seemed to fix it:
[01:45] <-=VectorSigma=-> This hub is running DCH++ v0.27-Release (Plugin API v0.27) on Linux 2.4.21cybertron-net (i586)

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-09-01 09:30

well yeah, k6 has a 586 instruction set (or something.. I think ;) ), k7 is 686. (I'm not sure about the intel equivalents.)

I'll start building for the 586 from now on then =)
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-09-01 09:53

http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

OLDoMiNiON
Posts: 202
Joined: 2003-01-06 11:22
Location: Salford, England.

problem with DnsBl i think..

Post by OLDoMiNiON » 2003-09-15 18:27

if i run the hub with DnsBl enabled it crashes uppon first login.. this is the backtrace:

Loaded symbols for /lib/libresolv.so.2
#0 0x42a241f6 in Resolver::getHostByName(_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&, in_addr*) (this=0x0,
hostname=@0x4322be3c, iap=0x0)
at ../../../plugins/DnsBl/src/Resolver.cpp:197
197 ../../../plugins/DnsBl/src/Resolver.cpp: No such file or directory.
in ../../../plugins/DnsBl/src/Resolver.cpp
(gdb) bt
#0 0x42a241f6 in Resolver::getHostByName(_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&, in_addr*) (this=0x0,
hostname=@0x4322be3c, iap=0x0)
at ../../../plugins/DnsBl/src/Resolver.cpp:197
#1 0x42a22d63 in Resolver::resolve(_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&) (this=0x809f238, ip=@0x4322be9c)
at /usr/local/include/stlport/stl/_string.h:1171
#2 0x42a22b33 in Resolver::run() (this=0x809f238)
at ../../../plugins/DnsBl/src/Resolver.cpp:72
#3 0x0805744f in Thread::starter(void*) (p=0x0) at ../../hub/Thread.h:132
#4 0x40f70a71 in pthread_start_thread () from /lib/i686/libpthread.so.0
(gdb)


This hub is running DCH++ v0.27-Release (Plugin API v0.27) on Linux 2.4.22-grsec (i686)

thanx
OLDo

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-09-16 11:54

using a non-reentrant gethostbyname seemed to do the trick..

if anyone knows the differences between gethostbyname_r on debian and on RedHat, I'd be very happy to hear them

http://wza.digitalbrains.com/DC/dchpp/a ... 61.tar.bz2
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Who is online

Users browsing this forum: Google [Bot] and 0 guests