[LINUX] HOW-TO install XBMC for Linux on Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [LINUX] HOW-TO install XBMC for Linux on Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) (/showthread.php?tid=44019) |
- bertrand - 2009-04-17 I've followed this How-to in order to setup a clean & reliable XBMC on my HTPC. There is one thing I have to say first: thank you ! Great guide, really. Now here are the details I stumbled upon and had to dig in a bit for: - in the first batch of apt-get install, libmysqlclient-dev threw an error at me, saying it's a virtual package. I actually had to replace libmysqlclient-dev with libmysqlclient15-dev. - EDID didn't do anything for me. I had to manually edit my xorg.conf file to get the proper resolution to work - My keyboard is still configured as QWERTY (I haven't changed it yet) (I don't need help with these, I just wanted to highlight parts of the how-to that could be improved). I also think that you may want to add a few screenshots, for instance when there are choices to do or so. It may help some users. I also wonder about something: why do we install MySQL related stuff ? I also have PostgreSQL installed & running... any idea why ? - Matt Devo - 2009-04-18 just wanted to say thanks - finally made the move from XBMC Live on a USB flash to a full HDD install. works perfectly, save some minor splash screen quibbles my experience - rickx - 2009-04-19 My big THANK YOU first of all! I've run up and down this guide a lot of times now and I can say it is really helpful. I'm using jaunty since alpha 5. Everything works fine following the intrepid instructions, except for the usplash thing which btw did not work too well in intrepid either. And here to my question: There are lots of places with warnings about gdm or probably any windows manager. I simply obeyed and things like fullscreen start etc. always worked perfectly. But then I started exploring a bit more "advanced" options from xbmc, like - calling firefox for some widescreen googling - xmame using launcher plugin - vdr tv watching - (mythtv...yes I tried that also...still trying to forget) So now I have to come back to that gdm thing for clarifications: why is it we should avoid window managers? Trying the things above is quiet hard (impossible?) after one followed this HOW-TO, and some threads seem to suggest that exactly HAVING a window manager eases their handling. (For example starting firefox is very easy, but it will stay in the foreground and won't get focus so basically you have to kill it from terminal. xmame problems are similar). So after all this introduction, I'd like to know: 1. why no gdm? 2. why gdm? or in other words why use or not use a window manager? I thought having the system with just/exactly what is needed was the way to go, trying to minimize boot time and making the pc a sort of xbox on steroids. but now I start wondering... - bobb0 - 2009-04-20 rickx Wrote:So after all this introduction, I'd like to know: Quite simply, this guide was developed for those who want a stripped down installation. In fact, it's not even the recommended method. The recommended method is to setup Ubuntu, create an XBMC user and configure that user to auto-login and run XBMC on login. A lot of people turn to this guide because it is very well done in that any linux novice can follow the instructions (minus some changed packages when prepping the build env) and get a XBMC set-top box-like machine running in no time. Myself, now that I've got a little more practice under my belt, I'm going to attempt the "recommended" method with Jaunty and see what I prefer. b - xanadu1979 - 2009-04-20 bobb0 Wrote:Myself, now that I've got a little more practice under my belt, I'm going to attempt the "recommended" method with Jaunty and see what I prefer. Please let us know how it goes. I've been considering doing the same. I love the mini install guide because it's super easy and gives me pretty much everything I want (a quick-booting xbmc box). But now that I know a little more about Ubuntu (been playing with it on another computer), I miss a lot of the graphical tools on the full install. - rickx - 2009-04-21 By recommended you mean ubuntu plus gnome (and gdm), right? Apart from having to adjust the start scripts, wouldn't installing gdm suffice? I mean is the gnome-desktop with all it's apps you don't need on an xbmc-pc needed anyway? I don't think so... minimal core 2 duo for 720p software decoding - nikiiv - 2009-04-21 Sorry wrong post - bobb0 - 2009-04-21 rickx Wrote:By recommended you mean ubuntu plus gnome (and gdm), right? You could certainly try. I think that by installing gdm, you'll end up getting a lot of the apps you don't need. There was a minor debacle about this guide when an xbmc developer said something very discouraging in this thread: http://forum.xbmc.org/showpost.php?p=300779&postcount=8 Which led directly to this post: http://forum.xbmc.org/showpost.php?p=301299&postcount=432 Which led to a rallying of the team that read this thread religiously to encourage Olympia to keep this method in the Wiki at all... "Recommended" in terms of those posts means a full Ubuntu desktop, create an unpriv'd XBMC user and configure gdm to a) autologin that user and b) auto start xbmc by starting it from /home/{xbmcusername}/.xsession The whole point of this thread (or any thread for that matter) is that you experiment, find what works for you and share your findings with others. The ideas that are really good make it, others fall by the wayside. So in short, try it and let us know how it goes. It could make it into the guide Edit: Sorry if that sounds a little preachy. I'm just saying that I don't think gdm was chosen to be excluded for any other reason in that it didn't fit in with the whole stripped down/set-top box context at the time. If you can find a way to work it in, that would be cool. XBMC and the recommended method - bobb0 - 2009-04-21 So, Day 1 of my "recommended" method project has passed. So far I've been able to: * Install Jaunty * Setup an autologin XBMC user * Install build dependencies and compile XBMC from svn * Get HDMI audio working (more on this later) * Install the userspace xbox360 pad driver To do: * Restart XBMC on crash -- currently it drops me to a login prompt (boourns!) * Figure out a way to define a keyboard mapping which mimicks the xbox reboot command (Left Trigger + Right Trigger + Back + Start) to kill X in case of XBMC lockup. Those keys in combination should trigger a Ctrl+Alt+Backspace, however in Jaunty it seems even that key combo is disabled?? Step 1: Install Jaunty Did this from USB. Seems easy enough except that on my HTPC, it dropped me to busybox / initramfs cli. Durrr what to do? Amazingly I typed "exit," walked away and came back later to find it had booted into GUI. Commenced installation - no issues. Step 2: Create XBMC user Easy enough, did this via Administration/Users and Groups. Started with the unpriv'd profile and added the things I think the xbmc user needs such as fuse, audio, mount shares, etc. For autologin, you can do this via... Admin or Prefs / Login Screen (I wish I could remember more clearly) At this point the system will auto-login the XBMC user and start a GNOME desktop. Step 3: Install build deps and compile XBMC from svn Because I'm lazy, I used the guide for this using Intrepid steps. Step 4: HDMI Audio Jaunty uses ALSA 1.0.18 out of the box which, even though it is not the newest ALSA, still supported my chipset+HDMI out of the box! All I had to do was slave the HDMI audio off the analog and viola! Slaving HDMI is as simple as adding the following to /etc/asound.conf: Code: pcm.!default { Step 5: installed grumbel's xbox360 userspace driver I find this driver to be much better than the xpad kernel driver. For some idiotic reason, xpad defines the dpad as axis however xbmc needs dpad as buttons. So, the choices are to modify kernel source and recompile the driver to fix the issue, or nix xpad and use the userspace driver. I chose the latter because the userspace driver allows me to define a deadzone which helps a lot. First I downloaded the source from here: http://pingus.seul.org/~grumbel/xboxdrv/ And the Keymap from here: http://www.stolennotebook.com/anthony/2008/09/13/using-xbmc-for-linux-with-an-xbox-360-wireless-controller-and-the-userspace-usb-driver-xboxdrv/ Grumbel's README has all the compilation instructions you need. After compilation, copy xboxdrv and xboxdrv-daemon.py to /usr/local/bin Make sure kernel modules uinput and joydev load on boot. If not you can add them to /etc/modules to make it so. Step 6: auto load XBMC and xboxdrv-daemon.py For the xbmc user create a .xsession file in its home directory and add Code: #!/bin/bash Code: sudo visudo Code: xbmc ALL=NOPASSWD: /usr/local/bin/xboxdrv-daemon.py That's all for now. Later this week I hope to further refine .xsession to restart xbmc on crash, similar to but not exactly the same as the XBMCLive .xsession script. If anyone has any comments or suggestions on that, I would be more than happy to hear them Long term goal: magical button mapping that will trigger an X restart. Anyone? Edit: This should probably be a new thread -- I won't be offended if (an admin) moves it to a new thread... - rickx - 2009-04-21 @ bobb0 Hi and thanks for your replie(s). - no, I did not find them preachy, I liked the "historical background" view - I think you are wrong for one thing: gdm is installable without apps. The apps come with gnome-desktop (or ubuntu-gnome-desktop ). So I'm still tempted to try that route. - althekiller is not exactly the kind&polite type from what I read, but I agree with him and - at the same time - don't see it as an attack against olympia nor against the stripped-down approach. Just pointing out that a wiki entry should explain the "why" along the "how". - regarding the last post: sounds very nice, but I'd suggest to start a new thread...now that we're in the jaunty era bye, rickx p.s. the ctrl+alt+backspace is disabled but can be re-enabled (read it somewhere...just don't ask how but google knows ) - berchti - 2009-04-21 hi everyone I installed my xbmx on a ASUS P5N7A-VM everything worked fine until today. I just want to listen to some radio streams, but the streams only work for about 3 minutes than they all start stumbeling!! Audio is playing through hdmi connected to my hd. here is the xbmc.log Code: 21:31:06 T:3022982032 M:1682038784 INFO: AudioDecoder: File is queued I read something about this problem, couldn't find a solution... Can someone help me out?? Thanks patrick - bobb0 - 2009-04-22 Pvt_Ryan gave me a hand with the ctrl-alt-backspace issue so it is now working again, i just need to figure out if there is a way i can map a button combo to that key combo.. So, i've spent 2 days.. no 3.. days on setting it up the "recommended" style and everything is really good.. except for one thing... it's not responding correctly to my xbox360 controller (why is it not supported out of the box) axis' (triggers, thumb sticks) i'm not sure if its the controller or jaunty as i had noticed some differences even before i took on this project. however, that problem was minor compared to this. (previously, the scroll-up function had been performing a bit slower than it used to) overall, using the recommended method is also very viable, especially if you are interested in having a gui interface to fall back on. for me, i don't think its very necessary as i just ssh into the box from my netbook (just purchased it!!! and make the required changes that way. i think ultimately, i prefer the minimal install. ugh.. now i am going to have to start over again!! hahaha ohwell, this xbmc box is my hobby... if i'm not fidding with it in some way then its lost its meaning - molesza - 2009-04-23 What steps should I take to unpgrade my minimal 8.10 install to 9.04? Or is this not recommended? - rickx - 2009-04-23 molesza Wrote:What steps should I take to unpgrade my minimal 8.10 install to 9.04? Or is this not recommended? Huh! Recommended is becoming word of the month here! Do the following: put something like Code: deb http://it.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse Then Code: sudo apt-get update If then you really want the RECOMMMMENDED version, also do a Code: sudo apt-get install ubuntu-desktop Code: apt-cache search ubuntu-desktop - Pvt_Ryan - 2009-04-23 I am *fairly* sure I got one of my installs working without GDM, I just installed X I think.. if I ever get my new HTPC built I'll do some in depth testing and configuring on it, but unless someone wants to give me either an ATX case or a mATX case that could be a while.. |