XBMC

Från Wikipedia, den fria encyklopedin.

Innehåll

XBMC

Installation

Ubuntu 9.04

  1. Install regular Ubuntu 9.04 from USB Live
  2. Install latest nvidia (180.53) - http://blog.mymediasystem.net/uncategorized/my-five-must-have-settings-for-ubuntu-904-jaunty-jackalope/
    1. GPG-Key: http://ubuntu-bossieman.blogspot.com/2009/05/gpg-fel-ppalaunchpadnet.html
  3. Install latest alsa (1.20.0) - http://ubuntuforums.org/showthread.php?p=6589810
  4. Remove pulseaudio - http://www.ubuntugeek.com/how-to-remove-pulse-audio-ubuntu-810-intrepid-ibex.html
  5. Install XBMC from SVN repos - http://lathund.wordpress.com/2009/03/25/xbmc-svn-forrad-aven-for-ubuntu-904/
  6. Fix so that menu and mp3 sound is working - http://xbmc.org/forum/showthread.php?t=35901
  7. Make sure mouse pointer is not in the way after resume - http://ubuntu-tutorials.com/2008/07/07/auto-hide-your-mouse-pointer-when-idle-with-unclutter/
  8. Install 'lirc'
  9. Add extra irexec commands
    1. Add script that toggles XBMC to lircrc.
  10. Remove startup/shutdown sound for Ubuntu
  11. Install Aeon skin
  12. Rename GAMES to PROGRAMS in main menu in language file: ~/.xbmc/skin/aeon/language/English/strings.xml
  13. Set shutdown in XBMC to 'Quit', since suspend is handled by irexec.
  14. Enable SMS like searching.
  15. Enable OpenSubtitles_OSD.
  16. Configure remote button to start playlist.

Ubuntu 8.10

My last install was directly from the development branch, i.e. not a stable release. It works a lot better than 8.10 which I tried before that. It is a bit more work though.

Development version

I followed the tutorial below for the most part. However I installed a regular Ubuntu 8.10 instead of the mini iso. Because of that I had to disable gdm and also uninstall pulse audio.

Stable version

Keyboard and mouse shortcuts

Fullscreen

\ (backslash)

Other shortcuts

Remotes

Wii remote

  • install package xbmc-eventclients-wiiremote
  • run xbmc-wiiremote
  • start XBMC
  • Press 1+2 on remote to connect

That's it!

MCE Remote

Nothing special needed just make sure the remote is installed, instructions here.

For info on keymaps etc: http://www.xbmc.org/wiki/?title=Universal_Remote_Control

Might want to follow my guide here to be able to do more stuff with your remote, when XBMC is not running.

SMS like searching

To be able to search in list using letters on numpad of remote:

  1. edit ~/.xbmc/userdata/keymaps/remote.xml
    • If the file does not exist: cp /usr/share/xbmc/system/keymaps/remote.xml ~/.xbmc/userdata/keymaps/remote.xml
  2. change numbers under global to be:
    <keymap>
      <global>
        <remote>
          <two>JumpSMS2</two>
          <three>JumpSMS3</three>
          <four>JumpSMS4</four>
          <five>JumpSMS5</five>
          <six>JumpSMS6</six>
          <seven>JumpSMS7</seven>
          <eight>JumpSMS8</eight>
          <nine>JumpSMS9</nine>
    
  3. Remove any conflicting numbers from other sections. For instance 3,6 and 9 are volume controlling in some other sections.
Thanks to:

Enable song skipping in slideshow

The default action for the skip button is to show next picture, but since the direction right button does the same thing I prefer to map the skip button to next song.

  1. See SMS like searching on which file to modify.
  2. Locate the <SlideShow> tag and remove the <skip...> tags

Configure remote button to start playlist

  1. See SMS like searching on which file to modify.
  2. Add a new element under home/remote node. See example below, where playlist will be started if I press zero when in home window:
<Home>
  <remote>
      ...
    <zero>XBMC.PlayMedia(/mnt/NFS/silencium/Arkiv2/Mp3/Playlists/2009-collection.m3u)</zero>
      ...
  </remote>
</Home>

Make play button open context menu

Default is to play the item when Play button is pressed. However, if you prefer to open the context menu instead, like I do, do the following.

  1. See SMS like searching on which file to modify.
  2. Search for <play> tag and change the value to ContextMenu instead of Play.

Start on other display

DISPLAY=":0.1" xbmc

Assuming you have X server configured to run the other monitor in an own X display. This can be configured with nvidia-settings.

Fanart

Skins

Usually you should download the skin from the web site instead of using the package manager. Here are my favorites:

Set skin from command line

If skin crashes you might have to change skin from command prompt. Edit the file ~/.xbmc/userdata/guisetttings.xml and search for skin-tag.

Plugins

Plugins can for instance be video plugins, e.g. watching youtube with XBMC. Download the SVN Repo Installer and extract it to ~/.xbmc/plugins/programs.

Backdrops / backgrounds / fanart

Launcher

Using the launcher you can run external programs from within XBMC. Install the program from here http://xbmc.org/forum/showthread.php?t=35739.

Mine didn't start from the beginning, so I enabled debugging and checked in ~/.xbmc/temp/xbmc.log. There it stated:

[Errno 13] Permission denied: '/usr/share/xbmc/UserData'

so I made a symlink from /usr/share/xbmc/UserData to /usr/share/xbmc/userdata. After that it worked.

Juddery playback in videos

Ok, so it is not really XBMC related, but I noticed this when using XBMC. Read more about it here: http://xbmc.org/forum/showthread.php?t=54428

OpenSubtitles_OSD

  • http://xbmc.org/forum/showthread.php?t=56083
  • Make sure the movie folder is writable, as the script will download subtitles to the movie folder.
  • Change settings by going to SCRIPTS then press Play ("c" on keyboard) on OpenSubtiltes_OSD

TV Streaming

This script will enable SVT play, TV3 play etc.

If you do not see any fonts:

Software
Personliga verktyg