Tuesday, 22 January 2013

Right – let’s get on with this Raspbmc malarkey

OK – so here we are. I have my Pi. I have a working wireless connection. What should I do? Well, the answer to that has been screaming in the back of my mind ever since I heard about this brilliant bit of kit. That’s right – it’s Media Centre time!

So, I’ve started with Raspbmc. I can honestly say that I’m VERY impressed. The majority of stuff just works. And works well. My Pi’s been running for about 24 hours now, idling at about 15% CPU. I can switch over at any time, it responds immediately, lets me control it using my Android phone – hell, it even lets me use my SAMSUNG TV REMOTE to control it. And at the risk of repeating myself – it all just works.
This is what it looks like:
And this is how I did it.

NOTE: YOU'LL SEE THAT THE ABOVE LINK WILL TAKE YOU TO WWW.MYRASPBERRYPIEXPERIENCE.COM.  I'M MOVING TO A DEDICATED DOMAIN - YOU'LL BE ABLE TO FIND ALL PREVIOUS CONTENT THERE, ALONG WITH NEW POSTS.

Saturday, 19 January 2013

My Pi has wings!!

So I’ve been threatening to do this for quite some time now. I finally got wireless working on my Pi. This will hopefully unlock all sorts functionality, most noticeably a small, quiet local media centre, streaming media from a server.

As I did this on a spur of the moment decision, I went down to my local Maplin today and bought a wireless card from there. They sell a Pi bundle, so I decided to just go for the card they include in that. It’s sold as a “N150 Nano Wi-Di USB Dongle”, and is Maplin-branded. £9.99, and hopefully working out the box:
http://www.maplin.co.uk/n150-nano-usb-wireless-adapter-681507
And this is what it looks like (excuse the poor photo – I’m sharing an SD card with my camera at the moment):
The good news? I plugged it in, booted it up, and everything just worked. It couldn’t possibly have been easier! For the few steps I DID take, have a look here.  

What next I hear you ask?  How about you take a stab at getting Raspbmc up and running for a brilliant media centre - take a look here.
NOTE: YOU'LL SEE THAT THE ABOVE LINK WILL TAKE YOU TO WWW.MYRASPBERRYPIEXPERIENCE.COM.  I'M MOVING TO A DEDICATED DOMAIN - YOU'LL BE ABLE TO FIND ALL PREVIOUS CONTENT THERE, ALONG WITH NEW POSTS.

Saturday, 24 November 2012

Media Centres


So - about 5 months ago a posted about testing out Media Centres and said I'd test them out and provide feedback.  So - slightly delayed, but here it is.

Just finished watching Thor (local USB) - great performance, not a single glitch.  Coming soon - Wireless & Remote Control!

Thursday, 20 September 2012

Overclocking?

So - you might've read something about overclocking recently.

Essentially what this means is you can get roughly 50% extra performance out of your Pi!  It'll allow you to overclock the CPU to up to 1Ghz and while the Pi is cool enough it'll run at this level.  If it overheats?  Well, they've added a fail safe into the latest Rasbian - it'll fall back to a lower config:

And best of all, it's 100% endorsed by the foundation - you can do this without invalidating your warranty!  So - try out the latest distro - you can find it here.

Enjoy!

Monday, 20 August 2012

Start VNC automatically

So a couple of you have been asking about getting VNC to start automatically (me included).  I did a bit of digging and have figured out what to do - it's a few simple steps.  First off though, must say thanks to Penguin Tutor for the actual answer to this issue.


So - I'm assuming that you have VNC up and running, working if you start it manually after each boot.  If not, take a look here.


Create startup file
The first thing you need to do is create the file that will actually start VNC on startup.  I'm doing this via Putty (instructions here), but you can just as easily use Terminal directly from the Pi.

Type the following:
sudo nano /etc/init.d/tightvncserver

NOTE: nano is a lightweight editor - the command above will create a new file called tightvncserver in the /etc/init.d directory and open it for editing, presenting the following screen (note the [ New File ] entry at the bottom, indicating a new file):

Once you have the file open, paste in the following:

# First configure the user you want to run this under - this will generally be pi, unless you've created your own users
export USER='pi'

eval cd ~$USER

# Check the state of the command - this'll either be start or stop 
case "$1" in
  start)
    # if it's start, then start vncserver using the details below
    su $USER -c '/usr/bin/vncserver :1 -geometry 1280x800 -depth 16 -pixelformat rgb565'
    echo "Starting vncserver for $USER "
    ;;
  stop)
    # if it's stop, then just kill the process
    pkill Xtightvnc
    echo "vncserver stopped"
    ;;
  *)
    echo "Usage: /etc/init.d/vncserver {start|stop}"
    exit 1
    ;;
esac
exit 0

# thanks - check out http://myraspberrypiexperience.blogspot.co.uk for more info!


