Advertisement
Guest User

Elastic howto install elastic node on raspberry pi

a guest
Nov 30th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. Howto
  2. Setup a Node on Raspberry Pi
  3.  
  4. 1. Download Raspbian + SD-Formatter
  5. First download the SD-Formatter
  6. Next download Raspbian
  7.  
  8. 2. Format SD-Card + Copy Raspbian onto SD-Card
  9. You can use any micro sd-card reader you want....
  10. Cards over 32GB -> Follow the instructions on https://wwwraspberrypi.org/....
  11. Start the SD-Formatter tool
  12. Set 'Format size adjustment' option to ON
  13. Extract the Raspbian zip file to a folder and copy the content to the SD-Card
  14.  
  15. 3. Next ... Insert the SD-Card into your Pi and boot
  16. Choose: Raspbian (Recommended)
  17.  
  18. 4. Enable SSH for remote access + login remotely
  19. Before you can connect remotely open a terminal and get the Pr's IP address
  20. Now you can use Putty to connect remotely to your Raspberry Pi
  21. Let the fun begin!!!
  22. Default Raspbian login:
  23. user: pi
  24. pass: raspberry
  25.  
  26. 5. Prepare your Pi - Install basic needs - Configure what is needed
  27. First things first - change your default pi password
  28. min 16 chars, min one big letter, min one small letter, min one number
  29. Update and Upgrade your system first - All commands used are found in the comments below
  30. Confirm with 'yes'
  31. Install some basic packages
  32. ---
  33. MC - Filemanager
  34. NTP - Syncs your clock
  35. fail2ban - helps to protect
  36. mtop - monitoring tool
  37. screen - run multiple screens in background
  38. nano - easy text editor
  39. ---
  40.  
  41. 6. Install Java
  42. Java is already present
  43. Check if you have java 1.8.x as this version is supported by Elastic
  44. Unzip the downloaded "JavaFX Embedded SDK"
  45. Copy the following files into the JDK 8 installation directory
  46. Remember the path, you need it in a minute
  47. Now we need to set / check if java and javac defaults are pointing to the right location
  48.  
  49. 7. Configure Firewall
  50. install "Uncomplicated Firewall"
  51. Allow SSH - Allow Elastic port 17876 - enable firewall
  52.  
  53. 8. Create a new user - Install Elastic Wallet
  54. Create a new user
  55. Use a strong password:
  56. min 16 chars, min one big letter, min one small letter, min one number
  57. Now it's time to log out (exit), start putty again, log in as the user elastic
  58. Download Elastic Litewallet
  59. Now compile Elastic
  60. Change Directory into the extracted folder
  61. If you get javafX errors it means there went something wrong, however your webbased Elastic Node will still function properly
  62. See Chapter 6 in this video
  63.  
  64. 9. Short howto use Screen
  65. One screen session created
  66. To detach from this screen press CTRL A D
  67. Resume / reconnect to the running screen in de background by using the command: screen -r
  68. Back in the running screen session. Now let's startup elastic and switch between the main session and this screen.
  69. Ready!
  70.  
  71. 10. Update Elastic Wallet
  72. Update elastic
  73. Make sure elastic is not running
  74. Change directory to Elastic
  75.  
  76. 11. Create SSL Certificate - Configure Elastic
  77. Create a SSL certificate for elastic webwallet and protection
  78. keystore password: use a strong password (min 32 random chars)
  79. Save it somewhere, you'll need it later
  80. Create a new config file so we can set the passwords correctly
  81. The content of the file can be found in the description down below
  82. Generate a strong password and paste it here
  83. Paste the password you provided during the SSL Cert Generation
  84. Press CTRL X to exit, Press Yes and confirm filename
  85.  
  86. 12. Run the Elastic Node
  87. Run Elastic in a screen session and you are good to go
  88. browse to https://'your-pi-ip':17876
  89. Create a portforward on your router to access it from the internet
  90. Detach and keep it running
  91. Open your browser, go to https://'your-pi-ip':17876
  92. You'll get a warning here that cert is untrusted.
  93. You know that you generated it so you know that it's trusted. Just bypass this cert warning.
  94.  
  95. 13. Optional RPI Fine tuning
  96. Disable the Desktop GUI to save resources
  97. Since we aren't using a window manager we can reallocate some of the GPU memory to the OS
  98. Set the value to 16.
  99. start the Node at boot using cron task scheduler.
  100. Run crontab as the Elastic user!
  101. Reboot your RPI to make it all effective
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement