Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #I want to give credit to paranoidtruth for most of this manual.
- #I borrowed a lot of his work from another coin.
- #GoaCoin GUIDE for windows-linux setup
- #you need a linux vps to get a public IP, etc. If you don't know what that is, do something else.
- #I am NOT a linux expert, if you are and see anything incorrect, unnecessary, or should be added for security, etc, please let me know and I'll update!
- #focusing on the linux side, the windows *should* be pretty easy and simpler than it sounds
- #But I will also cover the windows side below.
- #I personally use a fairly small linux instance, 1024memory, ubuntu, 16.04
- #there are tons of vps services like: ovh, vpsdime, vultr, digitalocean, etc, etc.
- #get the ip & root login from your vps you setup
- #SSH into the vps (most windows users will use putty. If you're not familiar with putty, watch a quick youtube vid)
- #If you're on a mac (when the mac wallet is available, you have a built in SSH terminal instead of putty)
- #setup putty to connect to the IP and save that connection, ssh root@your_ip
- #after connecting should see something like: root@whatever_your_server_name_is
- #copy all instructions one line at a time:
- #if we have a cheap vps instance with low memory, a swap file for more memory is a good idea:
- free -h
- #that will just show what you currenty have
- #now setup the swap:
- sudo fallocate -l 4G /swapfile
- ls -lh /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
- #Make Changes Permanent
- echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
- sudo bash -c "echo 'vm.swappiness = 10' >> /etc/sysctl.conf"
- #Confirm Changes, you should now see a second line different that before, showing the 4G swap has been setup
- free -h
- #I also prefer to not install as root. Security & makes it easier if later you want to run more than one coin on the server,
- #you will have a diff home dir for each coin
- #so let's create a user called GoaCoin1
- #it's going to ask you questions like room number, you can just hit enter for all those, all you really need to fill in
- #is the new user password, do not lose this password either, you need both the root & GoaCoin1 password from now on
- #You can try to run this command but sometimes you will get an error message depending on the Linux install you have
- adduser GoaCoin1
- # This is the error message from running "adduser GoaCoin1" on some Linux configurations
- # "adduser: Please enter a username matching the regular expression configured
- # via the NAME_REGEX[_SYSTEM] configuration variable. Use the '--force-badname'
- # option to relax this check or reconfigure NAME_REGEX."
- # Since we don't want to reconfigure the NAME_REGEX file,
- # let's just relax the constraint for the new username instead.
- sudo adduser --force-badname GoaCoin1
- #now give this user sudo access (more power!)
- usermod -aG sudo GoaCoin1
- #alright, if this is your first coin on the server, there are upgrades & dependencies to install:
- sudo apt-get update -y
- sudo apt-get upgrade -y
- sudo apt-get dist-upgrade -y
- sudo apt-get install nano htop git vim -y
- sudo apt-get install build-essential libtool autotools-dev automake -y
- sudo apt-get install pkg-config libssl-dev libevent-dev bsdmainutils software-properties-common -y
- sudo apt-get install libboost-all-dev -y
- sudo apt-get install libzmq3-dev libminiupnpc-dev libssl-dev libevent-dev -y
- sudo add-apt-repository ppa:bitcoin/bitcoin -y
- sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
- sudo apt-get install fail2ban -y
- sudo apt-get install -y ufw
- sudo apt-get update -y
- #alright, now let's install GoaCoin
- #change over to our GoaCoin1 user to install in that user home dir
- #it may ask for your GoaCoin1 password
- su - GoaCoin1
- #verify we are in the GoaCoin1 home dir:
- pwd
- #that will show your curr directory, which should be /home/GoaCoin1
- #Now let's install GoaCoin into your new user's home folder
- git clone https://github.com/goacoincore/goacoin.git
- #Check to see if it created a goacoin folder
- ls
- #You should see the "goacoin" folder in a different color
- #build it, some of these steps will take a while:
- cd goacoin
- chmod 755 autogen.sh
- ./autogen.sh
- ./configure
- chmod 755 share/genbuild.sh
- make
- #built, lets move back to your home dir:
- cd ~/
- #now, the ls command shows your files/directories
- ls
- #the ls -alrt will show all your hidden files/directories as well:
- ls -alrt
- #you should see a lot more there, like the .SagaCoin directory that you didn't see before, so you have a SagaCoin & a .SagaCoin directory
- #copy your sagacoind executable file to /usr/local/bin so that it's globally executable from anywhere
- sudo chmod +x goacoin/src/goacoind
- sudo cp goacoin/src/goacoind /usr/local/bin/
- #alright, let's see if we can start it:
- goacoind -daemon
- #now it should be running. try some commands:
- # change directory to the goacoin/src/ folder
- cd goacoin/src/
- # List all commands for ./goacoin-cli
- ./goacoin-cli help
- # Get mining info
- ./goacoin-cli getmininginfo
- #you should see some info, one important one is the blocks.
- #do that command again:
- ./goacoin-cli getmininginfo
- #you should see a higher block number than before. If it is, it's syncing to the block chain, doing good!
- #let it run for a while. we want it to fully sync, so keep doing that command until it reaches the curr block
- #what's the current block? you can see the block # here: http://goacoin.be/
- #ok, all sync'd? let's stop it because we are going to edit the conf file.
- #If you edit the conf file, in particular the user/pass while it's running, you'll get stuck, so always stop it first:
- ./goacoin-cli stop
- #probably easiest editor to use is nano, at the bottom you'll see commands,
- #like CTRL-X will exit (it says where it's going to save, hit [ENTER])
- nano .goacoincore/goacoin.conf
- #remove whatever is there, and copy-paste exactly this into it:
- rpcuser=goacoin1rpc_or_some_other_random_username_with_only_letters_and_numbers
- rpcpassword=asdf1234_or_make_up_some_random_pass_with_letters_and_numbers_you_do_not_need_to_remember_it
- rpcport=10024
- port=1947
- masternode=1
- listen=1
- staking=0
- discover=1
- maxconnections=256
- externalip=YOUR_VPS_IP:1947
- masternodeprivkey=xxx
- addnode=54.37.74.53
- addnode=207.148.66.170
- addnode=194.67.220.255
- addnode=45.76.190.44
- addnode=80.208.227.101
- addnode=185.92.223.139
- #NOW replace the rpcuser, rpcpassword, and the externalip IP address.
- #The IP is your vps IP:1947, so it should look like xx.xx.xx.xx:1947
- #the masternodeprivkey will be from your windows setup. If you already did that, you already have it.
- #But you probably don't if you haven't done the windows side yet, so just leave it as xxx for now
- #to save
- CTRL X
- #agree to over write the file press Y
- Y
- #to tell Linux to make the change to the file and exit nano
- ENTER
- # allow port 1947 through the firewall
- sudo ufw allow 1947/tcp
- #linux side is almost done. (we still need the masternodeprivkey from your Windows PC wallet)
- #######################################################################################################
- #######################################################################################################
- # WINDOWS:
- #side note, you actually need a little over 1000 because there's a trans fee.
- #If you literally have only 1000, go buy one more coin.
- 1) Download and install GAO on your home PC computer, links:
- https://github.com/goacoincore/goacoin/releases/download/v0.12.1.6/goacoin-qt-0.12.1.6-win64.zip
- https://github.com/goacoincore/goacoin/releases/download/v0.12.1.6/goacoin-qt-0.12.1.6-win32.zip
- Choose win64 OR win32 based on the operating system (I always get the 32-bit because it's usually less buggy)
- 2) Wait until the wallet synchronizes and all the blocks are updated.
- 2a) Encrypt your wallet (Top left menu: Settings --> Encrypt Wallet...) Set a strong password and DON'T LOSE IT!
- 2b) BACKUP YOUR WALLET (Top left menu: File --> Backup Wallet...) Save the file somewhere safe.
- 2c) Did I mention that you need to backup your wallet? You need to backup your wallet...!
- 2d) HEY YOU! BACKUP YOUR WALLET!!!
- 3) Go to the menu 'Tools' en select option 'Debug console'.
- 4) In the console type getnewaddress <your MN name>. Your MN alias name can be a name choosen by you.
- Let's choose as example "mymasternode" for this guide.
- 5) In the Console enter the command getaccountaddress mymasternode. You'll get the address.
- 6) Send 1000 GOA coins to address generated in step 4. With the 1 extra you're sure you don't have to bother about the fee.
- Goto menu 'Send' --> paste the address in 'Pay To' input box, enter 1000 en press button 'Send'.
- The transaction fee should be automatically added to the transaction from the remaining balance.
- 7) Wait for the 10 confirmations to complete, check it in the 'Transactions tab', this can take 30-60 minutes.
- 7a) I hope you remembered to backup your wallet and your password... Just say'in...
- 8 Go to the menu 'Tools' --> 'Debug console'.
- 9) Type: masternode genkey
- 10) Type: masternode outputs
- 11) Copy the answers from step 9 and 10 to a empty notepad, for later usage.
- 15) Now go to 'Tools' --> 'Open Masternode configuration File' to edit this configuration. Delete the content of the file.
- 16) Add your own masternode configuration settings copy the following text, the answers did you save in step 4 and 11:
- <your MN alias name> <your ip address>:1947 <answer of step 9> <first part of answer in step 10> <2nd part of answer in step 10>
- It should look something like this:
- mymasternode 88.77.66.55:1947 765765634GHGjhgfsda782332bhds98dasbgh398hds9 34783478347hHJKLh438743hhbuon4123uusdaj23JJK8327H 1
- In the above line, last number can be 0 or 1 depending on the answer of step 10, in this guide we got 1 at the end of outputs
- 17) Save your masternode configuration file and close notepad.
- 18) Close your GoaCoin Wallet program on Windows
- ###############################################################################################
- ###############################################################################################
- LINUX VPS:
- #go back to your VPS Linux server (putty)
- #switch to the GoaCoin1 user
- su - GoaCoin1
- #update the vps config:
- nano .SagaCoin/sagacoin.conf
- #update your masternodeprivkey from step 9) and then exit/save
- CTRL-X then Y then [ENTER]
- #start it:
- goacoind
- # Close the SSH window to end the session
- ###############################################################################################
- WINDOWS
- #go back to windows, let's kick it off:
- #Open your GoaCoin exe
- #go to the "My Masternodes" tab
- #hit the start or start all button.
- #with any luck it will show successfully started. If it does not:
- #"could not allocate vin" means your wallet isn't unlocked, OR it didn't recognize your 1000 coins for the MN, maybe wrong amount.
- #check the block explorer using your MN addr (remember, it's in your receive tab so you can copy it from there)
- # http://goacoin.be/
- #does it have exactly one transaction of 1000? It's very picky about that rule.
- #ok, hopefully all of that is sorted out
- #in windows, go to the masternodes tab and click on the masternodes network sub-tab
- #you should be able to find yours. The active column will take a while to update, don't worry
- ##############################################################################################
- LINUX
- #ok, let's go back to your vps (putty)
- #now, let's see if we can see our ip in the list, swap in YOUR ip instead of xx.xx.xx.xx:
- # change directory to the goacoin/src/ folder
- cd goacoin/src/
- # List all commands for ./goacoin-cli
- ./goacoin-cli help
- # Get mining info
- ./goacoin-cli getmininginfo
- # List Masternodes
- ./goacoin-cli masternode list | grep xx.xx.xx.xx
- #with any luck you will see something like: xx.xx.xx.xx:1947 : 1,
- #1 is good, that means your ip is active/enabled in the saga masternode list
- #FYI: some commands you might use on occasion:
- goacoind #starts goacoin
- ./goacoin-cli masternode list #shows all nodes
- ./goacoin-cli stop #stops goacoin
- ./goacoin-cli getmininginfo #show blocks, etc.
- ./goacoin-cli help #shows every possible command
- #add a couple basic sec items, firewall & fail2ban
- sudo ufw default allow outgoing
- sudo ufw default deny incoming
- sudo ufw allow ssh/tcp
- sudo limit ssh/tcp
- sudo ufw allow 1947/tcp
- sudo ufw logging on
- sudo ufw enable
- sudo ufw status
- #note, if you run other coins on diff ports, run the firewall allow commands to open/allow those ports as well
- #like we did above to allow 1947
- #fail2ban:
- sudo systemctl enable fail2ban
- sudo systemctl start fail2ban
- #wait for rewards. First one might take up to 24 hours.
- #I also use the monitoring feature of masternodes.online.
- #You can create an acct and find your node by searching by ip:port
- #add it to your monitor list, and be sure that it's running.
- ################################################################################
- If you haven't done so already, I recommend you go BACKUP YOUR WALLET!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement