[LINUX] HOW-TO make a minimal Ubuntu Jaunty install with XBMC
#1
Thumbs Up 
This guide will show you how to setup a minimal HTPC using Ubuntu 9.04 Jaunty Jackalope and XBMC.
This system is intended to be connected to a HDTV for your viewing pleasure.


Requirements:
- Medium to advanced knowledge of Ubuntu and ability to work in terminal.
- Enough knowledge to manually edit xorg.conf files to get the proper graphical environment if the automatic config fails to do so.



Installing Ubuntu and setting up XBMC

Installing Ubuntu

1. Download the Ubuntu 9.04 Jaunty Jackalope minimal cd from here: https://help.ubuntu.com/community/Instal.../MinimalCD
Note: You can use either the 32-bit or 64-bit CD.

2. Burn the ISO to a disk and boot your HTPC from it.

3. Start the installation and follow the instructions.

4. When the installation asks for a username / password, enter xbmc / xbmc.

5. OPTIONAL If you want to do most of the steps remotely with ssh, choose openssh when asked if you want to install more packages.

6. Finish the installation and reboot.


Updating the computer
1. Log in to your new OS with the xbmc user.

2. Add the XBMC repositories to the sources list:
Code:
sudo vi /etc/apt/sources.list

3. Add the following to the bottom of the list:
Code:
[color=green]deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main
deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu/ jaunty main[/color]

4. Add the OpenPGP keys:
Code:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 91E7EE5E 318C7509

5. Update the lists:
Code:
sudo apt-get update


Install Sound

1. Install ALSA:
Code:
sudo apt-get install linux-sound-base alsa-base alsa-utils

2. There is a bug in Mini Jaunty where the user's account doesn't get added to the audio group, to fix that:
Code:
sudo usermod -a -G audio xbmc

3. Type:
Code:
sudo alsamixer

4. Use your arrow keys and turn up the volumes for Master and PCM.

5. Un-mute Master and PCM by selecting each one and pressing the M key. (The grey MM at the bottom will change to a green OO when un-muted.)

6. Press the escape key to exit

7. Now save the audio volumes:
Code:
sudo alsactl store 0


Install the graphical environment

NVIDIA Instructions
1. Install the dependencies:
Code:
sudo apt-get install xorg xserver-xorg-dev build-essential gcc linux-headers-$(uname -r)

2. Go to NVIDIA's site and find the link to the correct driver (older cards use older driver packages):
http://www.nvidia.com/Download/index.aspx
Right click on the .run link and copy the link location.

3. On your HTPC, download the driver using the link that you just found, example:
Code:
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/185.18.36/NVIDIA-Linux-x86_64-185.18.36-pkg2.run

4. Start the installation, and follow the instructions:
Code:
sudo sh NVIDIA-*.run --x-module-path=/usr/lib/xorg/modules --x-library-path=/usr/lib
Note: The extra parameters get rid of the Module warnings with the latest NVIDIA driver.

AMD64 Note: If using a 64-bit version of the driver and you also choose to use the NVIDIA Compatibility OpenGL libraries, you may want to add this to the end of the install parameters:
Code:
--compat32-prefix=/usr --compat32-libdir=lib32 --compat32-chroot=


5. When asked if you want to generate a new xorg.conf, say yes.

6. If you want, you can prevent the NVidia logo from displaying on startup.
Code:
sudo vi /etc/X11/xorg.conf
Find the device section, and add the following:
Code:
Option "NoLogo" "True"

ATI Instructions - Note: I have not tested these, they were pulled from here
1. Install the dependencies:
Code:
sudo apt-get install xorg build-essential dpkg-dev debhelper libstdc++5 dkms cdbs fakeroot

2. Go to ATI's site and find the link to the correct driver:
http://support.amd.com/us/gpudownload/Pages/index.aspx
Right click on the Download link and copy the link location.

3. On your HTPC, download the driver using the link that you just found, example:
Code:
wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-9-6-x86.x86_64.run

4. Build the package:
Code:
chmod +x ati-driver-installer-9-6-x86.x86_64.run
./ati-driver-installer-9-6-x86.x86_64.run --buildpkg Ubuntu/jaunty

5. Install the binary drivers:
Code:
sudo dpkg -i fglrx-kernel-source_jaunty.deb

6. Install the xorg package:
Code:
sudo dpkg -i xorg-driver-fglrx_jaunty.deb

