Title: [EXPLAINED] How to set up a Fusion PSN stagenet node using Vultr and Ubuntu? Post by: ZacktheHack on March 17, 2019, 04:59:25 PM Hello All,
Pynk.io CEO Seth explains how to set up a Fusion PSN stagenet node. Youtube - https://youtu.be/k4fGqCT8woo Step-by-step text instructions: https://i9.ytimg.com/vi/k4fGqCT8woo/mqdefault.jpg?sqp=COT3ueQF&rs=AOn4CLDVmrcHzHXVVo34mNgfbnhtQ9eIGQ&time=1552841741794 First, make sure you have your JSON file and corresponding password to access it (for the wallet containing your PSN / Stagenet FSN tokens). Create a text file called password.txt which contains only the password. Make sure it's in plain text format 1) Create an instance on Vultr. Just sign up for an account at https://www.vultr.com/?ref=7738961 Then choose a $40 Ubuntu server. Use the first/highest version of Ubuntu. 2) Log in via console Once your server's live (a few seconds), click on it then click the 'Console' icon top right. This pops up a browser-based SSH terminal. Enter root as your username and type in the password (copied from Vultr page). Be slow and careful typing as it can be laggy. 3) Add a user Once you're logged in, type: adduser yourusername (eg 'adduser barbara') then: chown yourusername:yourusername /home/yourusername EG: chown barbara:barbara /home/barbara Ubuntu will ask you to enter password twice - REMEMBER IT! Just press enter for all default user profile entries. Create a subdirectory for your node: mkdir /home/yourusername/yournodename EG: mkdir /home/barbara/barbsnode 4) Set up FTP Enter: apt-get install vsftpd Then: sudo vim /etc/vsftpd.conf (Note, you may prefer to use nano editor rather than vim - just replace 'vim' with 'nano'... sudo nano /etc/vsftpd.conf Scroll up and down in this editor and remove the # signs before any of the following that might have them (most won't need changing). Press FN and DEL keys at the start of the line. anonymous_enable=NO local_enable=YES write_enable=YES EG #anonymous_enable=NO becomes... anonymous_enable=NO To exit VIM and save the file, press ESC then: then wq then hit ENTER (Even though it looks like nothing's happening, you should see :wq at bottom of the screen between pressing ESC and ENTER) Then enter: service vsftpd start To check if it starts up OK 5) Set permissions Enter the following... chmod a-w -R /path/to/directory chmod 755 -R /path/to/directory EG chmod a-w -R /home/barbara chmod 755 -R /home/barbara (I'm very rusty on linux so one of these might not be necessary but this gets things working) Then restart the FTP daemon... service vsftpd restart 6) Upload JSON and password.txt Download an FTP client, EG Filezilla. Then use the following settings: host: (Grab the IP from Vultr for your server instance) username: yourusername (eg 'barbara') password: your password (the one you entered when adding a user in step 1) Now upload your password.txt file into the top node directory (this should be what you configured using 'mkdir' in step 3) EG /home/barbara/barbsnode) Then create a data directory in barbs node which becomes /home/barbara/barbsnode/data Same again for keystore within data, which becomes /home/barbara/barbsnode/data/keystore Upload the JSON file (filename should start with UTC) into the keystore folder 7) Install docker and runpsn.sh Enter: sudo apt-get update sudo apt-get install docker.io Run the node using the following code... sudo docker run -v //home/yourusername/yournodename:/fusion-node fusionnetwork/efsn -u ‘0x1234etc’ -e YourNodeName In this case it would be: sudo docker run -v //home/barbara/barbsnode:/fusion-node fusionnetwork/efsn -u ‘0x1234etc’ -e BarbsStagenetNode (Replace 0x12345etc with the public address of your wallet - the same wallet containing your PSN and which you've uploaded the keystore and password.txt for) This will fail the first time, so enter the following: sudo chmod +x runpsn.sh sudo ./runpsn.sh 8) Run your node Enter your node startup code again and it should work. It'll need to sync the current blocks which shouldn't take too long. 9) Buy 'lottery' tickets Go to https://assetgateway.fusionnetwork.io/ Upload your JSON file and enter the password. This should display your available PSN. Buy as many as you'd like - and I advise you to use the auto-purchase option otherwise you'll need to constantly be buying tickets. You should soon be able to see your node at the Network Explorer at http://node.fusionnetwork.io/ You need a node AND tickets to earn rewards. Be aware - you need to keep the lottery ticket purchase page open at the moment for it to work. Fix for that should be coming soon 10) Profit! Feel free to send PSN donations to 0xEDd051Ea968130BE5ccb7dca865EC2f3eF9af25C Enjoy! PS There's now an update code which you should use once before starting node again: sudo docker pull fusionnetwork/efsn:latest PPS for a nicer SSH experience, use an editor such as Termius or Putty. Use that to connect to VPS (just enter the IP, username, and password from Vultr's site). You can copy and paste the startup code easier Title: Re: [EXPLAINED] How to set up a Fusion PSN stagenet node using Vultr and Ubuntu? Post by: Marvell2 on March 18, 2019, 02:11:26 AM Why waste time to set this up when it’s not even mainnet
Title: Re: [EXPLAINED] How to set up a Fusion PSN stagenet node using Vultr and Ubuntu? Post by: ZacktheHack on March 18, 2019, 12:14:08 PM Why waste time to set this up when it’s not even mainnet 1) To learn 2) To contribute (if you believe in the project) 3) There are real financial rewards for doing so Best Wishes. |