Monday 7 January 2013

Setting your Raspberry Pi up as a Media Server

So I've given up on getting BSP running on my RPi at the moment and instead I went about setting up my Raspberry Pi as a media server. And I've installed Raspbmc based on the xbmc (xbox media center) and it is friggin' awesome. All my videos stream - at a better quality than my PS3 media server and with very little buffering or lag. Not only that but it's got iPlayer too (after a bit of effort). I go through and explain how to get Raspbmc up and running, how to connect a network hard drive with your media, and how to get iPlayer up and running.
  1. Download the Raspbmc installer for your Mac here http://www.raspbmc.com/download/ Follow the instructions here http://www.raspbmc.com/wiki/user/os-x-linux-installation/ to install it on a SD Card - note that you need an SD Card dedicated to running your Raspbmc.
  2. Once you've downloaded the installer and run it, it will put the appropriate content on your SD Card, say no to installed to a usb jump drive.
  3. Now you are ready to put it in your RPi
  4. So put it in your RPi and boot it up, it usually takes 20 minutes plus to go through the whole installation routine, but it should go through without any issues - make a coffee - and then reboot a few times. I got a couple of warnings / error messages, but it all went through fine
  5. Then it'll be up and running.
Linking to your media
  1. To do this go under video, and go to files.
  2. Go to "Add Videos"
  3. When the Add videos dialog appears, go to "browse"
  4. For me it involved selecting the "Windows network (SMB)" then choose MSHOME, choose the computer, disk and sub-folder
  5. Choose a name for it (type it in), and choose okay
  6. Choose that the directory contains Movies - to choose the movie scraper
  7. Turn on "Movies are in separate folders that match the movie title" and "Scan recursively"
  8. Choose okay
  9. Choose "Do you want to refresh info for all items within this path" say yes
  10. Let in scan the folders
  11. Now go home
  12. Now to play movies go within Videos and files and choose the movie of your choice.
Installing iPlayer.
  1. Download the iPlayer plugin here; http://code.google.com/p/xbmc-iplayerv2/downloads/list
  2. Place the zip on your media server / hard drive where you are getting the content.
  3. Go to System Settings, then Add-ons, then choose "install from zip file"
  4. Then navigate to the file, and choose for it to install
  5. Once installed you've find it under Videos, then add ons



Saturday 5 January 2013

RPi BSP status update

I failed to get BSP to install on my MacBook Pro, there were two many make errors that I could not resolve.

However I tried running and installing the software on a raspberry Pi and it seemed to work fine. I chose single core, Linux, UDPIP, and everything looked fine, until I tried to compile a simple programme. When compiling a simple programme I get the following error;

/usr/bin/ld: cannot find -lbspcore_00
/usr/bin/ld: cannot find -lbspudpip
/usr/bin/ld: cannot find -lcpr

So it is basically failing to link some libraries that it can't find. I think when I did the initial make there were some errors - so perhaps these libraries failed to be created. Also it maybe something to do with choosing the UDPIP setting, so I could try installing BSP on another RPi and choose TCPIP. In fact initially I should choose the generic standalone one.

Running BSP on RPis (Raspberry Pi's)

For my university dissertation I did an experimental investigation into parallel computing using the BSP (Bulk Synchronous Processing) paradigm. You can download it here; www.kevingordon.org.uk/projects/bsp/experimental-parlallel-computing-final-report.pdf.

So this is my new project to get BSP running on a Raspberry Pi, what I'm going to attempt to do is the follows;

1. Install BSP on 3 RPi (Raspberry Pi) nodes
2. Get the BSP daemon to communicate between the 3 nodes using the test profiling software
3. Get the parallel algorithms I wrote as part of the dissertation running on the 3 node RPi cluster.
4. Write some more interesting parallel algorithms to run on the 3 node cluster
5. Buy addition RPi's perhaps get a 10 node cluster running
6. Profile the RPi cluster
7. Get the BSP running on OS X
8. Profile BSP running on a single multicore OS X node
9. Compare the 1 node (multi-core) OS X computer to the 10 node RPi cluster
10. Based on the resulting performance perhaps get additional RPi nodes to add to the cluster

So thats the plan, watch this blog and I will post the results.

Thursday 3 January 2013

How to get apps to open in a dedicated window OS X

Something that has been bugging me for a while is that when I restart my Mac, and I select to re-open windows, the apps get open in random desktop spaces.

Well I found a solution!;


Basically, you to the desktop space that you want your apps to open in, and for each app in that space, right click, and go to Options > Assign To > This Desktop. Then once you've done that for each app in the desktop space, do it for the other desktop spaces.

Now when you restart, the apps will open in their dedicated space, phew!!!