Useful VPS and Lindad commands - larsen161/Lindacoin GitHub Wiki

Lindad

  • Check your log file if your masternode has been pinging correctly.
  • Check for a broader range of masternode events
user@server:~$ grep 'CActiveMasternode::Dseep()' ~/.Linda/debug.log
user@server:~$ grep 'CActiveMasternode' ~/.Linda/debug.log
  • Get a transaction and broadcast it again to the blockchain
user@server:~$ Lindad getrawtransaction some-transaction-id-you-have
user@server:~$ Lindad sendrawtransaction output-from-getrawtransaction
  • Sort the masternode list by last seen
user@server:~$ Lindad masternode list lastseen | sed 's/^/echo "/; s/([0-9]{10})/date -d @\1/; s/$/"/' | bash | sort -k 2`
  • Change the account name of an address you have. (I've noticed this also creates a new address)
user@server:~$ Lindad setaccount <an-address-of-yours> <new-accountname>
  • List all your wallets addresses
user@server:~$ Lindad listreceivedbyaddress 0 true
  • Find if your server by IP if it's on the masternode list
user@server:~$ Lindad masternode list | grep <ip-you-are-looking-for>
  • Find the ranking of a masternode
user@server:~$ Lindad masternode list rank | grep <ip-you-are-looking-for>

Others...

user@server:~$ Lindad listaddressgroupings

VPS

  • If you ever forget to add an initial space to a command with your walletpassphrase this can help remove it from history before being written to .bash_history.
    • Use the first commend to find which entry to delete
    • Then the 2nd to delete that entry.
    • The last one just clears your entire history.
    • Edit your .bash_history and remove any entries
    • Finally, delete your entire .bash_history
user@server:~$ history
user@server:~$ history -d 10
user@server:~$ history -c
user@server:~$ vi ~/.bash_history
user@server:~$ cat /dev/null > ~/.bash_history
user@server:~$ scp mymasternode:~/.Linda/wallet.dat ~/
  • Resize your swap file
root@server:~$ swapoff -a
root@server:~$ dd if=/dev/zero of=/swapfile bs=1M count=3102
root@server:~$ mkswap /swapfile
root@server:~$ swapon /swapfile

iptables

  • List your rules by line
user@server:~$ sudo iptables -L --line-numbers