Blockchain node setup guide
How to run your own blockchain node on a VPS from scratch: choose a plan, secure the server, verify downloads, run a systemd service and check sync.
Read more →Updated 2026-11-11 · Published by AnonVPS
Log in as root over SSH or the in-browser console, then update the system and create an unprivileged user for daily work. The node itself will run under its own service account, never as root.
apt update && apt full-upgrade -y
adduser admin
usermod -aG sudo admin
rsync --archive --chown=admin:admin ~/.ssh /home/admin
# log out, then log back in as adminAllow SSH and the Litecoin peer-to-peer port. Keep the RPC and API ports closed to the internet: they are not meant to face the public network.
sudo apt install -y ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow OpenSSH
sudo ufw allow 9333/tcp
sudo ufw enable
sudo ufw statussudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
free -hsudo useradd --system --create-home --home-dir /var/lib/litecoind --shell /usr/sbin/nologin litecoin
sudo install -d -m 755 /etc/litecoinFind the current release on litecoin.org and set the version below. The release page publishes checksums and signatures; verify them before installing.
VER=VERSION_FROM_THE_DOWNLOAD_PAGE
cd /tmp
wget https://download.litecoin.org/litecoin-$VER/linux/litecoin-$VER-x86_64-linux-gnu.tar.gz
wget https://download.litecoin.org/litecoin-$VER/linux/litecoin-$VER-x86_64-linux-gnu.tar.gz.asc
wget https://download.litecoin.org/litecoin-$VER/SHA256SUMS.ascsha256sum litecoin-$VER-x86_64-linux-gnu.tar.gz
grep litecoin-$VER-x86_64-linux-gnu.tar.gz SHA256SUMS.asc
gpg --verify litecoin-$VER-x86_64-linux-gnu.tar.gz.asctar -xzf litecoin-$VER-x86_64-linux-gnu.tar.gz
sudo install -m 0755 -o root -g root -t /usr/local/bin litecoin-$VER/bin/litecoind litecoin-$VER/bin/litecoin-cli
litecoind --version | head -1sudo tee /etc/litecoin/litecoin.conf >/dev/null <<'EOF'
datadir=/var/lib/litecoind
prune=2000
dbcache=800
maxconnections=40
listen=1
server=1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
EOF
sudo chown root:litecoin /etc/litecoin/litecoin.conf
sudo chmod 640 /etc/litecoin/litecoin.confsudo tee /etc/systemd/system/litecoind.service >/dev/null <<'EOF'
[Unit]
Description=Litecoin Core daemon
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/litecoind -conf=/etc/litecoin/litecoin.conf
User=litecoin
Group=litecoin
Type=simple
Restart=on-failure
TimeoutStopSec=600
PrivateTmp=true
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now litecoind
sudo systemctl status litecoind --no-pageralias ltc='sudo -u litecoin litecoin-cli -conf=/etc/litecoin/litecoin.conf'
ltc getblockchaininfo | grep -E 'blocks|headers|verificationprogress|pruned'
ltc getconnectioncount
journalctl -u litecoind -n 30 --no-pager9333/tcp for peers. Keep RPC closed to the internet.
Yes, with the prune option in the config file. It validates the chain and keeps recent blocks only.
Yes, through an SSH tunnel to the RPC port. Do not expose RPC publicly.
Chain size changes and project guidance moves. Check Litecoin Core's current requirements before relying on the smallest plan.
How to run your own blockchain node on a VPS from scratch: choose a plan, secure the server, verify downloads, run a systemd service and check sync.
Read more →Run a pruned Bitcoin Core node on a VPS: install, verify, configure, run with systemd, open the firewall and check sync. Copy-and-paste commands.
Read more →A practical checklist for a new Linux VPS: SSH keys, a non-root user, firewall, automatic updates and backups, with the commands.
Read more →