Saturday, June 27, 2009

Script to configure lirc

#!/bin/bash

sudo dpkg-reconfigure lirc

echo "Running mythbuntu-lircrc-generator..."

mythbuntu-lircrc-generator

echo "Adding extra include files..."

echo "include ~/.lirc/irexec" >> ~/.lircrc
echo "include ~/.lirc/irxevent" >> ~/.lircrc

Tuesday, June 23, 2009

Ubuntu 8.10 USB boot creator

Looks like the problem (or part of) with USB boot in 8.04 is fixed


Not sure if it is enough to update the system or new CD is need (8.04.3)

Or daily build:
http://cdimages.ubuntu.com/hardy/


Edit: I tested and it works fine.

xbmc session

Ok.
Finally found out how the get the xbmc session to work in ubuntu.
An extra package is needed:
sudo apt-get install xbmc-standalone

Someone need to add that to the wiki.

Sunday, May 10, 2009

HOWTO install XBMC 9.04 on ubuntu 9.04 - Install

EDIT: Added Hardy as alternative.

Instruction on how to install PPA

Installation instruction

XBMC 9.04 for Ubuntu 9.04 (jaunty)

XBMC 9.04 For Ubuntu 8.04 (hardy)

Add key from terminal
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xa62016ec6944db21c7793b3a9f10e6ae9317790e

Hardy
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 91E7EE5E


Add source
sudo gedit /etc/apt/sources.list
deb http://ppa.launchpad.net/team-xbmc/jaunty-ppa/ubuntu jaunty main

deb http://ppa.launchpad.net/team-xbmc/hardy-ppa/ubuntu hardy main 


sudo apt-get update
sudo apt-get install xbmc
sudo apt-get install xbmc-standalone

Setup sound levels
alsamixer

Save Sound levels
sudo alsactl store



HOWTO install XBMC 9.04 on ubuntu 9.04 - Preparation

Install Ubuntu 9.04

user/ pwd xbmc/xbmc
autologin


Install all updates


Install and config remote control


sudo apt-get install ubuntu-restricted-extras

Tuesday, May 5, 2009

HOWTO Fix for Live CD persistent USB boot ubuntu / xubuntu 8.04

DOES NOT WORK ON 8.04

There is a problem with the Live CD persistent USB BOOT in ubuntu 8.04  (and earlier)
It is supposed to be fixed in ubuntu-8.04.3 but the available version is ubuntu-8.04.2.

The problem is in the default initrd.gz
Bugg report https://bugs.launchpad.net/ubuntu/+source/casper/+bug/219192

I found the solution here 
http://ubuntuforums.org/showthread.php?t=1073838

sudu  cp /usr/share/initramfs-tools/scripts/casper /usr/share/initramfs-tools/scripts/casper_org

sudo  /usr/share/initramfs-tools/scripts/casper
Delete section   ",mode=755"

AND
sudo cp /usr/share/initramfs-tools/init  /usr/share/initramfs-tools/init_org

sudo  /usr/share/initramfs-tools/init 

Add text in bold

break)
break=premount
;;

persistent)
PERSISTENT=yes
root_persistence=casper-rw
home_persistence=home-rw
;;

esac

I am testing this on xubuntu

Saturday, May 2, 2009

policy instead of sudoers?

I have to look into this again

sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
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.shutdown-multiple-sessions