Archive:Configuring XBMC Live

From Official Kodi Wiki
Revision as of 14:23, 14 January 2009 by L.capriotti (talk) (Initial draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1 Add restricted user & configure user

As a general security measure, XBMC will run as unpriviledged user. A new user is therefore added to the system with:

adduser xbmc

A new group called 'admin' is to be created:

addgroup admin  --system

and the xbmc user is added to the new group:

adduser xbmc admin

Type the following to configure audio and removable media support:

adduser xbmc audio
adduser xbmc plugdev

2 Configure IP

Edit the file /etc/network/interfaces copying the following lines. Those will allow automatic DHCP IP assignemt on eth0, or assign a fixed IP is the last block is uncommented:

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#iface eth0 inet static

3 Configure name resolution

Edit /etc/resolv.conf' copying the following lines:


This will configure OpenDNS servers for name resolution.

4 Set hostname

Edit /etc/hostname and replace the default hostname with:


5 Edit hosts file

Edit /etc/hosts and replace the existing lines with the following ones: localhost XBMCLive

6 Autostart Xorg

Edit '/etc/X11/Xwrapper.config' and change the line




7 Enable password-less sudo

Run 'visudo' and add the following lines:

%admin  ALL=(ALL) ALL
xbmc ALL=NOPASSWD: /bin/mount, /bin/umount, /bin/mkdir, /sbin/shutdown

then uncomment


8 Create XBMC init.d start script


9 Insert xbmc usplash theme

Forum user 'Duduke' has kindly contributed a nice XBMC usplash theme; get it from sourceforge repository, copy the .so file on the target filesystem and type:

cp /tmp/ /usr/lib/usplash/
cd /etc/alternatives/
ln -s  /usr/lib/usplash/

10 Automount local hard drive partitions

Add the script "diskmounter" checked out from the SVN to '/usr/bin'


and make it executable:

chmod +x /usr/bin/diskmounter

(to be continued)