7. Run the autoconfig to generate a new xorg.conf:
Code:
sudo aticonfig --initial

8. Reboot and you can see if it worked by running:
Code:
fglrxinfo



Install XBMC

1. Start the installation:
Code:
sudo apt-get install xbmc

2. If you want, you can install any of the following addons:
Code:
sudo apt-get install xbmc-skin-*
sudo apt-get install xbmc-eventclients-*
sudo apt-get install xbmc-scripts-*


Make the system log in automatically

1. Make the xbmc user log in to tty1 automatically:
Code:
sudo vi /etc/event.d/tty1
change:
Code:
[color=red]exec /sbin/getty 38400 tty1[/color]
to:
Code:
[color=green]exec /bin/login -f xbmc </dev/tty1 > /dev/tty1 2>&1[/color]

2. Create the .bash_profile file:
Code:
vi ~/.bash_profile
Insert into the new file:
Code:
case "`tty`" in
/dev/tty1) clear && startx &>/dev/null;;
esac

3. Make XBMC start with X:
Code:
vi ~/.xsession
Insert into the new file and save:
Code:
exec xbmc --standalone

Add power management

1. Add power management utilities so XBMC can control the HTPC's power functions:
Code:
sudo apt-get install pm-utils

2. Add the xbmc user to the power utilies groups, thanks to Pvt_Ryan for the commands:
Code:
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


Restart and your computer should automatically log in, startx, and launch XBMC.
Now you just need to configure XBMC to use the proper resolution and calibrate the screen.
Enjoy!




Optional

Install a splash screen
The XBMC splash screens are done by du-duke and can be found at his blog: http://du-duke.blogspot.com
I will be installing Pulsating-Logo as an example, but these instructions should work for any of his splash screens.

1. Install the available splash screens:
Code:
sudo apt-get install usplash-theme-xbmc-*

2. Set the splash screen you want to use:
Code:
sudo update-alternatives --config usplash-artwork.so

3. Configure usplash with your TV's resolution:
Code:
sudo vi /etc/usplash.conf

4. Add at the bottom, use whatever resolution your TV can handle:
Code:
xres=1920
yres=1080

5. Update the initrd image:
Code:
sudo update-initramfs -u

6. Reboot.


If you need sound over HDMI, take a look at nmiller's post:
http://forum.xbmc.org/showthread.php?tid...&page=6#58


Sources
http://forum.xbmc.org
http://wiki.xbmc.org/?title=XBMCbuntu
http://wiki.xbmc.org/?title=HOW-TO:_Inst...ep-by-step
https://help.ubuntu.com/community/Instal...orySystems
https://help.ubuntu.com/community/USplas...ationHowto
https://help.ubuntu.com/community/SoundTroubleshooting
http://du-duke.blogspot.com
https://help.ubuntu.com/community/BinaryDriverHowto/ATI
Reply