NOTE: In the file I've specified my own resolution with the text -geometry 1280x800 - you can leave this out of you want

This will be what your screen now looks like.

To exit, press Ctrl+X.  You'll be prompted to save - just type Y:

You'll be prompted to confirm the filename - just press Enter:


Set file properties
Once that's done make sure the file has the right propertied by typing the following:
sudo chmod 755 /etc/init.d/tightvncserver

NOTE: Important to do this step every time you modify this file.  I redid these steps to create the tutorial, skipped this step and couldn't VNC in on the reboot!

Add File to startup sequence
And now just add your file to the list of startup actions by typing the following:
sudo update-rc.d tightvncserver defaults

And that should be it!  Just restart, and you should be able to VNC straight in!

Wednesday, 15 August 2012

Raspbian Wheezy

So after I few weeks (months?) off I decided to try get back on top of everything and what better way than to try out the latest image?  If you haven't been keeping up with things, you'll be pleased to know that Raspberry Pi now has it's own distribution (sort of) - Raspbian.  This is a version of the Debian distribution that has been compiled specifically for the Raspberry Pi.

It can be found here on the Raspberry Pi downloads page:
http://downloads.raspberrypi.org/images/raspbian/2012-07-15-wheezy-raspbian/2012-07-15-wheezy-raspbian.zip

As always, you can write this using the standard DD process (see here for instructions).

Right - now let's boot it up and see what it's like!  I'm using VNC to connect remotely as my TV is occupied (by Game of Thrones, so I'll let it pass).  You can find out how to set this up here, or just use your TV or HDMI-enabled monitor.

So - I've written my card now and here's what I have:

You'll notice that there's no ssh file here, but I tried booting it up and found that SSH was enabled, so no issue there (I need it to connect over SSH, download VNC and remote in).

And that's it - I'm booted up.  Nothing looks too different:

although I did notice that performance seemed quite good.  Issues I saw in earlier versions (massive CPU usage from Midori, etc.) were gone.

And I'm back baby!!!

Sunday, 24 June 2012

Media Centre - because we know we all want to...

Right - let's get back on track!

For anyone that's vaguely interested in this sort of thing, the fact that the Raspberry Pi has the potential to be used as a media centre has been once of the most talked about points.  Now, for anyone paying closer attention to the project, you'll have read that there's a lot more this than plugging it in and getting a state-of-the-art media centre.  This is still early days for the Raspberry  Pi project (remember, we're still technically in the developer release stage) and the main focus is the educational release due out at the end of the year.

Thankfully, this is where the community comes in.  There are a large number of people out there working on projects like this, and they're doing an awesome job!!  The two main projects I've been looking at are OpenELEC and Raspbmc.  Both of these are full media centre operating systems (they boot into an operating system that is a dedicated media centre rather than a standard desktop) running the XBMC interface, or XBox Media Centre.  This is the interface that runs on the original XBox.

So - let's start with OpenELEC.  This is a well-established solution that has been ported to the Raspberry Pi.  It's still under development, but is feature-rich.  As an open source project, the code it out there for anyone to download and compile, with a lot of published information on this.  If you'd like to try build it yourself, take a look here:
http://elinux.org/RPi_building_and_installing_OpenELEC
Alternatively, you can get the latest build here (thanks sparky!):
http://sparky0815.de/
An for up-to-date builds, published by members of the community as they built it, take a look here:
http://www.raspberrypi.org/phpBB3/viewtopic.php?p=89072
http://www.raspberrypi.org/phpBB3/viewtopic.php?p=68324
And of course if you'd like more information on the project itself, take a look here:
http://openelec.tv/

Next, there's Raspbmc.  From what I can make out this is a fairly new project, based on the Debian distro and XBMC, written specifically for the Raspberry Pi.  While you have the obvious downsides to a new project like this (bugs, stability, etc.) there are a lot of positives - you have a product aimed specifically at the Raspberry Pi, without the distraction of different targets, distributions, etc.  At first glance, the added benefit of Raspbmc is that is has an installer that automatically downloads the image and applies it to the SD card.  I've always had issues with creating an SD card other than using DD for Windows (see here), this seems to write without a problem.  So - here's where you can download the installer:
http://www.raspbmc.com/download/
And that's about all you'll need!

So - that's my first pass at a review (and first post in a few weeks!).  I'll apply these images, test them out and post my feedback soon.

EDIT 24/11/2012: I've had a play with the latest 2 images and am pretty happy with what I've seen.  I'll go into more detail soon, but for now you can find the images here:
Raspbmc - http://download.raspbmc.com/downloads/bin/filesystem/prebuilt/raspbmc-rc5-prebuilt.img.gz
OpenELEC - openelec.thestateofme.com (Thanks Chris Swan!!)