tag:blogger.com,1999:blog-41314193247266722812024-03-05T18:55:22.727+01:00[erfahrungen, meinungen, halluzinationen]ein kleines, privates blogDaniel Leiderthttp://www.blogger.com/profile/17052464961644858181noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4131419324726672281.post-42565804923801739732014-11-17T00:12:00.002+01:002015-02-11T21:28:29.800+01:00Install automatically starting XBMC to N54L microserver under Debian Wheezy 7.7<div lang="en">
<p>This is a followup to my previous <a href="/2014/11/getting-audio-over-hdmi-to-work-for-hp.html">post</a> about getting sound output from the Sapphire Radeon HD 6450 card in my HP N54L microserver via <acronym title="High Definition Multimedia Interface ">HDMI</acronym>. This post will describe, howto install <acronym title="Xbox Media Center">XBMC</acronym> from Wheezy backports and how to automatically start it. Again, there are vaious ways and I'll only describe mine. Further, this is, what I did so far: enable the audio output for the Radeon card and install <a href="apt://task-desktop">X.org</a> together with <a href="apt://lightdm">lightdm</a>.</p>
<h4>Step 3 - Install XBMC</h4>
<p>This is a pretty easy task. I've chosen to install XBMC 13.2 from the Wheezy backports repository.</p>
<pre title="shell"># apt-get install -t wheezy-backports xbmc</pre>
<h4>Step 4 - Automically start XBMC</h4>
<p>There are various ways; some involve starting it a s a service using init scripts für sysvinit or upstrart or systemd. You'll easily find them. I've chosen to create a user, automatically log him into X and start XBMC. The user is called <var>xbmc</var>.</p>
<pre title="shell"># adduser --home /home/xbmc <var>--add_extra_groups</var> xbmc</pre>
<p><em>I used to choose a password. But I wonder, if using <var>--disabled-password</var> would work too?</em> Next I adjusted <tt>/etc/lightdm/lightdm.conf</tt>. Below are only the differences to the stock version of this file. I haven't touched other lines.</p>
<pre title="/etc/lightdm/lightdm.conf">[SeatDefaults]
greeter-session=lightdm-gtk-greeter
user-session=XBMC
autologin-guest=false
autologin-user=xbmc
autologin-user-timeout=0</pre>
<p>The file <tt>/usr/share/xsessions/XBMC.desktop</tt> is the stock one, no changes made. After restarting <tt>lightdm</tt>:</p>
<pre title="shell"># service lightdm restart</pre>
<p>XBMC is started automatically. If anything goes wrong or doesn't work, I suggest to check <tt>/var/log/auth.log</tt>, <tt>/home/xbmc/.xsession-errors</tt> and <tt>/var/log/lightdm/*.log</tt>. In a few cases it seems necessary to login the user <tt>xbmc</tt> manually once although it wasn't necessary here.</p>
<p>JFTR: When I checked <tt>/var/log/auth.log</tt> I saw a few errors and installed <a href="apt://gnome-keyring">gnome-keyring</a> too:</p>
<pre title="shell">apt-get install --install-recommends gnome-keyring</pre>
<h4>Step 5 - Useful packages</h4>
<p>There are some packages, which might be useful running XBMC, e.g.</p>
<ul>
<li><a href="apt://udisks">udisks</a></li>
<li><a href="apt://upower">upower</a></li>
<li><a href="apt://usbmount">usbmount</a></li>
</ul>
<h4>Conclusion</h4>
<p>I'm now running XBMC on top of Debian Wheezy on the N54L microserver without a bloated desktop environment. The system automatically starts the XBMC session on start/reboot. Video and sound are working fine, though it was necessary to install recent firmware and a recent kernel from Wheezy backports to get it done.</p>
<p>Thanks to the whole OSS community for aksing, for answering, for blogging, for using and for continue developing! I currently enjoy the results :)</p>
</div>Daniel Leiderthttp://www.blogger.com/profile/17052464961644858181noreply@blogger.com0