Step-By-Step: How to compile Bitrad wallet on a Linux VPS
The following is a guide on how to compile Bitrad wallet on a Linux VPS
- OS: Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-93-generic x86_64)
- Server Spec: 1 CPU, 1GB RAM, 10GB SSD, 1000GB Bandwidth
(Note: you can try with 512MB RAM server, however, you may run into memory issue during compilation.)
- Linux OS is up & running. Firewall is enabled.
- SSH server is setup on Linux, and you can SSH into it using Putty or similar.
How to compile:
( Compile from source: https://github.com/theBitradio/Bitradio )
( DOC: https://github.com/theBitradio/Bitradio/blob/master/doc/build-unix.md )
The italic characters below are the Linux commands, you can copy & paste.
1) From Putty, login as user with Sudo right & download necessary library files
sudo apt-get install build-essential libtool automake autotools-dev autoconf pkg-config libssl-dev libgmp3-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
(If add-apt-repository does not work, do sudo apt-get install software-properties-common)
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libminiupnpc-dev
2) Compile Bitradod wallet
git clone https://github.com/theBitradio/Bitradio
(If git does not work, apt-get install git )
make -f makefile.unix # Headless
(If it fails, check your VPS spec. It is recommended to have 1GB RAM.
I have failed at this step at some VPS provider using 512MB RAM
while I had success at other VSP provider using 512MB RAM
after increasing the virtual memory size. Wait till compilation finishes.
If you want to increase virtual memory, try following:
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
sudo cp Bitradiod /usr/local/bin
3) Run Bitradiod
It will give an error when you run it for the first time.
You need to configure rpcuser info on Bitradio.conf file under ~/.Bitradio/Bitradio.conf
and add following lines where you need to put random long password:
rpcpassword=RANDOM LONG PASSWORD
Launch Bitradio wallet again,
To check if it is running,
ps aux | grep Bitrad
Wait for block to synch.
Check the block #s info time to time and make sure it goes up.
Get blocks info by,
Let it sync completely. (It may take an hour)
Enjoy Bitrad radio!
helped me a lot, thanks dude, it works!!
Wie bekommt man eine bro Wallet bitteschön