Yesterday while setupping my vps I made this (I take part of the text from an old Post here but there was some errors). It was was written very quickly sorry for the Grammar error but the code works perfectly. Feel free to take, repost and modify it
I'm still syncronizing the wallet but if no one will upload the chain in the meantime I'll do
GUIDE for Linux wallet setup 8BIT (tested on Ubuntu 16.04.3 64bit)
1. Setting dependencies:----------------------------------------------------------
Code:
apt-get update
apt-get upgrade
sudo apt-get install nano -y libminiupnpc-dev autoconf automake build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev
apt-get update
apt-get upgrade
2. Installation secp256k1:----------------------------------------------------------
Code:
cd ~&&git clone
http://www.github.com/bitcoin-core/secp256k1&&cd secp256k1&&git checkout a1d5ae1&&./autogen.sh&&./configure&&make&&sudo make install&&cd ..
cp ../usr/local/lib/[libsecp256k1]* ../usr/lib
(optional 2.b Make swap to build the 8bit wallet-if you have less than 1gb ram)----------------------------------------------------------
Code:
sudo fallocate -l 1G /swapfile&&sudo chmod 600 /swapfile&&sudo mkswap /swapfile&&sudo swapon /swapfile
(the swap is only temporary after the reboot it will disappear, but if you want to know more about it:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 )
3. Installing 8bit----------------------------------------------------------
Code:
cd ~&&git clone
https://github.com/8bit-dev/8bit&&cd 8bit/src&&cp crypto obj/crypto -rR
(optional 3.b Fix an error in the code)----------------------------------------------------------
Most likely, there will be an error in the assembly.Therefore, you will need to fix ~/8bit/src/rpcrawtransaction.cpp
Code:
nano ~/8bit/src/rpcrawtransaction.cpp
search for this line
const CScriptID& hash = boost::get<const CScriptID&>(address);
It should work after changed to
const CScriptID& hash = boost::get<CScriptID>(address);
[CTRL+O to save CTRL+X to exit]
3.c BUILD--------------------------------------------------------------------------------------------------
(only console interface)
Code:
make -f makefile.unix&&strip 8bitd&&sudo cp 8bitd /usr/bin
(GUI interface)
Code:
qmake&&make
_______________________COMMON ERRORS and FIX____________________________
https://bitcointalk.org/index.php?topic=1028119.msg20960275#msg20960275________________________________________________________________________
--------------------------------------------------------------------------------------------------
Now you can start your wallet with the command " 8bitd " and execute debug command with " 8bitd -cli <command> "
Example: " 8bitd -cli stop " to stop the wallet
(It will give you an error because you conf file is not configured so continue the guide to configure it)
4. Configure the conf file
Code:
cd ../..&&nano ./.8bit/8bit.conf
Now paste and change the field user(not important), pw(not important), port:
rpcallowip=127.0.0.1
rpcuser=YourUserName
rpcpassword=YourRPCPassword
rpcport=any_valid_port EX: 9228
server=1
daemon=1
listen=1
staking=0
port=9999
#masternodeaddr=YOUR_IP:9999
#masternode=1
#masternodeprivkey=KEY GENERATED BY COMMAND masternode genkey
[CTRL+O to save CTRL+X to exit]
--------------------------------------------------------------------------
Now you can start your wallet with the command above " 8bitd ", check the actual block height at
https://www.cryptopia.co.nz/CoinInfo/?coin=8BIT and with "8bitd -cli getinfo" check your, and wait the sync, you need to reach the same block as on cryptopia.
(optional set the firewall)
Code:
apt-get install ufw
ufw allow ssh/tcp&&ufw allow 9999/tcp&&ufw enable
--------------------------------------------------------------------------
CREDITS
my BTC wallet if you want to donate 3D6RKbFv2G78CYvrGZzFvpdUJgiGSVhod7