[Install Script] Install XBMC Dharma on Ubuntu Maverick Minimal...almost

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
prupert Offline
Senior Member
Posts: 177
Joined: Feb 2007
Reputation: 1
Post: #1
As a little New Year's present, I have updated a script that has been knocking around to allow you to install XBMC on a minimal version of Ubuntu Maverick.

If you simply install Ubuntu from the mini.iso containing the basic Ubuntu Maverick install, then on reboot, download my script using:

Code:
wget www.prupert.co.uk/scripts/xbmcmaverickrevo.sh

make it executable, using:

Code:
chmod a+x xbmcmaverickrevo.sh

then finally run it using:

Code:
sudo ./xbmcmaverickrevo.sh

I find it is best to run it again, once the script reboots the machine, as this fixes a few issues (log in via SSH from another PC to do this).

It is still a work in progress, as you can't yet shutdown / restart etc via XBMC since it seems the method to add permissions in Ubuntu 10.10 have changed and they conflict with the setup here, so I am still looking into that. To shutdown / reboot at the moment, I log in via SSH and issue:

Code:
sudo shutdown -hP now

Also, it is designed to work just with the Acer Aspire Revo 3610, but there is no reason why it wont work with any other device (apart from maybe the audio configurations).

Enjoy.

Download It Here

I will update it to fix bugs and add some extra functions related to getting the install to work better with ION and Atom PCs, but I wont it become a monster like XCI, although cudos to the dude who valiently tried to maintain that script Wink

You can follow changes to it here: www.prupert.co.uk but I shall also update this post as well.

Update:

I've also released a script so you can run Boxee on the same minimal install aswell. You use the remote to launch it, so you exit out of XBMC using the Exit option from the power menu, then you launch Boxee by pressing the Yellow button on your MCE remote control. To get back to XBMC, simply exit out of Boxee using the Exit option from the main Boxee menu and load XBMC by pressing the Red button on your MCE Remote. You can change the remote and remote button used to launch either app by editing one simple file.

Download It Here
(This post was last modified: 2011-01-02 03:04 by prupert.)
find quote
srv1973 Offline
Junior Member
Posts: 48
Joined: Jan 2008
Reputation: 0
Post: #2
Hi, I'm intrigued, especially since I've been struggling for hours today trying to get sound over HDMI working with Maverick (unsuccessfully).

I had a look at your script, and you are doing some magic with the /etc/asound.conf file that I haven't seen in any other forum post yet. I'm not sure if all of that file is applicable to my situation though (you seem to have some special cases based on whether you are connected to a receiver or to a TV?). I'll try tomorrow when I "get the TV back" from my better half.

Just to compare: my setup is an ASRock ION 330HT connected over HDMI to an HK AVR255 receiver, connected over HDMI to a Sony Bravia LCD TV (with sound obviously being handled by the receiver, not by the TV).

How does this compare to your setup?

Rgds
find quote
coupas Offline
Member
Posts: 80
Joined: Jan 2010
Reputation: 33
Post: #3
Interesting. Ill keep this post in mind when I reinstall next time..
find quote
prupert Offline
Senior Member
Posts: 177
Joined: Feb 2007
Reputation: 1
Post: #4
Hi

I copied the asound stuff from the XCI script, from the Audio via HDMI and Optical option.

Since XCI was a generic script I assumed the same would apply to the asound portion.

I can confirm that optical works though not so sure about HDMI.
find quote
srv1973 Offline
Junior Member
Posts: 48
Joined: Jan 2008
Reputation: 0
Post: #5
Hmmm, still no luck with HDMI passthrough on my ASRock ION 330HT with Ubuntu 10.10 Maverick.
  • NVidia 260.19.29-0ubuntu1 drivers from ubuntu-x-swat team/PPA
  • ALSA version from ubuntu-audio-dev team/PPA
  • Pulse Audio is running
  • No special /etc/asound.conf or asound.rc at all
  • VLC plays perfect Dolby Digital / DTS clips (test clips downloaded from this site)
  • SMPLayer plays them perfectly as well (but if I set 'AC3/DTS passthrough through SP/DIF' then it doesn't, get crackling noises)
  • speaker-test -Dhdmi -c6 works, but the channels mappings are messed up
  • Can't seem to get this working either using mplayer and the hwac3 and hwdts audio codecs, hmmm... but then again that could easily be caused by me not using the correct command line options
  • XBMC->System->System->Audio Output:
    • Audio output: HDMI
    • Speaker Configuration: 5.1
    • Boost volume level on downmix: ON
    • Dolby Digital (AC3) capable receiver: ON
    • DTS Capable Receiver: ON
    • Audio output device: default
    • Passthrough output device: hdmi. Note: currently this causes "cannot initialize audio device" errors in XBMC". I've tried all other settings and many different spellings for Custom device (eg hw:0,3, plughw:0,3 etc etc) to no effect. With some combinations I don't get an error, but there's no sound.
  • Navigation sounds are working in XBMC over the HDMI connection
  • I can play music
  • I can hear sound from video sources that don't say "Dolby Digital" or "DTS" (eg as displayed by the XBMC info panel)

Looks to me as if the only problem here is the AC3/DTS passthrough over HDMI with XBMC (as it seems to work with other applications like VLC and SMPlayer).

Any further tips?
find quote
TakeOffYourXBMC Offline
Junior Member
Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #6
Thanks for this. You can simplify a lot of that asoundrc stuff:

cat << EOF > /etc/asound.conf
pcm.!default {
type plug
slave {
pcm "both"
}
}

pcm.both {
type route
slave {
pcm multi
channels 6
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
ttable.0.4 1.0
ttable.1.5 1.0
}

pcm.multi {
type multi
slaves.a {
pcm "tv"
channels 2
}
slaves.b {
pcm "receiver"
channels 2
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}

pcm.tv {
type hw
card 0
device 3
channels 2
}

pcm.receiver {
type hw
card 0
device 1
channels 2
}
EOF
find quote
darkscout Offline
Posting Freak
Posts: 2,146
Joined: Jul 2008
Reputation: 12
Post: #7
Any fixes for the bastardization that is LIRC in the Kernel?

[Image: aeKO.jpeg]
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
find quote
TakeOffYourXBMC Offline
Junior Member
Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #8
TakeOffYourXBMC Wrote:Thanks for this. You can simplify a lot of that asoundrc stuff:

cat << EOF > /etc/asound.conf
pcm.!default {
type plug
slave {
pcm "both"
}
}

pcm.both {
type route
slave {
pcm multi
channels 6
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
ttable.0.4 1.0
ttable.1.5 1.0
}

pcm.multi {
type multi
slaves.a {
pcm "tv"
channels 2
}
slaves.b {
pcm "receiver"
channels 2
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}

pcm.tv {
type hw
card 0
device 3
channels 2
}

pcm.receiver {
type hw
card 0
device 1
channels 2
}
EOF


Also I've been using a script for my reinstalls. Here's a simpler way to get xbmc to auto-start; no need for openbox:

sed -i 's#exec /sbin/getty -8 38400 tty1#exec /bin/login -f xbmc </dev/tty1 > /dev/tty1 2>\&1#g' /etc/init/tty1.conf

cat << EOF >> ~xbmc/.bash_profile
case "\$(tty)" in
/dev/tty1) clear && startx &>/dev/null ;;
esac
EOF

echo "exec xbmc --standalone -fs" > ~xbmc/.xsession
find quote
shmal Offline
Junior Member
Posts: 5
Joined: Jan 2011
Reputation: 0
Post: #9
srv1973 Wrote:Hmmm, still no luck with HDMI passthrough on my ASRock ION 330HT with Ubuntu 10.10 Maverick.
  • NVidia 260.19.29-0ubuntu1 drivers from ubuntu-x-swat team/PPA
  • ALSA version from ubuntu-audio-dev team/PPA
  • Pulse Audio is running
  • No special /etc/asound.conf or asound.rc at all
  • VLC plays perfect Dolby Digital / DTS clips (test clips downloaded from this site)
  • SMPLayer plays them perfectly as well (but if I set 'AC3/DTS passthrough through SP/DIF' then it doesn't, get crackling noises)
  • speaker-test -Dhdmi -c6 works, but the channels mappings are messed up
  • Can't seem to get this working either using mplayer and the hwac3 and hwdts audio codecs, hmmm... but then again that could easily be caused by me not using the correct command line options
  • XBMC->System->System->Audio Output:
    • Audio output: HDMI
    • Speaker Configuration: 5.1
    • Boost volume level on downmix: ON
    • Dolby Digital (AC3) capable receiver: ON
    • DTS Capable Receiver: ON
    • Audio output device: default
    • Passthrough output device: hdmi. Note: currently this causes "cannot initialize audio device" errors in XBMC". I've tried all other settings and many different spellings for Custom device (eg hw:0,3, plughw:0,3 etc etc) to no effect. With some combinations I don't get an error, but there's no sound.
  • Navigation sounds are working in XBMC over the HDMI connection
  • I can play music
  • I can hear sound from video sources that don't say "Dolby Digital" or "DTS" (eg as displayed by the XBMC info panel)

Looks to me as if the only problem here is the AC3/DTS passthrough over HDMI with XBMC (as it seems to work with other applications like VLC and SMPlayer).

Any further tips?

Have you had any luck with this? I just went through the same thing last night / today. I can get stereo sound over hdmi no problem, but multichannel gives the initialization error.

Spent the day trying many different approaches, none successful.
find quote
srv1973 Offline
Junior Member
Posts: 48
Joined: Jan 2008
Reputation: 0
Post: #10
shmal Wrote:Have you had any luck with this? I just went through the same thing last night / today. I can get stereo sound over hdmi no problem, but multichannel gives the initialization error.

Spent the day trying many different approaches, none successful.

No, haven't tried again yet. I still want to try with the modified hda-intel file installed though, as can be found in various places on this forum.
find quote
Post Reply