From 1bd3049f1692273a49eca0a92ec6710f2a2d0ded Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sun, 30 Oct 2022 10:00:24 -0400 Subject: Add more notes --- README.org | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index b4f6a13..5e1a87c 100644 --- a/README.org +++ b/README.org @@ -6,6 +6,12 @@ ansible-galaxy collection install community.general Production: needs prod-vars.yml, see prod-vars.yml.sample Docker: needs docker-vars.yml, see docker-vars.yml.sample +* How to use this playbook + +1. Install ansible on your local machine and check out this repo. +2. Copy the ansible_vars block from conf.org to prod-vars.yml in this repo (alongside inventory.yml), or set emacsconf-ansible-directory in Emacs and then use emacsconf-ansible-tangle-vars to tangle the file. +3. Find the ansible-playbook command you want to run and try it out. + * Wiki ** Ikiwiki *** Prod @@ -166,8 +172,31 @@ Use a test pattern (don't know if this works) ansible-playbook -i inventory.yml prod-playbook.yml --tags test -e icecast_test_track=dev -e icecast_test=pattern * Captioning -Set up whisper +Set up whisper: ansible-playbook -i inventory.yml prod-playbook.yml --tags caption +Update caption script: + +ansible-playbook -i inventory.yml prod-playbook.yml --tags process-captions + ffmpeg -y -i handwritten/reencode.webm -t 60 -vcodec copy -acodec copy test.webm +* Other useful things + +nodemon -w . -e yml -x 'ansible-playbook -i inventory.yml prod-playbook.yml --tags vnc; true' +* OBS + +sudo su - orga -c vncserver +ssh -L 15902:127.0.0.1:5902 res + +Resizing VNC after connection +xrandr -s 1280x720 + +pacmd load-module module-null-sink sink_name=DevelopmentSink sink_properties=device.description="DevelopmentSink" + +pavucontrol +vncserver -kill :1 +vncserver -kill :2 + +Firefox profiles like to be created in an X environment +firefox -no-remote -CreateProfile "{{ emacsconf_id }}-{{ item.item.id }} -- cgit v1.2.3