debian.ansible.kodi/README.md

70 lines
2.3 KiB
Markdown
Raw Normal View History

2024-10-08 09:59:56 +02:00
# Kodi and Linux Desktop Installation and Configuration
This installs and Configures the following:
2024-10-08 16:02:14 +02:00
- Kodi
2024-10-08 09:59:56 +02:00
- Cinnamon Desktop
- LightDM Autologin
- Specific Raspberry Settings
2024-10-08 16:16:01 +02:00
# Some predefined Kodi settings
- German localization
- Simple IPTV with german TV channels
- Autoupdate Addons
2024-10-08 16:19:40 +02:00
- optional predefined repos for Mediathekview and Jellyfin (asks for activation at first start)
- Some other optional addons (asks for activation at first start
2024-10-08 16:16:01 +02:00
- ...
2024-10-08 16:02:14 +02:00
## Raspberry 4/5
### Install Raspberry Pi OS
- Downlaod/Install/Start Raspberry Pi Imager (https://www.raspberrypi.com/software/)
- Model: Raspberry Pi 4/5
- OS: Raspberry Pi OS (64 Bit) (with the Raspberry Pi Desktop)
2024-10-08 16:22:31 +02:00
- Choose SD-Card (should be \>= 32GB - 16GB may be barely enough)
- Click on "Continue" and edit individual settings
2024-10-08 16:02:14 +02:00
- Define Username "user".
2024-10-08 16:22:31 +02:00
- Optional: Provide WLAN-Keys and/or SSH-Keys
- Let the Imager prepare the SD-Card
2024-10-08 16:02:14 +02:00
### after install
2024-10-08 16:22:31 +02:00
- Boot your Pi with the prepared SD-Card
2024-10-08 16:02:14 +02:00
#### Login
replace \<IP\>with the IP of your pi.
```
ssh user@<IP>
2024-10-08 16:06:21 +02:00
```
Alternative use a Terminal on the Pi
#### sudo to root
```
2024-10-08 16:02:14 +02:00
sudo su -
```
#### Optional: SSH-Keys for root
```
cp -r /home/user/.ssh /root/
chown root: /root/.ssh
```
#### Optional: Set hostname
replace \<myhostname\> with the preferred hostname
```
echo <myhostname> >/etc/hostname
systemctl restart systemd-hostnamed.service
```
#### run installation/configuration (as root)
```
wget https://gitea.ds9.dedyn.io/olli/debian.ansible.kodi/raw/branch/main/raspi.sh
bash -ex raspi.sh
```
#### Optional: Wireguard VPN client for "mobile clients"
2024-10-08 16:06:21 +02:00
- copy the wireguard config file on your Pi (scp/USB-Stick,..)
replace \<wireguard-config-file.conf\> with your wireguard-config file
2024-10-08 16:02:14 +02:00
```
2024-10-12 22:59:14 +02:00
# configure connection
2024-10-08 16:02:14 +02:00
nmcli connection import type wireguard file <wireguard-config-file.conf>
2024-10-12 22:59:14 +02:00
# (re)connect VPN on error - check every minute
echo '* * * * * root ping -c4 192.168.44.1 >/dev/null || ( nmcli connection down pi-kodi-mobile ; nmcli connection up pi-kodi-mobile )'
2024-10-08 16:02:14 +02:00
# redirect some services for example a jellyfin hostname
echo "192.168.44.1 jellyfin.myhost.tld" >>/etc/hosts
```
## Reboot and Kodi should start
```
reboot
```
2024-10-08 16:18:39 +02:00
To switch to Linux Desktop Cinnamon simply exit Kodi.
2024-10-08 09:59:56 +02:00
## Kodi Remote Password
2024-10-08 16:02:14 +02:00
Please change the remote password in Kodi "Settings -> Services" (defaults to xxxx).