Difference between revisions of "XBMC"
Line 1: | Line 1: | ||
− | |||
Here's a great quote to start this out on. | Here's a great quote to start this out on. | ||
sabat: ya, I'll never forget the name vail. :) when I was reading the suprised and annoyed peoples comments, I was thinking of walking down the aisle, lifting the womans vail, and seeing some ugly chick that isn't what you expected. I thought the analogy fit. | sabat: ya, I'll never forget the name vail. :) when I was reading the suprised and annoyed peoples comments, I was thinking of walking down the aisle, lifting the womans vail, and seeing some ugly chick that isn't what you expected. I thought the analogy fit. | ||
Line 82: | Line 81: | ||
==Installing XBMC on Fedora 12== | ==Installing XBMC on Fedora 12== | ||
− | + | Janjacobs also wrote a how-to on xbmc, here's it is. | |
XBMC by default has no rpm's, and compiling doesnt work due to some error in the python library. | XBMC by default has no rpm's, and compiling doesnt work due to some error in the python library. | ||
however, someone was kind enough to compile working rpm's out of the SVN branch, making XBMC a nice piece of quality software to add to your HDA expirience. | however, someone was kind enough to compile working rpm's out of the SVN branch, making XBMC a nice piece of quality software to add to your HDA expirience. |
Revision as of 23:24, 25 November 2010
Here's a great quote to start this out on. sabat: ya, I'll never forget the name vail. :) when I was reading the suprised and annoyed peoples comments, I was thinking of walking down the aisle, lifting the womans vail, and seeing some ugly chick that isn't what you expected. I thought the analogy fit.
When I got my hands on amahi, the first thing I wanted was for it to not only store my movies, but also play them! I've done this for years using an xbox running xbmc, so I figured why not on my amahi server! Well, it worked, and here's how I did it. Currently I have been unable to get the webserver to work. I saw no reason to go through the full compile process, seeing that the only thing it adds is the webserver, which is broken. This method uses a RPM from rpmfusion, and takes about 1% of the time that the compiling method takes. Also this is based on nvidia video cards, I'll try to get to ATI and intel later. I know the average joe won't be able to install video drivers easily, so I am attempting to include the info on the video drivers, specially because fedora 12 is aging and documentation is starting to get somewhat stale for it on other websites. I literally had to use 5 or more websites to get this to work.
This was mainly tested on a fairly basic test system, HP a282n, 2gb ram, 40gb hd, nvidia mx-440 8xAGP using the Fedora 12 based, 32bit amahi express cd.
Contents
- 1 Initial system setup with Gnome
- 2 Adding XBMC to the system
- 3 Required for nvidia driver
- 4 Obtaining and installing the driver
- 5 Removing the nouveau driver completely
- 6 If the nouveau driver still causes problems
- 7 Setup autologin for the xbmcuser
- 8 Change initial runlevel to 5
- 9 Add xbmc to X startup
- 10 A Few Suggestions
- 11 Troubleshooting
- 12 Installing XBMC on Fedora 12
Initial system setup with Gnome
- install amahi (via express cd)
- once you get a login prompt, login as admin/admin
su - yum -y groupinstall "GNOME Desktop Environment" yum -y install Xorg
Adding XBMC to the system
- From another pc, open the hda webpage http://hda, and add the user xbmcuser:xbmcuser and check to enable admin[I haven't tried doing this without admin yet on the xbmcuser account]
- goto the webapps section on the hda page http://hda/setup?sub=available&tab=app and add rpmfusion and rpmfusion nonfree in the web apps secion
- Back to the console
yum -y install xbmc
- xbmc also needs an addition to the xorg server, otherwise it crashes every time you run it.
yum -y install xorg-x11-utils
Required for nvidia driver
yum -y install kernel-devel yum -y install kernel-headers yum -y install kernel yum -y install gcc
Obtaining and installing the driver
Download the nvidia driver, in my case, I used used the links text based web browser, however this method is a bit tricky, I would suggest you do not disable the nouveau driver and use 'yum -y install firefox' and goto the nvidia web page, skipping this section and saving it for later. I also needed the older 96.xx driver because I was using an older video card.
yum -y install links links www.nvidia.com chmod +x nvidiadrivername
you may have to reboot after disabling the nouveau driver before installing the driver
./nvidiadrivername
Removing the nouveau driver completely
This line will add rdblacklist=nouveau to the kernel line in grub.conf
sed -i '/root=/s|$| rdblacklist=nouveau|' /boot/grub/grub.conf
add blacklist nouveau to /etc/modprobe.d/blacklist, I'm sure there is a sed command for this, will get to it later, I used this next command and added it manually.
nano /etc/modprobe.d/blacklist
If the nouveau driver still causes problems
This line failed for me, so I rebooted and logged back in, then it worked fine. maybe the nouveau has to be disabled before it's possible to remove it. also, this is the section I suggest you skip if you were unable to download the proper driver using links.
yum erase xorg-x11-drv-nouveau mv /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/nouveau/nouveau.ko /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/nouveau/nouveau.txt mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img dracut /boot/initramfs-$(uname -r).img $(uname -r)
Setup autologin for the xbmcuser
cat >> /etc/gdm/custom.conf <<EOF [daemon] TimedLoginEnable=true TimedLogin=xbmcuser TimedLoginDelay=5 EOF
Change initial runlevel to 5
This is what tells Amahi to boot into X instead of console.
sed -i 's/^id:3:/id:5:/' /etc/inittab
Add xbmc to X startup
echo xinit /usr/bin/xbmc >/home/xbmcuser/xbmcstartup chmod a+x /home/xbmcuser/xbmcstartup chown xbmcuser:users /home/xbmcuser/xbmcstartup
Now just reboot, it should come up to the normal desktop. Log out of the system using the top left button, then hit escape a few times to cancel the auto login. Now click on xbmcuser, then at the bottom of the screen it has "sessions", select xbmc instead of gnome, then type in your xmbcuser password and click login.
You're done. The next time you reboot, it should come right back up in xbmc.
A Few Suggestions
- Install the DLNA server, it works perfectly with any movies you put in the movies share, photos you put in the pictures share, and any music in the music folder.
- if you have a noisy server, remember you don't have to have the pc in the same room as the tv, I don't and it works great, or put the server in a closet or something on the other side of the wall and run a cable to the back of the tv.
- Setup VNC on your Amahi server, it really is nice to have remote control of xbmc, I don't ever actually try to watch movies through vnc, but It's a great remote until we get the webserver working
Troubleshooting
If you lose video, try hitting CTRL+ALT+F2, CTRL+ALT+backspace, or ssh into the amahi server and change /etc/inittab back to runlevel 3.
One file that can easily make or break your video, is /etc/X11/xorg.conf and one of the most common things to have to edit is the vertical refresh, or the resolution lines. for instance my tv doesn't like 1600x1200, and every time I did this how-to on this particular pc, I had to remove the 1600x1200 from the xorg.conf before it would work right, but this is not going to happen to everyone.
Installing XBMC on Fedora 12
Janjacobs also wrote a how-to on xbmc, here's it is. XBMC by default has no rpm's, and compiling doesnt work due to some error in the python library. however, someone was kind enough to compile working rpm's out of the SVN branch, making XBMC a nice piece of quality software to add to your HDA expirience.
Installing the required repository's
First, we have to create 2 files:
- /etc/yum.repos.d/spotnet.repo
the contents of this file should be:
[spotnet]
name=Fedora Core $releasever - $basearch - SpotNet
baseurl=http://fedora.spot.net.id/yum/fedora/$releasever/$basearch/
gpgcheck=0
- /etc/yum.repos.d/atrpms.repo
the contents of this file should be:
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
- run yum update to have yum update its packages lists.
Installing XBMC
To install XBMC we open up a terminal, su to root and execute the following command: yum install xbmc xbmc-skin-*
This should install xbmc, its required dependencies, and all the skins currently available in the main package! once you're done, XBMC is located inside the GNOME Menu, and you can start adding files to your library
janjacobs 20:08, 12 December 2009 (UTC)