Hi guys, I have been playing some time trying to compile Slimcoin daemon on Raspberry Pi (slimcoind on Raspbian headless server), and that´s my results:
v0.4.0 Compile and run smoothly but it has a warning ( "WARNING: Blockchain re-download required approaching or past V0.4 upgrade deadline") that make it run on safe mode and I can´t do almost any thing on command line console, I allways get that warning; still it updates well the blocks and stay online.
The sync allways stop on block 350. To work around that, I copied blockchain files from my Windows wallet.
v0.5.0 Compilation was allrigth, but it crashes all the time (every 3 o 5 mins). Can´t sync. Always stop on block 500. I get connecction refused, socket closed mensajes on debug.log. Need to add USE_OLDC=1 to get compiled, otherwise it is hung in the file bitcoinrpc.cpp.
That´s the step I have done (I'm not Linux expert so if you can help me I'll be very greatful):
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libssl-dev libboost-all-dev libminiupnpc-dev
mkdir Slimcoin && cd Slimcoin
wget https://github.com/slimcoin-project/Slimcoin/archive/SLMv0.5.0.tar.gz && tar xvfz SLMv0.5.0.tar.gz
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz && tar xvfz db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx --disable-shared --with-pic CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib"
make && sudo make install
cd /home/pi/Slimcoin/Slimcoin-SLMv0.5.0/src
make -f makefile.unix USE_OLDC=1 BDB_INCLUDE_PATH='/usr/local/BerkeleyDB.4.8/include' BDB_LIB_PATH='/usr/local/BerkeleyDB.4.8/lib'
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so
Just run daemon:
./slimcoind
(Get warning mensaje about slimcoin.conf and closed but it has created wallet files)
Now I will change the wallet files from sd to external hard drive.
mv /home/pi/.slimcoin /home/pi/hdd1
mkdir /home/pi/.slimcoin && cd /home/pi/.slimcoin
sudo nano slimcoin.conf
Create slimcoin.conf in .slimcoin folder on sd.
addnode=113.106.95.46:41682
addnode=118.126.8.18:41682
addnode=130.255.73.170:41682
addnode=144.76.64.49:41682
addnode=149.169.122.151:41682
addnode=149.169.123.98:41682
addnode=161.53.40.94:41682
addnode=175.195.8.141:41682
addnode=185.68.67.37:41682
addnode=37.187.100.75:41682
addnode=37.191.207.237:41682
addnode=192.168.1.5:41682
addnode=5.9.39.9:41682
addnode=59.12.96.208:41682
addnode=82.201.217.74:41682
datadir=/home/pi/hdd1/.slimcoin
reservebalance=1000000
daemon=1
MAX_ORPHAN_BLOCKS=200
rpcuser=user
rpcpassword=pass
rpcallowip=127.0.0.1
rpcallowip=192.168.1.*
rpcport=41683
port=41682
server=1
listen=1
- - - - -
Move executable slimcoind to hdd and create cron job
mkdir /home/pi/hdd1/Slimcoin
cp /home/pi/Slimcoin/Slimcoin-SLMv0.5.0/src/slimcoind /home/pi/hdd1/Slimcoin
sudo rm -r /home/pi/Slimcoin
cd /home/pi/hdd1/Slimcoin
./slimcoind
crontab -e
@reboot sleep 60 && /home/pi/hdd1/Slimcoin/slimcoind
Added: At the moment, can´t use any of this versions on Pi. Perhaps the v0.4.0 modified to remove the warning could be useful.