Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Howto
- Setup a Node on Raspberry Pi
- 1. Download Raspbian + SD-Formatter
- First download the SD-Formatter
- Next download Raspbian
- 2. Format SD-Card + Copy Raspbian onto SD-Card
- You can use any micro sd-card reader you want....
- Cards over 32GB -> Follow the instructions on https://wwwraspberrypi.org/....
- Start the SD-Formatter tool
- Set 'Format size adjustment' option to ON
- Extract the Raspbian zip file to a folder and copy the content to the SD-Card
- 3. Next ... Insert the SD-Card into your Pi and boot
- Choose: Raspbian (Recommended)
- 4. Enable SSH for remote access + login remotely
- Before you can connect remotely open a terminal and get the Pr's IP address
- Now you can use Putty to connect remotely to your Raspberry Pi
- Let the fun begin!!!
- Default Raspbian login:
- user: pi
- pass: raspberry
- 5. Prepare your Pi - Install basic needs - Configure what is needed
- First things first - change your default pi password
- min 16 chars, min one big letter, min one small letter, min one number
- Update and Upgrade your system first - All commands used are found in the comments below
- Confirm with 'yes'
- Install some basic packages
- ---
- MC - Filemanager
- NTP - Syncs your clock
- fail2ban - helps to protect
- mtop - monitoring tool
- screen - run multiple screens in background
- nano - easy text editor
- ---
- 6. Install Java
- Java is already present
- Check if you have java 1.8.x as this version is supported by Elastic
- Unzip the downloaded "JavaFX Embedded SDK"
- Copy the following files into the JDK 8 installation directory
- Remember the path, you need it in a minute
- Now we need to set / check if java and javac defaults are pointing to the right location
- 7. Configure Firewall
- install "Uncomplicated Firewall"
- Allow SSH - Allow Elastic port 17876 - enable firewall
- 8. Create a new user - Install Elastic Wallet
- Create a new user
- Use a strong password:
- min 16 chars, min one big letter, min one small letter, min one number
- Now it's time to log out (exit), start putty again, log in as the user elastic
- Download Elastic Litewallet
- Now compile Elastic
- Change Directory into the extracted folder
- If you get javafX errors it means there went something wrong, however your webbased Elastic Node will still function properly
- See Chapter 6 in this video
- 9. Short howto use Screen
- One screen session created
- To detach from this screen press CTRL A D
- Resume / reconnect to the running screen in de background by using the command: screen -r
- Back in the running screen session. Now let's startup elastic and switch between the main session and this screen.
- Ready!
- 10. Update Elastic Wallet
- Update elastic
- Make sure elastic is not running
- Change directory to Elastic
- 11. Create SSL Certificate - Configure Elastic
- Create a SSL certificate for elastic webwallet and protection
- keystore password: use a strong password (min 32 random chars)
- Save it somewhere, you'll need it later
- Create a new config file so we can set the passwords correctly
- The content of the file can be found in the description down below
- Generate a strong password and paste it here
- Paste the password you provided during the SSL Cert Generation
- Press CTRL X to exit, Press Yes and confirm filename
- 12. Run the Elastic Node
- Run Elastic in a screen session and you are good to go
- browse to https://'your-pi-ip':17876
- Create a portforward on your router to access it from the internet
- Detach and keep it running
- Open your browser, go to https://'your-pi-ip':17876
- You'll get a warning here that cert is untrusted.
- You know that you generated it so you know that it's trusted. Just bypass this cert warning.
- 13. Optional RPI Fine tuning
- Disable the Desktop GUI to save resources
- Since we aren't using a window manager we can reallocate some of the GPU memory to the OS
- Set the value to 16.
- start the Node at boot using cron task scheduler.
- Run crontab as the Elastic user!
- Reboot your RPI to make it all effective
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement