First you need a SD-card slot/reader.
Second Download Rasbian from: http://www.raspberrypi.org/downloads
See http://www.raspberrypi.org/wp-content/uploads/2012/04/quick-start-guide-v2_1.pdf for instructions on how to prepare your SD-card and get the image to it.
Repeat with all 4 (you can probably make a script for automating all these tasks but I'll keep it simple)
My tip is to power up one raspberry at a time. Because my router gives the same IP-number to the devices, and if we power up all 4 I would have 4 devices named raspberry.
So I start one, change its host name and save the IP-number in a file with the hostname for later referencing.
So start the first and find out it's IP-number.
Ssh into the raspberry with: "shh pi@<ip-number>" the password is rasberry
run sudo raspi-config:
- First choose "Advanced" and "Update" so the setup-program updates to the latest version.
- Expand the Filesystem so it uses the whole SD-card
- Change password (your choice)
- Choose "Advanced Options" and memory split. Give the GPU 16 (instead of 64) we don't need so much memory for the graphics.
- In "Advanced" you can also change the hostname. I choose to have a system like cluster01 through cluster03.
- I choose to overclock mine to 900mhz but It's up to you.
- Choose "Finish"
My Raspberries usually complain on the locale, but we can fix it by editing the Locale manually:
"sudo nano /etc/default/Locale" and adding these lines to the file:
LC_ALL=en_gb.UTF-8
LANGUAGE=en_gb.UTF-8
After that run "update-locale", don't worry if it still says some bad stuff.
Reboot by "sudo reboot" then ssh to it again.
Do a full system update
"sudo apt-get update" then "sudo apt-get upgrade"
Then install oracles java 8
"sudo apt-get install oracle-java8-jdk"
You can log out of the ssh for a little while now
Now its time to download Wildfly 8
http://wildfly.org/downloads/
I choose to download it on my desktop computer and copy it via scp to the raspberry
(used via Linux on my desktop in the folder where Wildfly zip is)
"scp pi@<ip of raspberry>:. Wildfly-8.0.0.Final.zip"
this copies it to the home-folder of the user "pi".
Ssh into the raspberry again
Make a folder in the /usr with the name jboss where we will unzip the zip
"sudo mkdir /usr/jboss"
Then by standing in the folder which the zip is (check with "ls")
"sudo unzip -d /usr/jboss /home/pi/wildfly-8.0.0.Final.zip"
Repeat all the steps with all 4 (you can probably make a script for automating all these tasks but I'll keep it simple)
It's now time for configs!
(Continued in the next Part)
No comments:
Post a Comment