Messages In This Thread
[LINUX] HOW-TO make a minimal Ubuntu Jaunty install with XBMC - by draggy - 2008-10-11, 06:48
[No subject] - by draggy - 2008-10-11, 06:50
[No subject] - by assen - 2008-10-12, 13:54
[No subject] - by draggy - 2008-10-12, 19:03
[No subject] - by althekiller - 2008-10-12, 19:41
[No subject] - by draggy - 2008-10-12, 22:42
[No subject] - by gilgongo - 2008-10-13, 22:11
[No subject] - by BLKMGK - 2008-10-14, 05:30
[No subject] - by ashlar - 2008-10-14, 15:59
[No subject] - by mpw222 - 2008-11-06, 10:00
[No subject] - by ringgh0st - 2008-11-06, 21:24
[No subject] - by P5ycho - 2008-11-07, 14:56
[No subject] - by gyrene2083 - 2008-11-30, 07:25
[No subject] - by BLKMGK - 2008-12-01, 04:33
[No subject] - by gyrene2083 - 2008-12-01, 23:06
gcc? - by woleium - 2008-12-01, 23:34
[No subject] - by gyrene2083 - 2008-12-02, 05:48
[No subject] - by gyrene2083 - 2008-12-02, 18:05
[No subject] - by atlas1999 - 2009-01-31, 23:32
[No subject] - by erix - 2009-02-15, 13:02
[No subject] - by draggy - 2009-02-15, 22:12
[No subject] - by andrpro - 2009-02-16, 16:08
[No subject] - by draggy - 2009-02-16, 19:06
[No subject] - by draggy - 2009-02-18, 06:09
[No subject] - by JBNY - 2009-02-19, 23:02
[No subject] - by draggy - 2009-02-20, 05:33
[No subject] - by BLKMGK - 2009-02-21, 07:51
[No subject] - by draggy - 2009-02-21, 07:57
[No subject] - by ant_thomas - 2009-03-26, 01:08
[No subject] - by Pvt_Ryan - 2009-05-03, 03:50
[No subject] - by Raphael Barros - 2009-05-18, 04:56
[No subject] - by draggy - 2009-06-18, 05:35
[No subject] - by RT-3 - 2009-06-19, 18:03
[No subject] - by draggy - 2009-06-19, 19:57
[No subject] - by aron - 2009-06-19, 22:32
[No subject] - by RT-3 - 2009-06-20, 00:09
[No subject] - by spuck - 2009-06-20, 19:49
[No subject] - by nmiller - 2009-06-25, 01:33
[No subject] - by draggy - 2009-06-25, 15:47
[No subject] - by thescorp - 2009-06-25, 18:35
[No subject] - by draggy - 2009-06-25, 20:08
[No subject] - by thescorp - 2009-06-25, 20:19
[No subject] - by nmiller - 2009-06-26, 00:40
[No subject] - by nmiller - 2009-06-26, 00:50
[No subject] - by Pete_London - 2009-06-26, 08:03
[No subject] - by DocViper - 2009-06-26, 11:15
[No subject] - by thescorp - 2009-06-26, 14:37
[No subject] - by Renbad - 2009-06-29, 05:27
[No subject] - by DocViper - 2009-06-30, 09:28
[No subject] - by Renbad - 2009-06-30, 10:46
ATI driver install issue - by piccolo0u812 - 2009-07-03, 14:42
[No subject] - by piccolo0u812 - 2009-07-03, 15:23
[No subject] - by ultrabrutal - 2009-07-04, 23:02
[No subject] - by nmiller - 2009-07-08, 20:39
[No subject] - by ultrabrutal - 2009-07-09, 08:42
[No subject] - by ultrabrutal - 2009-07-09, 10:48
[No subject] - by nmiller - 2009-07-10, 23:03
[No subject] - by newb2linux - 2009-07-15, 02:39
[No subject] - by tidan - 2009-07-21, 21:03
[No subject] - by nmiller - 2009-07-21, 21:29
[No subject] - by j0bro - 2009-07-21, 21:41
[No subject] - by tidan - 2009-07-21, 22:09
[No subject] - by cyberpark - 2009-07-21, 22:19
[No subject] - by tidan - 2009-07-21, 23:22
[No subject] - by DocViper - 2009-07-22, 20:53
[No subject] - by truant - 2009-08-28, 01:59
[No subject] - by truant - 2009-09-03, 03:34
XBMC not starting - by Ninerian - 2009-09-06, 23:59
[No subject] - by harryzimm - 2009-09-07, 00:04
[No subject] - by DocViper - 2009-09-07, 08:37
[No subject] - by Jarny - 2009-09-07, 10:34
[No subject] - by Jarny - 2009-09-07, 14:31
[No subject] - by draggy - 2009-09-12, 05:13
[No subject] - by Methanoid - 2009-09-30, 22:57
[No subject] - by draggy - 2009-09-30, 23:24
[No subject] - by Ticko - 2009-10-25, 16:21
[No subject] - by Darknight - 2009-10-30, 22:09
[No subject] - by biggles - 2009-10-30, 22:40
[No subject] - by Darknight - 2009-10-31, 00:11
[No subject] - by terminalx - 2009-11-04, 11:47
[No subject] - by draggy - 2009-11-04, 16:16
[No subject] - by terminalx - 2009-11-04, 19:18
[No subject] - by draggy - 2009-11-04, 19:38
[No subject] - by tidan - 2009-11-04, 19:41
[No subject] - by Giland - 2009-12-06, 21:43
[No subject] - by selleck - 2009-12-29, 03:35
[No subject] - by evanl81 - 2010-04-12, 15:18
[No subject] - by draggy - 2010-04-12, 16:47
[No subject] - by evanl81 - 2010-04-12, 16:52
[No subject] - by draggy - 2010-04-12, 17:20
[No subject] - by evanl81 - 2010-04-12, 17:36
[No subject] - by Blueone - 2010-10-07, 11:06
Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO make a minimal Ubuntu Jaunty install with XBMC6