StealthSend edited this page Jan 18, 2018 · 3 revisions

Daemon Client Deployment on Ubuntu 16.0.4

These instructions show how to build and deploy the XST client on Ubuntu 16.0.4. The recommended way to synchronize the client is through bootstrap. It is possible to sync much more quickly using a snapshot. Those instructions are elsewhere.

Build the Daemon

First, begin with a fresh Ubuntu 16.0.4 install. A good service provider with a great price is OVH. The minimum memory requirement as of January 2017 is 2 GB, but 4 GB is recommended.

sudo locale-gen "en_US.UTF-8"

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo reboot

# you will get logged out here, just log back in after a couple of minutes


# install everything except bdb & libevent
sudo apt-get install wget git cmake autoconf build-essential \
                     openssl libssl-dev doxygen libncurses5-dev \
                     libreadline6 libreadline6-dev zlib1g-dev \
                     tcsh libbz2-dev python-dev libtool \
                     libboost-all-dev libssl-dev libprotobuf-dev \
                     protobuf-compiler pkg-config p7zip-full \
                     libcurl4-openssl-dev unzip curl python-dev \
                     libxml2-dev libxslt-dev libkrb5-dev

# install bdb
cd
mkdir -p ~/Deps/bdb
cd ~/Deps/bdb
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
tar xvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure --disable-shared --enable-cxx --with-pic --prefix=/usr/local
make -j2
sudo make install

######################################################################

# install libevent
sudo apt-get install libevent-dev

mkdir -p ~/Deps/stealth
cd ~/Deps/stealth
git clone https://github.com/StealthSend/Stealth.git
cd Stealth/src

make -f makefile.unix

strip StealthCoind
sudo cp StealthCoind /usr/local/bin/StealthCoind

The daemon is now in /usr/local/bin. To ensure it is in your path, log out and back in again or start a new shell, etc.

Initialize the .StealthCoin Directory

The command is

StealthCoind

This starts the client and prints some instructions in the shell. Follow the instructions to create the ~/.StealthCoin/StealthCoin.conf file then add to this file the following lines:

daemon=1
server=1
rescan=1

These commands allow you to run a server node on the network, to which other clients can connect. The last command rescan=1 will cause your wallet to be rescanned for transactions. For long-term members of the community who have been staking for years, it will take a long time to rescan the wallet. New users will not notice a rescan.

Download and Decompress the Bootstrap

cd
BOOTSTRAP_ID=0B8rWObF4xz1YRzd1VVNXM0JrWEE
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id='${BOOTSTRAP_ID} -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=${BOOTSTRAP_ID}" -O xst-bootstrap.7z && rm -rf /tmp/cookies.txt
cd ~/.StealthCoin
7z x ~/xst-bootstrap.7z

Run the Bootstrap

Start the client with the command

StealthCoind

Allow it to bootstrap. With a 4 GB VPS, bootstrap should take 18 - 24 hours. Compare your block count to that found at https://chain.stealthcoin.com, https://blocks.stealthcoin.com, or https://https://chainz.cryptoid.info/xst/

Your block count can be obtained with

StealthCoind getblockcount

Once synced, stop the client with the command

StealthCoind stop

Place wallet.dat and Start

If you are a new StealthCoin user, you can skip this section.

If you are not a new user and are migrating to Ubuntu, you will need to copy your wallet.dat file from your existing instance to this new server. The wallet.dat file can be found in your existing StealthCoin application data directory. It is found in these locations on the following platforms

  • Mac: ${HOME}/Library/Application Support/StealthCoin
  • Linux: ${HOME}/.StealthCoin
  • Windows: %appdata%\StealthCoin

To get the %appdata% folder on Windows, find the "Run" command either in the windows menu (Windows 7 and below) or by using the search feature to find the command named "Run". In the dialog, type %appdata% to open the %appdata% folder (Windows 8 and above).

On OS X, find the Application Support folder by going to the Finder:

  • Click "Go"
  • Click on "Go To Folder"
  • Enter ~/Library/Application Support/ in the dialog

From here, you should copy your wallet.dat file to your new Ubuntu VPS. On windows this can be done with the third-party Putty program. On OS X, this can be done with the Terminal programs (/Applications/Utilities/Terminal) or using CyberDuck or similar program.

The wallet.dat file must go in the ~/.StealthCoin directory on your new Ubuntu server.

Once copied start the client with the command

StealthCoind

Clean Up

While the client is getting started, it is recommended to remove the xst-bootstrap.7z file and to remove the line rescan=1 from the config.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.