Compiling the Litecoin daemon from source on Debian: Difference between revisions

From lurkmore wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 49: Line 49:


You can copy the password that you are given in the error message.
You can copy the password that you are given in the error message.
Run <code>litecoind</code> once more to start the daemon!


=== Using litecoind ===
=== Using litecoind ===

Revision as of 10:33, 13 October 2013

The process for compiling the Litecoin daemon, litecoind, from the source code is pretty simple. This guide is using Debian Linux, though it should not need many modifications for any distros which are forked from Debian, such as Ubuntu and Xubuntu.

Update and install dependencies

apt-get update && apt-get upgrade
apt-get install ntp git build-essential libssl-dev libdb-dev libdb++-dev libboost-all-dev libqrencode-dev

wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.tar.gz
tar -zxf download.php\?file\=miniupnpc-1.8.tar.gz
cd miniupnpc-1.8/
make
make install
cd ..
rm -rf miniupnpc-1.8 download.php\?file\=miniupnpc-1.8.tar.gz

Compile the daemon

Add a new user

adduser litecoin
su litecoin

Download the source code

cd ~
git clone https://github.com/litecoin-project/litecoin

Compile litecoind

cd litecoin/src
make -f makefile.unix USE_UPNP=1 USE_QRCODE=1 USE_IPV6=1
strip litecoind
exit

Clean up and run the daemon

Copy litecoind to the system directory

cp /home/litecoin/litecoin/src/litecoind /usr/bin/litecoind

Clean up source code and run litecoind

su litecoin
cd ~
rm -rf litecoin
litecoind

On the first run, litecoind will return an error and tell you to make a configuration file, named litecoin.conf, in order to add a username and password to the file.

nano ~/.litecoin/litecoin.conf

Add the following to your config file, changing the username and password to something secure:

daemon=1
rpcuser=<username>
rpcpassword=<secure password>

You can copy the password that you are given in the error message.

Run litecoind once more to start the daemon!

Using litecoind

litecoind help

The above command will list all available functions of the Litecoin daemon. To safely stop the daemon, execute litecoind stop.

Related articles