Bitcoin Forum
May 03, 2024, 02:28:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: ElectrumX easy howto?  (Read 180 times)
JorisK (OP)
Full Member
***
Offline Offline

Activity: 199
Merit: 128



View Profile
March 02, 2021, 07: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
1714703289
Hero Member
*
Offline Offline

Posts: 1714703289

View Profile Personal Message (Offline)

Ignore
1714703289
Reply with quote  #2

1714703289
Report to moderator
1714703289
Hero Member
*
Offline Offline

Posts: 1714703289

View Profile Personal Message (Offline)

Ignore
1714703289
Reply with quote  #2

1714703289
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714703289
Hero Member
*
Offline Offline

Posts: 1714703289

View Profile Personal Message (Offline)

Ignore
1714703289
Reply with quote  #2

1714703289
Report to moderator
1714703289
Hero Member
*
Offline Offline

Posts: 1714703289

View Profile Personal Message (Offline)

Ignore
1714703289
Reply with quote  #2

1714703289
Report to moderator
NeuroticFish
Legendary
*
Offline Offline

Activity: 3654
Merit: 6372


Looking for campaign manager? Contact icopress!


View Profile
March 02, 2021, 08: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

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
JorisK (OP)
Full Member
***
Offline Offline

Activity: 199
Merit: 128



View Profile
March 02, 2021, 08: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.
hugeblack
Legendary
*
Offline Offline

Activity: 2506
Merit: 3632


Buy/Sell crypto at BestChange


View Profile WWW
March 03, 2021, 11: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://bitcointalk.org/index.php?topic=4589797.0

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
MixMAx123
Full Member
***
Offline Offline

Activity: 161
Merit: 168


View Profile
October 21, 2021, 08: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.
womanderful
Sr. Member
****
Offline Offline

Activity: 490
Merit: 473


View Profile
October 22, 2021, 06:38:39 AM
Merited by DdmrDdmr (4), MixMAx123 (2)
 #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
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7452


Crypto Swap Exchange


View Profile
October 22, 2021, 09:36:08 AM
Last edit: October 23, 2021, 09:23:42 AM by ETFbitcoin
Merited by MixMAx123 (2)
 #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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
MixMAx123
Full Member
***
Offline Offline

Activity: 161
Merit: 168


View Profile
October 22, 2021, 01:06:11 PM
Last edit: October 22, 2021, 01:16:13 PM by MixMAx123
 #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.
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6259


Crypto Swap Exchange


View Profile WWW
October 22, 2021, 03:46:52 PM
 #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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
MixMAx123
Full Member
***
Offline Offline

Activity: 161
Merit: 168


View Profile
October 22, 2021, 05: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.
DaveF
Legendary
*
Offline Offline

Activity: 3472
Merit: 6259


Crypto Swap Exchange


View Profile WWW
October 22, 2021, 06: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!