I already had the dependencies, just needed to download and compile.
git clone https://github.com/myriadcoin/myriadcoin.git cd ~/myriadcoin ./autogen.sh ./configure --with-gui=qt5 make cd ~/myriadcoin/src/qt make
I already had the dependencies, just needed to download and compile.
git clone https://github.com/myriadcoin/myriadcoin.git cd ~/myriadcoin ./autogen.sh ./configure --with-gui=qt5 make cd ~/myriadcoin/src/qt make
My bitcoind was always crashing after about 12 hours and I would restart it. I had a script that ran after a reboot, but that didn’t help to restart it after a crash. I tried Upstart scripts but they wouldn’t work at reboot, although I could start/stop them at will after configuration.
I found the answer here:
https://bitcointalk.org/index.php?topic=25518.msg8733922#msg8733922
So this is what my /etc/init/bitcoind.conf looks like now.
description "bitcoind" start on filesystem stop on runlevel [!2345] oom score -500 expect fork respawn respawn limit 10 60 # 10 times in 60 seconds script user=yourusername home=/home/$user cmd=/usr/local/bin/bitcoind pidfile=$home/bitcoind.pid # Don't change anything below here unless you know what you're doing [[ -e $pidfile && ! -d "/proc/$(cat $pidfile)" ]] && rm $pidfile [[ -e $pidfile && "$(cat /proc/$(cat $pidfile)/cmdline)" != $cmd* ]] && rm $pidfile exec start-stop-daemon --start -c $user --chdir $home --pidfile $pidfile -m --startas $cmd end script
I have similar scripts for my other coins.
I’ve been having trouble with the binary qt on my windows machine. So I backed up the Namecoin wallet and compiled from source.
First, I got the source from the official namecoin-qt github project:
https://github.com/namecoin-qt/namecoin-qt.git
After getting this setup, I found that it did not work with the NOMP pool because of the batch processing.
So after asking some questions in the NOMP project, I was informed that the NOMP project is dead, but UNOMP is the new version. So I set up UNOMP (more on this later), and also that UNOMP has their own version of NameCoin.
Get the source:
cd ~/source git clone https://github.com/UNOMP/namecoin-core.git
Install all the dependencies:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils sudo apt-get install libboost-all-dev sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install libdb4.8-dev libdb4.8++-dev sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
Compile:
cd ~/source/namecoin-core ./autogen.sh ./configure --with-incompatible-bdb make
For this setup, I am using vsftpd:
sudo apt-get install vsftpd
Then modify the file:
/etc/vsftpd.conf
Uncomment the line:
#write_enable=YES
There are several things you must do to accomplish this without any user intervention. It is up to you to decide if any of these pose as a security risk depending on your situation.
Enable your user to automatically login:
Start all your CryptoCoins at login:
/usr/local/bin/bitcoin-qt -server
echo Starting Crypto Coins... /usr/local/bin/bitcoin-qt -server & /usr/local/bin/mazacoin-qt -server & /usr/local/bin/titcoin-qt -server & /usr/local/bin/UniversalCurrency-qt -server & /usr/local/bin/zetacoin-qt -server & echo Wallets Started.
echo Starting Crypto Coins... /usr/local/bin/bitcoind -daemon & /usr/local/bin/mazacoind -daemon & /usr/local/bin/titcoind -daemon & /usr/local/bin/UniversalCurrencyd -daemon & /usr/local/bin/zetacoind -daemon & echo Wallets Started.
Unlock all your CryptoCoin Wallets at login:
/usr/local/bin/bitcoin-cli walletpassphrase "this should be your passphrase in these quotes" 9999999
Run NOMP as root
echo Starting NOMP... cd /home/yourusername/www/nomp sudo node init.js
yourusername ALL=(ALL) NOPASSWD:ALL
gnome-terminal -e "/home/yourusername/bin/run_nomp"
Reboot your server and watch it boot up.