# Tox

From the project home page:

  Tox is a distributed, secure messenger with audio and video chat capabilities.

## Installation

Install tox-git, available in the AUR.

You may also want to install a client:

- Toxic — ncurses-based CLI

  http://wiki.tox.im/Toxic || toxic-git

- Venom — A Vala/Gtk+ graphical user interface for Tox

  http://wiki.tox.im/Venom || venom-git

- Qt GUI — GUI written in Qt

  http://wiki.tox.im/Qt_GUI || tox-qt-git

- Tox Pidgin Protocol Plugin — a plugin for Pidgin which allows the use of the Tox protocol within Pidgin

  http://wiki.tox.im/Tox_Pidgin_Protocol_Plugin || tox-prpl-git

## Run a node

To be able to connect to others, Tox needs to connect to a DHT node first. All DHT nodes are connected to each other, and since everyone is connected to at least one DHT node, you can connect to others one way or the other.

    /etc/conf.d/tox_bootstrap

    cmdline="--ipv4"

    # open node
    ip="31.192.105.19"
    port="33445"
    key="D59F99384592DE4C8AB9D534D5197DB90F4755CC9E975ED0C565E18468A1445B"

Create the service file.

    /etc/systemd/system/tox_bootstrap.service

    [Unit]
    Description=Tox DHT Bootstrap Daemon
    After=network.target

    [Service]
    Type=simple
    EnvironmentFile=/etc/conf.d/tox_bootstrap
    WorkingDirectory=/etc/tox
    ExecStart=/usr/bin/DHT_bootstrap ${cmdline} ${ip} ${port} ${key}
    User=tox
    Group=tox

    [Install]
    WantedBy=multi-user.target

Create user for running the daemon and configuration folder.

    # useradd --no-create-home --shell /bin/false --user-group tox
    # mkdir --verbose /etc/tox
    # chown --recursive --verbose tox:tox /etc/tox

Reload systemd, scanning for new units:

    # systemctl daemon-reload

Enable and start the service:

    # systemctl enable tox_bootstrap
    # systemctl start tox_bootstrap

Check if the service is running fine and port has been binded:

    # netstat --listening --numeric-ports --program | grep 33445

    udp        0      0 *:33445                 *:*                                 576/DHT_bootstrap

Category:

- Internet applications