Raspbian

From Q
Revision as of 15:08, 15 January 2019 by Tgurr (talk | contribs) (Installation)
Jump to navigation Jump to search

Install

dd bs=4M if=2018-11-13-raspbian-stretch-lite.img of=/dev/sdX conv=fsync

Login

Default user: pi

Default password: raspberry

Static IP

/etc/dhcpcd.conf

interface eth0
static ip_address=192.168.0.16/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

Update

sudo apt-get update

sudo apt-get upgrade

Configuration

sudo raspi-config

8 Update
7 Advanced Options -> A1 Expand Filesystem
4 Localisation Options -> I1 Change Locale -> de_DE.UTF-8 UTF-8
4 Localisation Options -> I2 Change Timezone -> Europe -> Berlin
4 Localisation Options -> I3 Change Keyboard Layout -> Generic 105-key (Intl) PC -> Other -> German -> German -> 
4 Localisation Options -> I4 Change Wi-fi Country -> DE
5 Interfacing Options -> P2 SSH -> Yes

Kodi

7 Advanced Options -> A3 Memory Split -> 256
7 Advanced Options -> A4 Audio -> 2 Force HDMI

PiFace

5 Interfacing Options -> P4 SPI -> Yes -> Ok -> Yes

Camera

5 Interfacing Options -> P1 Camera -> Enable

HiFiBerry AMP+

/boot/config.txt

Disable onboard sound:

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on

Enable AMP/AMP+

# Enable audio (HiFiBerry AMP/AMP+)
dtoverlay=hifiberry-amp

amixer sset Master 70%

amixer sset Channels 70%,70%

Kodi

Repository

Add

Currently we need to use an external repository for Kodi 18.

sudo su
echo "deb https://pipplware.pplware.pt/pipplware/dists/unstable/main/binary /" > /etc/apt/sources.list.d/pipplware_unstable.list
wget -O - https://pipplware.pplware.pt/pipplware/key.asc | sudo apt-key add -
apt-get update && apt-get dist-upgrade -y
exit

Remove

sudo rm /etc/apt/sources.list.d/pipplware_unstable.list
sudo apt-get update -y
sudo apt-get remove kodi*

Installation

sudo apt-cache search kodi*
sudo apt-get install kodi
sudo apt-get install kodi-inputstream-adaptive
sudo apt-get install kodi-vfs-nfs
sudo useradd -m -U -G "audio,bluetooth,input,plugdev,video" -s /bin/bash kodi
/etc/systemd/system/kodi.service

[Unit]
Description = Kodi Media Center
After = systemd-user-sessions.service network.target sound.target

[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = always
RestartSec = 15

[Install]
WantedBy = multi-user.target

sudo systemctl daemon-reload
sudo systemctl enable kodi
sudo systemctl start kodi

Snapcast

Installation

Download the latest snapclient release from https://github.com/badaix/snapcast/releases e.g. snapclient_0.10.0_armhf.deb Install via sudo dpkg -i snapclient_0.10.0_armhf.deb Install missing dependencies: sudo apt-get -f install sudo systemctl enable snapclient

Steam Link

sudo apt-get install steamlink

DoorPi

Installation

sudo easy_install pip || (wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python) && sudo easy_install pip sudo pip install linphone4raspberry python-daemon sudo pip install doorpi && sudo doorpi_cli --trace cd /tmp wget https://raw.githubusercontent.com/motom001/DoorPi/master/doorpi/docs/service/create_daemon_file.py -O - | sudo python sudo systemctl daemon-reload sudo systemctl enable doorpi sudo systemctl start doorpi

mjpg-streamer

apt-get install cmake libjpeg-dev wget https://github.com/jacksonliam/mjpg-streamer/archive/master.tar.gz tar xf master.tar.gz cd mjpg-streamer-experimental make sudo make install mjpg_streamer -i "input_raspicam.so" -o "output_http.so -n -w /usr/local/www -p 9000" mjpg_streamer -i "input_uvc.so -d /dev/video0 -n -r 1024x768 -f 24 –q 80 -l off " -o "output_http.so -n -w /usr/local/www -p 9000"

Webinterface

Default user: door Default password: pi