Root Page :: Recent Changes :: Search

Windows Programming

Linux Info

Cookbook

Random

BarebonesUbuntu

Here's how to set up a barebones Ubuntu install, with auto-login X. In this example, we're only starting a XBMC gui.

Ubuntu Packages

I install all base repositories (main, universe, multiverse), in addition to medibuntu and xbmc's.

The Packages

I like to set the packages installed in aptitude to "automatic", and flag just what will keep everything alive.

Minimal Packages

Here's a good set of minimal packages:

Multimedia, X, Services and Utilities

Build and Development

Extras

nvidia Drivers

Here's how to enable the nvidia binary drivers, the Ubuntu way.

 jockey-text -l
 jockey-text -e xorg:nvidia-185

X setup

By default, with the installed packages, you can run startx to get fluxbox. Once you're confident that things are set up right, we can get the system to load XBMC on boot.

Boot-time Configuration

We need to set up a boot-time TTY to auto-login a user (xbmc).

Create the file /etc/init/tty7.conf:

 # tty7 - openVT (auto X)

 start on runlevel [23]
 stop on runlevel [!23]

 respawn
 exec /bin/openvt -w -- /bin/su - xbmc -c /usr/bin/startx
 console none

Xorg Initialization

To load a custom program (instead of what startx will load)...

Create ~/.xinitrc:

 xset -dpms s off
 xsetroot -solid black

 dbus-launch --exit-with-session pulse-session xbmc-standalone

In this case, we explicitly disable DPMS to prevent the screen from blanking.

USplash

If you install usplash, you'll want to configure the resolution and a custom logo.

Modify /etc/usplash.conf:

 xres=1920
 yres=1080

Set a custom logo:

 $ update-alternatives --config usplash-artwork.so
 $ update-initramfs -u

Setup Sensors

Since we want to track the temperature sensors with lm-sensors, we need to configure it.

 $ sensors-detect

Setup Audio

First, make sure the ALSA switches are set up right. For my output (HDMI), I had to un-mute "IEC958", "IEC958 Default PCM", "IEC956 1".

For PulseAudio, we need to get it to default to the HDMI output. Modify /etc/pulse/default.pa:

 load-module module-alsa-sink device=hw:0,3
2009-10-28 01:05:34 :: Source :: History :: Backlinks :: Print