diff --git a/Manual.html b/Manual.html index 1ee4329..f61b7ef 100644 --- a/Manual.html +++ b/Manual.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +A User wants to install yaVDR without customization and relies on full automation. @@ -528,24 +528,24 @@ Several roles are used to tie everything together:
One of the major problems we faced with customized Ubuntu ISO files as installation media for prior yaVDR versions has been the limited hardware support and the time consuming process to create and update them. An interesting alternative to this approach is to enable the user to choose the installation medium by himself, so point releases, kernel versions and additional drivers can be chosen deliberately. After the basic setup is complete (and a working internet connection is available), a fully customizable install script completes the yaVDR installation.
This is an experimental feature which allows to set up a yaVDR installation based on a normal Ubuntu Server 16.04.x installation using Ansible. @@ -580,8 +580,8 @@ We use a callback to generate tags for all roles autmatically:
set -e @@ -600,17 +600,38 @@ apt-get -y install --no-install-recommends ansible python-jmespath # TODO: run ansible on local host ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True" +dpkg-reconfigure libdvd-pkg ++
set -e +if (( $EUID != 0 )); then + echo "This script must be run using sudo -H or as root" + exit +fi + +# update packages +apt update +apt -y install software-properties-common +add-apt-repository -y ppa:ansible/ansible-2.7 + +# install required packages +apt-get -y install --no-install-recommends ansible python-jmespath + +# TODO: run ansible on local host +ansible-playbook yavdr07-headless.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=True"
This playbook can either be used to run the installation on the localhost or any other PC in the network that can be accessed via ssh. Simply add the host names or IP addresses to the hosts file in the respective section: @@ -716,12 +737,12 @@ This playbook can either be used to run the installation on the localhost or any
---
@@ -739,8 +760,8 @@ This playbook can either be used to run the installation on the localhost or any
# properties of the user vdr and vdr-related options @@ -766,8 +787,8 @@ This playbook can either be used to run the installation on the localhost or any
# dictionary of directories for (shared) files. Automatically exported via NFS and Samba if those roles are enabled @@ -782,8 +803,8 @@ This playbook can either be used to run the installation on the localhost or any
nfs:
@@ -792,8 +813,8 @@ This playbook can either be used to run the installation on the localhost or any
samba:
@@ -803,8 +824,8 @@ This playbook can either be used to run the installation on the localhost or any
# additional packages you want to install @@ -820,8 +841,8 @@ This playbook can either be used to run the installation on the localhost or any
frontend: vdr
@@ -836,20 +857,20 @@ This playbook can either be used to run the installation on the localhost or any
---
@@ -868,19 +889,19 @@ This playbook can either be used to run the installation on the localhost or any
install nvidia-396 from ppa:graphics-drivers/ppa
---
@@ -909,15 +930,15 @@ install nvidia-396 from ppa:graphics-drivers/ppa
This role is used to set up a basic yaVDR installation. It creates the directories, installs the vdr and other useful packages.
This section is for reference only, please use the files in global_vars
for customizations.
@@ -930,7 +951,7 @@ This section is for reference only, please use the files in global_vars
Automatically installed drivers can be very useful, but if you know you need a certain driver, you can simply set it’s value to true. If you don’t want a driver to be installed, set it’s value to false. @@ -960,7 +981,7 @@ Automatically installed drivers can be very useful, but if you know you need a c
Add additional packages you would like to have on your installation to this list @@ -974,7 +995,7 @@ Add additional packages you would like to have on your installation to this list
This section allows you to set the recording directory, the user and group that runs the vdr and it’s home directory. @@ -1007,15 +1028,15 @@ This section allows you to set the recording directory, the user and group that
yavdr-common executes the following tasks:
---
@@ -1033,7 +1054,7 @@ yavdr-common executes the following tasks:
This task prevents apt to automatically install all recommended dependencies for packages: @@ -1050,7 +1071,7 @@ This task prevents apt to automatically install all recommended dependencies for
- name: add PPAs
@@ -1070,7 +1091,7 @@ This task prevents apt to automatically install all recommended dependencies for
- name: use bash instead of dash
@@ -1082,15 +1103,15 @@ This task prevents apt to automatically install all recommended dependencies for
- name: disable release-upgrade notifications
@@ -1112,7 +1133,7 @@ This task prevents apt to automatically install all recommended dependencies for
-
- name: apt | install basic packages
@@ -1143,7 +1164,7 @@ This task prevents apt to automatically install all recommended dependencies for
- name: apt | install extra packages
@@ -1156,15 +1177,15 @@ This task prevents apt to automatically install all recommended dependencies for
Stop vdr before entering suspend and unload dvb modules, reverse this operation on resume @@ -1175,8 +1196,8 @@ Stop vdr before entering suspend and unload dvb modules, reverse this operation
{{ ansible_managed | comment('c') }} @@ -1187,7 +1208,7 @@ APT::Install-Suggests "0";
#!/bin/sh
@@ -1220,7 +1241,7 @@ Allow the vdr user to restart vdr.service
and reboot the system
#!/usr/bin/env python3
@@ -1307,12 +1328,12 @@ Allow the vdr user to restart vdr.service
and reboot the system
first_run: False
@@ -1320,12 +1341,12 @@ Allow the vdr user to restart vdr.service
and reboot the system
- name: get information about usb and pci hardware and loaded kernel modules
@@ -1374,16 +1395,16 @@ Allow the vdr user to restart vdr.service
and reboot the system
---
@@ -1401,7 +1422,7 @@ Allow the vdr user to restart vdr.service
and reboot the system
- name: add svdrp and svdrp-disc to /etc/services
@@ -1416,7 +1437,7 @@ Allow the vdr user to restart vdr.service
and reboot the system
- name: create vdr recdir
@@ -1451,7 +1472,7 @@ Allow the vdr user to restart vdr.service
and reboot the system
The additional plugins to install can be set in the variable {{vdr_plugins}}
in the group variables
@@ -1467,7 +1488,7 @@ The additional plugins to install can be set in the variable {{vdr_plugins
- name: ensure vdr is stopped
@@ -1498,7 +1519,7 @@ The additional plugins to install can be set in the variable {{vdr_plugins
- name: create directory for vdr.service systemd drop-in files
@@ -1519,8 +1540,8 @@ The additional plugins to install can be set in the variable {{vdr_plugins
LIRC.Up KEY_UP @@ -1672,7 +1693,7 @@ XKeySym.Next XF86AudioNext
# Remote control key macros for VDR @@ -1698,12 +1719,12 @@ User0 @osdteletext
---
@@ -1781,17 +1802,17 @@ User0 @osdteletext
/srv *(rw,fsid=0,sync,no_subtree_check,all_squash,anongid={{ vdr.gid }},anonuid={{ vdr.uid }})
@@ -1835,7 +1856,7 @@ User0 @osdteletext
<?xml version="1.0" standalone='no'?> @@ -1857,15 +1878,15 @@ User0 @osdteletext
The role yavdr-remote
sets up the foundation for using eventlircd, lircd2uinput and the pre-configuration for remote receivers which can be detected by udev.
lircd0_socket: /var/run/lirc/lircd0
@@ -1873,8 +1894,8 @@ The role yavdr-remote
sets up the foundation for using eventlircd,
---
@@ -1945,12 +1966,12 @@ The role yavdr-remote
sets up the foundation for using eventlircd,
{% if frontend != 'kodi' %}
@@ -1961,7 +1982,7 @@ The role yavdr-remote
sets up the foundation for using eventlircd,
[Service]
@@ -1971,7 +1992,7 @@ The role yavdr-remote
sets up the foundation for using eventlircd,
{{ ansible_managed | comment }} @@ -2163,19 +2184,19 @@ ati_remote rc-medion-x10-digitainer /lib/udev/rc_keymaps/rc-medion-x10-digi
---
@@ -2197,8 +2218,8 @@ ati_remote rc-medion-x10-digitainer /lib/udev/rc_keymaps/rc-medion-x10-digi
# Use PulseAudio by default @@ -2221,12 +2242,12 @@ ati_remote rc-medion-x10-digitainer /lib/udev/rc_keymaps/rc-medion-x10-digi
The X-Server is started by using the two systemd units xlogin@.service
and x@.service
provided by the package xlogin. The former is enabled (and started) for the vdr user - which results (using the default settings for the user vdr with the uid 666) in the activation of xlogin@vdr.service
when reaching the graphical.target. To simplify starting and stopping the X-server and the desktop session a yavdr-xorg.service
is provided by the package yavdr-xorg
, which depends on the two units mentioned before.
@@ -2255,8 +2276,8 @@ In order to achive a clean shutdown of the session, x@t7.service
is
first_run: False
@@ -2279,12 +2300,12 @@ In order to achive a clean shutdown of the session, x@t7.service
is
---
@@ -2297,7 +2318,7 @@ In order to achive a clean shutdown of the session, x@t7.service
is
---
@@ -2409,7 +2430,7 @@ In order to achive a clean shutdown of the session, x@t7.service
is
---
@@ -2569,7 +2590,7 @@ In order to achive a clean shutdown of the session, x@t7.service
is
KMS drivers (like for intel (i915) and amd (radeon)) require additional configuration beneath a customized xorg.conf
- for a „static“ output configuration (which works if the TV or AV receiver is not turned on) we need to force loading the display(s) EDID early during the boot process.
@@ -2616,12 +2637,12 @@ Please note that rescanning the connected displays works only after removing the
{% set output_flag = 'D' if ("HDMI" in xorg.primary.connector or "DVI" in xorg.primary.connector or "DP" in xorg.primary.connector) else 'e' %} @@ -2631,11 +2652,11 @@ Please note that rescanning the connected displays works only after removing the
# file: roles/yavdr-xorg/templates/systemd/system/x-verbose@.service.j2 @@ -2651,7 +2672,7 @@ Please note that rescanning the connected displays works only after removing the
[Unit]
@@ -2677,7 +2698,7 @@ Please note that rescanning the connected displays works only after removing the
{{ ansible_managed | comment }} @@ -2689,7 +2710,7 @@ Please note that rescanning the connected displays works only after removing the
{{ ansible_managed | comment }} @@ -2703,7 +2724,7 @@ EndSection
Section "Device"
@@ -3029,7 +3050,7 @@ EndSection
-
Set environment variables for system locale and user session on startup @@ -3045,12 +3066,12 @@ Set environment variables for system locale and user session on startup
#!/bin/bash @@ -3076,16 +3097,16 @@ manual_add_modules i915 radeon
---
@@ -3252,16 +3273,16 @@ manual_add_modules i915 radeon
xterm*background: Black @@ -3284,7 +3305,7 @@ XTerm.vt100.font: 7x13
#!/bin/bash @@ -3296,11 +3317,11 @@ XTerm.vt100.font: 7x13 -
# forward environment variables to an environment file and the systemd user session @@ -3336,7 +3357,7 @@ systemctl --user isolate yavdr-desktop.target
<?xml version="1.0" encoding="UTF-8"?> @@ -4162,7 +4183,7 @@ systemctl --user isolate yavdr-desktop.target
<?xml version="1.0" encoding="UTF-8"?> @@ -4991,11 +5012,11 @@ systemctl --user isolate yavdr-desktop.target -
[Unit] @@ -5008,7 +5029,7 @@ systemctl --user isolate yavdr-desktop.target
#!/bin/bash @@ -5037,7 +5058,7 @@ systemctl --user isolate yavdr-desktop.target
This script exchanges the primary and secondary screen. It needs access to the systemd user session. @@ -5056,7 +5077,7 @@ frontend-dbus-send start
[Unit]
@@ -5078,7 +5099,7 @@ frontend-dbus-send start
[Unit]
@@ -5101,7 +5122,7 @@ frontend-dbus-send start
[Unit]
@@ -5120,7 +5141,7 @@ frontend-dbus-send start
[Unit]
@@ -5139,7 +5160,7 @@ frontend-dbus-send start
-
irexec.service starts irexec for the user session @@ -5173,12 +5194,12 @@ end
{{ ansible_managed | comment }} @@ -5324,7 +5345,7 @@ end
{% for name, path in media_dirs.iteritems() %} @@ -5346,7 +5367,7 @@ end
include = /etc/samba/smb.conf.custom @@ -5359,15 +5380,15 @@ end
It would be nice to be able to detect if it is suitable to install those drivers:
Vendor-IDs: @@ -5378,7 +5399,7 @@ Vendor-IDs:
https://github.com/s-moch/linux-saa716x - kann man den relevanten Teil als dkms-Paket bauen? @@ -5398,15 +5419,15 @@ Vendor-IDs:
The tool ubuntu-drivers is used to install the matching driver version for nvidia graphics cards, virtualbox guest additions and Intel and AMD microcode updates.
---
@@ -5429,8 +5450,8 @@ The tool ubuntu-drivers is used to install the matching driver version for nvidi
---
@@ -5496,8 +5517,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
---
@@ -5539,8 +5560,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
{{ ansible_managed | comment }} @@ -5569,12 +5590,12 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
---
@@ -5585,8 +5606,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
---
@@ -5628,8 +5649,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
{{ ansible_managed | comment }} @@ -5657,15 +5678,15 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
If a Sat>IP Server responds to a discovery request, the package vdr-plugin-satip is installed.
---
@@ -5690,12 +5711,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5711,12 +5732,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5732,12 +5753,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5753,12 +5774,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5774,8 +5795,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5790,12 +5811,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5806,8 +5827,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5848,12 +5869,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5864,8 +5885,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5875,8 +5896,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
---
@@ -5926,15 +5947,15 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware sollte in yavdr-firmware stecken
---
@@ -5945,8 +5966,8 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
---
@@ -5963,12 +5984,12 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
---
@@ -5979,8 +6000,8 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
---
@@ -5998,12 +6019,12 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
---
@@ -6014,8 +6035,8 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
---
@@ -6031,21 +6052,21 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
- import_tasks: install-kodi.yml tags: @@ -6061,7 +6082,7 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
---
@@ -6092,7 +6113,7 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
- name: create kodi.service for the user session
@@ -6141,12 +6162,12 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
This systemd unit for the user session starts (and stops) kodi. @@ -6171,15 +6192,15 @@ This systemd unit for the user session starts (and stops) kodi.
Those configuration files provide a preconfiguration for kodi which overrides the system wide configuration
This file maps the keys defined in Lircmap.xml to actions within kodi.
<?xml version="1.0" encoding="UTF-8"?> @@ -6809,17 +6830,17 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
--- # file: roles/dvd/tasks/main.yml @@ -6858,17 +6879,17 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
---
@@ -6917,12 +6938,12 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
# ----- GLOBAL SECTION ----- @@ -7027,7 +7048,7 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
[ ]
wait for network