BitShares Forum
Other => Graveyard => BitShares PTS => Topic started by: joele on November 11, 2013, 12:48:42 am
-
I have spare server and I'm using webmin but I'm not familiar with linux.
Care to help me with 0.05 BTC bounty how to install and run ptsweb.beeeeer.org mining pool in Debian linux step by step instruction.
Thank you
-
Adapted from my post here: http://www.peercointalk.org/index.php?topic=798.0
Hint: Dont use Debian Squeeze.
Debian 7.2.0 Wheezy x64
# Get root access
su -
# Update & upgrade repositories and install build tools
apt-get update && apt-get upgrade
apt-get install build-essential git
# Install ptsminer dependencies
apt-get install libssl-dev libgmp3-dev libboost-chrono1.49-dev libboost-filesystem1.49-dev libboost-system1.49-dev libboost-program-options1.49-dev libboost-thread1.49-dev
# Get db4.8 source, compile and install
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx
make
make install
# Tell your system where to find db4.8
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so
# Pull the ptsminer source from github
cd
git clone https://github.com/thbaumbach/ptsminer.git ptsminer
# Go to source and compile the code
cd ptsminer/src
make -f makefile.unix
# Start mining
./ptsminer -poolip=ptsmine.beeeeer.org -poolport=1337 -poolpassword=[change-me] -pooluser=[your-payout-address] -genproclimit=[threads-to-use]
Debian 6.0.8 Squeeze x64
# Get root access
su -
# Update & upgrade repositories and install build tools
apt-get update && apt-get upgrade
apt-get install build-essential git
# Install ptsminer dependencies
apt-get install libssl-dev libgmp3-dev
# Get boost source, compile and install
cd
wget http://sourceforge.net/projects/boost/files/boost/1.54.0/boost_1_54_0.tar.gz
tar -xzvf boost_1_54_0.tar.gz
cd boost_1_54_0
./bootstrap.sh --prefix=/usr/local
./b2 install --with=all
# Tell your system where to find boost
export BOOST_INCLUDE_PATH="/usr/local/include/boost"
export BOOST_LIB_PATH="/usr/local/lib"
ldconfig
# Get db4.8 source, compile and install
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx
make
make install
# Tell your system where to find db4.8
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so
# Pull the ptsminer source from github
cd
git clone https://github.com/thbaumbach/ptsminer.git ptsminer
# Go to source and compile the code
cd ptsminer/src
make -f makefile.unix
# Start mining
./ptsminer -poolip=ptsmine.beeeeer.org -poolport=1337 -poolpassword=[change-me] -pooluser=[your-payout-address] -genproclimit=[threads-to-use]
1K6Xaof6oJJrEd46c1263KULLWMAGMCYhZ
PcDLYukq5RtKyRCeC1Gv5VhAJh88ykzfka
-
Hi Donschoe,
My Debian Linux is version 5.0, will it work or should I upgrade, and how?
Thanks
-
If you have the chance to upgrade, install Debian 7 or Ubuntu 12.4.
Debian 5 is just... very old and you will have trouble installing dependecies :)
-
Sent bounty https://blockchain.info/tx/19b5d9bd260f28fd63de942bc79c6612053e2b5fe90b2bb2de0ba92c2a51108e
Thanks
-
Thank you :)
-
Hi Donschoe,
Everything almost okay, only after typing the major last line
./ptsminer -poolip=ptsmine.beeeeer.org -poolport=1337 -poolpassword=0 -pooluser=PqdF4T6iamfsUdibkWy1zfMGKZQiUNvSSa -genproclimit=4
-su ./ptsminer: No such file or directory
edit: There is problem in make compiling, I'd copy paste the last part
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-paramet
er -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/ptsminer/src -I/r
oot/ptsminer/src/obj -I/usr/local/BerkeleyDB.4.8/include -DUSE_UPNP=0 -DUSE_IPV6
=1 -I/root/ptsminer/src/leveldb/include -I/root/ptsminer/src/leveldb/helpers -DH
AVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_F
ORTIFY_SOURCE=2 -MMD -MF obj/net.d -o obj/net.o net.cpp
net.cpp:18:32: fatal error: miniupnpc/miniwget.h: No such file or directory
compilation terminated.
make: *** [obj/net.o] Error 1
==
Edit new: I think I figured it out, I install miniupnpc and its working now. Thanks
-
Edit new: I think I figured it out, I install miniupnpc and its working now. Thanks
Ah, yes, either install miniupnpc or change the line with make into:
USE_UPNP= make -f makefile.unix