-
Notifications
You must be signed in to change notification settings - Fork 2
Tutorial 101 Raspberry Pi compute node
What follows is a quickstart setup guide to connect a Raspberry Pi device to weave.sh.
What you need:
-
A Raspberry Pi project computer (http://www.raspberrypi.org) Note, this even works on v1 of the Model B (256MB), I don't have a Model A board to test yet.
-
A 4GB(or larger) sdcard with Raspbian Wheezy loaded After writing up my own laborious instructions for setting up Wheezy on your own sdcard, I discovered a better written guide here: http://www.neil-black.co.uk/raspberry-pi-beginners-guide You may also buy
-
A 5v 1000ma(1A) regulated micro-usb power supply
-
A network cable
-
Power (wall, solar, etc)
-
Internet access
-
A usb keyboard or another computer with ssh
The latest (2/2013) version of Raspbi Wheezy has remote login enabled by default. If you prefer, you may use keyboard and a display. (or with just a keyboard and no display: type and pray:
Wait for the green light to be on for a minute
- pi\nraspberry\n (to login)
- s\n\n(wait)\n (to enable ssh)
- e\n(wait)\n (to add the rest of the sdcard for storage)
- \t\t\n\n (to finish, save changes, and reboot right now)
There is a free OSX utility at http://ivanx.com/raspberrypi/, that will look for all the addresses on your home network. I'll link in other resources if you are unable to attach a suitable screen to your raspberry pi
-
look in your router
-
setup your own dhcp manager on a desktop/laptop and connect network ports directly to the pi
-
port scan manually
-
Skill change your password. seriously.
-
Skill setup ssh login
-
Skill only allow password login over console
-
Skill deal with secure login issues
-
Skill Update Operating System Information Get the latest security and software updates, this may take a while > sudo apt-get update > sudo apt-get upgrade > sudo apt-get install git screen
-
Skill Install EarlyEdition Java Developer Kit v8 ARMhflt * You need to agree to the terms and download the JDK directly from Oracle http://jkd8.java.net/fxarmpreview/ At the moment, this version is jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz * Skill copy the jdk file to your raspberry pi (from your local machine) > scp jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz [email protected]: * Skill verify a secure file transfer with md5/md5sum compare the 'md5' link of the jdk archive with the copy on your pi > md5 jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz 0f934082dc18f538b5f2c0ecf9fec1e2 jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz
* *Skill* Create a directory to install java > mkdir -p /opt * *Skill* unpack gzipped (compressed), data archive > sudo tar zxvf ~/jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz -C /opt * *Skill* testing java > sudo /opt/jdk1.8.0/bin/java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b36e)
Java HotSpot(TM) Client VM (build 25.0-b04, mixed mode)
-
Skill Install weave test client source * Skill install software from github Decide where to install the client (~/ is your home directory) > cd ~/ Clone the ambled/weave-test-java repository > clone http://gitub.com/ambled/weave-test-java.git hello_weave Go into the new hello_weave directory > cd ~/hello_weave Download Partner Plugins and install client > ./build.sh
-
Task Review Partner Agreements * In your current directory, you will find one or more Agreements that belong with the assembled program. These contain Terms of Use, Privacy Policies or other necessary information required to use the software or networks. These Agreements are named like README-(something).pdf * Skill Read a PDF (Portable Document Format) File * Task Accept the terms of the agreements To accept the Agreements with 'touch' (which creates an empty file) > touch READEME-PluraProcessing.pdf.accept
-
Task Start the test client * There is a start script called "./start" that can start the client If you wish to save logs to a file, you can edit the file and remove the "#" from the line that starts with "#WEAVE_LOG". > ./start.sh
Setting security
ERROR on setting security
Init'ing Plura
Initialized PluraRuntime
Init'ed Plura
start Plura with FiberId: 1c5b8t1hr-hello-world
Starting Plura Threads 1
Started Plura Threads 1
That's it, you can watch the client process work, sleep when there is nothing to do, and probably for now, see some error messages.
Your client may crash/stop working. If the log does not update for a while, you can stop the client by holding down the 'Control' key and pressing 'c'.
Then you can start the client again.
Improving the running experience, fixing issues, are details for upcoming posts (and solutions)