From 4170bee005e5d27df8fbaca70b4463aed565f6b4 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 20:44:32 -0400 Subject: [PATCH 01/25] Update README.rst --- roles/kalite/README.rst | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index 49aa9d972..f9afea950 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -2,48 +2,46 @@ KA Lite README ============== -This role installs KA Lite, an offline version of the Khan Academy (https://www.khanacademy.org/), -written by Learning Equality (https://learningequality.org/ka-lite/). +This role installs KA Lite, an offline version of the Khan Academy (https://www.khanacademy.org), written by Learning Equality +(https://learningequality.org/ka-lite/). -KA Lite has two servers, a light httpd server that serves Khan Academy videos, and a cron server -that sets up cron jobs to download language packs and KA videos from the internet. There are -separate flags to enable these two servers. +KA Lite has two servers, a light httpd server that serves Khan Academy videos, and a cron server that sets up cron jobs to download language packs and KA videos from the internet. There are separate flags to enable these two servers. Access ------ -If enabled and with the default settings KA Lite should be accessible at http://schoolserver:8008/ +If enabled and with the default settings KA Lite should be accessible at http://box:8008 or http://box.lan:8008 -To login to kalite enter +To log in to KA Lite:: -User Name: Admin -Password: changme + Username: Admin + Password: changme Bulk Loading Videos ------------------- -Videos and their corresponding png images can be copied into /library/ka-lite/content and will -be recognized the next time kalite is started. The kalite website has instructions on getting -videos with bitsync. These videos are also smaller than the ones downloaded with the kalite -admin interface. +Videos and their corresponding png images can be copied into /library/ka-lite/content and will be recognized the next time kalite is started. Please see http://FAQ.IIAB.IO ("KA Lite Administration: What tips & tricks exist?") to use BitTorrent to download compressed KA Lite videos, that are much smaller than the ones downloaded with KA Lite's administrative interface. + +As of August 2018, please also consider the `"Transmission" BitTorrent tool `_ that will automatically download thousands of KA Lite videos for you, if install and enable it and set the language(s) you want within /etc/iiab/local_vars.yml Configuration Parameters ------------------------ -Please look in defaults/main.yml for the default values of the various install parameters. Everything -in this readme assumes the default values. +Look at `role/kalite/defaults/main.yml `_ for the default values of the various install parameters. -Trouble Shooting ----------------- +Troubleshooting +--------------- -Starting with kalite 0.15 you can run the server manually with the following commands: +Starting with KA Lite 0.15 (October 2015) you can run the server manually with the following commands: * systemctl stop kalite-serve (make sure the systemd service is not running) * export KALITE_HOME=/library/ka-lite (point kalite to the right environment) -* kalite start (start the server; can take more than 10 minutes in some environment) +* kalite start (start the server; can take more than 10 minutes in some environments) To return to using the systemd unit: * export KALITE_HOME=/library/ka-lite (point kalite to the right environment) * kalite stop * systemctl start kalite-serve + +*In late 2017, Internet-in-a-Box added a virtual environment (/usr/local/kalite/venv/) to keep KA Lite's Python and PHP package risks under control. As such the command* `/usr/bin/kalite `_ *is a wrapper to this virtualenv.* From a8b26507bdf56d18e1477c977c12d27d692f2979 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:02:24 -0400 Subject: [PATCH 02/25] Update main.yml --- roles/kalite/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/kalite/tasks/main.yml b/roles/kalite/tasks/main.yml index 6f8908d86..4afdd9d9e 100644 --- a/roles/kalite/tasks/main.yml +++ b/roles/kalite/tasks/main.yml @@ -2,12 +2,12 @@ # Assume all XOs are F18 and nothing else is -- name: Calc KA Lite db file name (Fedora 18) +- name: Set KA Lite's SQLite filename (Fedora 18) set_fact: kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite" when: is_F18 -- name: Calc KA Lite db file name (OS's other than Fedora 18) +- name: Set KA Lite's SQLite filename (OS's other than Fedora 18) set_fact: kalite_db_name: "{{ kalite_root }}/database/data.sqlite" when: not is_F18 @@ -46,7 +46,7 @@ - option: name value: "KA Lite" - option: description - value: '"KA Lite is a server to present Khan Academy videos offline and to download them."' + value: '"KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if you want to track your own progress."' - option: path value: "{{ kalite_root }}" - option: port From a4dc78fad8b4bf2b4d9d5dad5acdddba56ef4a4e Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:05:09 -0400 Subject: [PATCH 03/25] Update main.yml --- roles/kalite/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kalite/tasks/main.yml b/roles/kalite/tasks/main.yml index 4afdd9d9e..8554967ac 100644 --- a/roles/kalite/tasks/main.yml +++ b/roles/kalite/tasks/main.yml @@ -46,7 +46,7 @@ - option: name value: "KA Lite" - option: description - value: '"KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if you want to track your own progress."' + value: '"KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if students wanting to track their own progress."' - option: path value: "{{ kalite_root }}" - option: port From 92693f678fcfa754bb9194bc8141642a42f70871 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:09:03 -0400 Subject: [PATCH 04/25] Update README.rst --- roles/kalite/README.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index f9afea950..01be5676b 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -5,17 +5,19 @@ KA Lite README This role installs KA Lite, an offline version of the Khan Academy (https://www.khanacademy.org), written by Learning Equality (https://learningequality.org/ka-lite/). -KA Lite has two servers, a light httpd server that serves Khan Academy videos, and a cron server that sets up cron jobs to download language packs and KA videos from the internet. There are separate flags to enable these two servers. +KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if students wanting to track their own progress. -Access ------- +[Originally KA Lite had two servers, a light httpd server that serves Khan Academy videos, and a cron server that sets up cron jobs to download language packs and KA videos from the internet. There were separate flags to enable these two servers.] + +Using It +-------- If enabled and with the default settings KA Lite should be accessible at http://box:8008 or http://box.lan:8008 -To log in to KA Lite:: +Log in to KA Lite:: Username: Admin - Password: changme + Password: changeme Bulk Loading Videos ------------------- From 4056b5cd2d80546a485937f1e68f08799ed57b3b Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:11:31 -0400 Subject: [PATCH 05/25] Update README.rst --- roles/kalite/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index 01be5676b..b9d9571db 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -2,7 +2,7 @@ KA Lite README ============== -This role installs KA Lite, an offline version of the Khan Academy (https://www.khanacademy.org), written by Learning Equality +This role installs KA Lite, an offline version of the Khan Academy (https://www.khanacademy.org) created by Learning Equality (https://learningequality.org/ka-lite/). KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if students wanting to track their own progress. From 9abba5d58ace6d0dba13c572c0b2eb02c29aa59a Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:18:40 -0400 Subject: [PATCH 06/25] Update README.rst --- roles/kalite/README.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index b9d9571db..a516ef030 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -12,7 +12,7 @@ KA Lite downloads Khan Academy videos for offline use, with exercises and accoun Using It -------- -If enabled and with the default settings KA Lite should be accessible at http://box:8008 or http://box.lan:8008 +If enabled with the default settings, KA Lite should be accessible at http://box:8008 or http://box.lan:8008 Log in to KA Lite:: @@ -22,9 +22,11 @@ Log in to KA Lite:: Bulk Loading Videos ------------------- -Videos and their corresponding png images can be copied into /library/ka-lite/content and will be recognized the next time kalite is started. Please see http://FAQ.IIAB.IO ("KA Lite Administration: What tips & tricks exist?") to use BitTorrent to download compressed KA Lite videos, that are much smaller than the ones downloaded with KA Lite's administrative interface. +Videos and their corresponding PNG thumbnail images can be copied into /library/ka-lite/content and will be recognized the next time KA Lite is started. -As of August 2018, please also consider the `"Transmission" BitTorrent tool `_ that will automatically download thousands of KA Lite videos for you, if install and enable it and set the language(s) you want within /etc/iiab/local_vars.yml +Please see http://FAQ.IIAB.IO ("KA Lite Administration: What tips & tricks exist?") to use BitTorrent to download compressed KA Lite videos, that are much smaller than the ones downloaded via KA Lite's administrative interface. + +As of August 2018, please also consider the `"Transmission" BitTorrent tool `_ that will automatically download thousands of KA Lite videos to your Internet-in-a-Box (IIAB) — if you install and enable "transmission" within /etc/iiab/local_vars.yml — carefully choosing the language(s) you want as downloading these videos can take many hours if not days! Configuration Parameters ------------------------ From a02f3a16b0919ab7b679dce268ca0638e07592c5 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:25:43 -0400 Subject: [PATCH 07/25] Update main.yml --- roles/calibre-web/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/calibre-web/tasks/main.yml b/roles/calibre-web/tasks/main.yml index 7856e7e8e..34f2b2b60 100644 --- a/roles/calibre-web/tasks/main.yml +++ b/roles/calibre-web/tasks/main.yml @@ -86,7 +86,8 @@ state: restarted when: calibreweb_enabled -- name: Enable http://box/calibre-web with Apache +# Default: http://box/books +- name: Enable http://box{{ calibreweb_url }} with Apache command: a2ensite calibre-web.conf when: calibreweb_enabled From b8da259041347dff58a76a827119e58401102159 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:34:32 -0400 Subject: [PATCH 08/25] Update README.rst --- roles/kalite/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index a516ef030..ac4e39354 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -2,10 +2,10 @@ KA Lite README ============== -This role installs KA Lite, an offline version of the Khan Academy (https://www.khanacademy.org) created by Learning Equality +This role installs KA Lite, an offline version of Khan Academy (https://www.khanacademy.org) created by Learning Equality (https://learningequality.org/ka-lite/). -KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if students wanting to track their own progress. +KA Lite downloads Khan Academy videos to your Internet-in-a-Box for offline use, with exercises and accounts if students want to track their own progress. [Originally KA Lite had two servers, a light httpd server that serves Khan Academy videos, and a cron server that sets up cron jobs to download language packs and KA videos from the internet. There were separate flags to enable these two servers.] From c8684d841d0bd7e48d312b8a09997e8ebe8e719f Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:35:26 -0400 Subject: [PATCH 09/25] Update main.yml --- roles/kalite/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kalite/tasks/main.yml b/roles/kalite/tasks/main.yml index 8554967ac..07c965d68 100644 --- a/roles/kalite/tasks/main.yml +++ b/roles/kalite/tasks/main.yml @@ -46,7 +46,7 @@ - option: name value: "KA Lite" - option: description - value: '"KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if students wanting to track their own progress."' + value: '"KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if students want to track their own progress."' - option: path value: "{{ kalite_root }}" - option: port From 095ad771fb83f9d7b71b978f4fa3b5a771573a63 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:40:13 -0400 Subject: [PATCH 10/25] Update README.rst --- roles/kalite/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index ac4e39354..49fc944c7 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -14,7 +14,7 @@ Using It If enabled with the default settings, KA Lite should be accessible at http://box:8008 or http://box.lan:8008 -Log in to KA Lite:: +After your Internet-in-a-Box (IIAB) is completely installed, log in to KA Lite to explore and configure it:: Username: Admin Password: changeme From 5a18fed15715fb891ec401999d61b1e1bf07d388 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:41:34 -0400 Subject: [PATCH 11/25] Update README.rst --- roles/kalite/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index 49fc944c7..58c38e428 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -19,8 +19,8 @@ After your Internet-in-a-Box (IIAB) is completely installed, log in to KA Lite t Username: Admin Password: changeme -Bulk Loading Videos -------------------- +Bulk Downloading Videos +----------------------- Videos and their corresponding PNG thumbnail images can be copied into /library/ka-lite/content and will be recognized the next time KA Lite is started. From c6742d0e24bf8a92af7f888a2fc6c01aa541ba1d Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:48:28 -0400 Subject: [PATCH 12/25] Update README.rst --- roles/kalite/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index 58c38e428..beb06f08b 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -48,4 +48,4 @@ To return to using the systemd unit: * kalite stop * systemctl start kalite-serve -*In late 2017, Internet-in-a-Box added a virtual environment (/usr/local/kalite/venv/) to keep KA Lite's Python and PHP package risks under control. As such the command* `/usr/bin/kalite `_ *is a wrapper to this virtualenv.* +*In late 2017, Internet-in-a-Box added a virtual environment (/usr/local/kalite/venv/) to keep KA Lite's Python package/dependency risks under control. As such the command* `/usr/bin/kalite `_ *is a wrapper to this virtualenv.* From 762bb4eb0edf48dfe4fa38fd9f2f92078dd2e06d Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:49:27 -0400 Subject: [PATCH 13/25] Update README.rst --- roles/kalite/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kalite/README.rst b/roles/kalite/README.rst index beb06f08b..fc16dd439 100644 --- a/roles/kalite/README.rst +++ b/roles/kalite/README.rst @@ -14,7 +14,7 @@ Using It If enabled with the default settings, KA Lite should be accessible at http://box:8008 or http://box.lan:8008 -After your Internet-in-a-Box (IIAB) is completely installed, log in to KA Lite to explore and configure it:: +After your Internet-in-a-Box (IIAB) is completely installed, log in to KA Lite to explore and configure:: Username: Admin Password: changeme From a4d218249438d23998990d5d77ac24fb173d0346 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 21:58:18 -0400 Subject: [PATCH 14/25] Update README.rst --- roles/transmission/README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/transmission/README.rst b/roles/transmission/README.rst index 5f751a667..36cb95b19 100644 --- a/roles/transmission/README.rst +++ b/roles/transmission/README.rst @@ -17,7 +17,7 @@ Caveat emptor! (That's Latin for "Buyer Beware") Using It -------- -Install Transmission by setting 'transmission_install' and 'transmission_enabled' to True in /etc/iiab/local_vars.yml and then running:: +Install Transmission by setting 'transmission_install' and 'transmission_enabled' to True in `/etc/iiab/local_vars.yml `_ — carefully choosing language(s) for KA Lite videos you want to download — and then run:: cd /opt/iiab/iiab ./runrole transmission @@ -59,7 +59,7 @@ Adding Torrents Transmission can facilitate provisioning content onto your IIAB, e.g. by adding thousands of KA Lite videos from places like: http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ -Please read the lettered instructions (A, B, C, D) in /etc/iiab/local_vars.yml and 'KA Lite Administration: What tips & tricks exist?' at http://FAQ.IIAB.IO outlining how to use Transmission to download and then install KA Lite content. +Please read the lettered instructions (A, B, C, D) in `/etc/iiab/local_vars.yml `_ and 'KA Lite Administration: What tips & tricks exist?' at http://FAQ.IIAB.IO outlining how to use Transmission to download and then install KA Lite content. You can also download other torrents using Transmission's web interface, or by typing 'transmission-remote' at the command-line:: @@ -68,7 +68,7 @@ You can also download other torrents using Transmission's web interface, or by t Known Issues ------------ -* Default Transmission user/group may need fixing (https://github.com/transmission/transmission/issues/537). You can set Ansible variables 'transmission_user' and 'transmission_group' e.g. in /opt/iiab/iiab/roles/transmission/defaults/main.yml (you might need 'User=' and 'Group=' in systemd unit file /lib/systemd/system/transmission-daemon.service — both might need to be set to 'debian-transmission' — if so 'systemctl daemon-reload' then 'systemctl restart transmission-daemon'). +* Default Transmission user/group may need fixing (https://github.com/transmission/transmission/issues/537) in some circumstances. You can set Ansible variables 'transmission_user' and 'transmission_group' e.g. in /opt/iiab/iiab/roles/transmission/defaults/main.yml (you might need 'User=' and 'Group=' in systemd unit file /lib/systemd/system/transmission-daemon.service — e.g. both might need to be set to 'debian-transmission' — if so then run 'systemctl daemon-reload' and 'systemctl restart transmission-daemon'). * Random Ports: Currently it is not possible to use random ports in the range 49152-65535. It is difficult to open multiple ports in IIAB's iptables-based firewall. From 42fd905388373cd3deb60966c5fd6b4bafb4ecdb Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 30 Aug 2018 23:10:22 -0400 Subject: [PATCH 15/25] Update kiwix.conf.j2 --- roles/kiwix/templates/kiwix.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kiwix/templates/kiwix.conf.j2 b/roles/kiwix/templates/kiwix.conf.j2 index 641c86193..4770a77d9 100644 --- a/roles/kiwix/templates/kiwix.conf.j2 +++ b/roles/kiwix/templates/kiwix.conf.j2 @@ -1,4 +1,4 @@ RewriteEngine on RewriteRule ^{{ kiwix_alias_url }}$ {{ kiwix_url }} [R] -ProxyPass {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} +ProxyPass {{ kiwix_alias_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} From 36e80169d3181e679d3b45ce388fbec91bb9334e Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 00:23:54 -0400 Subject: [PATCH 16/25] URLs box/kiwix & box/kiwix/zim both now work! --- roles/kiwix/templates/kiwix.conf.j2 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/kiwix/templates/kiwix.conf.j2 b/roles/kiwix/templates/kiwix.conf.j2 index 4770a77d9..d34140f19 100644 --- a/roles/kiwix/templates/kiwix.conf.j2 +++ b/roles/kiwix/templates/kiwix.conf.j2 @@ -1,4 +1,10 @@ -RewriteEngine on -RewriteRule ^{{ kiwix_alias_url }}$ {{ kiwix_url }} [R] +# 2018-08-31: FAILS to enable http://box/kiwix +#RewriteEngine on +#RewriteRule ^{{ kiwix_alias_url }}$ {{ kiwix_url }} [R] -ProxyPass {{ kiwix_alias_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} +# 2018-08-31: SUCCEEDS in enabling http://box/kiwix +RedirectMatch ^{{ kiwix_alias_url }}$ {{ kiwix_url }} + +#ProxyPreserveHost On +ProxyPass {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} +#ProxyPassReverse {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} From 1143d031f6c33e26728c57b0f62ee9c334dc99b6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 00:32:38 -0400 Subject: [PATCH 17/25] Update kiwix.conf.j2 --- roles/kiwix/templates/kiwix.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kiwix/templates/kiwix.conf.j2 b/roles/kiwix/templates/kiwix.conf.j2 index d34140f19..3132ba2e8 100644 --- a/roles/kiwix/templates/kiwix.conf.j2 +++ b/roles/kiwix/templates/kiwix.conf.j2 @@ -5,6 +5,7 @@ # 2018-08-31: SUCCEEDS in enabling http://box/kiwix RedirectMatch ^{{ kiwix_alias_url }}$ {{ kiwix_url }} +# 2018-08-31: SUCCEEDS in enabling http://box/kiwix/ & http://box/kiwix/zim & http://box/kiwix/zim/ #ProxyPreserveHost On ProxyPass {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} #ProxyPassReverse {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} From 672943a2ebe588eead6e881429907b2367268f88 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 02:44:40 -0400 Subject: [PATCH 18/25] Update main.yml --- roles/transmission/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/transmission/tasks/main.yml b/roles/transmission/tasks/main.yml index 6bb907551..540408234 100644 --- a/roles/transmission/tasks/main.yml +++ b/roles/transmission/tasks/main.yml @@ -39,6 +39,7 @@ - name: Add KA Lite torrent(s) to transmission-daemon's queue shell: > /usr/bin/transmission-remote + --start-paused -n {{ transmission_username }}:{{ transmission_password }} -a http://pantry.learningequality.org/downloads/ka-lite/{{ transmission_kalite_version }}/content/ka-lite-0.17-resized-videos-{{ item }}.torrent with_items: "{{ transmission_kalite_languages }}" From 904a5a0300c31517ec69f7082546b2ccde82eb33 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 02:57:23 -0400 Subject: [PATCH 19/25] Update main.yml --- roles/transmission/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/transmission/tasks/main.yml b/roles/transmission/tasks/main.yml index 540408234..6eca4c49c 100644 --- a/roles/transmission/tasks/main.yml +++ b/roles/transmission/tasks/main.yml @@ -36,7 +36,7 @@ state: restarted when: transmission_enabled -- name: Add KA Lite torrent(s) to transmission-daemon's queue +- name: Add PAUSED KA Lite torrent(s) to transmission-daemon's queue shell: > /usr/bin/transmission-remote --start-paused From 8b692493605b97cdf3d3cee13b5d15b474a6b9e7 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 03:18:53 -0400 Subject: [PATCH 20/25] Update main.yml --- roles/9-local-addons/tasks/main.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/roles/9-local-addons/tasks/main.yml b/roles/9-local-addons/tasks/main.yml index 0479c4734..317c54d38 100644 --- a/roles/9-local-addons/tasks/main.yml +++ b/roles/9-local-addons/tasks/main.yml @@ -15,12 +15,6 @@ when: calibreweb_install tags: calibre-web -- name: TRANSMISSION - include_role: - name: transmission - when: transmission_install - tags: transmission - - name: Recording STAGE 9 HAS COMPLETED ==================== lineinfile: dest: /etc/iiab/iiab.env From 4edcec80d550f570b367ebd28961ac40db881d65 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 03:19:05 -0400 Subject: [PATCH 21/25] Update main.yml --- roles/8-mgmt-tools/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/8-mgmt-tools/tasks/main.yml b/roles/8-mgmt-tools/tasks/main.yml index c29b86169..b94404814 100644 --- a/roles/8-mgmt-tools/tasks/main.yml +++ b/roles/8-mgmt-tools/tasks/main.yml @@ -3,6 +3,12 @@ - name: ...IS BEGINNING ====================================== command: echo +- name: TRANSMISSION + include_role: + name: transmission + when: transmission_install + tags: transmission + - name: AWSTATS include_role: name: awstats From 86f370714f3501bb0fadc80dc8b942fcb2bbd5ee Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 03:46:04 -0400 Subject: [PATCH 22/25] Update default_vars.yml --- vars/default_vars.yml | 78 +++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/vars/default_vars.yml b/vars/default_vars.yml index 1756516c9..ba13fdb15 100644 --- a/vars/default_vars.yml +++ b/vars/default_vars.yml @@ -327,6 +327,45 @@ sugarizer_port: 8089 # 8-MGMT-TOOLS +# Transmission is a BitTorrent downloader for large Content Packs etc +transmission_install: False +transmission_enabled: False + +# Transmission download directory & general owner/group +transmission_download_dir: "{{ content_base }}/transmission/" # /library/transmission/ +transmission_user: debian-transmission +transmission_group: root + +# Monitor downloads at http://box:9091 or http://box:9091/transmission using Admin/changeme +transmission_http_port: 9091 +transmission_url : "/transmission/" +transmission_peer_port: 51413 + +# Provision Transmission with torrent(s) from http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ +transmission_provision: True +transmission_kalite_version: 0.17 + +# A. Uncomment language(s) in /etc/iiab/local_vars.yml to download KA Lite videos to /library/transmission +transmission_kalite_languages: + - english + #- french + #- hindi + #- portugal-portuguese + #- brazilian-portuguese + #- spanish + #- swahili +# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme +# until the download is confirmed complete (can take hours if not days!) +# C. Carefully move all videos/thumbnails into /library/ka-lite/content +# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) +# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme +# then click "Scan content folder for videos" (can take many minutes!) +# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO + +# Transmission administrative account +transmission_username: Admin +transmission_password: changeme + # AWStats - summarizes http access logs awstats_install: True awstats_enabled: False @@ -380,45 +419,6 @@ calibreweb_port: 8083 calibreweb_url: /books calibreweb_home: "{{ content_base }}/calibre-web" # /library/calibre-web -# Transmission is a BitTorrent downloader for large Content Packs etc -transmission_install: False -transmission_enabled: False - -# Transmission download directory & general owner/group -transmission_download_dir: "{{ content_base }}/transmission/" # /library/transmission/ -transmission_user: debian-transmission -transmission_group: root - -# Monitor downloads at http://box:9091 or http://box:9091/transmission using Admin/changeme -transmission_http_port: 9091 -transmission_url : "/transmission/" -transmission_peer_port: 51413 - -# Provision Transmission with torrent(s) from http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ -transmission_provision: True -transmission_kalite_version: 0.17 - -# A. Uncomment language(s) in /etc/iiab/local_vars.yml to download KA Lite videos to /library/transmission -transmission_kalite_languages: - - english - #- french - #- hindi - #- portugal-portuguese - #- brazilian-portuguese - #- spanish - #- swahili -# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme -# until the download is confirmed complete (can take hours or days!) -# C. Carefully move all videos/thumbnails into /library/ka-lite/content -# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) -# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme -# then click "Scan content folder for videos" (can take many minutes!) -# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO - -# Transmission administrative account -transmission_username: Admin -transmission_password: changeme - # TeamViewer - unmaintained (better to install from http://teamviewer.com or prep scripts at http://download.iiab.io) # teamviewer_install: False From 578b3fe00caae66a4aad62c93682765b3f1bde5f Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 03:47:00 -0400 Subject: [PATCH 23/25] Update local_vars_min.yml --- vars/local_vars_min.yml | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/vars/local_vars_min.yml b/vars/local_vars_min.yml index 6c19e7125..b94d5e0eb 100644 --- a/vars/local_vars_min.yml +++ b/vars/local_vars_min.yml @@ -186,6 +186,27 @@ sugarizer_enabled: False # 8-MGMT-TOOLS +# BitTorrent downloader for large Content Packs etc +transmission_install: False +transmission_enabled: False +# A. Uncomment language(s) to download KA Lite videos to /library/transmission +# using http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ +transmission_kalite_languages: + - english + #- french + #- hindi + #- portugal-portuguese + #- brazilian-portuguese + #- spanish + #- swahili +# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme +# until the download is confirmed complete (can take hours if not days!) +# C. Carefully move all videos/thumbnails into /library/ka-lite/content +# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) +# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme +# then click "Scan content folder for videos" (can take many minutes!) +# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO + awstats_install: True awstats_enabled: True @@ -229,27 +250,6 @@ calibreweb_port: 8083 calibreweb_url: /books calibreweb_home: "{{ content_base }}/calibre-web" # /library/calibre-web -# BitTorrent downloader for large Content Packs etc -transmission_install: False -transmission_enabled: False -# A. Uncomment language(s) to download KA Lite videos to /library/transmission -# using http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ -transmission_kalite_languages: - - english - #- french - #- hindi - #- portugal-portuguese - #- brazilian-portuguese - #- spanish - #- swahili -# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme -# until the download is confirmed complete (can take hours or days!) -# C. Carefully move all videos/thumbnails into /library/ka-lite/content -# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) -# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme -# then click "Scan content folder for videos" (can take many minutes!) -# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO - # Unmaintained (better to install from http://teamviewer.com or prep scripts at http://download.iiab.io) # teamviewer_install: False From 3617c5466ae02252bd8837961e035f021c6baa88 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 03:47:37 -0400 Subject: [PATCH 24/25] Update local_vars_medium.yml --- vars/local_vars_medium.yml | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/vars/local_vars_medium.yml b/vars/local_vars_medium.yml index 6f2f5f6bf..9d220a81e 100644 --- a/vars/local_vars_medium.yml +++ b/vars/local_vars_medium.yml @@ -186,6 +186,27 @@ sugarizer_enabled: True # 8-MGMT-TOOLS +# BitTorrent downloader for large Content Packs etc +transmission_install: False +transmission_enabled: False +# A. Uncomment language(s) to download KA Lite videos to /library/transmission +# using http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ +transmission_kalite_languages: + - english + #- french + #- hindi + #- portugal-portuguese + #- brazilian-portuguese + #- spanish + #- swahili +# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme +# until the download is confirmed complete (can take hours if not days!) +# C. Carefully move all videos/thumbnails into /library/ka-lite/content +# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) +# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme +# then click "Scan content folder for videos" (can take many minutes!) +# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO + awstats_install: True awstats_enabled: True @@ -229,27 +250,6 @@ calibreweb_port: 8083 calibreweb_url: /books calibreweb_home: "{{ content_base }}/calibre-web" # /library/calibre-web -# BitTorrent downloader for large Content Packs etc -transmission_install: False -transmission_enabled: False -# A. Uncomment language(s) to download KA Lite videos to /library/transmission -# using http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ -transmission_kalite_languages: - - english - #- french - #- hindi - #- portugal-portuguese - #- brazilian-portuguese - #- spanish - #- swahili -# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme -# until the download is confirmed complete (can take hours or days!) -# C. Carefully move all videos/thumbnails into /library/ka-lite/content -# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) -# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme -# then click "Scan content folder for videos" (can take many minutes!) -# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO - # Unmaintained (better to install from http://teamviewer.com or prep scripts at http://download.iiab.io) # teamviewer_install: False From 0ffdbb73b146f3d3ecffcea99d7a88800bbc8468 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 31 Aug 2018 03:48:06 -0400 Subject: [PATCH 25/25] Update local_vars_big.yml --- vars/local_vars_big.yml | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/vars/local_vars_big.yml b/vars/local_vars_big.yml index 142cdf298..be4b30e08 100644 --- a/vars/local_vars_big.yml +++ b/vars/local_vars_big.yml @@ -186,6 +186,27 @@ sugarizer_enabled: True # 8-MGMT-TOOLS +# BitTorrent downloader for large Content Packs etc +transmission_install: False +transmission_enabled: False +# A. Uncomment language(s) to download KA Lite videos to /library/transmission +# using http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ +transmission_kalite_languages: + - english + #- french + #- hindi + #- portugal-portuguese + #- brazilian-portuguese + #- spanish + #- swahili +# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme +# until the download is confirmed complete (can take hours if not days!) +# C. Carefully move all videos/thumbnails into /library/ka-lite/content +# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) +# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme +# then click "Scan content folder for videos" (can take many minutes!) +# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO + awstats_install: True awstats_enabled: True @@ -229,27 +250,6 @@ calibreweb_port: 8083 calibreweb_url: /books calibreweb_home: "{{ content_base }}/calibre-web" # /library/calibre-web -# BitTorrent downloader for large Content Packs etc -transmission_install: False -transmission_enabled: False -# A. Uncomment language(s) to download KA Lite videos to /library/transmission -# using http://pantry.learningequality.org/downloads/ka-lite/0.17/content/ -transmission_kalite_languages: - - english - #- french - #- hindi - #- portugal-portuguese - #- brazilian-portuguese - #- spanish - #- swahili -# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme -# until the download is confirmed complete (can take hours or days!) -# C. Carefully move all videos/thumbnails into /library/ka-lite/content -# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !) -# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme -# then click "Scan content folder for videos" (can take many minutes!) -# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO - # Unmaintained (better to install from http://teamviewer.com or prep scripts at http://download.iiab.io) # teamviewer_install: False