Author

Topic: ElectrumX easy howto? (Read 212 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
October 23, 2021, 04:25:33 AM
#12
@ETFbitcoin
Thanks very much!
With docker I do not know myself and it is an additional difficulty for me.
Since I'm not familiar with Linux, I try to make it as easy as possible.

FYI, Docker also available on Windows. But if you don't plan to learn a bit about Docker usage, then my guide isn't for you.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
October 22, 2021, 01:03:07 PM
#11
I have to install Electrumx because it is needed by the RPC Explorer to display addresses.

Take a look at mynodebtc.com
It can run on as a virtual machine on VirtualBox VM under Windows http://mynodebtc.com/download
Installs Bitcoin, electrum and BTC RPC explorer v2.0.2 and a few other apps with a click of a button.
No linux knowledge needed. Just a spare TB or drive space :-)

The online community support is good too. There is a paid edition with more features and better support but probably not needed if you just want a small setup.

-Dave
full member
Activity: 161
Merit: 168
October 22, 2021, 12:10:02 PM
#10
I have to install Electrumx because it is needed by the RPC Explorer to display addresses.

After the last attempt, my ubuntu is destroyed. The GUI does not start and only a console window with username and password appears.

Linux is like bitcoin transactions.
To claim coins you have to enter a valid signature script in the SIGScript field.
To make something in Linux, you have to enter any kind of Cryptic in the console, which only understand freaks. ;-(
Linux will probably not become my friend.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
October 22, 2021, 10:46:52 AM
#9
Are you looking for something for just you to use or for public use?
Are you looking to learn how to do it and maintain it or just have it work?

Any of the 'nodes in a box' that I talk about a lot run electrs so for single or limited number of users it's fine.
For a pubic server it's going to be slow.

You also don't learn anything it's just a click and install. So there is that too.

-Dave
full member
Activity: 161
Merit: 168
October 22, 2021, 08:06:11 AM
#8
This is what I did on linux:

Code:
root@myserver:~ # adduser electrumx
root@myserver:~ # apt-get install python3-pip
root@myserver:~ # loginctl enable-linger electrumx
root@myserver:~ # mkdir -p /media/storage-1/electrumx/db
root@myserver:~ # chown -R electrumx:electrumx /media/storage-1/electrumx

electrumx@myserver:~$ git clone https://github.com/spesmilo/electrumx.git
electrumx@myserver:~$ cd electrumx/
electrumx@myserver:~/electrumx$ pip3 install .
electrumx@myserver:~$ cd ..

electrumx@myserver:~$ mkdir -p .config/systemd/user
electrumx@myserver:~$ cp electrumx/contrib/systemd/electrumx.service .config/systemd/user/
electrumx@myserver:~$ vim .config/systemd/user/electrumx.service
electrumx@myserver:~$ cat .config/systemd/user/electrumx.service
[Unit]
Description=Electrumx
After=network.target

[Service]
EnvironmentFile=/home/electrumx/etc/electrumx.conf
ExecStart=/home/electrumx/.local/bin/electrumx_server
LimitNOFILE=8192
TimeoutStopSec=30min

[Install]
WantedBy=multi-user.target
electrumx@myserver:~$ mkdir etc
electrumx@myserver:~$ cp electrumx/contrib/systemd/electrumx.conf etc/
electrumx@myserver:~$ chmod 0600 etc/electrumx.conf
electrumx@myserver:~$ vim etc/electrumx.conf
electrumx@myserver:~$ cat etc/electrumx.conf
DB_DIRECTORY = /media/storage-1/electrumx/db
DAEMON_URL = http://user:redacted@localhost:8332/
COIN = Bitcoin
ELECTRUMX = /home/electrumx/.local/bin/electrumx_server
SERVICES = tcp://127.0.0.1:50001,rpc://127.0.0.1:50003
REPORT_SERVICES = tcp://redacted.onion:50001
LOG_LEVEL = info
TOR_PROXY_PORT = redacted

electrumx@myserver:~$ systemctl --user daemon-reload
electrumx@myserver:~$ systemctl --user enable --now electrumx
electrumx@myserver:~$ journalctl --user -n 10 -u electrumx -g ETA
Nov 02 09:00:50 myserver electrumx_server[999843]: INFO:DB:sync time: 1d 13h 07m  ETA: 11d 08h 40m




Thanks very much!
At this point I will not get on:
Code:
electrumx@myserver:~/electrumx$ pip3 install .
https://de.share-your-photo.com/img/af835803a2.png


@ETFbitcoin
Thanks very much!
With docker I do not know myself and it is an additional difficulty for me.
Since I'm not familiar with Linux, I try to make it as easy as possible.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
October 22, 2021, 04:36:08 AM
#7
I was hoping for some sort of docker setup.

I made short guide about setup Electrum using docker few months ago.

Honestly if the VPS use linux, you can use easy installer/docker (which i mentioned above), which is very easy to use.

I saw the docker, but I haven't ever used docker in the past for setups. Would you mind guiding me a hand? There's no steps, just a “docker run /” script.

I rarely use Docker, but here's short guide (i've tested it on my device, but don't know whether it runs on WSL)

1. Install docker

Code:
sudo apt install docker.io

2. Test whether docker run correctly

Code:
sudo docker run hello-world

If you see message "Hello from Docker!", then Docker run correctly.

3. Create directory which used to store electrumx data

Code:
cd /home/user
mkdir electrumx

4. Run this command

Code:
sudo docker run \
-v /home/user/electrumx:/data \
--net="host" \
-e DAEMON_URL=username:password@localhost \
-e COIN=Bitcoin \
-e NET=testnet \
-p 50002:50002 \
lukechilds/electrumx

Here's short explanation

1. --net="host", this command is used to ensure the container can access host port.
2. -e used to configure environment for electrumx.
3. -p HOST_PORT:CONTAINER_PORT is used to expose and link port between host and container.
4. -v HOST_DIRECTORY:CONTAINER_DIRECTORY is used to link host directory on the container.
5. lukechilds/electrumx means container we're going to use

P.S. If you want ElectrumX container to automatically start after boot, add --restart=always when you run docker.
sr. member
Activity: 494
Merit: 476
October 22, 2021, 01:38:39 AM
#6
This is what I did on linux:

Code:
root@myserver:~ # adduser electrumx
root@myserver:~ # apt-get install python3-pip
root@myserver:~ # loginctl enable-linger electrumx
root@myserver:~ # mkdir -p /media/storage-1/electrumx/db
root@myserver:~ # chown -R electrumx:electrumx /media/storage-1/electrumx

electrumx@myserver:~$ git clone https://github.com/spesmilo/electrumx.git
electrumx@myserver:~$ cd electrumx/
electrumx@myserver:~/electrumx$ pip3 install .
electrumx@myserver:~$ cd ..

electrumx@myserver:~$ mkdir -p .config/systemd/user
electrumx@myserver:~$ cp electrumx/contrib/systemd/electrumx.service .config/systemd/user/
electrumx@myserver:~$ vim .config/systemd/user/electrumx.service
electrumx@myserver:~$ cat .config/systemd/user/electrumx.service
[Unit]
Description=Electrumx
After=network.target

[Service]
EnvironmentFile=/home/electrumx/etc/electrumx.conf
ExecStart=/home/electrumx/.local/bin/electrumx_server
LimitNOFILE=8192
TimeoutStopSec=30min

[Install]
WantedBy=multi-user.target
electrumx@myserver:~$ mkdir etc
electrumx@myserver:~$ cp electrumx/contrib/systemd/electrumx.conf etc/
electrumx@myserver:~$ chmod 0600 etc/electrumx.conf
electrumx@myserver:~$ vim etc/electrumx.conf
electrumx@myserver:~$ cat etc/electrumx.conf
DB_DIRECTORY = /media/storage-1/electrumx/db
DAEMON_URL = http://user:redacted@localhost:8332/
COIN = Bitcoin
ELECTRUMX = /home/electrumx/.local/bin/electrumx_server
SERVICES = tcp://127.0.0.1:50001,rpc://127.0.0.1:50003
REPORT_SERVICES = tcp://redacted.onion:50001
LOG_LEVEL = info
TOR_PROXY_PORT = redacted

electrumx@myserver:~$ systemctl --user daemon-reload
electrumx@myserver:~$ systemctl --user enable --now electrumx
electrumx@myserver:~$ journalctl --user -n 10 -u electrumx -g ETA
Nov 02 09:00:50 myserver electrumx_server[999843]: INFO:DB:sync time: 1d 13h 07m  ETA: 11d 08h 40m
full member
Activity: 161
Merit: 168
October 21, 2021, 03:16:14 PM
#5
I also search for a guide, which can install "Normal User" ElectrumX.
tried a lot, the ElectrumX installer does not work either.
need Electrumx for my local block Explorer.
legendary
Activity: 2702
Merit: 4002
March 03, 2021, 06:48:42 AM
#4
use ---> https://github.com/romanz/electrs/
@mocacinno created this topic ----> private Electrum Server [bitcointalk members only]  when public electrum nodes were usder DDos attack. You can ask if you need more details.

read this Features

Quote
Supports Electrum protocol v1.4
Maintains an index over transaction inputs and outputs, allowing fast balance queries
Fast synchronization of the Bitcoin blockchain (~2 hours for ~187GB @ July 2018) on modest hardware
Low index storage overhead (~20%), relying on a local full node for transaction retrieval
Efficient mempool tracker (allowing better fee estimation)
Low CPU & memory usage (after initial indexing)
txindex is not required for the Bitcoin node
Uses a single RocksDB database, for better consistency and crash recovery

@romanzeyde topic ---> https://bitcointalksearch.org/topic/an-efficient-re-implementation-of-electrum-server-in-rust-4589797
full member
Activity: 199
Merit: 128
March 02, 2021, 03:49:19 PM
#3
Last time I checked, that first link was outdated, i'll look into it again.

I was hoping for some sort of docker setup.
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
March 02, 2021, 03:06:50 PM
#2
Is this outdated? https://github.com/bauerj/electrumx-installer
Because the latest (?)  doc ( https://electrumx-spesmilo.readthedocs.io/en/latest/ ) links to this in case you want to install onto Linux.
But I didn't install it (ever) and maybe you have already seen these pages...

Do you have any OS in mind?
Do you already have a fully synced Bitcoin Core?
Is the howto also outdated? https://electrumx-spesmilo.readthedocs.io/en/latest/HOWTO.html#howto
full member
Activity: 199
Merit: 128
March 02, 2021, 02:46:33 PM
#1
Hi,

I want to run my own dedicated ElectrumX server for everyone, but can't find a decent howto that is recent.

Anyone here that can help me?

Gr.
JorisK
Jump to: