Results 1 to 5 of 5

Thread: Boxee on Ubuntu Server 11.04 (64bit)

  1. #1
    Join Date
    Jan 2011
    Posts
    25

    Default Boxee on Ubuntu Server 11.04 (64bit)

    So far so good, I have Boxee running on Ubuntu Server 11.04. However, I still have some tweaks I cant figure out because Im not linux techy enough.

    Here's what Ive done so far:

    Installed Ubuntu 11.04 server with all default settings

    Once installed, rebooted and logged in

    Run ifconfig -a and note the correct network adaptor. I have used eth0 for this documentation

    sudo nano /etc/network/interfaces

    Add the following:
    Auto eth0
    iface eth0 inet dhcp

    Restart and run ifconfig -a to check its picked up an ip address

    echo "deb http://apt.boxee.tv lucid main" | sudo tee /etc/apt/sources.list.d/boxee.list

    sudo apt-get update

    sudo apt-get download boxee

    [you have to rename the file as ubuntu cant work with the original filename]
    mv boxee-xxxxxxxxx.deb boxee.deb

    mkdir boxee
    dpkg-deb -x boxee.deb boxee
    dpkg-deb --control boxee.deb boxee/DEBIAN
    nano boxee/DEBIAN/control
    [edit the Depends: line replacing libxmlrpc-c3 to libxmlrpc-c3-0]
    dpkg -b boxee boxee1.deb

    sudo dpkg -i --force-depends boxee1.deb
    sudo apt-get -f install

    sudo apt-get install binutils

    sudo reboot

    ----------------------------------------------
    Now at this stage, when i try to run /opt/boxee/run-boxee-desktop, i get an error in shared library libXmu.so.6

    However, when I install sudo apt-get install xorg gdm gnome-core and reboot, it goes away. Although I would prefer not to have to install a GUI

    ----------------------------------------------
    The only parts left to figure out is:
    How to start the boxee-desktop from boot time without having to log in to linux
    and how to solve the shared library issue so i dont have to install a gui
    Last edited by ITManx; August 12th, 2011 at 06:02 PM.

  2. #2
    Join Date
    Aug 2011
    Posts
    1

    Default srsly?

    I was under the impression that boxee didnt have the ability to draw a desktop on its own and needed a desktop environment to run ontop of.

    someone plz correct me if im wrong.

    im pretty sure you are gonna need a desktop environment that takes care of the interface between the graphics adapter and the UI because, well Boxee is a GUI application.

    i dont see what the use of running it on a framebuffer or a console is.

    again, someone plz correct me if im wrong.

  3. #3
    Join Date
    Apr 2009
    Posts
    2

    Default

    You don't need a window manager or a full desktop enviroment (Gnome, KDE, Fluxbox, ...), you can just modify ~/.xinitrc for the user that is going to run boxee. This assumes that you don't want to do anything else with the X session since you won't have anything but the boxee gui to work with. There's no window manager so you can't manage windows, this means no moving windows, min/maximize, focusing, etc. But if you are going for an HTPC hopefully you have a dedicated user ('boxeeUser' in the following code) that automatically logs on and spawns an X session, so the lack of a usable desktop for said user isn't an issue.

    This is my setup on Lucid, it should work fine unless the ubuntu team moved the tty settings.

    Auto login:
    Code:
    cp /etc/init/tty1.conf /etc/init/tty1.conf_orig
    edit /etc/init/tty1.conf: (you will need root privileges, use sudo)
    Code:
    start on stopped rc RUNLEVEL=[2345]
    stop on runlevel [!2345]
    respawn
    exec /bin/login -f boxeeUser </dev/tty1 > /dev/tty1 2>&1
    NOTE: change -f boxeeUser to -f <user> depending on what user you're using to launch boxee. My user is named 'boxeeUser', that line does not launch anything, just logs in the user specified. (You really just need to change the exec line, this is my entire conf file)

    So now the user is logged in automatically, respawning whenever the user is logged out or killed. Next we need to set the user to spawn a X session when logged in.

    Auto-spawn X:
    edit /home/boxeeUser/.bash_profile: (again, change boxeeUser to the correct username. Make this file if you need to. If there's already stuff in it add this to the bottom, or top if that doesn't work. If all else fails, backup the existing .bash_profile and make a new one with just this.)
    Code:
    case "`tty`" in
    /dev/tty1) clear && startx &>/dev/null && logout;;
    esac
    Now whenever the user logs on using tty1 (since we used tty1 (tty1.conf) as the autologin terminal), it clears the screen, runs startx to start a X session, and waits until that session quits to logout (which just causes the user to be logged in again via respawning). This tty1 check allows you to login as the boxee user normally in other places, like SSH or other VTs.
    Finally we need to configure X11 to launch just the boxee GUI by default for this user.

    Set X11 to use boxee:
    edit /home/boxeeUser/.xinitrc: (I mean it, change boxeeUser to your username. Again, make this file if it doesn't exist yet. If there is already stuff in this file, back it up and replace it with just the following code. Or comment out all the existing lines with #'s. I.E. '# startfluxbox')

    Code:
    #nvidia-settings --display :0 -l
    #nvclock -F 100 -f
    exec /opt/boxee/run-boxee-desktop
    Note that I run nvidia-settings commands to setup my card correctly before boxee launches (commented out in the above for copy/pasters). You can put any command you want before boxee launchs, but make sure the process will exit else you will never see boxee appear since it's waiting for the earlier command to finish. If the command you want to launch doesn't exit (deamon or something) add a '&' after the line which will run the command in the background. E.G. '/usr/bin/gamepadDeamon &'. If you learned about '&' just now, go read up on bash shortcuts/tricks, there's a lot of very useful stuff there.
    DO NOT PUT A '&' AFTER THE BOXEE COMMAND, X11 quits when it hits the end of the script, so you want it to wait for boxee.

    And that's it. After a reboot tty1 should log in your boxee user automatically, .bash_profile will launch a X session, and .xinit will tell X11 to launch boxee. Once you quit boxee (or it crashes) the X session will close, which will log you out, then tty1 will respawn and log you in again starting the whole thing over. It's quite nice, if boxee is acting up you can relaunch it simply by quitting, and if it crashes it pops right back up. Sometimes boxee might close/crash hanging startx and leaving you at a terminal, or leaving you in a fully blank X session. If this happens switch to tty1 (ctrl-alt-f1), hit ctrl-c a few times until the prompt appears again, and run the 'exit' command. If all else fails kill the login session as root. You can find the PID using 'ps -A | grep login | grep tty1', then just 'sudo kill -9 <pid>'.


    FYI: If you do want a desktop environment to use occasionally, say for debugging or games, you can always :
    • Switch to another VT via ctrl-alt-f[2-6] (I use ctrl-alt-f2 but it doesn't matter, anything between f2 and f6). A Login prompt will appear.
    • Login as a normal user
    • Run startx -- :11 (This runs a new X session using virtual display :11. If it complains you can try to increment this number until you find a free virtual display to use. You need to define :11 since the first X session will take :10, the default, so your boxee user will almost always be using it)

    This will spawn a new x session using whatever WM you've setup for the normal user, while keeping the auto-launched boxee session alive. You can switch between them using ctrl-alt-f8 and ctrl-alt-f9 (the function key number is determined by the linux distro, so it may be different. Just keep using different f keys, you'll find them)

  4. #4

    Default

    Quote Originally Posted by Cederosa View Post
    You don't need a window manager or a full desktop enviroment (Gnome, KDE, Fluxbox, ...), you can just modify ~/.xinitrc for the user that is going to run boxee.
    This all works great... except...

    I have Ubuntu 11.04 and Boxee installed following the directions laid out in this thread.

    The video is great, the automatic startup is great. I have no sound... When I am the command line I can use mplayer to output audio through spdif. I can also run aplay -l and see:

    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 0: ALC887 Analog [ALC887 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 1: ALC887 Digital [ALC887 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    I can also run alsamixer and verify that volume is up and not muted

    when I run boxee I get no sound and no options in the sound settings area. Also, if I ssh into a different session and attempt to run alsamixer or aplay -l it tells me there are no sound devices present

    any ideas? Am I not passing something to boxee when I load it up?

    i have an ASUS AT3IONT-I deluxe

    any help would be appreciated

  5. #5
    Join Date
    Aug 2011
    Posts
    2

    Default

    So far so intellectual, I bed Boxee pouring on Ubuntu Computer 11.04. Nonetheless, I plant hold whatever tweaks I argot amount out because Im not unix techy enough.

    Here's what Ive done so far:

    Installed Ubuntu 11.04 server with all fail settings

    Formerly installed, rebooted and logged in

    Run ifconfig -a and note the precise network adaptor. I jazz misused eth0 for this substantiation

    sudo nano /etc/network/interfaces
    hey pardner, we don't care for link spam in this town...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •