HTPC: FreeBSD for your TV


by ross at 13:34:57 on November 7, 2012

The user

Create xbmc user:

# pw groupadd xbmc
# pw useradd xbmc -g xbmc -G wheel -m -s /bin/tcsh
# passwd xbmc

Get the dot-files:

# cd /home
# fetch
# tar jxvf xbmc.tar.bz2
# chown -R xbmc:xbmc xbmc
# rm xbmc.tar.bz2

Or you can download all the dot-files one by one.


With the dot-files above xbmc user session starts with launching cairo-dock, firefox and xbmc (both are without decorations and maximized).

By default xbmc starts in fullscreen mode thus preventing access to the other applications running.

So the first time xbmc is started press the backslash key — xbmc will switch to windowed mode and will remember to stay windowed the next time you start it.

After pressing the backslash you should quit both xbmc and firefox so you can get to Openbox menu (right click on the desktop). Select nVidia Settings there, then check GPU0 >> DFP1 >> Controls >> Overscan compensation (make sure the picture fits perfectly into the screen).

Logout (using the Openbox menu) and login again. This time xbmc is launched windowed so it gets undecorated and maximized by devilspie.

Move mouse to the top center part of the screen to see the dock.

Zooming with Firefox:

Install NoSquint addon to manage site-specific zoom levels and color settings.

It adds zoom in and zoom out buttons to the toolbar. You can set defaults in its preferences window. I set default zoom to 200%, for instance.

Conky on the desktop

You will find .conkyrc ready with the other dot-files. It is written for the background included (hal2.png, FullHD) and 300x300 dpi resolution.

If you are going to use it install the font:

# cd /usr/local/lib/X11/fonts/local
# fetch
# mkfontscale
# mkfontdir

Autostarting X

Here is described one of the ways you can start X automatically.