PDA

View Full Version : Boxee Minimal Install


carseneau
November 19th, 2008, 12:46 PM
This guide turns your old pc into a standalone Boxee machine.

I just installed boxee on a minimal Ubuntu install following this guide (http://xbmc.org/forum/showthread.php?t=38804) from the XBMC forums. I just changed a few things to install boxee instead of xbmc. Full credit goes to draggy on the xbmc forums.

note: This might erase your hard drive if you don't know what your doing in the Ubuntu install. Refer to the Ubuntu Installation guide for information.

note: I tried using Ibex 8.10 first and ran into crazy pulseaudio and double video speed problems so I recommend using Hardy for now but Im sure someone a bit smarter could figure it out.



Installing Ubuntu

Download Hardy Alternative Ubuntu ISO by using the check box near the bottom of the page: http://www.ubuntu.com/getubuntu/download

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

At the first screen, select the English Language, then press F4 to select mode, and choose command line install.

When the installation asks for a username, enter boxee, and give it a password.

Finish the installation and reboot.

Log in to your new OS with the boxee user.


Updating the computer

Add the Boxee repositories to the sources list:

$ sudo nano /etc/apt/sources.list

Add to the bottom of the list:

*****note: Follow the boxee download instructions to find the source to add*******

Update the computer:

$ sudo apt-get update
$ sudo apt-get upgrade

Optional: Add ssh to your new installation if you want to do the rest of the setup remotely.

$ sudo apt-get install ssh

Install Sound

$ sudo apt-get install linux-sound-base alsa-base alsa-utils

After installing the sound utlities, I found that all of my channels were muted. If you're having problems, this is the first place I'd look:

$ alsamixer

Use your arrow keys and turn all of the volumes up for the following: Master, Master M, PCM, (Leave this Surround on Shared), Surround, Center. Make sure none of the ones with the volumes up are muted. Muted channels have a grey MM at the bottom. Channels that are not muted have a Green box with a OO inside. To mute/unmute a channel, select the channel and press the m key.

Press the escape key to exit

Now save the audio volumes:

$ sudo alsactl store 0


Install the graphical environment

$ sudo aptitude install xorg

Install nvidia drivers (or other gfx drivers)

Note: This guide assumes the system has a nvidia graphics card. If you use ATI, you can try looking here: https://help.ubuntu.com/community/BinaryDriverHowto/ATI to figure out how to configure ATI cards.
Note2: I used a different way to install the drivers using sudo aptitude install envyng-core and then running envyng -t I'm not sure which way is best so I'll post both ways here

$ sudo apt-get install nvidia-glx-new

---------OR---------

$ sudo aptitude install envyng-core
$ sudo envyng -t

Configure xorg:

$ sudo nvidia-xconfig

Install Boxee

$ sudo aptitude install boxee



Make the system log in automatically

$ sudo nano /etc/event.d/tty1
Change:
exec /sbin/getty 38400 tty1
To:
exec /bin/login -f boxee </dev/tty1 > /dev/tty1 2>&1
Create the .bash_profile file:
$ nano ~/.bash_profile
Insert into the new file:
case "`tty`" in
/dev/tty1) clear && startx &>/dev/null;;
esac
Make Boxee start with X:
$ nano ~/.xsession
Insert into the new file and save:
exec /opt/boxee/run-boxee-desktop

Once all this is done you can install lirc or whatever you need to get your remote working.

P.S. This takes my 1.7ghz p4 about 45 seconds from boot to boxee, if anyone has any ideas for reducing boot time let me know please


GOOD LUCK!!

marcel
November 19th, 2008, 02:20 PM
great ..clear instructions..:)

jdarnold
November 20th, 2008, 11:29 AM
I imagine to play DVDs you'll have to do what I did on my vanilla Ubuntu and add the restricted format library - https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs

woleium
November 25th, 2008, 03:49 PM
Nice guide.

