-
Notifications
You must be signed in to change notification settings - Fork 21
LiteDoge full node copy paste installation guide
Copy-paste unix commands to run a full litedoge node non gui command line deamon and start staking.
This guide walks you trough installing the wallet and begin playing around with installing a wallet and moving small amounts of cryptocurrency around.
Litedoge runs on any unix or BSD server. Even Raspberry PI. In this guide I'll focus on Ubuntu 22 running on a cloud server.
Here are few host providers who offer cheap virtual private servers (vps) for international customers:
Log in as root to your server:
ssh root@server-ip-address
or
sudo su -
Update the OS:
apt update -qqy --fix-missing \
&& apt-get upgrade -y \
&& apt-get clean -y \
&& apt-get autoremove -y --purge
Install dependencies:
sudo apt-get install build-essential libsqlite3-dev -y libminiupnpc-dev libnatpmp-dev libzmq3-dev libqrencode-dev git libtool autotools-dev libqt5webkit5-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git procps bison
sudo apt-get install bc python3-zmq libboost-dev libboost-all-dev libssl-dev libdb++-dev libleveldb-dev libstdc++-8-dev
sudo add-apt-repository ppa:bitcoin-cash-node/ppa
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo add-apt-repository ppa:rock-core/qt4
sudo add-apt-repository ppa:luke-jr/bitcoincore
sudo apt-add-repository -y ppa:rael-gc/rvm for libssl1.0-dev
sudo apt-get update
sudo apt-get install libdb4.8++-dev libdb4.8-dev -y
sudo apt install qt4-dev-tools libqt4-dev libleveldb-dev -y
sudo apt-get install qttools5-dev-tools libprotobuf-dev protobuf-compiler -y
sudo apt-get install qttools5-dev -y
sudo apt-get install libssl1.0-dev libssl1.0.0 -y
sudo apt-get install qt5-default -y
sudo apt-get install libevent-dev -y
sudo apt-get update
You don't want start litedoge node with the root user. Create user litedoge
without log-in rights.
sudo useradd -s /usr/sbin/nologin -m litedoge
Clone the updated litedoge repository:
cd /home/litedoge && git clone https://github.com/ldoge/LDOGE litedoge
sudo chown -R litedoge:litedoge litedoge
Build it with command:
cd /home/litedoge/litedoge/src && sudo -u litedoge make -f makefile.unix
Move litedoged to path:
cp /home/litedoge /bin/litedoge
Create the config directory:
sudo -u litedoge mkdir /home/litedoge/.litedoge
Create the config file litedoge.conf
Note: you need to add strong rpcpassword
before copy-pasting this:
cat << "EOF" | sudo tee /home/litedoge/.litedoge/litedoge.conf
addnode=108.95.86.140
addnode=122.173.31.90
addnode=154.246.247.104
addnode=154.57.7.131
addnode=174.84.66.125
addnode=185.220.100.252
addnode=185.236.200.18
addnode=195.46.187.110
addnode=24.18.45.238
addnode=46.223.163.38
addnode=67.173.133.238
addnode=68.134.231.97
addnode=71.196.70.246
addnode=71.84.23.132
addnode=87.116.165.147
addnode=87.123.244.103
addnode=87.123.244.98
addnode=88.78.111.11
addnode=95.217.77.209
# If you get too many errors in initial sync, try limiting maxconnections to 3
#maxconnections=3
# Release your LDOGEs by setting staking=0 or reservebalance to needed amount
#reservebalance=99999999999
staking=1
stake=1
daemon=1
server=1
rpcuser=litedogerpc or anything you want it to be
rpcpassword=anything you want it to be
rpcallowip=127.0.0.1
rpcport=17015
port=17014
txindex=1
EOF
You can download the blockchain to make initial sync faster. You'll find it from bitcointalk's, discord, main website, or twitter.
Copy file bootstrap.dat
to litedoge datadir /home/litedoge/.litedoge
before starting the server.
If bootstrap.zip
is not available, just skip this step. Initial sync will take few days.
Install ufw
and allow ssh access before enabling it
apt install ufw
ufw allow 22
ufw allow 9332
ufw allow 6667
ufw allow 17014
ufw allow 17015
ufw enable
We want our node to start automatically after a reboot or crash. Create a systemd service for it.
cat << "EOF" | sudo tee /lib/systemd/system/litedoge.service
[Unit]
Description=Litedoge daemon
After=network.target
[Service]
ExecStart=/bin/1doge -datadir=/home/litedoge/.litedoge
WorkingDirectory=/home/litedoge/.litedoge
Type=forking
User=litedoge
Restart=on-failure
PrivateTmp=true
PrivateDevices=yes
ProtectSystem=full
SyslogIdentifier=LDOGE
RestartSec=30
[Install]
WantedBy=multi-user.target
Alias=litedoge.service
EOF
Enable the service:
systemctl daemon-reload && sudo systemctl enable litedoge.service
sudo apt-get update
Every time you change something in /lib/systemd/system/litedoge.service
, you need to run systemctl daemon-reload
.
service litedoge start
Since we have created an alias for the service, we will be able to work with it in the future as follows:
service litedoge start|stop|restart|status
cat << "EOF" | sudo tee /bin/litedoged
/bin/litedoge -datadir=/home/litedoge/.litedoge "$@"
EOF
Chmod
chmod a+x /bin/litedoged
tail -f /home/litedoge/.litedoge/debug.log
First encrypt your wallet:
litedoged encryptwallet your-strong-password-here
service litedoge restart
Then copy /home/litedoge/.litedoge/wallet.dat
and store it somewhere safe.
While waiting for sync to complete, read more about LiteDoge at:
Official website: http://www.litedogeofficial.org
Reddit: https://reddit.com/r/litedoge
Discord: https://discord.gg/dVWy7MqE2J
Block Explorer: https://blocks.litedogeofficial.org
Bitcointalk thread 1: https://bitcointalk.org/index.php?topic=1077390.0
Bitcointalk thread 2: https://bitcointalk.org/index.php?topic=1308769.0
Original repository and development guide: https://github.com/ldoge/LDOGE
litedoged help
When blockchain is fully synced, use ´getnewaddress´ to get a new LDOGE address:
litedoged getnewaddress
command returns address-hash like dJ68iVea94kWWgR4DFStwMnUzZUs4uVDhS
. Send your LDOGEs to your address.
Wait few seconds and check your balance:
litedoged getbalance
Note: this will return your spendable balance. When you are staking, getbalance
will be lower than your actual wallet balance.
You can earn LiteDoge by validating block transactions.
Keep your coins for at least 8 hours in your wallet and they will be eligible for staking. 8 hours wait to be elidable for solving blocks after having a coin balance in wallet and also after those coins earn a stake, to allow others a chance a a stake/interest block reward for solving a block.
The time needed to get stake reward depends on the number of coins you hold in your wallet.
Unlock wallet for staking for 99999999 seconds which is ~3,1709791667 years
litedoged walletpassphrase your-strong-password-here 99999999 true
Check node info for balances:
litedoged getinfo
{
...
"balance" : 3000000.00000000, // Spendable balance
...
"stake" : 8000000.00000000, // Locked for staking
...
"unlocked_until" : 1612455147, // Wallet unlocked for staking
...
}
Check staking status:
staking=1
stake=1
1 parameter means on
while 0 means off
Note: When litedoged is restarted, you'll need to unlock your wallet manually to resume staking.
litedoged getstakinginfo
{
"enabled" : true, // Staking is on
"staking" : true, // You have had coins for at least 8 hours in your wallet not moved around, then they are eligible for staking.
...
}
Check last transactions for paid rewards:
litedoged listtransactions
[
...
{
... // Paid to address
"address" : "dJ68iVea94kWWgR4DFStwMnUzZUs4uVDhS",
"category" : "immature", // updates to "generate" after 510 confirmations
"amount" : 500.00000000, // Stake amount
...
"generated" : true, // Paid for staking
...
}
]
You can also check your staking status on LDOGE explorer at http://blocks.litedogeofficial.org/
With 3,000,000 LDOGE you should be getting rewards about twice a day.
Unlock wallet for 60 secs and move your LDOGEs back to other wallet (replace hash with your address):
litedoged walletpassphrase your-strong-password-here 60
litedoged sendtoaddress dJ68iVea94kWWgR4DFStwMnUzZUs4uVDhS amount-ldoge-to-send
Unlock your wallet again for staking
litedoged walletpassphrase your-strong-password-here 99999999 true
for bash in particular, this can be achieved at the beginning, not only at the end
https://www.gnu.org/software/bash/manual/bash.html#index-HISTFILE
HISTFILE=/dev/null that makes bash stop recording new history
history -c that erases any precious history
If you make a LDOGE node you are apart of the LDOGE network helping out the LDOGE blockchain stay strong!