This page contains instructions how to natively install opendexd and its minimal dependencies lnd (BTC) & connext (ETH & ERC20) on linux. It is mainly geared towards developers and administrators which prefer a native installation over docker.
If you are on an architecture that is notamd64, you'll have to remove grpc-tools and potentially others from the devDependencies section of package.json.
Daemonize opendexd
If you want to daemonize opendexd, so that it starts on boot without needing its own terminal, you can do this using systemd:
If you want to daemonize lnd, so that it starts on boot without needing its own terminal, you can do this using systemd:
Connext
Follow the docs, you want the node: vector node + database stack.
Daemonize connext
If you want to daemonize connext, so that it starts on boot without needing its own terminal, you can do this using systemd:
Tor
You can install tor via sudo apt install tor on most linux distros nowadays, just make sure the version is fairly recent. If not, consult the tor installation guides. Run systemctl status tor or ps aux | grep tor to verify the tor process is running.
Putting it all together
Create the following opendexd.conf in /home/opendexd/.opendexd:
For convenience, consider adding alias opendex-cli='/home/opendexd/opendexd/bin/opendex-cli -p 8886' to the opendexd user's .bashrc and source it. Then restart opendexd once (e.g. with systemctl restart opendexd) and try running opendex-cli getinfo, which should return with an overview of opendexd's, as well as lnd's and connext status.
Ping us in the help channel of our Discord server for support.
Tips 'n Tricks
When installing on a Raspberry Pi you might see Unexpected error during initialization. Here is the solution.
If you see an install error when installing via npm install, try npm install --production & npm install typescript.