diff --git a/Manual.html b/Manual.html index ea3d22b..52ca671 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,22 +528,22 @@ 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 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. @@ -578,8 +578,8 @@ We use a callback to generate tags for all roles autmatically:
if (( $EUID != 0 )); then @@ -588,8 +588,6 @@ We use a callback to generate tags for all roles autmatically: fi apt-get -y install software-properties-common -# Add repository for ansible -add-apt-repository -y ppa:yavdr/experimental-main # update packages apt-get update # install required packages @@ -602,12 +600,12 @@ ansible-playbook yavdr07.yml -b -i 'localhost_inventory
The yavdr07.yml
playbook sets up a fully-featured yaVDR installation:
@@ -658,8 +656,8 @@ The yavdr07.yml
playbook sets up a fully-featured yaVDR installatio
For a headless server installation yavdr07-headless.yml
is a good choice
@@ -692,8 +690,8 @@ For a headless server installation yavdr07-headless.yml
is a good c
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: @@ -707,12 +705,12 @@ This playbook can either be used to run the installation on the localhost or any
---
@@ -730,8 +728,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 @@ -758,8 +756,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 @@ -774,8 +772,8 @@ This playbook can either be used to run the installation on the localhost or any
nfs:
@@ -784,8 +782,8 @@ This playbook can either be used to run the installation on the localhost or any
samba:
@@ -795,8 +793,8 @@ This playbook can either be used to run the installation on the localhost or any
# additional packages you want to install @@ -812,8 +810,8 @@ This playbook can either be used to run the installation on the localhost or any
frontend: vdr
@@ -828,20 +826,20 @@ This playbook can either be used to run the installation on the localhost or any
---
@@ -861,19 +859,19 @@ This playbook can either be used to run the installation on the localhost or any
install nvidia-387 from ppa:graphics-drivers/ppa
---
@@ -903,15 +901,15 @@ install nvidia-387 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.
@@ -924,7 +922,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. @@ -954,7 +952,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 @@ -968,7 +966,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. @@ -1001,15 +999,15 @@ This section allows you to set the recording directory, the user and group that
yavdr-common executes the following tasks:
---
@@ -1025,7 +1023,7 @@ yavdr-common executes the following tasks:
This task prevents apt to automatically install all recommended dependencies for packages: @@ -1042,7 +1040,7 @@ This task prevents apt to automatically install all recommended dependencies for
- name: add PPAs
@@ -1062,7 +1060,7 @@ This task prevents apt to automatically install all recommended dependencies for
- name: use bash instead of dash
@@ -1074,10 +1072,10 @@ This task prevents apt to automatically install all recommended dependencies for
- name: disable release-upgrade notifications
@@ -1099,7 +1097,7 @@ This task prevents apt to automatically install all recommended dependencies for
-
- name: apt | install basic packages
@@ -1131,7 +1129,7 @@ This task prevents apt to automatically install all recommended dependencies for
- name: apt | install extra packages
@@ -1145,13 +1143,13 @@ This task prevents apt to automatically install all recommended dependencies for
{{ ansible_managed | comment('c') }} @@ -1163,12 +1161,12 @@ APT::Install-Suggests "0";
first_run: False @@ -1176,12 +1174,12 @@ APT::Install-Suggests "0";
- name: get information about usb and pci hardware and loaded kernel modules @@ -1221,16 +1219,16 @@ APT::Install-Suggests "0";
--- @@ -1249,7 +1247,7 @@ APT::Install-Suggests "0";
- name: add svdrp and svdrp-disc to /etc/services @@ -1264,7 +1262,7 @@ APT::Install-Suggests "0";
- name: create vdr recdir @@ -1299,7 +1297,7 @@ APT::Install-Suggests "0";
The additional plugins to install can be set in the variable {{vdr_plugins}}
in the group variables
@@ -1317,7 +1315,7 @@ The additional plugins to install can be set in the variable {{vdr_plugins
- name: ensure vdr is stopped
@@ -1348,7 +1346,7 @@ The additional plugins to install can be set in the variable {{vdr_plugins
- name: create directory for vdr.service systemd drop-in files
@@ -1369,8 +1367,8 @@ The additional plugins to install can be set in the variable {{vdr_plugins
Start after network-online.target @@ -1382,12 +1380,12 @@ Start after network-online.target
LIRC.Up KEY_UP @@ -1522,7 +1520,7 @@ XKeySym.Next XF86AudioNext
# Remote control key macros for VDR @@ -1548,12 +1546,12 @@ User0 @osdteletext
install_avahi: true @@ -1561,8 +1559,8 @@ User0 @osdteletext
---
@@ -1632,15 +1630,15 @@ User0 @osdteletext
---
@@ -1669,12 +1667,12 @@ User0 @osdteletext
/srv *(rw,fsid=0,sync,no_subtree_check,all_squash,anongid={{ vdr.gid }},anonuid={{ vdr.uid }})
@@ -1685,7 +1683,7 @@ User0 @osdteletext
<?xml version="1.0" standalone='no'?> @@ -1706,12 +1704,12 @@ User0 @osdteletext
lircd0_socket: /var/run/lirc/lircd0
@@ -1719,8 +1717,8 @@ User0 @osdteletext
---
@@ -1785,12 +1783,12 @@ User0 @osdteletext
{% if frontend != 'kodi' %} @@ -1801,7 +1799,7 @@ User0 @osdteletext
[Service]
@@ -1811,7 +1809,7 @@ User0 @osdteletext
#
@@ -2002,17 +2000,17 @@ ati_remote rc-medion-x10-digitainer /lib/udev/rc_keymaps/rc-medion-x10-digi
---
@@ -2035,8 +2033,8 @@ ati_remote rc-medion-x10-digitainer /lib/udev/rc_keymaps/rc-medion-x10-digi
# Use PulseAudio by default @@ -2058,12 +2056,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.
@@ -2092,8 +2090,8 @@ In order to achive a clean shutdown of the session, x@t7.service
is
first_run: False
@@ -2101,12 +2099,12 @@ In order to achive a clean shutdown of the session, x@t7.service
is
---
@@ -2119,7 +2117,7 @@ In order to achive a clean shutdown of the session, x@t7.service
is
--- @@ -2196,6 +2194,15 @@ In order to achive a clean shutdown of the session,x@t7.service
is - feh #- yavdr-xorg +- name: apt | install packages for xorg + apt: + name: '{{ item }}' + state: present + with_items: + - i965-va-driver + - i965-va-driver-shaders + when: intel_detected + - name: download yavdr logo block: - file: @@ -2230,7 +2237,7 @@ In order to achive a clean shutdown of the session,x@t7.service
is
---
@@ -2382,14 +2389,14 @@ In order to achive a clean shutdown of the session, x@t7.service
is
# file: roles/yavdr-xorg/templates/systemd/system/x-verbose@.service.j2
@@ -2405,7 +2412,7 @@ In order to achive a clean shutdown of the session, x@t7.service
is
[Unit]
@@ -2431,7 +2438,7 @@ In order to achive a clean shutdown of the session, x@t7.service
is
{{ ansible_managed | comment }}
@@ -2443,7 +2450,7 @@ In order to achive a clean shutdown of the session, x@t7.service
is
{{ ansible_managed | comment }} @@ -2457,7 +2464,7 @@ EndSection
Section "Device"
@@ -2779,7 +2786,7 @@ EndSection
-
Set environment variables for user session on startup @@ -2796,16 +2803,16 @@ Set environment variables for user session on startup
---
@@ -2946,14 +2953,14 @@ Set environment variables for user session on startup
xterm*background: Black @@ -2976,7 +2983,7 @@ XTerm.vt100.font: 7x13
#!/bin/bash @@ -2988,9 +2995,9 @@ XTerm.vt100.font: 7x13 -
# forward environment variables to an environment file and the systemd user session @@ -3026,7 +3033,7 @@ systemctl --user isolate yavdr-desktop.target
<?xml version="1.0" encoding="UTF-8"?> @@ -3849,9 +3856,9 @@ systemctl --user isolate yavdr-desktop.target -
[Unit] @@ -3864,7 +3871,7 @@ systemctl --user isolate yavdr-desktop.target
[Unit]
@@ -3880,7 +3887,7 @@ systemctl --user isolate yavdr-desktop.target
[Unit]
@@ -3901,7 +3908,7 @@ systemctl --user isolate yavdr-desktop.target
[Unit]
@@ -3924,7 +3931,7 @@ systemctl --user isolate yavdr-desktop.target
[Unit]
@@ -3943,7 +3950,7 @@ systemctl --user isolate yavdr-desktop.target
[Unit]
@@ -3962,7 +3969,7 @@ systemctl --user isolate yavdr-desktop.target
-
irexec.service starts irexec for the user session @@ -3996,12 +4003,12 @@ end
---
@@ -4023,12 +4030,12 @@ end
---
@@ -4053,14 +4060,14 @@ end
{{ ansible_managed | comment }} @@ -4146,7 +4153,7 @@ end
{% for name, path in media_dirs.iteritems() %} @@ -4168,7 +4175,7 @@ end
include = /etc/samba/smb.conf.custom @@ -4181,15 +4188,15 @@ end
It would be nice to be able to detect if it is suitable to install those drivers:
Vendor-IDs: @@ -4200,14 +4207,14 @@ Vendor-IDs:
from http://www.vdr-portal.de/board18-vdr-hardware/board102-dvb-karten/120817-treiber-der-cine-ctv6-ddbridge-ci-in-den-kernel-integrieren/
@@ -4216,15 +4223,15 @@ from
-
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.
This role installs the guest additions for virtualbox guests on Ubuntu 16.04
@@ -4266,16 +4272,16 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
state: present
name: '{{ item }}'
with_items:
- - virtualbox-guest-dkms
- - virtualbox-guest-x11
- dkms
+ - virtualbox-guest-x11-hwe
+ - virtualbox-guest-dkms-hwe
+ - virtualbox-guest-x11-hwe
# TODO: set xineliboutput as frontend
when:
- ansible_virtualization_type == "virtualbox"
- ansible_virtualization_role == "guest"
- ansible_distribution == "Ubuntu"
- - ansible_distribution_version == "16.04"
- name: set xineliboutput as frontend
block:
@@ -4300,12 +4306,12 @@ 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.
Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware sollte in yavdr-firmware stecken
This systemd unit for the user session starts (and stops) kodi.
@@ -4955,21 +4961,22 @@ 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 allows to map keys sent by remotes via eventlircd (which uses the name
This file maps the keys defined in Lircmap.xml to actions within kodi.
This section contains custom modules for the yaVDR Playbooks. They are used to collect facts about the system and configure applications and daemons.
7.15 autoinstall-ubuntu-drivers
+7.15 autoinstall-ubuntu-drivers
7.15.1 tasks
+7.15.1 tasks
---
@@ -4239,17 +4246,16 @@ The tool ubuntu-drivers is used to install the matching driver version for nvidi
- name: use ubuntu-drivers to install additional drivers automatically
command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall
- when: (ansible_virtualization_type != "virtualbox" and ansible_virtualization_role != "guest") or
- ansible_distribution_version != "16.04"
+ when: (ansible_virtualization_type != "virtualbox" and ansible_virtualization_role != "guest")
# ubuntu-drivers-common tries to autoinstall
- # conflicting packages for virtualbox in Ubuntu 16.04 :(
+ # conflicting packages for virtualbox in Ubuntu 16.04 and 18.04 :(
7.16 autoinstall-virtualbox-guest
+7.16 autoinstall-virtualbox-guest
7.17 autoinstall-atric-usb
+7.17 autoinstall-atric-usb
7.17.1 dependencies
+7.17.1 dependencies
---
@@ -4317,8 +4323,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
7.17.2 tasks
+7.17.2 tasks
---
@@ -4361,8 +4367,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
7.17.3 templates
+7.17.3 templates
{{ ansible_managed | comment }}
@@ -4391,12 +4397,12 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
7.18 autoinstall-yausbir
+7.18 autoinstall-yausbir
7.18.1 dependencies
+7.18.1 dependencies
---
@@ -4407,8 +4413,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
7.18.2 tasks
+7.18.2 tasks
---
@@ -4451,8 +4457,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
7.18.3 templates
+7.18.3 templates
{{ ansible_managed | comment }}
@@ -4480,15 +4486,15 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
7.19 autoinstall-satip
+7.19 autoinstall-satip
7.19.1 tasks
+7.19.1 tasks
---
@@ -4513,12 +4519,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.20 autoinstall-targavfd
+7.20 autoinstall-targavfd
7.20.1 tasks
+7.20.1 tasks
---
@@ -4534,12 +4540,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.21 autoinstall-imonlcd
+7.21 autoinstall-imonlcd
7.21.1 tasks
+7.21.1 tasks
---
@@ -4555,12 +4561,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.22 autoinstall-libcecdaemon
+7.22 autoinstall-libcecdaemon
7.22.1 tasks
+7.22.1 tasks
---
@@ -4576,12 +4582,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.23 autoinstall-pvr350
+7.23 autoinstall-pvr350
7.23.1 tasks
+7.23.1 tasks
---
@@ -4597,8 +4603,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.24 autoinstall-hauppauge-pvr
+7.24 autoinstall-hauppauge-pvr
---
@@ -4613,12 +4619,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.25 autoinstall-firmware
+7.25 autoinstall-firmware
7.25.1 dependencies
+7.25.1 dependencies
---
@@ -4629,8 +4635,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.25.2 tasks
+7.25.2 tasks
---
@@ -4655,12 +4661,12 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.26 autoinstall-dvbsky-firmware
+7.26 autoinstall-dvbsky-firmware
7.26.1 dependencies
+7.26.1 dependencies
---
@@ -4671,8 +4677,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.26.2 defaults
+7.26.2 defaults
---
@@ -4682,8 +4688,8 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.26.3 tasks
+7.26.3 tasks
---
@@ -4733,15 +4739,15 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
7.27 TODO autoinstall-dvbhddevice
+7.27 TODO autoinstall-dvbhddevice
7.27.1 dependencies
+7.27.1 dependencies
---
@@ -4752,8 +4758,8 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
7.27.2 tasks
+7.27.2 tasks
---
@@ -4770,12 +4776,12 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
7.28 autoinstall-dvbsddevice
+7.28 autoinstall-dvbsddevice
7.28.1 dependencies
+7.28.1 dependencies
---
@@ -4786,8 +4792,8 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
7.28.2 tasks
+7.28.2 tasks
---
@@ -4805,12 +4811,12 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
7.29 autoinstall-hardware-irmp
+7.29 autoinstall-hardware-irmp
7.29.1 dependencies
+7.29.1 dependencies
---
@@ -4821,8 +4827,8 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
7.29.2 tasks
+7.29.2 tasks
---
@@ -4838,19 +4844,19 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
7.30 kodi
+7.30 kodi
7.30.1 tasks
+7.30.1 tasks
-
+
-
-
+- import_tasks: install-kodi.yml tags=install,update,kodi:install
- import_tasks: configure-kodi.yml tags=install,update,kodi:configure
@@ -4858,7 +4864,7 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
+
---
@@ -4876,7 +4882,7 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
+
- name: create kodi.service for the user session
@@ -4925,12 +4931,12 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
7.30.2 templates
+7.30.2 templates
-
+
7.30.3 files
+7.30.3 files
-
+
devinput
) to kodi key names.
<lircmap>
+
<?xml version="1.0" encoding="UTF-8"?>
+<lircmap>
<remote device="linux-input-layer">
<altname>cx23885_remote</altname>
<altname>devinput</altname>
@@ -5033,17 +5040,18 @@ This file allows to map keys sent by remotes via eventlircd (which uses the name
+
-
+
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
+
<?xml version="1.0" encoding="UTF-8"?>
+<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not -->
<!-- used in the current window's section. Note that there is only handling -->
<!-- for a single action per button at this stage. -->
@@ -5591,17 +5599,17 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
7.31 dvd
+7.31 dvd
7.31.1 tasks
+7.31.1 tasks
-
-
+---
# file: roles/dvd/tasks/main.yml
@@ -5641,15 +5649,15 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
7.32 install-sundtek
+7.32 install-sundtek
7.32.1 variables
+7.32.1 variables
7.32.2 tasks
+7.32.2 tasks
---
@@ -5698,8 +5706,8 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
7.32.3 templates
+7.32.3 templates
# ----- GLOBAL SECTION -----
@@ -5805,8 +5813,8 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
7.33 template-test
+7.33 template-test
---
@@ -6047,12 +6055,12 @@ EndSection
7.34 wakeup
+7.34 wakeup
7.34.1 defaults
+7.34.1 defaults
---
@@ -6062,8 +6070,8 @@ EndSection
7.34.2 tasks
+7.34.2 tasks
---
@@ -6084,8 +6092,8 @@ EndSection
7.34.3 templates
+7.34.3 templates
{{ ansible_managed | comment }}
@@ -6111,12 +6119,12 @@ ACPI_START_AHEAD=5
7.35 grub-config
+7.35 grub-config
7.35.1 default variables
+7.35.1 default variables
system:
@@ -6128,8 +6136,8 @@ ACPI_START_AHEAD=5
7.35.2 tasks
+7.35.2 tasks
---
@@ -6154,8 +6162,8 @@ ACPI_START_AHEAD=5
7.35.3 templates
+7.35.3 templates
#!/bin/sh
@@ -6178,8 +6186,8 @@ menuentry "PowerOff" {
7.35.4 handlers
+7.35.4 handlers
---
@@ -6197,15 +6205,15 @@ menuentry "PowerOff" {
8 Modules
+8 Modules
8.1 hardware_facts.py
+8.1 hardware_facts.py
# This Module collects the vendor- and device ids for USB- and PCI(e)-devices and currently loaded kernel modules.
@@ -6275,6 +6283,7 @@ This section contains custom modules for the yaVDR Playbooks. They are used to c
import sys
import usb.core
from collections import namedtuple
+from itertools import chain
import kmodpy
from ansible.module_utils.basic import *
@@ -6290,7 +6299,7 @@ This section contains custom modules for the yaVDR Playbooks. They are used to c
}
def get_pci_devices():
- for device in glob.glob('/sys/devices/pci*/*:*:*/*:*:*/'):
+ for device in chain(glob.glob('/sys/devices/pci*/*:*:*/'), glob.glob('/sys/devices/pci*/*:*:*/*:*:*/')):
try:
with open(os.path.join(device, 'device')) as d:
product_id = int(d.read().strip(), 16)
@@ -6382,8 +6391,8 @@ This section contains custom modules for the yaVDR Playbooks. They are used to c
8.2 satip_facts.py
+8.2 satip_facts.py