Update getstarted.txt
This commit is contained in:
parent
65d472f333
commit
22eb189b73
@ -1,17 +1,11 @@
|
|||||||
Getting started guide
|
# Getting started guide
|
||||||
---------------------
|
|
||||||
|
|
||||||
Unpack your binaries
|
## Compile it at first
|
||||||
|
|
||||||
Example:
|
See the doc/compile.txt file
|
||||||
% tar xzf uhub-0.2.6-linux-i386.tar.gz
|
|
||||||
% cd uhub-0.2.6
|
|
||||||
|
|
||||||
Copy the binary to /usr/local/bin
|
## Create configuration files
|
||||||
|
|
||||||
% sudo cp uhub /usr/local/bin
|
|
||||||
|
|
||||||
Create configuration files.
|
|
||||||
If no configuration files are created, uhub will use the default parameters, so you can skip this step if you are in a hurry to see it run.
|
If no configuration files are created, uhub will use the default parameters, so you can skip this step if you are in a hurry to see it run.
|
||||||
|
|
||||||
As root, or use sudo.
|
As root, or use sudo.
|
||||||
@ -21,13 +15,29 @@ As root, or use sudo.
|
|||||||
% cp doc/users.conf /etc/uhub
|
% cp doc/users.conf /etc/uhub
|
||||||
% echo "welcome to uhub" > /etc/uhub/motd.txt
|
% echo "welcome to uhub" > /etc/uhub/motd.txt
|
||||||
|
|
||||||
|
You can edit the default configuration file before starting uhub.
|
||||||
|
As root edit /etc/uhub/uhub.conf:
|
||||||
|
|
||||||
|
hub_name=My Public Hub
|
||||||
|
hub_description=Yet another ADC hub
|
||||||
|
|
||||||
|
server_port=1511
|
||||||
|
server_bind_addr=any
|
||||||
|
max_users=150
|
||||||
|
|
||||||
|
|
||||||
|
## Start uhub
|
||||||
|
|
||||||
Start the hub in the foreground for the first time. Shut it down, by pressing CTRL+C.
|
Start the hub in the foreground for the first time. Shut it down, by pressing CTRL+C.
|
||||||
|
|
||||||
% uhub
|
% uhub
|
||||||
Thu, 05 Feb 2009 00:48:04 +0000 INFO: Starting server, listening on :::1511...
|
Thu, 05 Feb 2009 00:48:04 +0000 INFO: Starting server, listening on :::1511...
|
||||||
|
|
||||||
Connect to the hub using an ADC client, use the address adc://localhost:1511, or replace localhost with the correct hostname or IP address.
|
Connect to the hub using an ADC client, use the address adc://localhost:1511, or replace localhost with the correct hostname or IP address.
|
||||||
NOTE: It is important to use the "adc://" prefix, and the port number when using DC++ and other ADC clients.
|
|
||||||
|
**NOTE**: It is important to use the "adc://" prefix, and the port number.
|
||||||
|
|
||||||
|
## Kill / Stop uhub
|
||||||
|
|
||||||
If you modify the configuration files in /etc/uhub you will have to notify uhub by sending a HUP signal.
|
If you modify the configuration files in /etc/uhub you will have to notify uhub by sending a HUP signal.
|
||||||
|
|
||||||
@ -38,6 +48,8 @@ Or, for the lazy people
|
|||||||
|
|
||||||
% killall -HUP uhub
|
% killall -HUP uhub
|
||||||
|
|
||||||
|
## Start uhub as daemon (or in background mode)
|
||||||
|
|
||||||
In order to run uhub as a daemon, start it with the -f switch which will make it fork into the background.
|
In order to run uhub as a daemon, start it with the -f switch which will make it fork into the background.
|
||||||
In addition, use the -l to specify a log file instead of stdout. One can also specify a specific user and/or group,
|
In addition, use the -l to specify a log file instead of stdout. One can also specify a specific user and/or group,
|
||||||
if one wishes to run uhub as a specific user using the -u and -g switches.
|
if one wishes to run uhub as a specific user using the -u and -g switches.
|
||||||
@ -46,7 +58,9 @@ Example:
|
|||||||
|
|
||||||
% uhub -f -l mylog.txt -u nobody -g nogroup
|
% uhub -f -l mylog.txt -u nobody -g nogroup
|
||||||
|
|
||||||
If you are planning to more than 1024 users on hub, you must increase the max number of file descriptors allowed.
|
## Having more than 1024 users on uhub
|
||||||
|
|
||||||
|
If you are planning to more than 1024 users on your hub, you must increase the max number of file descriptors allowed.
|
||||||
This limit needs to be higher than the configured max_users in uhub.conf.
|
This limit needs to be higher than the configured max_users in uhub.conf.
|
||||||
|
|
||||||
In Linux can add the following lines to /etc/security/limits.conf (allows for ~4000 users)
|
In Linux can add the following lines to /etc/security/limits.conf (allows for ~4000 users)
|
||||||
@ -57,11 +71,12 @@ Or, you can use (as root):
|
|||||||
|
|
||||||
% ulimit -n 4096
|
% ulimit -n 4096
|
||||||
|
|
||||||
|
## Interact with uhub through your hub chat (only for operator/admin):
|
||||||
|
|
||||||
You can interact with uhub in your hub main chat using the `!` prefix, followed by a command:
|
You can interact with uhub in your hub main chat using the `!` prefix, followed by a command:
|
||||||
|
|
||||||
Example :
|
Example, to display help and the command you can use:
|
||||||
|
|
||||||
* to display help and the command you can use:
|
* !help
|
||||||
!help
|
|
||||||
|
|
||||||
Your mileage may vary -- Good luck!
|
Your mileage may vary -- Good luck!
|
||||||
|
Loading…
Reference in New Issue
Block a user