Created
June 14, 2023 15:33
-
-
Save mtlynch/0a90837a5d335e2b7fdf3237ff38d6ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ HAS_PRO_INSTALLED=0 | |
++ dirname bash | |
+ SCRIPT_DIR=. | |
+ [[ . = \. ]] | |
+ SCRIPT_DIR=/opt/tinypilot | |
+ readonly SCRIPT_DIR | |
+ readonly TINYPILOT_README=/opt/tinypilot/README.md | |
+ TINYPILOT_README=/opt/tinypilot/README.md | |
+ [[ -f /opt/tinypilot/README.md ]] | |
+ readonly HAS_PRO_INSTALLED | |
+ [[ 0 = 1 ]] | |
+ readonly LEGACY_INSTALLER_DIR=/opt/tinypilot-updater | |
+ LEGACY_INSTALLER_DIR=/opt/tinypilot-updater | |
+ readonly RAMDISK_SIZE_MIB=500 | |
+ RAMDISK_SIZE_MIB=500 | |
++ free --mebi | |
++ grep --fixed-strings Mem: | |
++ tr --squeeze-repeats ' ' | |
++ cut --delimiter ' ' --fields 4 | |
+ FREE_MEMORY_MIB=383 | |
+ readonly FREE_MEMORY_MIB | |
+ INSTALLER_DIR=/mnt/tinypilot-installer | |
+ trap clean_up EXIT | |
+ (( 383 >= 500 )) | |
++ mktemp --directory | |
+ INSTALLER_DIR=/tmp/tmp.gtUZaPnxWy | |
+ readonly INSTALLER_DIR | |
+ readonly BUNDLE_FILE=/tmp/tmp.gtUZaPnxWy/bundle.tgz | |
+ BUNDLE_FILE=/tmp/tmp.gtUZaPnxWy/bundle.tgz | |
++ curl https://gk.tinypilotkvm.com/community/download/latest --location --output /tmp/tmp.gtUZaPnxWy/bundle.tgz --write-out '%{http_code}' --silent | |
+ HTTP_CODE=200 | |
+ readonly HTTP_CODE | |
+ [[ 200 != \2\0\0 ]] | |
+ sudo tar --gunzip --extract --file /tmp/tmp.gtUZaPnxWy/bundle.tgz --directory /tmp/tmp.gtUZaPnxWy | |
+ sudo chown root:root --recursive /tmp/tmp.gtUZaPnxWy | |
+ [[ 0 -eq 1 ]] | |
+ pushd /tmp/tmp.gtUZaPnxWy | |
/tmp/tmp.gtUZaPnxWy ~ | |
+ sudo ./install | |
+ . lib.sh | |
+ readonly TEMP_DIR=/var/tmp | |
+ TEMP_DIR=/var/tmp | |
++ mktemp --tmpdir=/var/tmp --suffix .yml | |
+ INSTALL_SETTINGS_FILE=/var/tmp/tmp.Jknoaq0rqa.yml | |
+ readonly INSTALL_SETTINGS_FILE | |
+ readonly TINYPILOT_SETTINGS_FILE=/home/tinypilot/settings.yml | |
+ TINYPILOT_SETTINGS_FILE=/home/tinypilot/settings.yml | |
+ readonly USTREAMER_SETTINGS_FILE=/home/ustreamer/config.yml | |
+ USTREAMER_SETTINGS_FILE=/home/ustreamer/config.yml | |
++ ls tinypilot_20230613161050_armhf.deb | |
+ TINYPILOT_DEBIAN_PACKAGE=tinypilot_20230613161050_armhf.deb | |
+ readonly TINYPILOT_DEBIAN_PACKAGE | |
+ trap clean_up EXIT | |
+ grep -q '^Model *: Raspberry Pi 3' /proc/cpuinfo | |
++ lsb_release --id --short | |
+ [[ Debian == \R\a\s\p\b\i\a\n ]] | |
+ grep -q boot=overlay /proc/cmdline | |
+ [[ -f /home/tinypilot/settings.yml ]] | |
+ echo 'No pre-existing settings file found at: /home/tinypilot/settings.yml' | |
No pre-existing settings file found at: /home/tinypilot/settings.yml | |
+ yaml_set_if_undefined /var/tmp/tmp.Jknoaq0rqa.yml ustreamer_port 8001 | |
+ local file_path=/var/tmp/tmp.Jknoaq0rqa.yml | |
+ local key=ustreamer_port | |
+ local value=8001 | |
+ grep --silent '^ustreamer_port:' /var/tmp/tmp.Jknoaq0rqa.yml | |
+ echo 'ustreamer_port: 8001' | |
+ tee --append /var/tmp/tmp.Jknoaq0rqa.yml | |
ustreamer_port: 8001 | |
+ yaml_set_if_undefined /var/tmp/tmp.Jknoaq0rqa.yml ustreamer_persistent true | |
+ local file_path=/var/tmp/tmp.Jknoaq0rqa.yml | |
+ local key=ustreamer_persistent | |
+ local value=true | |
+ grep --silent '^ustreamer_persistent:' /var/tmp/tmp.Jknoaq0rqa.yml | |
+ echo 'ustreamer_persistent: true' | |
+ tee --append /var/tmp/tmp.Jknoaq0rqa.yml | |
ustreamer_persistent: true | |
+ USE_TC358743_DEFAULTS=false | |
+ grep --silent '^ustreamer_capture_device:' /var/tmp/tmp.Jknoaq0rqa.yml | |
+ '[' -f /home/ustreamer/config.yml ']' | |
+ grep --silent 'capture_device: "tc358743"' /home/ustreamer/config.yml | |
+ false | |
+ yaml_set_if_undefined /var/tmp/tmp.Jknoaq0rqa.yml ustreamer_encoder hw | |
+ local file_path=/var/tmp/tmp.Jknoaq0rqa.yml | |
+ local key=ustreamer_encoder | |
+ local value=hw | |
+ grep --silent '^ustreamer_encoder:' /var/tmp/tmp.Jknoaq0rqa.yml | |
+ echo 'ustreamer_encoder: hw' | |
+ tee --append /var/tmp/tmp.Jknoaq0rqa.yml | |
ustreamer_encoder: hw | |
+ yaml_set_if_undefined /var/tmp/tmp.Jknoaq0rqa.yml ustreamer_format jpeg | |
+ local file_path=/var/tmp/tmp.Jknoaq0rqa.yml | |
+ local key=ustreamer_format | |
+ local value=jpeg | |
+ grep --silent '^ustreamer_format:' /var/tmp/tmp.Jknoaq0rqa.yml | |
+ echo 'ustreamer_format: jpeg' | |
+ tee --append /var/tmp/tmp.Jknoaq0rqa.yml | |
ustreamer_format: jpeg | |
+ yaml_set_if_undefined /var/tmp/tmp.Jknoaq0rqa.yml ustreamer_resolution 1920x1080 | |
+ local file_path=/var/tmp/tmp.Jknoaq0rqa.yml | |
+ local key=ustreamer_resolution | |
+ local value=1920x1080 | |
+ grep --silent '^ustreamer_resolution:' /var/tmp/tmp.Jknoaq0rqa.yml | |
+ echo 'ustreamer_resolution: 1920x1080' | |
+ tee --append /var/tmp/tmp.Jknoaq0rqa.yml | |
ustreamer_resolution: 1920x1080 | |
+ echo 'Final install settings:' | |
Final install settings: | |
+ cat /var/tmp/tmp.Jknoaq0rqa.yml | |
ustreamer_port: 8001 | |
ustreamer_persistent: true | |
ustreamer_encoder: hw | |
ustreamer_format: jpeg | |
ustreamer_resolution: 1920x1080 | |
+ apt-get update --allow-releaseinfo-change-suite | |
Hit:1 http://deb.debian.org/debian bullseye InRelease | |
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease | |
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease | |
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease | |
Hit:5 http://archive.raspberrypi.org/debian bullseye InRelease | |
Reading package lists... Done | |
+ apt-get install -y git libffi-dev libssl-dev python3-dev python3-venv lsb-release | |
Reading package lists... Done | |
Building dependency tree... Done | |
Reading state information... Done | |
git is already the newest version (1:2.30.2-1+deb11u2). | |
libffi-dev is already the newest version (3.3-6). | |
lsb-release is already the newest version (11.1.0). | |
libssl-dev is already the newest version (1.1.1n-0+deb11u5). | |
You might want to run 'apt --fix-broken install' to correct these. | |
The following packages have unmet dependencies: | |
python3-cups : Depends: python3 (< 3.10) but it is not going to be installed | |
Depends: python3 (>= 3.9~) but it is not going to be installed | |
python3-dev : Depends: python3 (= 3.9.2-3) but it is not going to be installed | |
Depends: python3.9-dev (>= 3.9.2-0~) but it is not going to be installed | |
python3-rpi.gpio : Depends: python3 (< 3.10) but it is not going to be installed | |
Depends: python3 (>= 3.9~) but it is not going to be installed | |
python3-smbus : Depends: python3 (< 3.10) but it is not going to be installed | |
Depends: python3 (>= 3.9~) but it is not going to be installed | |
python3-venv : Depends: python3.9-venv (>= 3.9.2-0~) but it is not going to be installed | |
Depends: python3 (= 3.9.2-3) but it is not going to be installed | |
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). | |
+ clean_up | |
+ rm -rf /var/tmp/tmp.Jknoaq0rqa.yml | |
+ clean_up | |
+ umount --lazy /tmp/tmp.gtUZaPnxWy | |
umount: /tmp/tmp.gtUZaPnxWy: not mounted. | |
+ true | |
+ rm -rf /opt/tinypilot-updater /tmp/tmp.gtUZaPnxWy | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/bundle.tgz': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/lib.sh': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/tinypilot_20230613161050_armhf.deb': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/install': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/ansible.cfg': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/requirements.txt': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/setup-FreeBSD.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/vhosts.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/setup-RedHat.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/setup-Archlinux.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/setup-OpenBSD.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/setup-Debian.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tasks/setup-Ubuntu.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/.circleci/config.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/handlers/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tests/check-trailing-whitespace': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/tests/check-trailing-newline': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/.gitignore': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/README.md': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/templates/nginx.conf.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/templates/vhost.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/templates/nginx.repo.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/vars/Archlinux.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/vars/OpenBSD.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/vars/RedHat.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/vars/FreeBSD.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/vars/Debian.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/meta/.galaxy_install_info': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/meta/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/molecule/requirements.txt': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/molecule/default/molecule.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/molecule/default/converge.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/.ansible-lint': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/.yamllint': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/LICENSE': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-nginx/defaults/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/tasks/ustreamer.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/tasks/nginx.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/tasks/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/handlers/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/.gitignore': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/docs/usb-gadget-driver.md': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/README.md': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/templates/tinypilot.systemd.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/vars/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/meta/requirements.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/meta/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/molecule/requirements.txt': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/molecule/default/molecule.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/molecule/default/converge.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/.yamllint': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/LICENSE': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-tinypilot/defaults/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tasks/update_boot_cmdline.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tasks/remove_tc358743.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tasks/check_saved_settings.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tasks/install_janus.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tasks/provision_tc358743.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tasks/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tasks/install_launcher.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/.circleci/config.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/handlers/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tests/decode-edid': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tests/check-bash': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tests/check-trailing-whitespace': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/tests/check-trailing-newline': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/.gitignore': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/README.md': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/templates/janus.jcfg.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/templates/janus.transport.websockets.jcfg.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/templates/ustreamer.systemd.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/templates/janus.plugin.ustreamer.jcfg.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/templates/load-tc358743-edid.systemd.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/templates/config.yml.j2': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/vars/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/vars/Debian.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/vars/Ubuntu.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/files/launch': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/meta/.galaxy_install_info': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/meta/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/molecule/requirements.txt': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/molecule/default/molecule.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/molecule/default/converge.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/.yamllint': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/LICENSE': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/roles/ansible-role-ustreamer/defaults/main.yml': Permission denied | |
rm: cannot remove '/tmp/tmp.gtUZaPnxWy/install.yml': Permission denied |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment