$Id: FAQ,v 1.38 2007/04/05 21:46:49 rav Exp $
***********************
**      DConnect Daemon
***********************

[EN]
Frequently Asked Questions
==========================

If you think that something is missing here, - tell us about that: 
dc-hub@ds.pg.gda.pl 
Remember - it's maling list. You have to be subscriber to post anything.


Q: I can't compile DConnect. Linking with libwrap fails:
   t.o pch.o queue.o semaphore.o thread.o  -lwrap -lpthread
   /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libwrap.a(hosts_access.o): In function `host_match':
   hosts_access.o(.text+0x4d7): undefined reference to `yp_get_default_domain'

A: Take version of dcd >= 0.2.1
   There is added fix for broken libwrap from RH.
   
   When you try to compile dcd >=0.4.2, there is autodetection of this. 


Q: I want to compile dcd on linux to use it on solaris. Compilation works fine, 
   but after that everytime I try to connect hub tells me to share more.
   
A: There is no such possibility.


Q: After connection to server I can't see any users. Only newly connected are
   visible for me.

A: You have probably NeoModus Direct Connect 1.0 preview Build 8 client. It's
   buggy release - please, upgrade. Build 9 and higher works fine.


Q: With your Linux Hub I have really weak transfers - please, fix it.

A: We can't :) Transfers are server-independent, these depend only on 
   connection between you and your connection-party.


Q: I can't get my old configuration to work. User cannot become (s)OP?

A: That is because file console.users was renamed to dcd.users. 
   Change option in dcd.conf or rename console.users file.

 
Q: I cant get the admin account to work, every time i try to connect i get
   this message: 
                <Hub> Your nick is reserved.

A: Check default settings in file dcd.users and customize them.


Q: I'm using linux telnet and I can't insert national characters on
   administration console.

A: Use option "-8" of telnet command. Some telnet implementations are using
   7-bit characters by default. "man telnet" in general.


Q: How can I punish a user?

A: You have two ways. You can add his ip to the dcd.banned or just type 
   #punish <who> <how> <duration in minutes> <reason> in main chat.

   
Q: Why more than one user is punished?

A: That happens when more than one user uses IP that is punished.


Q: I get communicate:"You're not allowed to connect"?

A: Please read Usage section in README file and customize your settings in
   host.allow and host.den files.


Q: I share interntet with my linux, i run DConnect Daemon, i forward port(s)
   on my internet interface for (every) client behind NAT. I also changed
   the connection setting in my client, but i still can't search or download.
   What is wrong?

A: By default hub disallows to use other ip than your socket's ip because of
   security reasons. 

   There are to ways to solve this problem:
	1) [GOOD] insert nick in dcd.users and set the permission 'f'
	2) [INSECURE] set allow_forwarding in dcd.conf to 1


Q: I start hub but there is a problem. A few users get connected to, but rest gets 
   in warning.log 'Bad File Descriptor'. 

A: This problem is connected to the limit of opened files by user.
   Solution:
   * sysctl.conf: 
   -- netBSD: kern.maxfiles = 102698
   -- Linux: fs.file-max = 102698
   * shell
   -- bash: ulimit -n 6000


Q: While `make` I get error, that SCNu64/PRIu64 is not defined.
   What to do?

A: Please use version 0.6.5 or newer.

[/EN]

[PL]
Najczsciej zadawane pytania - FAQ
==================================

Jeeli uwaasz, e czego tutaj nie ma co powinno by - powiedz nam o tym:
dc-hub@ds.pg.gda.pl
Pamitaj, e to jest lista mailowa - musisz by zapisany, eby cokolwiek wysa!


Q: Nie mog skompilowa DConnect-a. Linkowanie z libwrap si nie udaje:
   t.o pch.o queue.o semaphore.o thread.o  -lwrap -lpthread
   /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libwrap.a(hosts_access.o): In function `host_match':
   hosts_access.o(.text+0x4d7): undefined reference to `yp_get_default_domain'

