I know you guys can find a lot of guides like that on the Internet, but I will describe step-by-step for PNX:
1 - HOW TO PREPARE THE LINUX ENVIRONMENT 2 - HOW TO CREATE A WALLET ON LINUX 3 - HOW TO CREATE A MASTERNODE ON LINUX UBUNTU 1 - HOW TO PREPARE THE LINUX ENVIRONMENTI'm considering you know the basic linux command lines.
I'm using instances T2.MICRO on AWS (Amazon Web Services) - clear machine with
Ubuntu 16.04Why AWS? Because I never had problems and it always works 24h/7d
By the way...
================ Step 01 // Updates ================>> updating the system and also the packages installed
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
================ Step 02 // Virtual Memory ================T2.MICRO has only 1Gb of RAM (on that case is Ok), but let's to increment the memory for swap.
Paging works by creating an area on your hard drive and using it for extra memory, this memory is much slower than normal memory however much more of it is available.
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo chmod 600 /var/swap.1
sudo /sbin/swapon /var/swap.1
If you need more than 1024 then change that to something higher.
To enable it by default after reboot, add this line to
/etc/fstab:
On the end of file, add this line:
/var/swap.1 swap swap defaults 0 0
PS if you never has used the VIM Editor:Press i to insert using VI. To save it, press ESC, after : + x + ENTER
================ Step 03 // Restarting the OS ================If all steps are OK, just restart the machine:
================ Step 04 // Blocking attempt of invasion ================This topic is small (minimal) of I will show!
On the AWS I recommend you block all ports and install also a firewall with good rules.
Again... this is not too much!
Let's install the
DenyHostssudo apt-get install denyhosts
Now, you can configure the DenyHosts as you want (email, iptables, etc):
sudo vi /etc/denyhosts.conf
Restarting the DenyHosts
sudo /etc/init.d/denyhosts restart
I recommend you find more detail on the internet about
DenyHosts================ Step 05 // IPTables - small rules ================Again, find on the internet how to improve the safety of your VPS on the internet.
I like to use
IPTABLES.
Blocking the PING
iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
Releasing the PNX ports
# main port
iptables -A INPUT -p tcp --dport 9340 -j ACCEPT
# rpc port
iptables -A INPUT -p tcp --dport 9341 -j ACCEPT
Thanks, your guide is very helpful with step by step for a complete newbie into linux like me.