Here’s a clear, step-by-step guide to compile and run the LanaCoin wallet/node/server on the latest Ubuntu Server, including basic configuration and security recommendations:
1. Install Latest Ubuntu Server
- Download the latest Ubuntu Server ISO from https://ubuntu.com/download/server.
- Install it on your machine or VPS following the installer prompts.
- During installation:
- Set a strong password for your user.
- Enable OpenSSH if you plan to manage remotely.
2. Update and Secure the System
Run these commands after installation:
Configure firewall (UFW):
Enable Fail2Ban for SSH protection:
3. Install Required Build Dependencies
sudo apt-get install build-essential libssl-dev libdb++-dev libboost-all-dev git -y
4. Download LanaCoin Source
5. Compile LanaCoin Daemon
Use make with UPnP disabled:
6. Install the Binary
sudo cp lanacoind /usr/local/bin/
7. Configure LanaCoin
Create configuration directory and file:
Add these lines to lanacoin.conf:
server=1
daemon=1
rpcuser=yourusername
rpcpassword=yourstrongpassword
rpcallowip=127.0.0.1
(Optional: Add rpcport=5706and port=XXXX if you want custom ports.)
8. Start LanaCoin Node
lanacoind
9. Monitor Logs
Extra Security Tips
- Disable root SSH login:\ Edit
/etc/ssh/sshd_config→PermitRootLogin no - Use SSH keys instead of passwords.
- Regularly update system:\
sudo apt update && sudo apt upgrade -y
✅ This will give you a running LanaCoin node on Ubuntu Server.\ Do you also want instructions for enabling RPC and connecting a wallet or mining setup? Or should I include systemd service configuration so the node starts automatically on reboot?
Here’s how to enable RPC for LanaCoin and make it accessible for wallet connections or automation:
1. Edit lanacoin.conf for RPC
Open the configuration file:
nano ~/.lanacoin/lanacoin.conf
Add or update these lines:
server=1
daemon=1
rpcuser=yourusername
rpcpassword=yourstrongpassword
rpcallowip=127.0.0.1
rpcport=5706
port=7506
Explanation:
rpcuserandrpcpassword: Required for authentication.rpcallowip: Restricts RPC access to localhost (safe default).\ If you need remote access, add your client’s IP (e.g.,rpcallowip=192.168.1.100).rpcport: Default is5706. Change if needed.port: Default P2P port is7506.
2. Restart LanaCoin Daemon
3. Test RPC Locally
Use curl to check:
You should see JSON output with node info.
4. Secure RPC
- Never expose RPC to the internet without protection.
- If remote access is needed:
- Use a VPN or SSH tunnel.
- Or bind RPC to a private network IP only.
- Consider adding
rpcbind=<your-server-ip>inlanacoin.confif you want to allow specific IPs.
Optional: Enable Auto-Start with systemd
Create a service file:
sudo nano /etc/systemd/system/lanacoin.service
Add:
[Unit]
Description=LanaCoin Daemon
After=network.target
[Service]
ExecStart=/usr/local/bin/lanacoind -daemon
ExecStop=/usr/local/bin/lanacoind stop
Restart=always
User=<your-username>
[Install]
WantedBy=multi-user.target
Enable and start:
✅ Now your LanaCoin node supports RPC for wallet integration or automation.
Here are some common LanaCoin RPC commands you can use once RPC is enabled. These examples use curl for direct calls, but you can also script them in Python or Bash.
1. Check Node Info
Returns: Version, balance, connections, block count.
2. Get Wallet Balance
3. Generate a New Address
Tip: Replace "default" with a label for the address.
4. List All Addresses
5. Send Coins
Example:
“params”:[“LanaCoinAddressHere”, 100.0]
6. Check Transaction by TXID
7. Get Blockchain Info
Security Reminder
- Never expose RPC to the public internet without a VPN or SSH tunnel.
- Use strong
rpcuserandrpcpassword. - Restrict
rpcallowipto trusted IPs only.
Here’s an updated Bash script with extra RPC commands for mining and wallet management, so you can manage your LanaCoin node more completely:
lanacoin-cli.sh (Extended Version)
New Features
- Wallet Management
encrypt <passphrase>→ Encrypt wallet.unlock <passphrase> <timeout>→ Unlock wallet for sending/mining.lock→ Lock wallet immediately.dumpprivkey <address>→ Export private key for an address.
- Mining
startmining <threads>→ Start CPU mining with specified threads.stopmining→ Stop mining.getmininginfo→ Show mining status and difficulty.
Usage Examples
✅ This script now covers RPC basics, wallet security, and mining control.