I would as recommend reading this (http://lifehacker.com/5098369/more-ubuntu-kung-fu) guide on reducing your boot time.

carseneau
November 25th, 2008, 03:59 PM
cool thanks

oliv
December 17th, 2008, 09:14 AM
would be nice if someone could release a boot optimised boxee-linux distro as iso :)

Oli

robgue
January 17th, 2009, 10:36 PM
that's a good idea. a custom image that loads boxee ala mythbuntu

draggy
January 19th, 2009, 09:33 AM
I'm glad someone found my guide useful. :)

I may add one for Intrepid after I work out the bugs.

medix
January 20th, 2009, 07:56 PM
I've definitely got something out of wack..

The install works great with Hardy 8.40 on an nVidia FX 5500, but when I try to play anything streaming, it just sits there. Any thoughts? Works great on my MacBook, so I'm wondering if I'm missing a package (forgot to install?) I would think that apt would pick up any missing dependencies along the way.

The machine is a Gateway E-series, 2.8 GHz P4 with a gig of memory.

medix
January 20th, 2009, 07:57 PM
I should also add that stuff like podcasts works just fine.. but still no Hulu, Joost, etc..

protcron
January 21st, 2009, 09:49 AM
The install works great with Hardy 8.40 on an nVidia FX 5500, but when I try to play anything streaming, it just sits there. Any thoughts? Works great on my MacBook, so I'm wondering if I'm missing a package (forgot to install?) I would think that apt would pick up any missing dependencies along the way.

This sounds like something I missed before and finally found in my Live CD build. Try this:

apt-get install libnss3-1d

medix
January 21st, 2009, 08:33 PM
That's fantastic! Works great now.. ;)

Just have to make sure to write it down to I don't have to go through all this trouble the next time.. ;)

Thanks agian..

Thoku
January 26th, 2009, 07:24 PM
I've used this to install ubuntu. However now, without modding the config files, if I try to startx I just get a black screen and don't seem to even be able to switch to another tty (ctrl+alt+f1,f2 etc). I believe this is because the keyboard is not recognised after X has been started. Any ideas?

protcron
January 27th, 2009, 04:58 PM
Oops. I edited the wrong thread.....

candrist
February 8th, 2009, 01:38 PM
I really do not like all the text when booting up so I decided to go with the boxee usplash theme. Here is the steps I took to install this.


1. Install usplash and usplash theme:
sudo apt-get install usplash usplash-theme

2. Download boxee usplash:
cd /usr/lib/usplash
sudo wget http://apt.boxee.tv/dropbox/usplash-theme-boxee.so

3. Install boxee usplash theme:
sudo update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/usplash-theme-boxee.so 55

4. Set boxee usplash as default:
sudo update-alternatives --config usplash-artwork.so
and select the /usr/lib/usplash/usplash-theme-boxee.so file

5. The last step is to update the "initial RAM disk", that is used when your system boots up:
sudo update-initramfs -u

Reboot and you should have a cool boxee logo.

draggy
February 8th, 2009, 05:14 PM
Nice work! I was just looking for a boxee splash screen

Dorv
March 25th, 2009, 04:35 PM
What's the upside to using the 'Alternative' install disc over the regular Live CD?

I'm not as familiar with Linux as I'd like to be, but I've got a 2 year old computer I'm getting back as the old laptop I had tried to use for a 8.04/Boxee unit just isn't powerful enough. I'd much rather get into the Windows Alpha, but am awaiting word back.

Until then, though, I've got to figure the best method for installing Boxee on this unit (I'd Hackintosh it if I thought I could manage it better).

Neondog82
March 29th, 2009, 10:33 AM
Shouldn't something like this be stickied or at least added to a How To Sticky for Linux? Has anyone tested Boxee with Jaunty yet? I will give it a shot when my system gets here but I have not idea what I am looking for. Thanks for the awesome tutorial, it is exactly what I am looking for.

BrainwreckedTech
May 3rd, 2009, 12:08 AM
I got this half-way working in Jaunty. I used the 9.04 32-bit server CD and followed the directions up to the point of getting the box to log in and run boxee automatically. My only notes so far are this:

