Kodi: Difference between revisions

From 太極
Jump to navigation Jump to search
Line 37: Line 37:
= OSMC =
= OSMC =
[https://raspberrytips.com/kodi-guide-osmc/ The Ultimate Guide to Install Kodi on Raspberry Pi (OSMC)] including installing a VPN on it (Kodi)
[https://raspberrytips.com/kodi-guide-osmc/ The Ultimate Guide to Install Kodi on Raspberry Pi (OSMC)] including installing a VPN on it (Kodi)
= LibreELEC =
[https://www.addictivetips.com/media-streaming/kodi/install-vpn-libreelec/ How to Install a VPN on LibreELEC (and Configure It)]


= VPN =
= VPN =

Revision as of 15:15, 29 August 2022

Install on Raspberry Pi OS

sudo apt-get update
sudo apt-get install kodi

When it is launched, it will ask if we want to enable "version check" add-on. We can enable it. If we want to change mind, we need to go to Kodi -> Add-on -> Box icon on top-left corner. Install from repository -> Services and select "Version Check".

Some tips

  • When I use "htop" from another machine to check the memory usage when I watch pluto.tv, it uses 580MB.
  • Inputstream adaptive missing? sudo apt-get install kodi-inputstream-adaptive It works on my Kodi 19.
  • If I hit 'ESC' key, it will bring up a Kodi menu and put the video playing in the background. To go back to the video, hit the tab key. See Best Kodi Keyboard Shortcuts You Should Know in 2020.

Install using PPA on Ubuntu

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

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi

Docker

https://github.com/linuxserver/docker-kodi-headless

docker run --name=kodi-headless \
  -v <path to data>:/config/.kodi \
  -e PGID=1000 -e PUID=1000 \
  -p 8080:8080 \
  -p 9090:9090 \
  -p 9777:9777/udp \
  linuxserver/kodi-headless

The username/password is kodi/kodi

OSMC

The Ultimate Guide to Install Kodi on Raspberry Pi (OSMC) including installing a VPN on it (Kodi)

LibreELEC

How to Install a VPN on LibreELEC (and Configure It)

VPN

ProtonVPN

Install CLI in Ubuntu/debian

sudo apt update
sudo apt install openvpn dialog python3-pip python3-setuptools
sudo pip3 install protonvpn-cli

Setup ProtonVPN

sudo protonvpn init
# Enter username/password
# Choose UDP
# done!

Disable IPV6. sudo nano /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1 
net.ipv6.conf.default.disable_ipv6 = 1 
net.ipv6.conf.lo.disable_ipv6 = 1 
net.ipv6.conf.tun0.disable_ipv6 = 1

sudo sysctl -p

Connect to ProtonVPN

sudo protonvpn connect
# Select a server location
# Select UDP for fast speeds

Run curl ifconfig.me to confirm the new IP.

To disconnect from VPN

sudo protonvpn disconnect

Settings

Chinese font

Settings - Interface - Skin - Fonts - Change to Arial from default.

Stream video to browser

How to stream video to browser with Kodi. Kodi is not exactly a media server, it works as a media center. However, with plex, you can set up your media center and have access to your media from your web browser.

Web interface

Webserver

https://kodi.wiki/view/Webserver

How to set up a Kodi UPnP server

How to set up a Kodi UPnP server

Kodi builds

Add-on

Youtube

Tips:

  • youtube.com/activate and google.com/device go to the same place.
  • The "project name" should not contain any space or use the project ID (check the URL to find the ID),
  • It is pain to enter the credentials API key, client ID & client Secret in Kodi. We can also create a json file (~/.kodi/userdata/addon_data/plugin.video.youtube/api_keys.json); see the Github page. It's a good idea to save the file for future use if we want to re-installl Youtube addon on Kodi. NOTE: ~/.kodi is a soft link to /opt/retropie/configs/ports/kodi for the Kodi installed in Raspbian Lite. So we essentially need to back up the corresponding file from there.
  • You have to enter the authorization codes two times. On the 2nd time, I will get an error 403 - access denied. The trick is to add a test user and click the button of "publish the app" on OAuth page (not sure if both are needed). At the 2nd time verification, we won't see the 403 error. But we need to go to "Advanced" and click the "Allow" button.
  • Some instruction based on an old version of addon How to install the YouTube Kodi addon 2017

Exodus-redux

How to Install Exodus Redux Kodi Addon [2022]

Chinese

Clear cache

IPTV

The 10 Best Kodi Add-Ons to Watch IPTV

Plex

How to Install Kodi Plex Addon & Use Plex Media Server (2021)