11th Oct, 2015, 07:30 AM
Hello boys and girls.
Today I had a free day and I decided to do some work relate to XBIAN. I like XBIAN and I have been using it for the last year and one of the things I like is that is snapy ...
Few days back I bought myself an RPi2 and while I was browsing for optimal Media Center for it (I wanted to test something else, but I got back to XBIAN) I found the RetroPie ... The thought I had was - can't I have both?
Today, as I said, I had the time to make it happen ... and I did it after few hours of work.
The script is not foolproof and I have not tested all emulators ... and there are few small hitches, but I hope you can help me fix it.
This is the base install script (it should prepare the system):
Here I get the first and second snag:
I can't get the Collabora Public Key which forces me to use the --allow-unauthenticated.
Second snag is when I try to install libcurl4-openssl-dev
After this is done - continue with RetroPie instructions (from here).
I used the binary installation. Few hours later we have the working RetroPie ... now comes the hard part.
We need to add the following:
to /etc/sudoers.d/xbian at the end of the line concerning xbian user.
Now the script that makes the work with the dynamical switching between KODI and EmulatorStation (I used scrip from project called RetroSMC):
Here are the other snags:
When I stop KODI my TV goes offline (KODI and CEC - I need to disable it but I can't find a way).
And ... I don't know how to add the script to the skin I use ... preferably I want to add it next to shutdown button.
Feel free to use this and please help me fix the issues and make it seamless (I will add videos tomorrow)
There are few thing I need to do - I will add roms and BIOS to SAMBA share.
And I have one more question - How can I create an IMG that has the free space striped out?
Today I had a free day and I decided to do some work relate to XBIAN. I like XBIAN and I have been using it for the last year and one of the things I like is that is snapy ...
Few days back I bought myself an RPi2 and while I was browsing for optimal Media Center for it (I wanted to test something else, but I got back to XBIAN) I found the RetroPie ... The thought I had was - can't I have both?
Today, as I said, I had the time to make it happen ... and I did it after few hours of work.
The script is not foolproof and I have not tested all emulators ... and there are few small hitches, but I hope you can help me fix it.
This is the base install script (it should prepare the system):
Code:
echo "Adding REPOS!"
echo "Add raspbian"
echo "deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi" > /etc/apt/source.list
echo "Add collabora"
echo "deb http://raspberrypi.collabora.com wheezy rpi" > /etc/apt/source.list.d/collabora.list
echo "Add raspi"
echo "deb http://archive.raspberrypi.org/debian/ wheezy main" > /etc/apt/source.list.d/raspi.list
echo "Add keys"
wget http://mirrordirector.raspbian.org/raspbian.public.key -O - | apt-key add -
wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key -O - | sudo apt-key add -
echo "Update (We still have no key for collabora so allow unauthenticated)"
apt-get --allow-unauthenticated update
echo "Install all deps"
apt-get --allow-unauthenticated install -y libsdl1.2-dev \
unzip \
libsdl-ttf2.0-dev \
libboost-filesystem-dev \
libsdl-image1.2-dev \
libsdl-gfx1.2-dev \
libzip2 \
libzip-dev \
libudev-dev \
libxkbcommon-dev \
libboost-locale-dev \
libboost-date-time-dev \
libfreeimage-dev \
libeigen3-dev
#Try to install things that should not go
apt-get --allow-unauthenticated install -y libcurl4-openssl-dev \
libraspberrypi-dev \
libraspberrypi-doc \
echo "INSTALL GIT!!!"
apt-get install -y git dialog
Here I get the first and second snag:
I can't get the Collabora Public Key which forces me to use the --allow-unauthenticated.
Second snag is when I try to install libcurl4-openssl-dev
Terminal
libcurl4-openssl-dev : Depends: libcurl3 (= 7.38.0-4+deb8u2) but 7.37.1-1 is to be installed
After this is done - continue with RetroPie instructions (from here).
I used the binary installation. Few hours later we have the working RetroPie ... now comes the hard part.
We need to add the following:
Code:
, /bin/openvt, /usr/sbin/service
to /etc/sudoers.d/xbian at the end of the line concerning xbian user.
Now the script that makes the work with the dynamical switching between KODI and EmulatorStation (I used scrip from project called RetroSMC):
Code:
#!/bin/bash
sudo openvt -c 7 -s -f clear
sudo openvt -c 7 -f "$(emulationstation)" &
sleep 8
sudo service xbmc stop
while [ true ]; do
VAR1="$(pidof /opt/retropie/supplementary/emulationstation/emulationstation)"
if [ ! "$VAR1" ]; then
sudo openvt -c 7 -s -f clear
killall emulationstation
sudo service xbmc start
echo "Emulation station down. Strating KODI"
exit
else
sleep 2
fi
done
exit
Here are the other snags:
When I stop KODI my TV goes offline (KODI and CEC - I need to disable it but I can't find a way).
And ... I don't know how to add the script to the skin I use ... preferably I want to add it next to shutdown button.
Feel free to use this and please help me fix the issues and make it seamless (I will add videos tomorrow)
There are few thing I need to do - I will add roms and BIOS to SAMBA share.
And I have one more question - How can I create an IMG that has the free space striped out?