The 9.04 server CD has a Minimal Install option. It's located in one of the Fn menus.

Manually install header files so nvidia-glx-nnn can compile. The package does rely on header files, but the dependencies are bit wonky and will install the generic header files unless you install the server header files first. sudo apt-get install linux-headers-server

Manually add user to the audio and video groups or else video playback hangs. This is something I think is specific to Ubuntu Server and may not be this way with Desktop installs. (Server = more secure, Desktop = more functionality) sudo usermod -a -G audio,video [user]

The boxee usplash theme may or may not work. I mis-typed the line given in this thread to install the boxee usplash theme and it was complete pain in the rear to get the default ubuntu splash back. For now I'm sticking with the default ubuntu splash.

Manually configure xorg.conf because my HDTV lies over VGA and says it only supports 640x480, 800x600, and 1024x768. My HDTV does in fact support quite a few other modes over VGA, including 1280x720 and 1366x768, and the nvidia config utility doesn't show them. I'll post a custom xorg.conf file some time in the near future with some custom wide-screen resolutions that the user can un-comment and use.

BrainwreckedTech
May 6th, 2009, 07:40 PM
Everything works as expected in Jaunty. Well, the usplash thing is still up in the air as I admittedly screwed that up and am unwilling to test it again. But these directions pretty much still hold.

Found out something odd about my TV's purported 1366x768. If I send it either a 1360x768 or 1368x768 signal, the TV will report 1366x768. However, the TV can't auto-adjust 1360x768 well enough and the picture is left "hanging" off to the right. The 1368x768 resolution is auto-adjusted properly.

As promised, here's a copy of my xorg.conf file. While a configuration for 1368x768 has been included, the corresponding lines have been commented out. You can switch between 1280x720 and 1368x768 by adjusting the commenting accordingly. Again, this is only needed if your HDTV lies about the resolutions it supports. Otherwise, I recommend using nVidia's config utility, discussed earlier in the thread..

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "glx"
EndSection

Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Modeline "1280x720@60" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
# Modeline "1368x768@60" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
Option "UseEDID" "False"
Option "ModeValidation" "NoEdidModes, NoMaxPClkCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoEdidMaxPClkCheck"
Option "NoLogo" "True"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x720@60"
# Modes "1368x768@60"
EndSubSection
EndSection

quotaholic
July 11th, 2009, 04:51 PM
Just got my XZotac 330 ion board with 9400 nvidia. Though it would be nice to make a mini itx boxee media center.

I first tried the ubuntu instructions and the usplash thing just does not work on the current instructions. I read ahead and made sure I typed it out perfectly. I think that usplash needs to be configured to be more than 640x480, possibly its a grub limitation. Not sure. In any event audio on jaunty is just ugly. I tried to get either my optical or coaxial spdif audio outs to work. alsamixer showed both but did not allow me to toggle them on from their off state.

Tried debian. As I have a zotac board with the new atheros based mini pcie card I needed to be kernel 2.6.27 or better. Lenny is on 2.6.26 still and I couldnt work around. I tried to install a newer kernel but get in to version mismatch hell when it cam time to build the nvidia driver.

Can anyone reccommed a distro that has half way decent audio drivers that handle spdif without 2 gigs of gui programs that they like? I also want to do a minimal install and to boot right to boxee and never want to use analog audio. Or should say I never want to use analog cables. Need to pass analog through digital cables.

BrainwreckedTech
July 11th, 2009, 08:50 PM
Getting the boot splash screen to run in something other than 640x480 is a matter of specifying vga=xxx at the end of the kernel lines in /boot/grub/menu.lst. To keep the change permanent, find defoptions= and add vga=xxx. The correct values for the VGA code can be found at http://www.pendrivelinux.com/vga-boot-modes-to-set-screen-resolution/.

If you're on a TV setup, I don't recommend going any higher than 640x480 because The VGA mode change will also make the console text smaller. Even with a 32" HDTV, 640x480 is as high-res as I'll go because if I have to do something at the console, I'll have to get off the couch.

