Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # Close putty and connect again this time with the following credentials
  2. # Username: root
  3. # Password: <new password you created>
  4. # Now we will change the pi username to something different, replace NAME with whatever you pick
  5. sudo usermod -l NAME -d /home/NAME -m pi
  6. sudo chown NAME /home/NAME
  7. # Close putty and connect again this time with your new username
  8. # Run the following commands
  9. sudo apt-get update
  10. sudo apt-get upgrade
  11. sudo apt-get dist-upgrade
  12. # sudo apt-get install libtool autotools-dev autoconf libdb-dev libminiupnpc-dev dh-autoreconf libdb++-dev libboost-all-dev libssl-dev pkg-config joe ufw protobuf-compiler libprotobuf-dev libqt4-dev
  13. # Now we will configure the firewall to only allow ports 22 for SSH and 50472 for the masternode
  14. sudo ufw allow ssh/tcp
  15. sudo ufw limit ssh/tcp
  16. # sudo ufw allow 51472/tcp
  17. sudo ufw logging on
  18. sudo ufw enable
  19. sudo reboot
  20. # After a few minutes connect back with Putty and check the status of the firewall
  21. sudo ufw status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement