Skip to content

Instantly share code, notes, and snippets.

@matt-allan
Last active September 26, 2015 01:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-allan/db952996193815a6f033 to your computer and use it in GitHub Desktop.
Save matt-allan/db952996193815a6f033 to your computer and use it in GitHub Desktop.
xbmc setup crouton

boot faster

...and hopefully prevent someone wiping my drive.

remove write protect screw:

https://wiki.archlinux.org/index.php/HP_Chromebook_14#Locating_the_Write-Protect_Screw

edit bios to boot faster:

https://johnlewis.ie/neutering-the-developer-mode-screen-on-your-chromebook/

build chroot

sudo sh -e ~/Downloads/crouton -t core,cli-extra,extension,xbmc,audio,xfce,chrome

recompile the kernel with gamepad support

https://gist.github.com/matthew-james/7cc74bf2457e972670ba

edit XFCE settings

right click on desktop -> application -> settings and startup -> application autostart -> add -> enter xbmc for name and command.

From settings disable all screensaver / screen dimming settings

install packages

Install these packages:

zsnes,mupen64plus,php5,xdotool

netflixbmc / Advanced Launcher

download plugins

For some reason most of the third party repos show anything but repository addons. I've tried force refreshing, deleting the add on databases, and everything else to no avail. Alot of plugins only worked with the latest versions anyway so I just downloaded everything from the github repos.

cd ~/Downloads
wget https://github.com/andrewleech/plugin.video.netflixbmc/archive/master.zip
wget https://github.com/andrewleech/plugin.program.chrome.launcher/archive/master.zip
wget https://github.com/Angelscry/plugin.program.advanced.launcher/archive/master.zip

netflixbmc

The most up to date plugin is here:

https://github.com/andrewleech/plugin.video.netflixbmc

http://forum.kodi.tv/showthread.php?tid=211574

Install chrome launcher, then netflixbmc. We already installed xdotool which adds remote control support to the chrome browser when netflixbmc is running.

advanced launcher

Enable the add on that we downloaded to home/Downloads.

Mupen64plus didn't work with the default application arguments.

After adding n64 launcher highlight it and click c -> edit launcher -> advanced modifications -> modify arguments

delete everything except --fullscreen "%rom%"

Add an exit emulator button to mupen

I'm mapping the L trigger to exit mupen.

sudo apt-get install jstest jstest-gtk

jstest-gtk

Note the joystick id and button id.

dmesg

Note the name in quotes for your controller when you plug it in i.e. [Generic USB Joystick ]

 sudo nano /usr/share/games/mupen64plus/InputAutoCfg.ini

Search for the name from dmesg and comment out the button you are going to remap with a ; i.e. ;L Trig = button(4)

nano ~/.config/mupen64plus/mupen64plus.cfg

Search for 'Joy Mapping Stop' and set your code

Joy Mapping Stop = "J0B4"

setup crouton launcher

https://gist.github.com/matthew-james/a963af86c1605fcc655f

in xbmc programs->advanced launcher->default->c->new launcher->standalone-> select ~/scripts/launchChrome

Alternatively you can add / as a source and select /usr/local/bin/croutoncycle with arguments cros to switch into chromium, and use the crouton extension to switch back.

fix remotes

sudo apt-get install avahi-daemon
sudo nano /etc/rc.local

Right before exit 0 add this line:

sudo /etc/init.d/avahi-daemon start

Now it shows up in airplay but you can't stream to it.

To get the bonjour name:

ps -eaf | grep ava

Mine was linux.local

Now you need to allow connections thru iptables:

dnschneid/crouton#718

sudo apt-get install iptables
sudo nano /etc/rc.local

Add this right before exit 0:

/sbin/iptables -P INPUT ACCEPT

 sudo chmod +x /etc/rc.local

At this point I have given up on airplay, but at least http remotes work.

update xbmc to kodi

sudo nano /etc/apt/sources.list

Add this to the bottom:

deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main 
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main 

sudo apt-get update

sudo apt-get install xbmc

Now everything is in ~/.kodi instead of ~/.xbmc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment