Tuesday, 30 September 2014

DC++ Hub on Raspberry Pi

A simple guide to run a DC++ Hub on Raspberry Pi using PtokaX.

 Prerequisites

  1.  Raspberry Pi running Raspbian - latest built.
  2. Network connection - Wifi or LAN.
  3. Keyboard, Mouse and Display Unit.
You can do  everything over ssh too, if you are running in headless Mode.


Steps for Compiling 

  • .Download and install packages required: For PtokaX compile you need make (tool controlling executable generation from sources), g++ (c++ compiler), zlib (compression library used to save hub bandwidth ) and Lua (programming language used for scripting).
    • sudo apt-get install make g++ zlib1g-dev liblua5.1-dev
  • Downloading source and compile.
    • sudo wget http://www.PtokaX.org/files/0.5.0.2-nix-src.tgz
    • Unpack downloaded archive sudo tar -xf 0.5.0.2-nix-src.tgz
    • Now we have in actual directory new directory PtokaX. Go to that directory with command: cd PtokaX
  • Compile PtokaX with command: make


Basic setup


a. Minimal settings

To be able to run PtokaX we need to set at least hub name and hub address.
Open Setting.xml in text editor with this command: sudo nano Settings.xml
  • To change hub name:
    Search for this line <Enter hub name here><!– Hub name. Min length 1, max 256. –> and change<Enter hub name here> to name of new hub.
  • To change hub address:
    Search for this line <Enter hub address here><!– Hub address. Min length 1, max 256. –> and change <Enter hub address here> to address of new hub.

b. Creating registered user.

When we are here, it is good idea to create registered user with master account for yourself.
Open RegisteredUsers.xml in text editor with this command: vim RegisteredUsers.xml
  • To set nick:
    Search for this line Example_Nick and change Example_Nick to your nick.
  • To set password:
    Search for this line Example_Password and change Example_Password to your password.
  • To set profile:
    Search for this line 3<!– 0 for master, 1 for operator, 2 for vip, 3 for reg –> and change 3 to your profile.
Yes, you did it.Try opening Hub using any DC++ software on Raspberry Pi, use linuxdcpp or eiskaltdcpp.I prefer using linuxdcpp.


Comment below in case of any query or confusion.