A: Uyj dcd w wersji >= 0.2.1
   Jest dodana poprawka na popsut bibliotek libwrap z RH.

   Kiedy prbojesz skompilowa dcd >=0.4.2 to jest to wykrywane automatycznie.


Q: Chc skompilowa dcd pod linuxem i uyc tego na solarisie. Kompilacja przebiega prawidowo, 
   ale za kadym razem, gdy si podczam hub mwi mi abym udostpnil wicej.
   
A: Nie ma takiej moliwoci.


Q: Po poczeniu z serwerem nie widz nikogo. Tylko nowo-podczeni s dla mnie
   widoczni.

A: Prawdopodobnie uywasz klienta NeoModus Direct Connect 1.0 preview Build 8.
   Jest to wersja z bdami, prosimy wic o zrobienie upgrade. Wersje Build 9
   i pniejsze chodz poprawnie.


Q: Z waszym Linuksowym Hubem mam sabsze transfery - poprawcie to.

A: Nie moemy :) Transfery nie zale od serwera tylko od poczenia midzy
   osobami wymieniajcymi si danymi.


Q: Moja stara konfiguracja nie dziaa. Uytkownik nie moe sta si (s)OP'em?

A: Jest tak z tego powdu, e plik console.users zosta zmieniony na dcd.users. 
   Zmie opcj w dcd.conf albo zmie nazw pliku console.users.


Q: Nie mog uruchomi konta admin, za kadym razem gdy prbuje si zalogowa
   dostaje wiadomo:
                     <Hub> Your nick is reserved.

A: Sprawd domyne ustawienia w pliku dcd.users i dostosuj je do swoich
   potrzeb:)


Q: Uywam linuksowego klienta telneta i nie mog wpisywa znakw narodowych
   na konsoli administracyjnej.

A: Uyj opcji "-8" programu telnet. Cz implementacji tego programu
   domylnie uywaj 7-bitowych znakw.


Q: Jak mog ukara uytkownika?

A: S dwa sposoby. Moesz doda jego ip do dcd.banned lub napisa w gwnym
   czacie:
   #punish <kogo> <jak> <czas trwania w minutach> <powd>

   
Q: Dlaczego wicej ni jeden uytkownik zostaje ukarany za jednym razem?

A: Taka sytuacja ma miejsce kiedy wicej ni jeden uytkownik uywa IP, 
   ktre zostaje ukarane.


Q: Dostaj komunikat: "You're not allowed to connect"?

A: Przeczytaj sekcj Usage w pliku README i dostosuj ustawienia w plikach
   hosts.allow i hosts.deny.


Q: Udostpniam internet moim linuxem, postawiem tu serwer DC, forwarduje
   porty na interfejsie internetowym dla kadego klienta za NAT'em. Zmieniem
   take ustawienia odnonie poczenia w moim kliencie, ale nadal nie mog
   wyszukiwa/sciga niczego od innych ludzi. Co jest nie tak?
   
A: Domylnie hub nie pozwala uyc innego IP ni IP twojego socket'a z powodw
   bezpieczestwa

   S dwa sposoby na rozwizanie tego problemu:
	1) [DOBRY] wstaw nick'a do dcd.users i ustaw uprawnienie 'f'
	2) [NIEBEZPIECZNY] ustaw allow_forwarding w dcd.conf na 1


Q: Uruchamiam Huba, ale pojawia si problem. Podcza si pewna ilo 
   uytkownikw, a reszta w warning.log ma 'Bad File Descriptor'.

A: Problemy ten zwizany jest z limitem otwartych przez uytkownika plikw. 
   Rozwizanie:  	   
   * sysctl.conf: 
   -- netBSD: kern.maxfiles = 102698
   -- Linux: fs.file-max = 102698
   * shell
   -- bash: ulimit -n 6000	  


Q: W czasie `make` dostaj bd, e SCNu64/PRIu64 nie jest zdefiniowane.
   Co zrobi?

A: Uyj wersji 0.6.5 lub nowszej.


[/PL]
