Use this repo to install electrumx easily https://github.com/bauerj/electrumx-installer
For Vitae ElectrumX installation follow this repo instead https://github.com/VitaeTeam/electrumx-installer
Now we need to edit the electrumx config file to match our daemon and other specifics