0% found this document useful (0 votes)
236 views5 pages

Kodi On Emulationstation

This document provides instructions for adding Kodi and Raspbian Desktop as menu options in EmulationStation on a Raspberry Pi. It includes steps to configure the emulationstation configuration file, create launch scripts for Kodi and Raspbian Desktop, set file permissions, create themes, and optionally set EmulationStation to autostart on boot.

Uploaded by

skeamanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
236 views5 pages

Kodi On Emulationstation

This document provides instructions for adding Kodi and Raspbian Desktop as menu options in EmulationStation on a Raspberry Pi. It includes steps to configure the emulationstation configuration file, create launch scripts for Kodi and Raspbian Desktop, set file permissions, create themes, and optionally set EmulationStation to autostart on boot.

Uploaded by

skeamanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Menambahkan Menu Kodi dan Raspbian Desktop pada EmulationStation

Kodi
sudo nano /etc/emulationstation/es_systems.cfg
Tambahkan baris berikut
<system>
<fullname>Kodi</fullname>
<name>Kodi</name>
<path>~/RetroPie/roms/kodi</path>
<extension>.sh .SH</extension>
<command>%ROM%</command>
<platform>kodi</platform>
<theme>kodi</theme>
</system>
sebelum baris </systemList>
Buat Folder kodi
sudo mkdir ~/RetroPie/roms/kodi
Buat file kodi.sh
sudo nano ~/RetroPie/roms/kodi/kodi.sh
lalu isi seperti berikut
#!/bin/bash
LOG_FILE=$HOME/.kodi/temp/kodi.log
rm $LOG_FILE 2> /dev/null
/usr/lib/kodi/kodi.bin --standalone &
while [[ ! -f $LOG_FILE ]] ; do
sleep 1s
done
while read line ; do
if [[ ${line} =~ "application stopped" ]] ; then
echo "Killing kodi"
break
fi
done < <(tail --pid=$$ -f -n0 $LOG_FILE)
killall kodi.bin
fbset -depth 8 && fbset -depth 16
lalu tekan Ctrl+x, tekan y, tekan Enter
Buat file kodi.sh menjadi executable
sudo chmod +x ~/RetroPie/roms/kodi/kodi.sh
Buat folder /etc/emulationstation/themes/simple/kodi
Buat folder /etc/emulationstation/themes/simple/kodi/art lalu copy gambar yang a
kan dijadikan background dan gambar yang akan dijadikan icon. Pada contoh gambar
yang akan dijadikan background adalah background.jpg dan gambar yang akan dijad
ikan logo adalah logo.gif
Buat file /etc/emulationstation/themes/simple/kodi/theme.xml, isi seperti beriku
t
<theme>
<formatVersion>3</formatVersion>
<include>./../simple.xml</include>
<view name="system">
<image name="background" extra="true">

<path>./art/background.jpg</path>
</image>
<image name="logo">
<path>./art/logo.gif</path>
</image>
<helpsystem name="help">
<textColor>ffffff99</textColor>
<iconColor>ffffff99</iconColor>
</helpsystem>
</view>
<view name="basic, detailed">
<text name="system_name_1" extra="true">
<text>Kodi</text>
<forceUppercase>1</forceUppercase>
<size>0.45 0.16</size>
<pos>0.527 0</pos>
<color>7b7d7f</color>
<fontPath>./../art/OPENSANS-LIGHT.TTF</fontPath>
<fontSize>0.055</fontSize>
<alignment>right</alignment>
</text>
<image name="logo">
<path>./art/logo.gif</path>
<pos>0.025 0.079</pos>
<maxSize>0.47 0.1</maxSize>
<origin>0 0.5</origin>
</image>
</view>
<view name="basic">
<textlist name="gamelist">
<pos>0.025 0.22</pos>
<size>0.950 0.68</size>
<alignment>center</alignment>
<horizontalMargin>0.01</horizontalMargin>
</textlist>
</view>
<view name="detailed">
<!-- <measuring rectangle
<image name="measure" extra="true">
<pos>0.025 0.6</pos>
<origin>0 0</origin>
<size>0.125 0.301</size>
<path>./../art/white.png</path>
<color>ff00ff</color>
</image>
-->

<!--->

<image name="md_image">
<pos>0.025 0.22</pos>
<size>0 0.301</size>
<maxSize>0.124 0.301</maxSize>
<origin>0 0</origin>
</image>
<text name="md_lbl_rating">
<pos>0.176 0.21</pos>
</text>
<text name="md_lbl_releasedate">
<pos>0.176 0.25</pos>
</text>
<text name="md_lbl_developer">
<pos>0.176 0.29</pos>
<size>0.133 0.04</size>
</text>
<text name="md_lbl_publisher">
<pos>0.176 0.33</pos>
<size>0.133 0.04</size>
</text>
<text name="md_lbl_genre">
<pos>0.176 0.37</pos>
</text>
<text name="md_lbl_players">
<pos>0.176 0.41</pos>
</text>
<text name="md_lbl_lastplayed">
<pos>0.176 0.45</pos>
</text>
<text name="md_lbl_playcount">
<pos>0.176 0.49</pos>
</text>
<text name="md_playcount">
<pos>0.309 0.49</pos>
</text>
<datetime name="md_lastplayed">
<pos>0.309 0.45</pos>
</datetime>
<text name="md_players">
<pos>0.309 0.41</pos>
</text>
<text name="md_genre">
<pos>0.309 0.37</pos>
<size>0.24 0.04</size>
</text>
<text name="md_publisher">
<pos>0.309 0.33</pos>

<size>0.24 0.04</size>
</text>
<text name="md_developer">
<pos>0.309 0.29</pos>
<size>0.24 0.04</size>
</text>
<datetime name="md_releasedate">
<pos>0.309 0.25</pos>
</datetime>
<rating name="md_rating">
<pos>0.309 0.216</pos>
<size>0.028 0.028</size>
<filledPath>./../art/star_filled_spacing.svg</filledPath
>
<unfilledPath>./../art/star_hollow_3_spacing.svg</unfill
edPath>
</rating>
<text name="md_description">
<size>0.52 0.3</size>
<pos>0.025 0.577</pos>
</text>
<textlist name="gamelist">
<pos>0.615 0.22</pos>
<size>0.359 0.68</size>
<alignment>left</alignment>
<horizontalMargin>0.01</horizontalMargin>
</textlist>
</view>
</theme>

Raspbian Desktop
sudo nano /etc/emulationstation/es_systems.cfg
Tambahkan baris berikut
<system>
<fullname>Raspbian Desktop</fullname>
<name>Raspbian Desktop</name>
<path>~/RetroPie/roms/desktop</path>
<extension>.sh .SH</extension>
<command>%ROM%</command>
<platform>desktop</platform>
<theme>desktop</theme>
</system>

Emulationstation autostart (optional)


Cek apakah folder RetroPie-Setup ada atau tidak pada /home/pi
Bila tidak ada jalankan perintah berikut:
git clone git://github.com/petrockblog/RetroPie-Setup.git

cd RetroPie-Setup
chmod +x retropie_setup.sh
sudo ./retropie_setup.sh
Lalu pilih Setup/Configuration (to be used post install)
Pilih Auto-start EmulationStation
Pilih Start Emulation Station at boot

You might also like