User Tools

Site Tools


raspberry-pi:kodi

Kodi

Distributions

Improve cache

https://kodi.wiki/view/HOW-TO:Modify_the_video_cache

Memory set to 100MB (300MB free RAM required):

<advancedsettings>
    <cache>
        <buffermode>1</buffermode>
        <memorysize>104857600</memorysize>
        <readfactor>10</readfactor>
    </cache>
</advancedsettings>

Player Info

Activate the view with: Control+Shift+O (that's the uppercase letter o).

Try the skin Rapier: https://kodi.wiki/view/Add-on:Rapier

Manual installation

Repos

Addons

  • LiveStreamsPro
  • p2p-streams
    • Go to Add-on settings → General → Activate Download modules on boot (it's on by default)
    • Go to Add-on settings → Lists/Parsers → Run a python script → http://bit.ly/allparsers
    • When asked, select OpenELEC as the OS (even when using OSMC)
    • NOTE: Acestream does NOT work with raspberry pi
    • Will soon change name to plexus
  • pelisalacarta
  • Pulsar (better than Stream and XBMCtorrent)
    • Torrent2Pulsar
    • Pulsar MC's Provider Manager
    • Pulsar MC's Divxatope (Español) Provider
    • Pulsar MC's Divxtotal (Español) Provider
    • Pulsar MC's EliteTorrent (Español) Provider
    • Pulsar kickass multilanguage Provider
    • Pulsar MC's BTjunkie Provider
    • Pulsar MC's ExtraTorrent Provider
    • Pulsar MC's KickAss Provider
    • Pulsar MC's LimeTorrents Provider
    • Pulsar MC's RARBG Provider
    • Pulsar MC's SumoTorrent Provider
    • Pulsar MC's The Pirate Bay Provider
    • Pulsar MC's TorrentZ Provider
  • Quasar (fork of Pulsar, maintained)
  • Stream (fork of XBMCtorrent)
  • tvalacarta
  • TwitchTV
  • XBMCtorrent (abandoned)
  • YouTube

Skins

  • Aeon Nox
  • Amber
  • Maximinimalism
  • Genesis

Web interfaces

librtmp

To update the library librtmp download the newest version by RedPenguin from https://www.mediafire.com/?x4cvp5hl4m9xr (right now is inside the folder 3-16-15-Fixes/RasPi).

The name of the downloaded file is librtmp.so.0, but has to replace the file /usr/lib/arm-linux-gnueabihf/librtmp.so.1.

Official support thread: http://forum.kodi.tv/showthread.php?tid=162307

More info: https://discourse.osmc.tv/t/replacing-librtmp-so-0-with-custom-version/2067

Alternative version by superceleron: http://bit.ly/SCLibrtmp (https://www.mediafire.com/folder/3623pdo81n353/lib)

Transmission

Install and prepare folders and permissions:

sudo apt-get install transmission-daemon
sudo systemctl stop transmission-daemon.service
mkdir -p /home/osmc/torrents/downloads
mkdir -p /home/osmc/torrents/temp
mkdir -p /home/osmc/torrents/watch
sudo chmod g+rwx /home/osmc/torrents/downloads
sudo chmod g+rwx /home/osmc/torrents/temp
sudo chmod g+rwx /home/osmc/torrents/watch
sudo usermod -a -G osmc debian-transmission

Edit the settings file /etc/transmission-daemon/settings.json:

"rpc-whitelist-enabled": false,
"rpc-username": "username",
"rpc-password": "password",
"download-dir": "/home/osmc/torrents/downloads",
"incomplete-dir": "/home/osmc/torrents/temp",
"incomplete-dir-enabled": true,
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/home/osmc/update-library.sh",
"trash-original-torrent-files": true,
"umask": 0,
"watch-dir": "/home/osmc/torrents/watch",
"watch-dir-enabled": true,

Create this script in /home/osmc/update-library.sh:

#!/bin/sh

/usr/bin/curl --silent --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://nova:abaixardeTOT@localhost:8081/jsonrpc > /dev/null

Start the daemon:

sudo systemctl start transmission-daemon.service

References:

rtorrent + rutorrent

sudo apt-get install rtorrent
mkdir ~/.rtorrent.session

The configuration goes to ~/.rtorrent.rc:

# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.

scgi_port = 127.0.0.1:5000

# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
max_peers = 100

# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
max_peers_seed = -1

# Maximum number of simultanious uploads per torrent.
max_uploads = 50

# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 0
upload_rate = 0

# Default directory to save the downloaded torrents.
directory = /home/osmc/torrents/downloads

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /home/osmc/.rtorrent.session

# Watch a directory for new torrents, and stop those that have been
# deleted.
#schedule = watch_directory,5,5,load_start=./watch/*.torrent
#schedule = untied_directory,5,5,stop_untied=

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=1000M

# The ip address reported to the tracker.
#ip = 127.0.0.1
#ip = rakshasa.no

# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no

# Port range to use for listening.
port_range = 55090-55090

# Start opening ports at a random position within the port range.
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
#check_hash = no

# Set whether the client should try to connect to UDP trackers.
use_udp_trackers = yes

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
encryption = allow_incoming,enable_retry,prefer_plaintext

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
# 
dht = auto

# UDP port to use for DHT. 
# 
dht_port = 55091

# Enable peer exchange (for torrents not marked private)
#
peer_exchange = yes

# Enable logging
log.open_file = "rtorrent.log", (cat,/home/osmc/.rtorrent.log)
log.add_output = "notice", "rtorrent.log"

encoding_list = UTF-8

To launch at startup, create the following file /etc/systemd/system/rtorrent.service:

[Unit]
Description=rTorrent
After=network.target

[Service]
User=osmc
Type=forking
KillMode=none
ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorrent
ExecStop=/usr/bin/killall -w -s 2 /usr/bin/rtorrent
WorkingDirectory=/home/osmc

[Install]
WantedBy=multi-user.target

And enable at boot with:

sudo systemctl enable rtorrent

To compile from source:

sudo apt-get install rtorrent

wget https://raw.githubusercontent.com/rakshasa/rtorrent/master/doc/rtorrent.rc -O ~/.rtorrent.rc
sudo apt-get install automake build-essential libcppunit-dev libcurl3 libncurses5-dev libssl-dev libtool libxmlrpc-core-c3-dev pkg-config zlib1g-dev

mkdir -p ~/local/

cd ~/local/
git clone https://github.com/rakshasa/libtorrent.git
cd libtorrent
git checkout 0.13.6
./autogen.sh
./configure --prefix=$HOME/local --with-posix-fallocate
make
make install

cd ~/local/
git clone https://github.com/rakshasa/rtorrent.git
cd rtorrent
git checkout 0.9.6
./autogen.sh
export PKG_CONFIG_PATH="$HOME/local/lib/pkgconfig"
./configure --prefix=$HOME/local --with-xmlrpc-c
make
make install

Movies: CouchPotato

TV Shows: Sick Beard

TV Shows: SickRage

TV Shows: Sonarr (NzbDrone)

HTPC Manager

Browser Extensions

Keyboard Layout

There seems to be a bug in OSMC where the external keyboard is always English and can't be changed.

Bug report: https://discourse.osmc.tv/t/bug-report-hardware-keyboard-layout-not-working/3507

Avoid sleep (blank screen) after a long time suspended

References

raspberry-pi/kodi.txt · Last modified: 2019/01/02 22:29 by josep