Update Manual.org
This commit is contained in:
parent
bae1028bc7
commit
6094471c3d
68
Manual.org
68
Manual.org
@ -1,4 +1,5 @@
|
|||||||
# -*- mode: org; -*-
|
# -*- mode: org; -*-
|
||||||
|
:DOCUMENT_OPTIONS:
|
||||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/htmlize.css"/>
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/htmlize.css"/>
|
||||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/readtheorg.css"/>
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/readtheorg.css"/>
|
||||||
|
|
||||||
@ -7,6 +8,7 @@
|
|||||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js"></script>
|
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js"></script>
|
||||||
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/readtheorg/js/readtheorg.js"></script>
|
#+HTML_HEAD: <script type="text/javascript" src="http://www.pirilampo.org/styles/readtheorg/js/readtheorg.js"></script>
|
||||||
#+OPTIONS: ^:nil
|
#+OPTIONS: ^:nil
|
||||||
|
:END:
|
||||||
* Installing and configuring yaVDR with Ansible
|
* Installing and configuring yaVDR with Ansible
|
||||||
This is an experimental feature which allows to set up a yaVDR installation based on a normal Ubuntu Server 16.04.x installation using [[http://ansible.com][Ansible]].
|
This is an experimental feature which allows to set up a yaVDR installation based on a normal Ubuntu Server 16.04.x installation using [[http://ansible.com][Ansible]].
|
||||||
|
|
||||||
@ -348,7 +350,7 @@ APT::Install-Suggests "0";
|
|||||||
- /srv/backups
|
- /srv/backups
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** yavdr-network
|
** STARTED yavdr-network
|
||||||
*** default variables
|
*** default variables
|
||||||
|
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-network/main.yml :mkdirp yes
|
#+BEGIN_SRC yaml :tangle roles/yavdr-network/main.yml :mkdirp yes
|
||||||
@ -386,7 +388,7 @@ install_samba_server: true
|
|||||||
# with_items: '{% for interface in ansible_interfaces if interface != 'lo' and interface != 'bond0' %}'
|
# with_items: '{% for interface in ansible_interfaces if interface != 'lo' and interface != 'bond0' %}'
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** nfs-server
|
** STARTED nfs-server
|
||||||
*** tasks
|
*** tasks
|
||||||
#+BEGIN_SRC yaml :tanlge roles/nfs-server/tasks/main.yml :mkdirp yes
|
#+BEGIN_SRC yaml :tanlge roles/nfs-server/tasks/main.yml :mkdirp yes
|
||||||
- name: install and configure nfs-kernel-server
|
- name: install and configure nfs-kernel-server
|
||||||
@ -399,11 +401,35 @@ install_samba_server: true
|
|||||||
when:
|
when:
|
||||||
- '{{ install_nfs_server }}'
|
- '{{ install_nfs_server }}'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** yavdr-remote
|
** TODO yavdr-remote
|
||||||
*** default variables
|
*** default variables
|
||||||
*** tasks
|
*** tasks
|
||||||
*** templates
|
*** templates
|
||||||
*** files
|
*** files
|
||||||
|
** TODO automatic X-server configuration
|
||||||
|
- [ ] detect connected display
|
||||||
|
- [ ] read EDID from displays
|
||||||
|
- [ ] create a xorg.conf for nvidia/intel/amd gpus
|
||||||
|
*** templates
|
||||||
|
#+BEGIN_SRC conf :tangle roles/yavdr-xorg/templates/vdr-xorg.conf :mkdirp yes
|
||||||
|
# file: roles/yavdr-xorg/templates/vdr-xorg.conf
|
||||||
|
# {{ ansible_managed_file }}
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
After=x@vt7.service
|
||||||
|
Wants=x@vt7.service
|
||||||
|
BindsTo=x@vt7.service
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC sh :tangle roles/yavdr-xorg/templates/.xinitrc.j2 :mkdirp yes
|
||||||
|
#!/bin/bash
|
||||||
|
# {{ ansible_managed_file }}
|
||||||
|
exec openbox-session
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC sh tangle: ansible/yavdr-ansible/roles/yavdr-xorg/templates/autostart.j2 :mkdirp yes
|
||||||
|
env | grep "DISPLAY\|DBUS_SESSION_BUS_ADDRESS\|XDG_RUNTIME_DIR" > ~/.session-env
|
||||||
|
systemctl --user import-environment
|
||||||
|
#+END_SRC
|
||||||
|
*** files
|
||||||
** yavdr-xorg
|
** yavdr-xorg
|
||||||
*** default variables
|
*** default variables
|
||||||
*** tasks
|
*** tasks
|
||||||
@ -424,7 +450,6 @@ install_samba_server: true
|
|||||||
#- yavdr-xorg
|
#- yavdr-xorg
|
||||||
- openbox
|
- openbox
|
||||||
|
|
||||||
# TODO: move to yavdr-xorg package?
|
|
||||||
- name: create folders for user session
|
- name: create folders for user session
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
@ -449,7 +474,7 @@ install_samba_server: true
|
|||||||
dest: /etc/systemd/system/vdr.service.d/
|
dest: /etc/systemd/system/vdr.service.d/
|
||||||
### END TODO ###
|
### END TODO ###
|
||||||
|
|
||||||
- name: set up .xinitrc for vdr user
|
- name: create .xinitrc for vdr user
|
||||||
template:
|
template:
|
||||||
src: 'templates/.xinitrc.j2'
|
src: 'templates/.xinitrc.j2'
|
||||||
dest: '/var/lib/vdr/.xinitrc'
|
dest: '/var/lib/vdr/.xinitrc'
|
||||||
@ -457,7 +482,7 @@ install_samba_server: true
|
|||||||
owner: '{{ vdr.user }}'
|
owner: '{{ vdr.user }}'
|
||||||
group: '{{ vdr.group }}'
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: set up autostart for openbox
|
- name: populate autostart for openbox
|
||||||
template:
|
template:
|
||||||
src: 'templates/autostart.j2'
|
src: 'templates/autostart.j2'
|
||||||
dest: '/var/lib/vdr/.config/openbox/autostart'
|
dest: '/var/lib/vdr/.config/openbox/autostart'
|
||||||
@ -474,33 +499,13 @@ install_samba_server: true
|
|||||||
groups: '{{ vdr.group }}'
|
groups: '{{ vdr.group }}'
|
||||||
append: yes
|
append: yes
|
||||||
|
|
||||||
- name: enable and start xlogin for vdr user
|
- name: enable and start xlogin for the vdr user
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
name: 'xlogin@{{ vdr.user }}'
|
name: 'xlogin@{{ vdr.user }}'
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** templates
|
|
||||||
#+BEGIN_SRC conf :tangle roles/yavdr-xorg/templates/vdr-xorg.conf :mkdirp yes
|
|
||||||
# file: roles/yavdr-xorg/templates/vdr-xorg.conf
|
|
||||||
# {{ ansible_managed_file }}
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
After=x@vt7.service
|
|
||||||
Wants=x@vt7.service
|
|
||||||
BindsTo=x@vt7.service
|
|
||||||
#+END_SRC
|
|
||||||
#+BEGIN_SRC sh :tangle roles/yavdr-xorg/templates/.xinitrc.j2 :mkdirp yes
|
|
||||||
#!/bin/bash
|
|
||||||
# {{ ansible_managed_file }}
|
|
||||||
exec openbox-session
|
|
||||||
#+END_SRC
|
|
||||||
#+BEGIN_SRC sh tangle: ansible/yavdr-ansible/roles/yavdr-xorg/templates/autostart.j2 :mkdirp yes
|
|
||||||
env | grep "DISPLAY\|DBUS_SESSION_BUS_ADDRESS\|XDG_RUNTIME_DIR" > ~/.session-env
|
|
||||||
systemctl --user import-environment
|
|
||||||
#+END_SRC
|
|
||||||
*** files
|
|
||||||
** samba-install
|
** samba-install
|
||||||
*** tasks
|
*** tasks
|
||||||
#+BEGIN_SRC yaml :tangle roles/samba-install/tasks/main.yml :mkdirp yes
|
#+BEGIN_SRC yaml :tangle roles/samba-install/tasks/main.yml :mkdirp yes
|
||||||
@ -689,6 +694,15 @@ fi
|
|||||||
# TODO: Do we need to use grub-set-default?
|
# TODO: Do we need to use grub-set-default?
|
||||||
# https://github.com/yavdr/yavdr-utils/blob/master/events/actions/update-grub
|
# https://github.com/yavdr/yavdr-utils/blob/master/events/actions/update-grub
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** TODO autoinstall-drivers
|
||||||
|
*** sundtek
|
||||||
|
***
|
||||||
|
** TODO autoinstall-plugins
|
||||||
|
*** imonlcd
|
||||||
|
*** targavfd
|
||||||
|
*** sddevice
|
||||||
|
*** hddevice
|
||||||
|
*** pvr350
|
||||||
* Handlers
|
* Handlers
|
||||||
#+BEGIN_SRC yaml :tangle handlers/main.yml :mkdirp yes
|
#+BEGIN_SRC yaml :tangle handlers/main.yml :mkdirp yes
|
||||||
- name: Restart Samba
|
- name: Restart Samba
|
||||||
|
Loading…
Reference in New Issue
Block a user