Wednesday, October 5, 2016

Install Kodi (Official Repository) on Raspberry Pi 3

After Raspbian Installation.

#Update Debian
sudo apt-get update
sudo apt-get upgrade

# Setup Wireless
# Edit Network interfaces
sudo vi /etc/network/interfaces

#add the following to the end of the interfaces file
auto wlan0
iface default inet dhcp

#Modify the following from the interfaces file
iface wlan0 inet dhcp 

# Edit wireless configuration
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

# Add the following:

network={
ssid="xxxx"
psk="xxxx"
}


# Install Kodi
sudo apt-get install kodi

# Allow Keyboard/Mouse from Kodi
sudo usermod -a -G input kodi

# Enable Kodi during startup
sudo vi /etc/default/kodi

# Edit the following config to enable Kodi during startup
# Set this to 1 to enable startup
ENABLED=1


#if you plan using more than 2TB external usb for your media, install NTFS-3G driver
sudo apt-get install ntfs-3g

# List UUIDs of connected drives
$ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 Oct  5 06:48 3698ef8e-f24cf61dfg1e -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 10 Oct  5 06:48 55D8D96AD8D94ABC -> ../../sda1
lrwxrwxrwx 1 root root 15 Oct  5 06:48 70D7-EA1E -> ../../mmcblk0p1


# take note of the UUID (highlighted) and types of files supported
$sudo blkid
/dev/mmcblk0: PTUUID="3386e05a" PTTYPE="dos"
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="
70D7-EA1E" TYPE="vfat" PARTUUID="3487e05a-01"
/dev/mmcblk0p2: UUID="
3698ef8e-f24cf61dfg1e" TYPE="ext4" PARTUUID="3487e05a-02"
/dev/sda1: LABEL="spikes-3tb-movies" UUID="55D8D96AD8D94ABC" TYPE="ntfs"


# Create a mount folder
$sudo mkdir /media/spikes-3tb-movies

# Backup file system table file
$sudo cp /etc/fstab /etc/fstab.bak

# Edit file system table file
$sudo vi /etc/fstab
# Add the following to the file system table entries (replace those highlighted)
UUID=55D8D96AD8D94ABC /media/spikes-3tb-movies ntfs nofail,noatime,auto,users,rw,uid=1000,gid=100,umask=0002 0 0