However, I do recommend using something higher than 8-bit color. With Ubuntu 9.04, usplash + text makes the colors go weird on shut-down. The old "ran out colors" effect I haven't seen since the days of DOS and Windows 3.1.

As for the Alsa mixer thing...

Can't help you out specifically, but I can at least give some basic pointers. My alsamixer shows Master, PCM, Front, and Headphones. "Front" is actually the analog ports in the back. "PCM" would be any sound that the computer itself generates. Make sure those at least have their volumes up. It could be you have no Front volume and the audio chipset auto-switches between analog a digital.

As I don't have a computer in which I use digital output, this is theory, but digital will only eliminate interference picked up from outside the case. If the audio chipset/circuitry is picking up static and interference inside the case, you'll still get that.

quotaholic
July 12th, 2009, 07:40 PM
I will play with the splash thing after I can get digital audio working. I followed the instructions to the letter on a fresh jaunty install and had no splash. Looks like it tried. I took video of init and slowed the video down to get the 640 mentions. Not sure its the root cause though. If there needs to be further modifications to make it work then they should be tacked on to the original post.

For your reference I have had all the adjustments in alsa mixer up all the way as well as making sure playback volume was up all the way in boxee. With digital audio we can enjoy multi-channel audio formats. AKA surround sound. There are several audio formats that have to be transported as a bitstream for proper decoding at aa home theater receiver or the like. Popular are formats like Dolby Digital and DTS. Dolby Digital in stock form is a 441 kb/s 16bit stream of ones and zero's. Dolby digital ex is 640 to include 2 more chennels. DTS is ~1536 kb/s and DTS ES is a 24 bit encoded stream. These are formats that most dvd's come encoded in and can not be transported in analog form.

You mentioned PCM. Yes PCM can be transported over digital mediums however all of the media I own is in mulitchannel format. Thus I need to plug a single 75 ohm digital coaxial cable or optical cable to my surround sound receiver (digital pre amp actually) to listen to them as they were meant to be listened to. Although I greatly appreciated the guide my post was in effort to point out that it did not cover digital audio. The tutorial should mention near the top that it only applies to analog two channel audio.

SPDIF and Toslink are the popular connectors that we see in the residential world for transporting both multichannel audio and regular pcm, or 2 channel audio, to its destination.

Your indication that digital audio simply eliminates the interference is incorrect. Fiber optic media is not emi prone and coaxial is less emi prone that line level cables or RCA cables. As a result optical media is emi proof. Coaxial and line level can still fall victim to emi interference.

quotaholic
cedia certified ccpi1

agentlame
July 12th, 2009, 08:14 PM
boxee splash needs to be re-compiled for jaunty.

i'm am actually re-building it for my self. i will post it to my dropbox, in a bit.

agentlame
July 12th, 2009, 08:41 PM
here ya go:

wget http://files.getdropbox.com/u/169651/.share/boxee-artwork-usplash-0.1-jaunty.deb
sudo dpkg -i ./boxee-artwork-usplash-0.1.deb


ubuntu will automatically set the boxee usplash as the default.

bano
July 15th, 2009, 09:10 PM
I'm not an Ubuntu user.
I start with a Debian netinstall (Sid repo) and then install some packages.

I don't want to open new thread so I write here.

Note there are some dependencies problems... so i don't know if this is usefull or there are others solutions in the forum (I don't check) but this (for who are not familiar with commands line) simple line should solve the problem (...I hope :) )

dependencies: liblzo1, libdirectfb-1.0 and no boxee entry
control the right access on sudo or use su (root)


echo "deb http://apt.boxee.tv intrepid main" | sudo tee -a /etc/apt/sources.list; sudo apt-get update; wget http://ftp.us.debian.org/debian/pool/main/l/lzo/liblzo1_1.08-3_i386.deb http://ftp.us.debian.org/debian/pool/main/d/directfb/libdirectfb-1.0-0_1.0.1-11_i386.deb && sudo dpkg -i lib*.deb; sudo apt-get install boxee; sudo cp /opt/boxee/run-boxee-desktop /usr/bin/boxee && boxee

