Installation of Flo-ElectrumX Server In Kali Linux
Project done under RanchiMall Internship Blockchain Contract
Before You start with this installation,please ensure that you had read my previous post https://medium.com/@kaushalagarwal_73962/latest-florincoin-installation-in-kali-linux-237252e55c23 and have completed all steps successfully.
Now Kindly,ensure that you have configured your flo.conf file like this located in /root/.flo dir.

testnet=0
server=1
daemon=1
txindex=1
gen=1
rpcuser=mikes
rpcpassword=arp123
addnode=193.70.122.58
addnode=69.172.229.163
addnode=146.185.148.114
addnode=192.241.171.45
addnode=188.166.6.99
addnode=176.9.59.110
addnode=162.243.107.112
addnode=128.199.116.119
addnode=207.154.239.148
addnode=192.241.201.19
addnode=node.oip.fun
Now Install Required Dependencies:
sudo apt-get install python3-leveldb libleveldb-dev
sudo apt-get install python3.6 python3.6-dev
alias python=python3
pip3 install — upgrade pip setuptools wheel
pip3 install aiohttp pylru leveldb plyvel
If the above command gives you an error, try installing it with sudo(try to avoid it as much as possible, though).
Note- Before You Step any further,till now it doesn’t matter whether you place your files in root or guest location.From Now onwards you will switch your account from root to guest mode.
Note- Check How to give sudo permission permission to your guest account.
Edit the file located in /etc/sudoers like given below image

Add the selected line in blue and save it.In my case it is mike,replace it with your guest account name.
Tip: You can use su command in terminal to switch between root and mike.
su mike
su
Installation And Set-Up Electrumx
1.Download zip file from this link https://www.dropbox.com/s/xqknevizmd88vzr/.electrumx.zip?dl=0
Extract the zip file in guest dir(Eg-if your system username is mike then extract it in /mike dir)
Note- Files extracted is not visible since they are hidden.You can do show hidden files from top right corner option in explorer.(A .electrumx folder is created)
2.Download the flo-electrumx.zip file from https://github.com/kaushalag29/flo-electrumx/blob/master/flo-electrumx.zip
Now extract in same /mike(your system username) dir till you get a folder flo-electrumx containing required files.
Note- Keep flo-electrumx folder in /mike(system username) dir.
cd flo-electrumx
sudo python3 setup.py install


Run these 2 commands for read/write permissions
sudo chmod -R 777 /mike/flo-electrumx
sudo chmod -R 777 /mike/.electrumx
3.Creating Configuration files
Note- Switch again to root mode.
Create a file with name as electrumx.conf in /root/etc dir with contents given below

Note: rpcuserName and password is mentioned in flo.conf file earlier.Don’t confuse with system username and rpcusername.
COIN = Flo
DAEMON_URL = http://<rpcuserName>:<rpcPassword>@localhost:7313/
DB_DIRECTORY =/mike/.electrumx/
DB_ENGINE = leveldb
USERNAME = mike
ELECTRUMX = /mike/flo-electrumx/electrumx_server.py
HOST = 0.0.0.0
ANON_LOGS = xx.xx.xx.xx:xxx
CACHE_MB = 1800
MAX_SESSIONS = 500
SSL_CERTFILE = /mike/.electrumx/server.crt
SSL_KEYFILE = /mike/.electrumx/server.key
SSL_PORT = 50002
TCP_PORT = 50001
Create another file with name as electrumx.service in /lib/systemd/system dir with contents given below:

[Unit]
Description=Electrumx
After=network.target
[Service]
EnvironmentFile=/etc/electrumx.conf
ExecStart=/mike/flo-electrumx/electrumx_server.py
User=mike
LimitNOFILE=8192
TimeoutStopSec=30min
[Install]
WantedBy=multi-user.target
Note: Wherever you are seeing mike in two files above replace it with your system username(guest)
Warning: Kindly check the paths of each variable and verify it using terminal.
Now,Switch Back To Guest Mode
Run Your Flo-Wallet from root dir or where ever you have installed it.(Note use sudo to run ./flo-qt file)
After Your Flo-Wallet Gui is running in background,Open Terminal and Type:
sudo systemctl start electrumx
sudo journalctl -u electrumx -f


This will be your output console.If there are no error then congrats..you have just set up electrumx server in your kali machine.
Thanks for reading guys.Please clap if you like it…