Sonntag, 13. Juli 2014

Ubuntu 14.04 minimal + Intel NUC + XBMC

In this small guide I describe how to install XBMC Gotham on Intel NUC running minimal Ubuntu Trusty. I have DN2820FYKH Kit, but it should work for any Bay Trail NUC.

First of all install a standard ubuntu server edition, just download the iso and use unetbootin.

After installation, update your repos and install necessary packages.

sudo apt-get update
sudo apt-get install xinit x11-common x11-utils xorg libva-drm1 libva-intel-vaapi-driver i965-va-driver vainfo lightdm lightdm-gtk-greeter udisks upower acpi acpi-support usbmount

Trusty has only Frodo in repos, so we install XBMC from official ppa repository.  

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update 
sudo apt-get install xbmc xbmc-bin

In order to automatically boot in XBMC at start, we need adjust lighdm configuration.
Check if "/usr/share/xsessions/XBMC.desktop" exists, if no make a new one with this content.

[Desktop Entry]
Name=XBMC
Comment=This session will start XBMC Media Center
Exec=xbmc-standalone
TryExec=xbmc-standalone
Type=Application


now change lighdm configuration with your favorite text editor, where "bob" is your user. 

sudo vim /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf

[SeatDefaults]
autologin-user=bob
autologin-user-timeout=0
user-session=XBMC
greeter-session=lightdm-gtk-greeter

In order to mount drives and reboot/poweroff NUC we need add XBMC some sudo permissions.

sudo visudo

Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt # XBMC
Cmnd_Alias MOUNT_CMDS = /bin/mount, /bin/umount # XBMC
bob ALL=(ALL) NOPASSWD: ALL # XBMC
bob ALL=NOPASSWD: SHUTDOWN_CMDS, MOUNT_CMDS # XBMC

Well, thats all, reboot your NUC and you should boot straight into XBMC.  

A few tips to speed up a boot time

  • Use SSD.
  • Use static IP address. (check out "/etc/network/interfaces" for that)
  • Reduce "GRUB_TIMEOUT" to 1 or even 0 in "/etc/default/grub" (don't forget "upgrade-grub" after that)
  • Use UEFI direct boot instead of grub and mbr (theoretically, I never done that due to lack of time) 





Keine Kommentare:

Kommentar veröffentlichen