← Back to team overview

linuxdcpp-team team mailing list archive

[Question #115636]: I'm looking for a "REAL HowTo" to Configuration under Linux (Debian/ubunutu)

 

Question #115636 on ADCH++ changed:
https://answers.launchpad.net/adchpp/+question/115636

Description changed to:
Hi, ask for help to configure my adch++ hub on my preferred system.
4
I'm using ubuntu-server 10.

I have compiled the 2.4 version cause, the 2.5 cannot be compiled be cause the missed fixed in the 2.5 release.
But this should be uninteresting for us now.

I compiled and move the build to /home/dchub/adchpp24/ :

drwxr-xr-x 2 dchub dchub 4,0K 2010-06-10 02:59 adchpp
-rw-r--r-- 1 dchub dchub  823 2010-06-10 02:59 adchpp_cert_generator.7z
drwxr-xr-x 2 dchub dchub 4,0K 2010-06-10 02:59 adchppd
-rw-r--r-- 1 root  root     5 2010-06-24 12:57 adchppd.pid
drwxr-xr-x 4 dchub dchub 4,0K 2010-06-10 02:59 bin
drwxr-xr-x 3 dchub dchub 4,0K 2010-06-10 02:59 boost
drwxr-xr-x 3 dchub dchub 4,0K 2010-06-10 02:59 certs
drwxr-xr-x 3 dchub dchub 4,0K 2010-06-10 02:59 config
-rwxrwxr-x 1 dchub dchub  530 2010-06-10 02:59 generat_certs.sh
drwxr-xr-x 2 dchub dchub 4,0K 2010-06-10 02:59 lua
-rw-r--r-- 1 dchub dchub 451K 2010-06-10 02:59 lua_wrap.cc
-rw-r--r-- 1 dchub dchub 2,2M 2010-06-10 02:59 lua_wrap.os
drwxr-xr-x 4 dchub dchub 4,0K 2010-06-10 02:59 plugins
-rw-r--r-- 1 dchub dchub 3,2K 2010-06-10 03:04 privkey.pem
drwxr-xr-x 2 dchub dchub 4,0K 2010-06-24 12:54 Scripts

I follow this introduction:
http://adchpp.sourceforge.net/user_guide/index.html#_installing_on_linux

In the moment i had to run the adchppd with the -config parameter with a
absolute path means "-conf /home/dchub/adchpp24/bin/config/adchpp.xml"

1. I want to know: Where need the "adchpp.xml"-file to be placed, that i can run without the -conf parameter.
2. I want to know: Where need the scripts to be placed?
3. I want to know: What else has to be done that i can use my "adcs"-connection after i have the certs-generator and i had entered the information to the adchpp.xml?

I am hopefully waiting:


Here are my scripts.xml and my adchpp.xml

Scripts.xml:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ScriptPlugin>
        <Engine language="lua" scriptPath="/home/dchub/adchpp24/Scripts/">
                <Script>access.lua</Script>
                <Script>history.lua</Script>
                <Script>motd.lua</Script>
        </Engine>
</ScriptPlugin>


My  adchpp.xml:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ADCHubPlusPlus>
        <Settings>

<!-- Hub name and message of the day -->
                <!-- This is the name of the hub as it should be reported to the clients during
                         login and to the hub registration services. -->
                <HubName type="string">ADCH++</HubName>
                <Description type="string">ADCH++ Test hub</Description>

<!-- Logging -->
                <!-- Enable/disable logging -->
                <Log type="int">1</Log>

                <!-- Logging, when enabled, is done to this file. The filename is first passed
                         through strftime with the current time (see any standard c library reference
                         to find out what works...). There's not much logging done at all btw, but
                         plugins can use the logs as well... -->
                <LogFile type="string">logs/adchpp%Y%m.log</LogFile>

<!-- Advanced connection settings (don't change unless you at least think you know what you're doing) -->
                <!-- Maximum send size, changes how much data is sent at most to a single user per
                         call to the socket api. Experiment with this, lower settings might be more fair
                         in the distribution of available bandwidth at the cost of network/cpu efficiency.
                         Don't set below 256, 0 = disable. Experiment with this, it has many strange effects! -->
                <MaxSendSize type="int">1400</MaxSendSize>

                <MaxBufferSize type="int">16384</MaxBufferSize>
                <BufferSize type="int">256</BufferSize>
                <MaxCommandSize type="int">16384</MaxCommandSize>
                <!-- Milliseconds before a user is disconnected when his/her outgoing buffer
                         becomes larger than MaxRecvSize (outgoing buffer overflow). -->
                <OverflowTimeout type="int">60000</OverflowTimeout>

                <!-- Try to keep slow users from overflowing by not sending searches to them
                         when they're in the overflow state -->
                <KeepSlowUsers type="int">1</KeepSlowUsers>

                <!-- Buffer size, this is the minimum buffer size that is initially assigned to
                         each user. Larger buffer = more memory usage / user, less = a little bit
                         slower performance if the user sends more than these many bytes at a time
                         (in a chat message for instance...). Don't set to lower than 256. -->
                <BufferSize type="int">512</BufferSize>

                <!-- Timeout (ms) before ADCH++ stops trying to empty its send buffer for a user
                         (to send a kick message for example), and disconnects him/her. -->
                <DisconnectTimeout>10000</DisconnectTimeout>
                <LoginTimeout>30</LoginTimeout>
        </Settings>

        <Servers>
                <!--
                One <Server> tag per listening connection.

                To create secure connections, set TLS="1" and define the following (preferably absolute)
                paths: Certificate, PrivateKey, TrustedPath, DHParams. An example secure server setting:
                -->
                <Server Port="1091" TLS="1" Certificate="/home/dchub/adchpp24/certs/cacert.pem" PrivateKey="/home/dchub/adchpp24/certs/privkey.pem" TrustedPath="/home/dchub/adchpp24/certs/trusted/" DHParams=$
                <!--
                Simple OpenSSL commands to generate files used for secure connections:
                openssl genrsa -out privkey.pem 2048
                openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
                openssl dhparam -outform PEM -out dhparam.pem 1024

                Alternatively, you can use the cert generator contributed on
                <http://launchpadlibrarian.net/31960965/Cert_Generator.7z>.

                -->
                <Server Port="1090"/>
        </Servers>

<!-- Instead of scripts, ADCH++ uses plugins. Plugins can do the same work
                 as scripts, are more difficult to write, but when it comes to performance,
                 the difference between the two is absurd. This way, it's also possible to
                 write a script plugin, enabling people to choose their own script language,
                 if someone's written a script plugin for it. You must specify the path to your
                 plugins in linux!!! -->
        <Path="/home/run/adchpp24/lib/adchpp/">
        <Plugins>
                <!-- This plugins provides the scripting support. -->
                <Plugin>Script</Plugin>
                <!-- Bloom filter plugin, helps save upload bandwidth at a slight expense of memory and download bandwidth -->
                <Plugin>Bloom</Plugin>
        </Plugins>
</ADCHubPlusPlus>

You received this question notification because you are a member of
Dcplusplus-team, which is an answer contact for ADCH++.