πŸ’ͺ
Pro Hardware Guide
This guide is written for professional liquidity providers to turn a powerful Mini PC into an always-on OpenDEX node.
Two options are available:
    1.
    Light setup using Neutrino and a random open eth provider or optionally Infura. This keeps the setup light-weight & cheap, but creates a certain dependency on other people's full nodes.
    2.
    Full setup using bitcoind, litecoind and geth. Requires more resources and an SSD, but keeps the setup trustless.

Light Reference Shopping List (Europe): ~180 €

Full Reference Shopping List (Europe): ~465 €

Setup

    1.
    ​Download Ubuntu Server 20.04 LTS onto your computer. Any other linux distribution supporting docker is also fine. This guide was written using Ubuntu Server 20.04.
    2.
    Insert a USB Stick into your computer and create the a bootable USB Stick with the ubuntu image you just downloaded.
    3.
    Open your Mini PC, plug in RAM & drives, close it, connect it to your router via ethernet cable and to a power supply. Connect a screen via HDMI, a USB keyboard, the created bootable USB Stick, fire the Mini PC up and follow the the inital setup instructions.
    4.
    Update ubuntu via sudo apt update && sudo apt upgrade
    5.
    If you are using Ubuntu 20.04, install docker & docker-compose by running sudo apt install docker.io. Otherwise if you are using any version besides Ubuntu 20.04, follow the official instructions to install docker.
    6.
    Add new user opendex:
1
[email protected]:~$ sudo adduser opendex
2
Adding user `opendex' ...
3
Adding new group `opendex' (1001) ...
4
Adding new user `opendex' (1001) with group `opendex' ...
5
Creating home directory `/home/opendex' ...
6
Copying files from `/etc/skel' ...
7
New password:
8
Retype new password:
9
passwd: password updated successfully
10
Changing the user information for opendexd
11
Enter the new value, or press ENTER for the default
12
Full Name []:
13
Room Number []:
14
Work Phone []:
15
Home Phone []:
16
Other []:
17
Is the information correct? [Y/n] [email protected]:~$ Y
Copied!
    1.
    Add the opendex user to the sudo group (advanced users can skip this and use another user to run sudo commands), the docker group and test if docker is working:
1
[email protected]:~$ sudo usermod -aG sudo opendex
2
[email protected]:~$ sudo usermod -aG docker opendex
3
# switch to user opendex
4
[email protected]:~$ sudo su - opendex
5
[email protected]:~$ docker run hello-world
6
Hello from Docker!
7
This message shows that your installation appears to be working correctly.
Copied!
    1.
    Looking good! Optionally, add an alias to enter your opendexd environment by simply typing "opendex":
1
[email protected]:~$ sudo nano ~/.bash_aliases
2
# add the line
3
alias opendex='bash ~/opendex.sh'
4
# CTRL+S, CTRL+X. Then run
5
[email protected]:~$ source ~/.bashrc
Copied!
    1.
    Connect the USB stick to your machine and set it up. It is very important to do this for a mainnet setup (given you do not want to lose money)!
1
# check the USB stick's path with
2
[email protected]:~$ ls -la /dev/ | grep sd
3
crw------- 1 root root 2, 61 Dec 3 16:27 ptysd
4
brw-rw---- 1 root disk 8, 0 Dec 3 16:27 sda
5
brw-rw---- 1 root disk 8, 1 Dec 3 16:27 sda1 #this is your USB Stick
6
crw------- 1 root root 3, 61 Dec 3 16:27 ttysd
7
# set it to automount via fstab
8
[email protected]:~$ sudo nano /etc/fstab
9
# add the line
10
/dev/sda1 /media/USB ext4 defaults 0 2
11
# CTRL+S, CTRL+X. Then mount it
12
[email protected]:~$ sudo mkdir /media/USB
13
[email protected]:~$ sudo mount -a
14
# check if mounting worked
16
# make sure opendexd can use it
17
[email protected]:~$ sudo chown opendex:opendex /media/USB
Copied!
DONE! Continue here.
Last modified 5d ago