Dodajemy repozytoria do /etc/apt/source.list
# ~~~~~~Backports_Squeeze~~~~~~ #
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
#multimeddia
deb http://www.deb-multimedia.org squeeze main non-free
deb http://www.deb-multimedia.org squeeze-backports main
#xbmc
deb http://debian.oppserver.net/xbmc/ squeeze main non-free contrib
deb-src http://debian.oppserver.net/xbmc/ squeeze main non-free contrib
Dodajemy klucz
wget http://debian.oppserver.net/gpg-debian.oppserver.net-signing-pubkey.asc -O - | sudo apt-key add -
a po tym
apt-get update
apt-get upgrade
następnie
apt-get install linux-headers-2.6-$(uname -r | sed 's,.*-,,')
Instalacja sterowników:
apt-get install fglrx-driver fglrx-control fglrx-glx fglrx-modules-dkms
Generowanie configa
aticonfig --initial -f
Instalacja xbmc:
apt-get install xbmc-standalone
Instalacja dodatkowych pakietów
apt-get install libmad0 libmpeg2 xbmc-skin-confluence xbmc-x264 xbmc-vaapi-xvba xbmc-rtmp xbmc-addon-pvr-tvheadend
Plik /etc/init.d/xbmc Zmień RUN_AS na użytkownika swojego.
#! /bin/sh
### BEGIN INIT INFO
# Provides: xbmc
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of XBMC
# Description: starts instance of XBMC using start-stop-daemon and xinit
### END INIT INFO
############### EDIT ME ##################
# path to xinit exec
DAEMON=/usr/bin/xinit
# startup args
DAEMON_OPTS=" /usr/bin/xbmc --standalone "
# script name
NAME=XBMC
# app name
DESC=XBMC
# user
RUN_AS=cyryl
# Path of the PID file
PID_FILE=/var/run/xbmc.pid
############### END EDIT ME ##################
test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo "Starting $DESC"
start-stop-daemon --start -c $RUN_AS --background --pidfile $PID_FILE --make-pidfile --exec $DAEMON -- $D$
;;
stop)
echo "Stopping $DESC"
start-stop-daemon --stop --pidfile $PID_FILE
;;
restart|force-reload)
echo "Restarting $DESC"
start-stop-daemon --stop --pidfile $PID_FILE
sleep 5
start-stop-daemon --start -c $RUN_AS --background --pidfile $PID_FILE --make-pidfile --exec $DAEMON -- $D$
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Konfig /etc/init/xbmc.conf w env USER dodaj swojego usera
# xbmc-upstart
# starts XBMC on startup by using xinit.
# by default runs as xbmc, to change edit below.
env USER=cyryl
description "XBMC-barebones-upstart-script"
author "Matt Filetto"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
# tell upstart to respawn the process if abnormal exit
respawn
script
exec su -c "xinit /usr/bin/xbmc --standalone -- -nocursor :0" $USER
end script
Następnie sprawdzamy czy dobrze startuje xbmc
/etc/init.d/xbmc start
jeśli tak to zatrzymujemy
/etc/init.d/xbmc stop
i dodajemy aby uruchamiał sie skrypt po każdym uruchomieniu
update-rc.d xbmc defaults
Jeśli x-y by nie wstawały spróbuj jeszcze
dpkg-reconfigure x11-common
Jak znajdę czas to zainstaluje czysty system na pendrivie i spróbuje zainstalować xbmc i wtedy przygotuje arta o tym.