Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| users:runningnodes [2015/09/07 04:00] – created with part of Nodes page cmotc | users:runningnodes [2018/02/22 02:32] (current) – Refresh this article, also refer to the tox-bootstrd's README instead of duplication just a small part of it in here (and almost no one uses SysVinit nowadays anyway) nurupo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Installation | + | ===== How to run a Bootstrap Node ===== | 
| - | Assuming that Toxcore has already been built, cd to < | + | ==== tox-bootstrapd - Tox Bootstrap Daemon (recommended) ==== | 
| - | Change //ADDRESS//, //PORT//, and //KEY// to that of any [[Nodes# | + | Tox Bootstrap Daemon, or tox-bootstrapd for short, is a highly configurable Linux/Unix daemon | 
| - | == Daemonized version== | + | tox-bootstrapd resides in the toxcore repository and is built along with the toxcore as long as you [[https:// | 
| - | Toxcore also has a daemonized version of the bootstrap node code wish can be used on SystemV init or systemd init systems. | + | Once you have built tox-boostrapd, | 
| - | You first need to configure tox to build the bootstrap node executable. Run the configure script with < | + | You can also call | 
| - | == Configuring Daemon script == | + | < | 
| - | //Note that the following instructions might be out of date and it's preferable to read the [[https:// | + | to see all available command-line options. Most of the options are set in a config | 
| - | Next we need to configure < | + | ==== DHT_bootstrap - Simple Bootstrap Program ==== | 
| - | Set the //NAME//, //USER//, //CFG//, // | + | DHT_bootstrap is a very simple bootstrap program that runs in the foreground. In contrast to tox-boostrapd, which also can run in the foreground, it provides almost no configuration options but it is not restricted to running on just Linux/Unix, it can run on Windows | 
| - | ^Option^Description^ | + | |
| - | | NAME | Name of the executable (default | + | |
| - | | USER | Name of the user the daemon will run as (e.g. //tox//) | | + | |
| - | | CFG | Location of configuration file | | + | |
| - | | PIDFILE | Where to create the pid file for the daemon | | + | |
| - | | SCRIPTNAME | Path to the tox_bootstrap_daemon.sh (used to change name of the script) | | + | |
| - | There are a few other options generated by a combination of these items, | + | DHT_bootstrap resides in the toxcore repository | 
| - | == Configuring the daemon itself == | + | Once built, you can call | 
| - | Now we need to configure the conf file that the daemon uses, located in < | + | < | 
| - | At minimum you need to set the // | + | to see the available options. | 
| - | ^Option^Description^ | + | |
| - | | keys_file_path | The path to your keys file that will store the keypair for your daemon | | + | |
| - | | pid_file_path | The path to the pid file and should be set based on what you chose for PIDFILE earlier | | + | |
| - | To get the bootstrap | + | DHT_bootstrap allows bootstrapping off just one other bootstrap | 
| - | + | ||
| - | == Generate | + | |
| - | + | ||
| - | Place the daemon script in < | + | |
| - | + | ||
| - | Finally, start the service! | + | |
| - | + | ||
| - | == Troubleshooting == | + | |
| - | + | ||
| - | The daemon outputs to syslog, so if you have the appropriate permissions: | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | will give you a nice debug output (NB: if you change the name edit the grep appropriately) | + | |



