Skip to main content

Tox Bootstrap Node on Debian 11

These steps have been tested on Debian 11

References:

Install Dependencies:

sudo apt update
sudo apt install git libnacl-dev libc6-dev cmake libconfig-dev libsodium-dev

Clone latest Git repository & submodules:

From your home directory or wherever you prefer to do compilation work:

git clone https://github.com/TokTok/c-toxcore.git
cd c-toxcore
git submodule update --init

Compile libtoxcore and tox-bootstrapd:

From inside the c-toxcore directory (you might be in it from the previous step):

mkdir _build
cd _build
cmake ..
make
make install

Did it Compile OK?

Make sure the output text from make is all green and tox-bootstrapd was built:

[100%] Linking C executable tox-bootstrapd
[100%] Built target tox-bootstrapd

Create a tox-bootstrapd User & Restricted Directory:

sudo useradd --home-dir /var/lib/tox-bootstrapd --create-home --system --shell /sbin/nologin --comment "Account to run Tox's DHT bootstrap daemon" --user-group tox-bootstrapd
sudo chmod 700 /var/lib/tox-bootstrapd

Service & Configuration File:Files:

From the _buildc-toxcore directory (youcd might.. if you're still bein there)_build), copy the tox-bootstrapd.service and conf configuration filefiles to the system locations.  Keep in mind there is a directory containingstructure under c-toxcore that is similar to the structure under tox-bootstrapd_build, but the service and conf files are found under c-toxcore/other/bootstrap_daemon/ and the executable (technicallyis whereverfound under ExecStart=c-toxcore/_build/other/bootstrap_daemon/.

points
Copy inthe service file to /etc/systemd/system/:
sudo cp other/bootstrap_daemon/tox-bootstrapd.service /etc/systemd/system/)
Copy the configuration file to /etc/:

sudo cp other/bootstrap_daemon/tox-bootstrapd.conf /etc/tox-bootstrapd.conf