Installing XBMC in Fedora 13/CentOS/Red Hat Enterprise

Make sure you have the rpm-fusion repositories enabled. You can find how to do this over here.

Install the following packages

yum install SDL* glew glew-devel libmad-devel tre tre-devel libogg libogg-devel libvorbis libvorbis-devel boost  boost-devel bzip2-devel bzip2-libs fribidi* lzo lzo-devel mysql-libs mysql-devel jasper jasper-devel faac faac-devel  enca enca-devel hal hal-devel hal-libs cmake gperf nasm libXmu-devel fontconfig-devel freetype-devel libXinerama-devel  pcre-devel gcc-c++ sqlite-devel curl-devel mysql-devel libcdio-devel libmms-devel faad2-devel flac-devel libsmbclient-devel  libXtst-devel libsamplerate-devel libtiff-devel pulseaudio-libs-devel avahi-devel wavpack-devel libmpeg2-devel libtool  libmicrohttpd-devel libmodplug-devel redhat-lsb expat-devel subversion gettext gettext-libs gettext-devel

For NVIDIA Graphic cards also install libvdpau-devel.i686

sudo yum install libvdpau-devel

Get the xbmc repository

svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/ XBMC

Now configure the application

sudo ln -s /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient.so
cd XBMC/
./bootstrap
./configure
make

Install XBMC

make install

Start XBMC by typing

xbmc

in a terminal. Of course you can create a shortcut for this.

Sometimes SELinux can prevent XBMC from starting. I always disable it, but you can run the following commands (as root) to let SELinux load the files.

 chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avutil-50-i486-linux.so'
 chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/swscale-0.6.1-i486-linux.so'
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so'
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avformat-52-i486-linux.so'

Add the RPM Fusion repositories to your system

To enable access to both the free and the nonfree repository use the following command:

Fedora 12 and 13:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

Fedora Rawhide aka. what will become Fedora 14 – NOT for Fedora 13:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'

RHEL5 or compatible like CentOS:

su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm'

Install Sun Java on Ubuntu 10.04 LTS (Lucid Lynx)

In Ubuntu 10.04 LTS, the sun-java6 packages have been to the Partner Repository. You can add this repository by typing the following line

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Now you can install Sun Java

sudo apt-get install sun-java6-jre sun-java6-plugin

Restart your Firefox browser and the plugin is enabled

Mount an ISO file in Linux

Sometimes you need to mount an ISO archive in Linux. Now I’m using Fedora, but it’s basically the same in about any Linux distro, You can use the image via the loop device in Linux.

First you have to become root or use sudo.

su -

Create a directory in which you want to mount the image. I want to mount a DVD so I’ll just create a

DVD

directory in the

/media

directory

mkdir /media/DVD

Now mount the image

mount -o loop DVD.iso /media/DVD

When you look in the directory

/media/DVD

you will see the contents of the mounted image

ls -alh /media/DVD

After using your image (or in my case watching your DVD unmount it

umount /media/DVD

Install Sun Java in Fedora

I’m using a fedora system which in a default installation has IcedTea Java installed. I like to use the official Sun Java version, so here is an instruction for installing Sun Java in Fedora. I downloaded Java Runtime Environment from here

Become root

sudo su -

First uninstall IcedTea Java.

I want to install Java in the

/usr/java

directory, so I create that first.

mkdir /usr/java
cd /usr/java/

Since I downloaded the package to my Home/Downloads directory I first move it to

/usr/java
mv /home/USERNAME/Downloads/jre-6u21-linux-i586-rpm.bin /usr/java/

Make it executable

chmod a+x /usr/java/jre-6u21-linux-i586-rpm.bin 

Execute the package

./jre-6u21-linux-i586-rpm.bin

The package extracts the contents of the package into a new folder (in this case

/usr/java/jre1.6.0_21

) so you have to cd in there

cd jre1.6.0_21

Install the rpm package

rpm -iv jre-6u21-linux-i586.rpm 

Now since I’m using Firefox and I like to install the Sun Java plugin I first have to locate where it is

whereis firefox

Since it says it’s installed in

 /usr/lib/firefox-3.6/

I’ll check if there is a plugins directory in that folder

ls /usr/lib/firefox-3.6/ |grep plugins

In my case it wasn’t there so I created it

mkdir /usr/lib/firefox-3.6/plugins

Now since I’m using Firefox 3.6 I create a symbolic link to libnpjp2.so, and not libjavaplugin_oji.so, like the Java instructions tell you

ln -s /usr/java/jre1.6.0_21/lib/i386/libnpjp2.so /usr/lib/firefox-3.6/plugins/libnpjp2.so

After restarting Firefox it should have the Sun Java plugin installes. You can check that by typing

about:plugins

in the firefox address bar

iPhone: Unable to restore, unknown Error 13

I got stuck when downgrading from IOS 4 to 3.1.2, giving me “unknown error 13″. When I hit restore (in DFU mode), it extracts the software and when it says “Preparing phone for restore” my phone reboots and it gives error (13). This is what solved this issue for me.

If you use windows, go to start -> run -> and type %appdata%
Open “Apple Computer”, Open “iTunes”, check if there is a folder named “Device Support”.
If the folder exists, delete any contents inside, if the folder does not exist create it. Make sure you empty the recycle bin.

If you use mac, go to “user name”\Library\iTunes\, check if there is a folder named “Device Support”.
If the folder exists, delete any contents inside, if the folder does not exist create it. Make sure you empty the recycle bin.

Connect your iPhone to the computer and put your iPhone in DFU mode. Once you see it pop up in iTunes, hold shift (Windows) or option (Mac) and click restore. Now you should be able to restore your device.

Aapjes kijken

Even een voorproefje van ons dagje artis… wie kijkt naar wie?

Instant Kiwi commercial

Tsja, die komt er lekker mee weg

YouTube Preview Image

Te klein, te groot

Wij zijn vriendinnen… en dat is op zichzelf natuurlijk al best wat, maar wat denk je als ik je vertel dat wij even oud zijn?

Hatsjie

YouTube Preview Image