Jan 16, 55631

Cyberyen ElectrumX Server Installation Guide

The necessary instructions for setting up your personal ElectrumX server for the further growth of Cyberyen.

INSTALATION OF ELECTRUMX SERVER FOR CYBERYEN

Prerequisites:

•	A Linux-based server (Debian/Ubuntu recommended)
•	Python 3.9  
•	Certbot
•	Basic command-line knowledge

Install Cyberyen Core:

Use the previous guide - How to config a Cyberyen Full Node over Tor

Install ElectrumX:

Update Your System:

$ sudo apt update

$ sudo apt upgrade

Install Required Packages:

$ sudo apt-get install htop nano iptables git certbot python3-pip gcc g++ librocksdb-dev build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev curl python3-venv -y

$ sudo apt-get dist-upgrade -y && apt-get auto-remove -y 

Clone and run ElectrumX installer:

$ cd ~

$ git clone https://github.com/cyberyen-squat/electrumx-installer.git

$ cd electrumx-installer/ && chmod a+x bootstrap.sh

$ ./bootstrap.sh

(before moving on to the next step, set up your host's DNS)

Configure ElectrumX:

$ nano /etc/electrumx.conf

Edit the configuration settings. Replace <host_name> with your personal hostname and take <rpcuser>, <rpcpassword>, <rpcport> from ~/.cyberyen/cyberyen.conf:

DB_DIRECTORY=/db
DAEMON_URL=http://<rpcuser>:<rpcpassword>@127.0.0.1:<rpcport>/
COIN=Cyberyen
DB_ENGINE=rocksdb
COST_SOFT_LIMIT=0
COST_HARD_LIMIT=0
SSL_CERTFILE=/etc/letsencrypt/live/<host_name>/fullchain.pem
SSL_KEYFILE=/etc/letsencrypt/live/<host_name>/privkey.pem
SERVICES=ssl://:50002,wss://:50004,rpc://
REPORT_SERVICES=wss://<host_name>:50004,ssl://<host_name>:50002

Configure Certbot Certificates. Replace <host_name> and <work_email> with yours:

$ sudo apt update -y && apt install certbot -y

$ sudo certbot certonly --standalone -n -d <host_name> -m <work_email> --agree-tos

$ sudo certbot certificates

$ sudo chown -R electrumx:electrumx /etc/letsencrypt

Don't forget to open ports in the firewall:

$ sudo ufw allow 50002

$ sudo ufw allow 50004

Restart ElectrumX and check the status:

$ sudo systemctl restart electrumx 

$ sudo journalctl -u electrumx -f -n 500

Your ElectrumX server for Cyberyen is now up and running. You can configure your wallet to connect to your server using its IP address.

Here is the place to contact us: c¥talk [Matrix]

Thanks C¥kuza.