Raspberry Pi used as an Ares 2-Enyo-node.js Server | webOS Nation
 
 

Raspberry Pi used as an Ares 2-Enyo-node.js Server 4

by Ryan St. Andrie Wed, 20 Feb 2013 8:44 am EST

Raspberry Pi Hero

The name Raspberry Pi has been the subject of many blog posts across the interwebs for some time now. The tiny inexpensive PC has a 700Mhz processor, 256MB or 512MB of RAM (depending on the model), and a VideoCore IV GPU all for the paltry sum of $25-$35. No, it's not some state of the art super computer, but given its size and price it makes for an awesome toy for tech geeks to tinker with. This awesome little computer has been used in all sorts of projects from Pandora streaming jukeboxes to homemade MAME arcade cabinets. Needless to say, Raspberry Pi has proven to be quite the useful tool for many people looking to experiment on a budget.

So why are we rambling on and on about how cool the Raspberry Pi is? Well we are undeniably geeks at heart which is reason enough in itself. With that said this is a webOS blog and now courtesy of webOS developer Paul Cimino (@PLCimino) we have a reason to mention the Raspberry Pi again here at webOS Nation. It seems Paul dusted off his old Raspberry Pi and repurposed it as a dedicated Ares 2 Enyo node.js server.

This definitely is not something the average person using Ares 2 to build the occasional Enyo 2 app would need to do, but if you're a frequent Ares + Enyo developer, it could come in quite handy. It gives one the benefit of having a dedicated machine running an always-up-to-date Ares codebase, plus the satisfaction of knowing you built something cool.

Cimino's project also serves as a pretty good tutorial for anybody that might want to setup their own Debian Linux based computer for other server-related needs. If you'd like to see the specifics of the project, check out the source link below. In the meantime, we'll tip our hats to Paul for doing something cool and webOSy with his Raspberry Pi board - one of we're sure to be many more webOS projects on the awesome little computer.

Category:

4 Comments

I've got a Raspberry Pi Rev2 (512 MB RAM) but I don't know if this is fast enough for this task (even with the JavaScript part on the client side).
I would actually use my Pandaboard for this (1 GHz dual core, 1 GB RAM) as first step.

Even better might be the Exynos 4xxx (ARM CPU) powered Hardkernel Odroid line of boards (www.hardkernel.com/) as long as there is basically only Exynos 5 dual core developer board available.
While I'm still at work I will setup an Ubuntu 12.04 LTS running in a VM shortly.

I used to install Raspberry Rev2 on my linux configuration, but yeah I agree Exynos is quite better and is more responsive. But, since last dayz server seems not really stable. I hope I didn't broke something since this material is old now...

Makes me wonder how well local on-device hosting would work. Is the TouchPad browser up for it?

Yes, it seems that you can do your coding in the browser of your HP TouchPad....at least the basic stuff I tried so far.

I've setup a VirtualBox VM with Ubuntu Server 12.04.x LTS and installed Ares2. So far it's not yet fully working but I might post a shell script with will do most of the installation for the latest Ubuntu LTS release. As the NodeJS that comes with Ubuntu 12.04.x LTS is not new enough and I didn't want to grab the source I added a PPA which contained a newer version.

I'm currently doing some fine tuning on the scripts after that I need to look into some Ares2 things that didn't work (not sure if the GIT version had a bug or I need to apply additional setup steps).

UPDATE: I've trouble getting the local file storage working.
a) nodejs is running as root
b) Edited ide.json and changed the entry to the local filesystem to this.
Instead of @HOME@ I want to have my project stuff in /data/software_development/daten/ares2_projects" which exists including the additional 'files' subdirectory.
Also changed access rights to 777...still no go.

"hermes/fsLocal.js", "--pathname", "/files", "--port", "0", "--root", "/data/software_development/daten/ares2_projects/"

also tried this before...without the last "/" which also didn't work

"hermes/fsLocal.js", "--pathname", "/files", "--port", "0", "--root", "/data/software_development/daten/ares2_projects"

BUG?
Haven't tried DropBox...don't want to use that.