Skip to content

Instantly share code, notes, and snippets.

@RdeWilde
Forked from IonomyGuy/iondunder2gbbuilder.sh
Created August 23, 2016 20:44
Show Gist options
  • Save RdeWilde/5c7c0bcc91cc0ce017948da785bc7388 to your computer and use it in GitHub Desktop.
Save RdeWilde/5c7c0bcc91cc0ce017948da785bc7388 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 Under 2 GB Ram iond builder
#!/bin/sh
cd ~
echo "### Installing Ionomy Daemon for under 1GB Ram"
echo "### Updating System"
apt-get update
echo "### Upgrading System"
apt-get upgrade
echo "### Modifying Swap"
dd if=/dev/zero of=/var/swap.img bs=1024k count=2000
mkswap /var/swap.img
swapon /var/swap.img
echo "### Install Build Dependencies"
apt-get install git build-essential libssl-dev libboost-all-dev libdb5.3-dev git libdb5.3++-dev libminiupnpc-dev make zip automake autogen libtool
echo "### Clone Ionomy Source"
git clone https://github.com/ionomy/ion.git ion
echo "### Install secp256k1"
cd ~/ion/src/secp256k1
chmod +x autogen.sh
./autogen.sh
./configure -prefix=/usr
make install
echo "### Build ion Daemon"
cd ~/ion/src/
make -f makefile.unix
echo "### Allow everyone to access iond"
mv iond /usr/local/bin
echo "### Create Temp ion config file"
cd ~
mkdir .ion
sh -c 'echo "rpcuser=CHANGEME" > /root/.ion/ion.conf'
sh -c 'echo "rpcpassword=CHANGEMEPASSWORD" >> /root/.ion/ion.conf'
sh -c 'echo "#rpcport=58273" >> /root/.ion/ion.conf'
sh -c 'echo "#port=58272" >> /root/.ion/ion.conf'
sh -c 'echo "server=1" >> /root/.ion/ion.conf'
sh -c 'echo "daemon=1" >> /root/.ion/ion.conf'
sh -c 'echo "listen=1" >> /root/.ion/ion.conf'
sh -c 'echo "dnsseed=1" >> /root/.ion/ion.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment