Anda di halaman 1dari 5

Ubuntu : Maverick 10.

04 - 64Bits - Mini Iso


Options : Ubuntu Server / Open SSH
Kernel : all drivers
User : xbmc
Pass : xbmc
Sources.list : OEM

# Update
# -------------------------------------------------------
sudo aptitude update
sudo apt-get install python-software-properties pkg-config -y

# Add the sources to apt


# -------------------------------------------------------
sudo add-apt-repository ppa:yavdr/stable-vdr
sudo add-apt-repository ppa:henningpingel/xbmc
sudo add-apt-repository ppa:nvidia-vdpau/ppa

# Now update
# -------------------------------------------------------
sudo aptitude update
# Install XBMC
# -------------------------------------------------------
sudo apt-get install xbmc xinit x11-xserver-utils -y

# Install Nvidia Drivers


# -------------------------------------------------------
sudo aptitude install linux-headers-`uname -r` libvdpau-dev libvdpau1 nvidia-185
-kernel-source nvidia-185-modaliases nvidia-glx-185 nvidia-settings -y
sudo vim /etc/default/grub
...
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"
sudo update-grub
sudo reboot

# Add the XBMC user to the required groups:


# -------------------------------------------------------
sudo usermod --group audio,video,fuse,cdrom,plugdev xbmc

# Install XBMCLIVE
# -------------------------------------------------------
sudo apt-get install xbmc-live -y

# Install Alsa & setup


# -------------------------------------------------------
sudo apt-get install linux-sound-base alsa-base alsa-utils
sudo reboot

# achieve judder free perfectly synced playback


# -------------------------------------------------------
sudo apt-get install curl -y
curl "http://pastebin.com/download.php?i=bU1QFQ3c" | tr -d \\r > nvidia.sh
sh nvidia.sh

# Set alsamixer to levels you want


# -------------------------------------------------------
sudo alsamixer
/\ Adjust the channels you are interested in. Press ESC to exit out of the mixer
.
sudo alsactl store 0

# Add automount of usb devices


# -------------------------------------------------------
sudo apt-get install ivman hal -y

# Install VDR & VNSI plugin


# -------------------------------------------------------
sudo aptitude install vdr vdr-plugin-vnsiserver -y

# Configure VDR
# -------------------------------------------------------
## Stop VDR ##
sudo /etc/init.d/vdr stop

## DVB Driver Setup [Hauppauge MiniStick HD] ##


wget http://www.steventoth.net/linux/sms1xxx/sms1xxx-hcw-55xxx-dvbt-02.fw
sudo mv sms1xxx-hcw-55xxx-dvbt-02.fw /lib/firmware/sms1xxx-hcw-55xxx-dvbt-02.fw
/\ Débranchez et rebranchez votre clé.
dmesg | grep dvb
...
[ 1058.336692] usb 2-1: firmware: requesting sms1xxx-hcw-55xxx-dvbt-02.fw
[ 1058.390891] smscore_set_device_mode: error -2 loading firmware: sms1xxx-hcw-5
5xxx-dvbt-02.fw, trying again with default firmware
[ 1058.390895] usb 2-1: firmware: requesting dvb_nova_12mhz_b0.inp
[ 1058.399298] smscore_set_device_mode: error -2 loading firmware: dvb_nova_12mh
z_b0.inp
[ 2016.047465] usb 2-1: firmware: requesting sms1xxx-hcw-55xxx-dvbt-02.fw
[ 2016.612601] smscore_set_device_mode: firmware download success: sms1xxx-hcw-5
5xxx-dvbt-02.fw

## VDR Management ##
sudo vim /etc/default/vdr
...
# /etc/default/vdr
#
# See also /usr/share/doc/vdr/README.Debian.gz
#
# Change to 1 to enable vdr's init-script
ENABLED=1
# Change this to 1 if you want vdr to be able to shutdown the
# computer
ENABLE_SHUTDOWN=0
# Options that will be passed to vdr's commandline
# for example: OPTIONS="-w 15"
OPTIONS="-w 60"

## Energy Management ##
sudo vim /etc/PolicyKit/PolicyKit.conf
...
<config version="0.1">
<match user="root">
<return result="yes"/>
</match>
<match user="xbmc">
<return result="yes"/>
</match>
<define_admin_auth group="admin"/>
</config>
Add Custom Actions to PolicyKit

sudo apt-get install policykit-1 devicekit-power


sudo apt-get install upower
pkaction
...
org.freedesktop.devicekit.power.suspend
org.freedesktop.consolekit.system.stop

sudo vim /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla


...
# /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla
[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.power.*;org.freedesktop.consolekit.system.*
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes

sudo vim /etc/default/grub


...
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash xbmc=autostart,noredir usbcore.autosusp
end=-1"

sudo update-grub

sudo apt-get install hal


sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspen
d
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibern
ate
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdo
wn
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
-multiple-sessions
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdo
wn-multiple-sessions
# OPTIONS
# -------------------------------------------------------
Scan for channels, i've found that w-scan takes longer but being in Australia (n
ot sure about elsewhere) the EPG scans better, with dvb-apps the epg didn't work
properly
Option 1.
Code:
sudo /etc/init.d/vdr stop
sudo apt-get install dvb-apps
scan -x 0 -o vdr -a 0 /usr/share/dvb/dvb-t/uk-RidgeHill > /etc/vdr/channels.conf
sudo /etc/init.d/vdr start
change the bold bits to your country code and city
Option 2.
Code:
sudo /etc/init.d/vdr stop
sudo apt-get install w-scan
sudo chmod 777 /etc/vdr/channels.conf
w_scan -ft -c AU -o7 >> /etc/vdr/channels.conf
sudo /etc/init.d/vdr start
change the bold to your country code

To change where vdr records to


Code:
sudo /etc/init.d/vdr stop
sudo nano /etc/default/vdr
at the bottom type this in
Code:
VIDEO_DIR="/media/media/vdr"
and change it to your liking
then CTL+X then Y and ENTER to save
Code:
sudo /etc/init.d/vdr start
Turn off auto shutdown of VDR
Code:
sudo /etc/init.d/vdr stop
sudo nano /etc/vdr/setup.conf
change MinUserInactivity to 0
then CTL+X then Y and ENTER to save
Code:
sudo /etc/init.d/vdr start

Anda mungkin juga menyukai