Linux HOW-TO: Automated efficient XBMC install - Ubuntu 12.10/13.04 mini based - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: Linux HOW-TO: Automated efficient XBMC install - Ubuntu 12.10/13.04 mini based (/showthread.php?tid=141369) |
HOW-TO: Automated efficient XBMC install - Ubuntu 12.10/13.04 mini based - Bram77 - 2012-09-26 The 12.10 version of this script will work on both Ubuntu 12.10 and 13.04! Because I've done this a few times myself and I've encountered several people asking about it I figured it would be worth the effort to document the required steps. I've cut it into two main steps. 1. Installing Ubuntu minimal (this post) 2. Automated Ubuntu preparation and XBMC installation (post #2 in this thread) This guide uses a very minimalistic and efficient approach. After a clean installation it takes my relatively old machine only 12 seconds to boot. From pushing the button to the xbmc home screen. I'm running xbmc on a Asrock ION 330HT with 3GB ram and an SSD drive. If you're an experienced Linux user you can probably skip to section two because the fisrt step is just a regular Ubuntu minimal installation with only the OpenSSH server as extra module. You will need to use xbmc for the username of the installation. Otherwise the script won't work! For this method of installation to work you need to have your HTPC connected to the internet! This needs to be a wired connection for now. 1. Installing Ubuntu minimal 1.1 Download the latest ubuntu 12.10/13.04 minimal installation ISO from 13.04
12.10
1.2 Download and install unetbootin or burn the downloaded ISO to a writable CD 1.2.1 Windows
1.2.2 Ubuntu
Code: sudo apt-get update && sudo apt-get install unetbootin
1.2.3 Creating the bootable USB stick
Now you have a bootable USB drive containing the minimal installation requirements for Ubuntu 12.10 or 13.04. During the installation process the minimal installation will download more required packages. The advantage of using the minimal installation is that no more then absolutely required for you installation will be downloaded and installed. Resulting in a fast and responsive XBMC installation. 1.3 Installation Every * stands for at least one installation screen in most cases
RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-26 This script will only work properly on Ubuntu Minimal and Ubuntu Server installations! Do not use it on an Ubuntu Desktop installation because it will break stuff!! The 12.10 version of this script will work on both Ubuntu 12.10 and 13.04! 2. Automated Ubuntu preparation and XBMC installation The script assumes you chose "en_US.UTF-8" as your locale! It might work if you chose a different one, but I haven't tested that. Please be patient during the installation process. Some elements will take some time to finish! Login to your htpc with ssh and execute the following commands... stable v2.6.0 [nvidia, ati (series >= 5xxx) and intel video drivers support]: Code: cd ~ untested v2.6.1 [nvidia, ati (series >= 5xxx) and intel video drivers support]: Code: cd ~ CHANGES * Changed $USER to static variable $XBMC_USER="xbmc" * Modified video card manufaturer detection to always return uppercase * Removed 'nomodeset' from grub configuration for INTEL videocards * Applied USB automount fix and reduce power consumption * Fixed typo in grub resolution selection causing problems * Added plymouth boot logo configuration fix * Switched to new upstart script which is more efficient * Added XBMC user to some more groups for accessto extra system functionalities That's it. You should have XBMC up and running after the automatic reboot, with nothing installed that isn't absolutely required! This installation boots super fast (comparable with OpenElec, quite a bit faster then XBMCbuntu). It provides a very smooth XBMC experience because there are almost no extra processes running in the background. No more then required anyway. Please let me know if you run into problems. Loads of thanks to everybody who's been helping with debugging, suggesting and testing! wsnipx has been helping me out with the ATI part of the script. Check out his guide to learn some more about the ATI related configuration Special thanks to uNiversal for providing support and fixes! RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - thethirdnut - 2012-09-27 Thanks for posting. I have yet to redo my minimal installs. Do we for sure even need a window manager installed? I believe last time it was simply an xinit script? RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-27 lightmd is a requirement for the xbmc-live package. Unfortunately lightmd has a lot of requirements we don't need. I'm looking for a way to reduce the amount of packages installed with lightmd. If you know an alternative method, please let me know and I'll adjust the installation script and howto to it. Even though some unnecessary packages are installed, this installation is very responsive. In my experience it's booting quite a bit faster then XBMCbuntu. And running smoother then OpenElec and XBMCbuntu. edit: Are your referring to this method? -> http://wiki.xbmc.org/index.php?title=HOW-TO:Install_XBMC_for_Linux RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-27 Using the init.d script looks like the way to go. I'm going to try that today! Thanks for pointing this out! RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-27 Excellent tip thethirdnut! I've got it running. Had to figure some stuff out, but I got there . I've created a new script to automate this process too. The start post has been updated. I've removed the manual method because it makes it look so damn complicated RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-27 I haven't got audio working on the xinit version. Please wait a bit before using the script RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-27 Ok... audio is working now. I needed to add the xbmc user to the audio group. It took quite a while before I had that figured out. I've made a lot of improvements to the scripts. I'm unable to test with an Ati videocard. If anyone is willing to provide feedback about an Ati installation? That would be very helpful. As far as I've been able to test everything should run smooth now. The scripts could be a lot more comprehensive but it's pretty time consuming to test the scripts. So I've kept it as simple as possible. RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - thethirdnut - 2012-09-27 Hi Bram77, Thanks for putting this together. Yes - that xinit script was what I was referring to. Glad it helped. Good to see someone else prefers the 'minimal' minimal route as well. ;-) I'll have a looksee at your script and get back to you. May be awhile, however, in the middle of a server build, etc... There seems to be quite a smattering of info out there, but none of it quite complete for newer version of XBMC and Ubuntu minimal. I'll repost as well when I get all my bits sorted. RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-27 Great That's exactly what I think the problem is. Requirements and paths change depending on the Ubuntu and XBMC versions. There is quite some information available regarding manual installation of XBMC on a dedicated machine using Ubuntu. But mostly it's about desktop installations running XBMC and especially older versions of XBMC and Ubuntu. I think it would be nice if such information would be part of the XBMC wiki. I'm looking into integrating the installation script into the mini.iso installation and I want to maintain the script for different XBMC and Ubuntu versions. An advantage in this method is that the user is always using the latest Ubuntu, dependencies and XBMC version when installing. XBMCubuntu needs to release a new iso to offer the latest versions. RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Ned Scott - 2012-09-28 Bram77, nice guide! Mind if we copy this over to the XBMC wiki manual (content added to the wiki is released under CC-SA-BY)? RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-28 That would be great Ned! Maybe the Ati installation script should be tested by someone with an Ati video card before adding it to the wiki, although there isn't much that can go wrong since only two variables vary in the two scripts. Re: RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - atltrickster - 2012-09-28 (2012-09-28, 09:47)Bram77 Wrote: That would be great Ned! Maybe the Ati installation script should be tested by someone with an Ati video card before adding it to the wiki, although there isn't much that can go wrong since only two variables vary in the two scripts. Installed and booted flawlessly on my box using an ATI RadeonHD 4800 series card. THANK YOU SO MUCH! :-) RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - Bram77 - 2012-09-28 That's great! Thanks for the feedback RE: HOW-TO: Install a dedicated XBMC nightly HTPC with Ubuntu minimal 12.10 - sectune - 2012-09-28 Thanks for your great script! After evaluation of your code I would like to ask you if it would be possible to add a (selectable? or at least triggered by some -tokens) option to install the open-source ATI/Nvidia drivers instead of proprietary ones, just to hold the head up of the open-source concept high |