Wednesday, February 27, 2013

How to install Cloud 9 on raspberry pi

If node.js is not install start by install it.

$sudo apt-get update && sudo apt-get -y upgrade
$sudo apt-get -y install build-essential openssl libssl-dev pkg-config

$export NODE_PATH="/usr/local/lib/node_modules"

$cd ~
$git clone https://github.com/ajaxorg/node-libxml.git
$cd node-libxml
$git checkout v0.0.7
$git submodule init
$git submodule update
npm cache add ~/node-libxml/

$nano support/o3/wscript
remove -msse2

$sudo npm install -g sm
$sudo chown -Rf 1000:1000 /usr/local/lib/node_modules/sm

$cd ~
$git clone https://github.com/ajaxorg/cloud9.git cloud9
$cd cloud9
$cd ~/cloud9
$sm install

All steps took about 60-90 min.

To run
$bin/cloud9.sh -l 0.0.0.0

brows to http:ip.to.rpi//:3131/



Have fun hacking
Marcus

Saturday, February 23, 2013

How to install node.js on raspberry pi using pre-build binaries


Start by get the url to the pre-build binaris you want to instal. The latest version can be found at http://nodejs.org/download/ click "Other release files" and get the url packages named node-v0.8.xx-linux-arm-pi.tar.gz

ssh in to the raspberry pi or open the terminal if using desktop


$wget http://nodejs.org/dist/v0.8.20/node-v0.8.20-linux-arm-pi.tar.gz

$cd /usr/local
$sudo tar xzvf ~/node-v0.8.20-linux-arm-pi.tar.gz --strip=1


Done

/Marcus

Updated 2013-02-26


Tuesday, November 6, 2012

Using a Raspberry pi to live stream video to Bambuser


This is a short tutorial how to set up a Raspberry pi to live stream to Bambuser.



We are using adafruits Occidentalis distro it should work with the regular wheezy distro.

Installing ffmpeg
  • sudo apt-get update
  • sudo apt-get install ffmpeg

alternativ use avconv
  • sudo apt-get update
  • sudo apt-get install avconv
Login to Bambuser and get your settings file. You can find it under "Standalone desktop app" and Download your authentication profile.  http://api.bambuser.com/user/fmle_profile.xml

Find the rtmp node and copy url tag and stream key

Get the url and stream id from https://bambuser.com/api/keys

ffmpeg -f video4linux2 -s 320x240 -r 30 -i /dev/video0 -metadata title="title" -f flv [url]/[id]

ffmpeg -f video4linux2 -s 320x240 -r 30 -i /dev/video0 -metadata title="my awesome video"  -f flv rtmp://1234.fme.bambuser.com/b-fme/133713371337133713371337

If using avconv it is the same parameters as for ffmpeg.

We had problem with overheating if we had the raspberry pi in an enclosure.


Marcus & Michael

Updated
Simpler way to get url and stream id. Thank you Tom and Bambuser :)



www.giveawaycandy.com

Tweet "give @sidpiraya candy" or "give @_macke_ candy" to give us candy =)