Install Litecoin

Z Poznámkový blok
Přejít na: navigace, hledání

Pro instalaci postupujeme:

cd /usr/src
git clone https://github.com/PadsterH2012/Debian_LitecoinCore_install
make -C Debian_LitecoinCore_install install

Po instalaci vytvoříme uživatele litecoin a připravíme konfig soubor:

LITECOIN_USER_PASSWORD=$(dd if=/dev/urandom bs=1 count=20 2>/dev/null | base64 | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
LITECOIN_RPC_PASSWORD=$(dd if=/dev/urandom bs=1 count=20 2>/dev/null | base64 | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)

sudo adduser litecoin --gecos "litecoin" --disabled-password
echo "litecoin:${LITECOIN_USER_PASSWORD}" | sudo chpasswd

rm -rf /home/litecoin/.litecoin
mkdir /home/litecoin/.litecoin

echo 'daemon=1' >> /home/litecoin/.litecoin/litecoin.conf
echo 'server=1' >> /home/litecoin/.litecoin/litecoin.conf
echo 'gen=0'    >> /home/litecoin/.litecoin/litecoin.conf
echo 'port=9333'    >> /home/litecoin/.litecoin/litecoin.conf
echo 'rpcport=9332' >> /home/litecoin/.litecoin/litecoin.conf
echo 'rpcallowip=127.0.0.1' >> /home/litecoin/.litecoin/litecoin.conf
echo 'rpcuser=litecoinuser' >> /home/litecoin/.litecoin/litecoin.conf
echo "rpcpassword=${VERTCOIN_RPC_PASSWORD}" >> /home/litecoin/.litecoin/litecoin.conf
echo 'rpcworkqueue=300'     >> /home/litecoin/.litecoin/litecoin.conf
echo 'blockmaxsize=1000000' >> /home/litecoin/.litecoin/litecoin.conf
echo 'mintxfee=0.00001'     >> /home/litecoin/.litecoin/litecoin.conf
echo 'minrelaytxfee=0.0001' >> /home/litecoin/.litecoin/litecoin.conf
echo 'maxconnections=200'   >> /home/litecoin/.litecoin/litecoin.conf

ln /home/litecoin/.litecoin/litecoin.conf /home/litecoin/litecoin.conf
chown litecoin:litecoin -R /home/litecoin/.litecoin