SorryGoFish
August 20th, 2010, 09:32 AM
These instructions seem to work fairly well for 10.04.

I did not try the boot-splash. Has anybody done this in 10.04. Does it work?

Also, how do we get the exit option "Suspend" to do this?

tjones
August 22nd, 2010, 08:09 PM
Ubuntu 9.10 auto login/start

I didn't see this posted anywhere in the thread but the tty1 reference is different for ubuntu 9.10

http://tombuntu.com/index.php/2010/01/01/enable-automatic-login-in-ubuntu-9-10-server/

With 9.10 the /etc/event.d/tty1 edits are now performed at.

/etc/init/tty1.conf

change

exec /sbin/getty 38400 tty1

to

exec /bin/login -f boxee </dev/tty1 > /dev/tty1 2>&1


This is probably the same location for 10.04 I haven't tried it yet.

crasher35
May 26th, 2011, 07:05 PM
I'm having problems following this guide.

For starters, I'm running Ubuntu Server 11.04 Natty Narwhal. There is a problem with the boxee package on Natty Narwhal, it's looking for libxmlrpc-c3 however with natty, the package has been renamed to libxmlrpc-c3-0. So I followed this guide (http://maxolasersquad.blogspot.com/2011/05/install-boxee-on-ubunty-1104-natty.html) to get past that and instead of using sudo apt-get install I repackage the .deb with dpkg and then install it with dpkg. No problems there.

The problem I'm having with following this guide is that I'm running a machine that has integrated Intel graphics, not nVidia or AMD. What package do I need to install to get this to work? As of now, when I start xorg (sudo startx) it just hangs. I'm assuming that is because there are no graphic drivers installed and boxee doesn't want to start either, I'm assuming because xorg won't start. Anybody have any suggestions?

Thanks a million!

naxir
May 27th, 2011, 04:55 PM
I'm having problems following this guide.

For starters, I'm running Ubuntu Server 11.04 Natty Narwhal. There is a problem with the boxee package on Natty Narwhal, it's looking for libxmlrpc-c3 however with natty, the package has been renamed to libxmlrpc-c3-0. So I followed this guide (http://maxolasersquad.blogspot.com/2011/05/install-boxee-on-ubunty-1104-natty.html) to get past that and instead of using sudo apt-get install I repackage the .deb with dpkg and then install it with dpkg. No problems there.

The problem I'm having with following this guide is that I'm running a machine that has integrated Intel graphics, not nVidia or AMD. What package do I need to install to get this to work? As of now, when I start xorg (sudo startx) it just hangs. I'm assuming that is because there are no graphic drivers installed and boxee doesn't want to start either, I'm assuming because xorg won't start. Anybody have any suggestions?

Thanks a million!

You don't need to run startx with sudo. xorg usually installs with a bunch of video card drivers, but in case it didn't come with the intel drivers:

psion@garcon:~$ apt-cache search xorg |grep -i intel
xserver-xorg-video-intel - X.Org X server -- Intel i8xx, i9xx display driver

also note, you'll need to grab a window manager if you haven't already. i.e.:

sudo apt-get install fluxbox

The default 11.04 server edition doesn't come with any programs with guis, so you might want to at least install xterm before running startx.

edit:
note, if you want to run boxee on your htpc but you don't have a keyboard/mouse hooked up, ssh into it and type the following:

DISPLAY=:0.0 /opt/boxee/Boxee &

crasher35
June 9th, 2011, 11:06 PM
Thank you so much! I got it to launch! :D

Now, for some reason it is running really slow. I know something's not right because I had installed it once before on Ubuntu Desktop on this same machine and it was pretty zippy. I have to wait about 2 seconds before the UI responds to anything that I do.

I will continue to investigate but if you have any insight, that would be greatly appreciated!

I know the first time I ran it, it said it didn't have any sound... :/