Created
November 5, 2013 21:05
-
-
Save ilyaevseev/7326296 to your computer and use it in GitHub Desktop.
Building and running Primecoin daemon under Ubuntu 12.10 Quantal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
debootstrap quantal /home/builder-sandbox | |
# Universe repo is needed for libboost-all-dev... | |
cp -p /etc/apt/sources.list /home/builder-sandbox/etc/apt/ | |
mount -t proc proc /home/builder-sandbox/proc | |
mount -t devtmpfs udev /home/builder-sandbox/dev | |
mount -t sysfs sysfs /home/builder-sandbox/sys | |
chroot /home/builder-sandbox | |
# Needed for BDB-4.8 as portable Wallet storage... | |
echo "deb http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu quantal main" /etc/apt/sources.list.d/bitcoind.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8842CE5E | |
apt-get update | |
apt-get -y install g\+\+ git make libssl-dev libboost-all-dev libdb4.8++-dev | |
mkdir /home/sources | |
cd /home/sources | |
git clone https://github.com/primecoin/primecoin.git | |
cd primecoin/src | |
make -f makefile.unix USE_UPNP= USE_IPV6=0 | |
exit # ..from builder-sandbox to host | |
useradd -c Primecoind_service_pseudouser -m primecoind | |
install /home/builder-sandbox/home/sources/primecoin/src/primecoind ~primecoind/ | |
mkdir ~primecoind/.primecoin | |
echo ' | |
server=1 | |
daemon=1 | |
rpcuser=PrimeRPC | |
rpcpassword=SecretSecret | |
alertnotify=echo %s | mail -s "Primecoin Alert" admins | |
' > ~primecoind/.primecoin/primecoin.conf | |
chown -R primecoind ~primecoind | |
sudo -u primecoind -H ~primecoind/primecoind | |
pgrep -fl coind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment