Monday 30 July 2012

Plex Client on Raspberry Pi

I've got myself a Raspberry pi so i'm attempting to compile plex media center for it.  I'm doing this blog entry for personal reference more than anything but shall come back and keep things updated with what I've done so far and how successful i am.

git clone git@github.com:gewalker/plex-linux.git
cd plex-linux
git submodule init
git submodule update


sudo apt-get install automake build-essential autoconf autopoint libtool libboost1.46-all-dev libx11-dev libgl1-mesa-dev libxrender-dev portaudio19-dev libavcodec-dev libavformat-dev libswscale-dev libavdevice-dev libglew1.6-dev libmad0-dev libsamplerate-dev libogg-dev libvorbis-dev libbz2-1.0 libbz2-dev libwavpack-dev libmpeg2-4-dev libfribidi-dev libsqlite3-dev libpng-dev libpcre3-dev libcdio-dev libmysqlclient-dev libmodplug-dev libfaad-dev libflac-dev libsmbclient-dev libsdl-mixer1.2-dev libxt-dev libxtst-dev libxmu-dev libxinerama-dev libcurl4-gnutls-dev libdbus-1-dev libhal-storage-dev libhal-dev libpulse-dev libavahi-common-dev libavahi-client-dev libxrandr-dev libavcodec-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev liba52-dev libdts-dev libfaad-dev libmpeg2-4-dev libass-dev libflac-dev libwavpack-dev python-dev gawk gperf nasm libbluetooth-dev zlib1g-dev libmms-dev libsmbclient-dev libtiff4-dev libiso9660-dev libssl-dev libmicrohttpd-dev libmodplug-dev libssh-dev libsdl-image1.2-dev cmake libmysqlclient-dev libsmbclient-dev libxrandr-dev mesa-utils liblzo2-dev libjasper-dev unzip zip


http://pastebin.com/raw.php?i=YrtntGtU

<area> http://www.raspberrypi.org/phpBB3/viewtopic.php?p=119558#p119558
<area> You should follow point 2, so that the compilation can find the GLES etc. libraries on the pi
<area> you will need to run those export commands on every new shell you open
<area> Alternatively, you should be able to add them to the end of ~/.bashrc


./bootstrap
./configure

echo $C_INCLUDE_PATH


 in configure.in, there's a block of lines that start with dnl that mention gles
if you remove the dnl from that block, it'll understand that flag


cannot compute sizeof (size_t)
See `config.log' for more details.

sed -i -e s'/softfp/hard/g' configure.in

ac_cv_sizeof_size_t=4 ./configure

ac_cv_sizeof_size_t=4 ./configure --disable-gl

sudo apt-get install libavahi-client-dev librtmp-dev libvdpau-dev libva-dev

http://www.raspbian.org/RaspbianXBMC

sudo apt-get install build-essential autoconf ccache gawk gperf mesa-utils zip unzip

sudo apt-get install autotools-dev comerr-dev dpkg-dev libalsaplayer-dev libapt-pkg-dev:armhf libasound2-dev:armhf libass-dev:armhf libatk1.0-dev libavahi-client-dev libavahi-common-dev libavcodec-dev libavformat-dev libavutil-dev libbison-dev:armhf libbluray-dev:armhf libboost1.49-dev libbz2-dev:armhf libc-dev-bin libc6-dev:armhf libcaca-dev libcairo2-dev libcdio-dev libclalsadrv-dev libcrypto++-dev libcups2-dev libcurl3-gnutls-dev libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdrm-dev libegl1-mesa-dev libelf-dev libenca-dev libept-dev libevent-dev libexpat1-dev libflac-dev:armhf libfontconfig1-dev libfreetype6-dev libfribidi-dev libgconf2-dev libgcrypt11-dev libgdk-pixbuf2.0-dev libgl1-mesa-dev libgles2-mesa-dev libglew-dev:armhf libglewmx-dev:armhf libglib2.0-dev libglu1-mesa-dev libgnome-keyring-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-dev libhunspell-dev:armhf libice-dev:armhf libicu-dev libidn11-dev libiso9660-dev libjasper-dev libjbig-dev:armhf libjconv-dev libjpeg8-dev:armhf libkrb5-dev libldap2-dev:armhf libltdl-dev:armhf liblzo2-dev libmad0-dev libmicrohttpd-dev libmodplug-dev libmp3lame-dev:armhf libmpeg2-4-dev libmysqlclient-dev libncurses5-dev libnspr4-dev libnss3-dev libogg-dev:armhf libopenal-dev:armhf libp11-kit-dev libpam0g-dev:armhf libpango1.0-dev libpcre++-dev libpcre3-dev libpixman-1-dev libpng12-dev libprotobuf-dev libpthread-stubs0-dev:armhf libpulse-dev:armhf librtmp-dev libsamplerate0-dev:armhf libsdl-image1.2-dev:armhf libsdl1.2-dev libslang2-dev:armhf libsm-dev:armhf libsmbclient-dev:armhf libspeex-dev:armhf libsqlite3-dev libssh-dev libssh2-1-dev libssl-dev libstdc++6-4.6-dev libtagcoll2-dev libtasn1-3-dev libtiff4-dev libtinfo-dev:armhf libtinyxml-dev libts-dev:armhf libudev-dev libv8-dev libva-dev:armhf libvdpau-dev:armhf libvorbis-dev:armhf libvpx-dev:armhf libwebp-dev:armhf libwibble-dev libx11-dev:armhf libx11-xcb-dev libxapian-dev libxau-dev:armhf libxcb-glx0-dev:armhf libxcb-render0-dev:armhf libxcb-shm0-dev:armhf libxcb1-dev:armhf libxcomposite-dev libxcursor-dev:armhf libxdamage-dev libxdmcp-dev:armhf libxext-dev:armhf libxfixes-dev libxft-dev libxi-dev libxinerama-dev:armhf libxml2-dev:armhf libxmu-dev:armhf libxrandr-dev libxrender-dev:armhf libxslt1-dev libxss-dev:armhf libxt-dev:armhf libxtst-dev:armhf libxxf86vm-dev libyajl-dev libzip-dev linux-libc-dev:armhf lzma-dev mesa-common-dev python-dev python2.7-dev x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-record-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev:armhf
   
sudo apt-get clean

copied tools dir
copied  xbmc/cores dir

make -j 1

On Failing renamed /xmbc/lib/libPython/Python/build/lib.linux-armv6l-2.4
 /xmbc/lib/libPython/Python/build/lib.linux-armv6tel-2.4
sudo make install

Wednesday 17 November 2010

Compiling ABGX360 on a Seagate Dockstar

This is a really useful app and wanted to install it on my dockstar, after some digging i found out it can be compiled successfully and it works great.  I've created a script which installs the required pre-requisites and then compiles the program and creates a hidden folder under /root called .abgx360 and moves the file there.  The script can be downloaded and run by running the following

cd /tmp
wget "http://shne02559.pwp.blueyonder.co.uk/deb-abgx.sh"
chmod +x deb-abgx.sh
./deb-abgx.sh


The packages i found i required were

libcurl4-openssl-dev 
zlib1g-dev
build-essential
libwxgtk2.8-dev 

If anyone knows different I'd love to hear from you as i like to keep the number of packages i have installed on the box to a minimum.  I plan on creating a post download script for sabnzbd to invoke abgx360 if i get time as it would be handy to have a report created in the directory automatically.  I'll post this as soon as i get around to it.

Installing episode butler and sabnzbd on the Seagate Dockstar.

As i've mentioned i've gotten myself a nice Dockstar with the intention of running sabnzbd as well as episode butler.  I currently have a WHS running which works well but i've always been concerned about power usage even if it is an Atom board so have decided to go the ultra low power route which i don't mind running constantly.

I've had to rebuild the dockstar a few times so thought i'd create a script to make life much easier.  I'm assuming that you've followed the excellent guide from Jeff at link i've used this a few times now and it's worked excellently.  The only thing which caught me out was forgetting to set the boot partition as active.

Anyway down to the interesting stuff, if you run the following commands on your newly setup debian dockstar you will end up with a vanila install of sabnzbd as well as episode butler.

cd /tmp
wget "http://shne02559.pwp.blueyonder.co.uk/epinstall.sh"
chmod +x epinstall.sh
./epinstall.sh

This will download the script from my website and carry out the installation.  Sabnzbd is installed from the apt packages but episode butler is a download from their site directly and unpacked and moved to the right location.  Java and a few other necessary packages are installed so the script will take a while.

I've done my best to ensure it's all ok and working  but use at your own risk!!  Any suggestions or modifications are much appreciated.

Good Luck :) 

Monday 15 November 2010

Dockstar

Just got myself a lovely dockstar courtesy of a friend in the states for a mere £22 which is bargain to say the least.

I've installed it once already and had it working pretty nicely but knocked the power lead twice in a row causing the newly setup debian install to refuse to boot any longer :(

Still at least there are some positives, i've decided to document the install to get it up and running with sabnzbd and episode butler which are the two main things i plan to run and sure a lot of people are planning the same also.

Friday 4 June 2010

WHS update

Well it's been somewhile since my last post but found that managing a full time job and being a new Dad is quite a task and take up the majority of my time these days !!

Getting a bit more free time though so i've splashed out on a PC-Q08 case for a much needed upgrade and plan to do it this weekend so shall post some pics and a write up of how i find the case.  Watch this space :)

Wednesday 3 March 2010

DVBLink Dreambox v2

Playing catchup at the moment with the latest releases as i'm now a Dad !!  Little baby adam was born on the 13th Feb at 4:12 and mum and baby are doing well.

I plan to upgrade to V2 of DVBlink Dreambox and also install the network pack at the same time, i'm moving these to my WHS so all the machines in the house can access the tuners so fingers crossed it all goes ok !

Friday 11 December 2009

HP MediaSmart EX490

If your in the UK HP are doing a special deal at the moment with £90 off the purchase price and a further %10 off with a code they have published on the advert.  If your quick they are doing a free Marks and Spencer hamper also!

You can checkout the deal here