Skip to content

temp69/magInstall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MAGNET

magInstall

magInstall is a menu driven script which can be used to control your magnet wallet on a linux VPS.

maginstallmenu

Table of Contents

  1. magInstall
  2. Features
  3. Installation
  4. Usage
  5. Compatibility

Features

  • Updates your VPS operating system
  • Installs all needed libraries
  • Automated wallet installation
  • Wallet upgrade functionality
  • Wallet resync functionality
  • Updating addnodes
  • Start / Stop the wallet
  • Masternode configuration
  • Manually editing magnet.conf
  • Masternode status info
  • Wallet status info
  • Blockheight information
  • Script self update function
  • Restarts wallet on VPS reboot

A control center for your magnet wallet

Installation

Install git if needed

sudo apt-get install git

Download the install script

cd ~
git clone https://github.com/temp69/magInstall

Move into the directory and execute the script

cd magInstall
./magInstall.sh

Usage

  • 1. UPDATE SYSTEM & INSTALL PACKAGES

Keeps your system up-to-date and installs the required packages to start the wallet.
You can even do this from time to time to ensure that everything on your VPS stays uptodate.

- ********** Use this first on a fresh VPS *************
- Also use it from time to time to keep your VPS updated
  • 2. INSTALL|UPDATE|RESYNC MAGNET

This will install / update the magnet wallet or resync your local blockchain.
On resync it keeps the necessary files (mag.conf | masternode.conf | wallet.dat) on the VPS

Info
Fresh Installation
- Creates a swap drive if needed
- Installs latest wallet from magnet github
- Creates wallet restart crontab job if VPS reboots
Update Wallet
- Approve on "Do you want to reinstall/update the wallet!? [y/n]"
Resync Blockchain
- Approve on "Do you want to resync the blockchain? [y/n]"

  • 3. START|STOP MAGNET WALLET

You can start and stop your magnet wallet.

  • 4. MASTERNODE CONFIG

Adds the necessary entries to the config file on your VPS.
You need to provide a valid masternode genkey.

Help
Controller wallet: masternode genkey
VPS: Enter masternode genkey
Controller wallet: masternode outputs
Controller wallet: masternode.conf
Remember to restart the wallet after your configured the masternode.conf file
Controller wallet: masternode start
Ensure the wallet is fully synchronized and the transaction has 15 confirmations before starting the node
VPS: Check masternode status

  • 5. EDIT mag.conf

Let's you edit the mag.conf file manually, with nano editor

  • 6. MASTERNODE STATUS

Shows information about your masternode status on the VPS
masternode status and debug is executed and shown.

  • 7. WALLET STATUS

Will give you information of your wallet and the explorers, to check how the sync is going.
getinfo is executed and it queries explorer's / pool to show block height

  • 0. Quit

Ends the script

+ Hint: Hit **ENTER** twice in the menu to refresh the info in the banner!

Compatibility

Recommended is a VPS with 1GB RAM / 1 vCPU / 20+ GB HDD

  • Ubuntu 16.04
  • Ubuntu 17.04 / 17.10
  • Ubuntu 18.04 / 18.10
  • Ubuntu 19.04

TODO

  • REFACTOR SOME FUNCTIONS

If you like this guide(s) drop me some MAGNET, use the Litemint wallet and send to TEmp*litemint.com