X-Git-Url: https://iankelling.org/git/?p=buildscripts;a=blobdiff_plain;f=bbb;fp=bbb;h=73aac2a00f4152e453c397971c9dbfa2aad51715;hp=0000000000000000000000000000000000000000;hb=2734f99556feff8f8861a193d77c438ac9b8aa11;hpb=6d5364acaf732814110b7ab98ef1d266276f64ee diff --git a/bbb b/bbb new file mode 100755 index 0000000..73aac2a --- /dev/null +++ b/bbb @@ -0,0 +1,62 @@ +#!/bin/bash + +# misc interesting: +# https://github.com/sergeyksv/tingodb + + +#### begin bbb-docker-dev setup +mkc /a/opt/bbb-docker-dev-setup/ +ln -s $PWD ~ + + +### begin vm setup, a/v didnt work, probably a nat issue + +s virsh dumpxml ubuntu20.04-clone-bbb | gr mac +# use mac +virsh net-update default add ip-dhcp-host "" --live --config + +virsh start ubuntu20.04-clone-bbb + +iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 16384:32768 -j DNAT --to 192.168.122.17:16384-32768 +iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j DNAT --to 192.168.122.17:80 +iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 443 -j DNAT --to 192.168.122.17:443 +# based on https://serverfault.com/a/1083813 +iptables -I LIBVIRT_FWI -o virbr0 -d 192.168.122.17 -m conntrack --ctstate DNAT,RELATED,ESTABLISHED -j ACCEPT +# alternate would be to have matching rule like this: +#iptables -D LIBVIRT_FWI -o virbr0 -p tcp -d 192.168.122.17 --dport 443 -j ACCEPT +# the accept rule here doesnt work without -i, and it is in the wrong chain. +# https://wiki.libvirt.org/page/Networking#Forwarding_Incoming_Connections + + +# on router, forward 80, 443 and these: + +cat <<'EOF' +config redirect +option name bbbudp +option src wan +option src_dport 16384:32768 +option dest lan +option dest_ip $l.7 +option proto udp +config rule +option src wan +option target ACCEPT +option dest_port 16384:32768 +option proto udp +EOF + + +wget -qO- https://ubuntu.bigbluebutton.org/bbb-install-2.5.sh | bash -sxe -- -v focal-250 -s i.b8.nz -e letsencrypt@b8.nz -a -g + + + + +### failed systemd-nspawn steps (docker doesnt work inside) + +mkschroot -s /a/bin/fai/fai/config/files/etc/apt/sources.list.d/focal.list/FOCAL focal +s ln -s /nocow/schroot/focal /var/lib/machines +https://docs.bigbluebutton.org/2.5/install.html +apt-get install -y language-pack-en +update-locale LANG=en_US.UTF-8 +s systemd-nspawn -b -M focal --bind /a +s sed -i 's/^/#/' /etc/apache2/ports.conf