Skip to content

Instantly share code, notes, and snippets.

@pacmac
Last active May 17, 2023 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacmac/4b88b4a8609466976fbeb250d2ddb741 to your computer and use it in GitHub Desktop.
Save pacmac/4b88b4a8609466976fbeb250d2ddb741 to your computer and use it in GitHub Desktop.
root@tinypilot:~# free -h
total used free shared buff/cache available
Mem: 363Mi 101Mi 142Mi 1.0Mi 119Mi 210Mi
Swap: 1.1Gi 0B 1.1Gi
root@tinypilot:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.0G 11G 22% /
devtmpfs 118M 0 118M 0% /dev
tmpfs 182M 356K 182M 1% /dev/shm
tmpfs 73M 904K 72M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/mmcblk0p1 255M 52M 204M 21% /boot
tmpfs 37M 0 37M 0% /run/user/0
root@tinypilot:~# /opt/tinypilot-privileged/scripts/update
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
+ set -u
+ set -e
+ curl --silent --show-error https://raw.githubusercontent.com/tiny-pilot/tinypilot/master/get-tinypilot.sh
+ bash -
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
+ 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 ]]
++ head -n 1 /opt/tinypilot/README.md
+ [[ # TinyPilot = \#\ \T\i\n\y\P\i\l\o\t\ \P\r\o ]]
+ readonly HAS_PRO_INSTALLED
+ [[ 0 = 1 ]]
+ readonly LEGACY_INSTALLER_DIR=/opt/tinypilot-updater
+ LEGACY_INSTALLER_DIR=/opt/tinypilot-updater
+ readonly INSTALLER_DIR=/mnt/tinypilot-installer
+ INSTALLER_DIR=/mnt/tinypilot-installer
+ readonly BUNDLE_FILE=/mnt/tinypilot-installer/bundle.tgz
+ BUNDLE_FILE=/mnt/tinypilot-installer/bundle.tgz
+ readonly RAMDISK_SIZE=500m
+ RAMDISK_SIZE=500m
+ trap clean_up EXIT
+ sudo mkdir /mnt/tinypilot-installer
+ sudo mount --types tmpfs --options size=500m --source tmpfs --target /mnt/tinypilot-installer --verbose
mount: tmpfs mounted on /mnt/tinypilot-installer.
++ curl https://gk.tinypilotkvm.com/community/download/latest --location --output /mnt/tinypilot-installer/bundle.tgz --write-out '%{http_code}' --silent
+ HTTP_CODE=200
+ readonly HTTP_CODE
+ [[ 200 != \2\0\0 ]]
+ sudo tar --gunzip --extract --file /mnt/tinypilot-installer/bundle.tgz --directory /mnt/tinypilot-installer
+ sudo chown root:root --recursive /mnt/tinypilot-installer
+ [[ 0 -eq 1 ]]
+ pushd /mnt/tinypilot-installer
/mnt/tinypilot-installer ~
+ sudo ./install
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
+ . lib.sh
+ readonly TEMP_DIR=/var/tmp
+ TEMP_DIR=/var/tmp
++ mktemp --tmpdir=/var/tmp --suffix .yml
+ INSTALL_SETTINGS_FILE=/var/tmp/tmp.upzYiNv5mD.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_20230517120452_all.deb
+ TINYPILOT_DEBIAN_PACKAGE=tinypilot_20230517120452_all.deb
+ readonly TINYPILOT_DEBIAN_PACKAGE
+ trap clean_up EXIT
+ grep -q '^Model *: Raspberry Pi 3' /proc/cpuinfo
++ lsb_release --id --short
+ [[ Raspbian == \R\a\s\p\b\i\a\n ]]
++ lsb_release --release --short
+ (( 11 < 11 ))
+ grep -q boot=overlay /proc/cmdline
+ [[ -f /home/tinypilot/settings.yml ]]
+ echo 'Using settings file at: /home/tinypilot/settings.yml'
Using settings file at: /home/tinypilot/settings.yml
+ cp /home/tinypilot/settings.yml /var/tmp/tmp.upzYiNv5mD.yml
+ yaml_set_if_undefined /var/tmp/tmp.upzYiNv5mD.yml ustreamer_port 8001
+ local file_path=/var/tmp/tmp.upzYiNv5mD.yml
+ local key=ustreamer_port
+ local value=8001
+ grep --silent '^ustreamer_port:' /var/tmp/tmp.upzYiNv5mD.yml
+ yaml_set_if_undefined /var/tmp/tmp.upzYiNv5mD.yml ustreamer_persistent true
+ local file_path=/var/tmp/tmp.upzYiNv5mD.yml
+ local key=ustreamer_persistent
+ local value=true
+ grep --silent '^ustreamer_persistent:' /var/tmp/tmp.upzYiNv5mD.yml
+ USE_TC358743_DEFAULTS=false
+ grep --silent '^ustreamer_capture_device:' /var/tmp/tmp.upzYiNv5mD.yml
+ grep --silent '^ustreamer_capture_device: tc358743$' /var/tmp/tmp.upzYiNv5mD.yml
+ USE_TC358743_DEFAULTS=true
+ true
+ echo 'Final install settings:'
Final install settings:
+ cat /var/tmp/tmp.upzYiNv5mD.yml
ustreamer_capture_device: tc358743
ustreamer_desired_fps: 5
ustreamer_encoder: m2m-image
ustreamer_persistent: true
ustreamer_port: 8001
ustreamer_quality: 100
+ apt-get update --allow-releaseinfo-change-suite
Get:1 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:2 http://download.zerotier.com/debian/bullseye bullseye InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Fetched 63.9 kB in 4s (16.5 kB/s)
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+rpi1).
python3-dev is already the newest version (3.9.2-3).
python3-venv is already the newest version (3.9.2-3).
libssl-dev is already the newest version (1.1.1n-0+deb11u4+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ python3 -m venv venv
+ . venv/bin/activate
++ deactivate nondestructive
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/mnt/tinypilot-installer/venv
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/mnt/tinypilot-installer/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ PS1='(venv) '
++ export PS1
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
+ pip install 'pip>=21.3.1'
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip>=21.3.1
Using cached https://www.piwheels.org/simple/pip/pip-23.1.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.3.4
Uninstalling pip-20.3.4:
Successfully uninstalled pip-20.3.4
Successfully installed pip-23.1.2
+ pip install -r requirements.txt
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting ansible==2.10.7 (from -r requirements.txt (line 5))
Using cached https://www.piwheels.org/simple/ansible/ansible-2.10.7-py3-none-any.whl (48.2 MB)
Collecting ansible-base==2.10.17 (from -r requirements.txt (line 8))
Using cached https://www.piwheels.org/simple/ansible-base/ansible_base-2.10.17-py3-none-any.whl (1.9 MB)
Collecting cffi==1.15.1 (from -r requirements.txt (line 9))
Using cached https://www.piwheels.org/simple/cffi/cffi-1.15.1-cp39-cp39-linux_armv7l.whl (364 kB)
Collecting cryptography==37.0.4 (from -r requirements.txt (line 10))
Using cached https://www.piwheels.org/simple/cryptography/cryptography-37.0.4-cp39-cp39-linux_armv7l.whl (2.5 MB)
Collecting Jinja2==3.1.2 (from -r requirements.txt (line 11))
Using cached https://www.piwheels.org/simple/jinja2/Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting MarkupSafe==2.1.1 (from -r requirements.txt (line 12))
Using cached https://www.piwheels.org/simple/markupsafe/MarkupSafe-2.1.1-cp39-cp39-linux_armv7l.whl (23 kB)
Collecting packaging==21.3 (from -r requirements.txt (line 13))
Using cached https://www.piwheels.org/simple/packaging/packaging-21.3-py3-none-any.whl (40 kB)
Collecting pycparser==2.21 (from -r requirements.txt (line 14))
Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB)
Collecting pyparsing==3.0.9 (from -r requirements.txt (line 15))
Using cached https://www.piwheels.org/simple/pyparsing/pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting PyYAML==6.0 (from -r requirements.txt (line 16))
Using cached https://www.piwheels.org/simple/pyyaml/PyYAML-6.0-cp39-cp39-linux_armv7l.whl (45 kB)
Installing collected packages: PyYAML, pyparsing, pycparser, MarkupSafe, packaging, Jinja2, cffi, cryptography, ansible-base, ansible
ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device: '/mnt/tinypilot-installer/venv/lib/python3.9/site-packages/ansible-2.10.7.dist-info/INSTALLERza0c0nkm.tmp'
+ clean_up
+ rm -rf /var/tmp/tmp.upzYiNv5mD.yml
+ clean_up
+ umount --lazy /mnt/tinypilot-installer
+ rm -rf /opt/tinypilot-updater /mnt/tinypilot-installer
root@tinypilot:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.0G 11G 22% /
devtmpfs 118M 0 118M 0% /dev
tmpfs 182M 440K 182M 1% /dev/shm
tmpfs 73M 900K 72M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/mmcblk0p1 255M 52M 204M 21% /boot
tmpfs 37M 0 37M 0% /run/user/0
root@tinypilot:~# free -h
total used free shared buff/cache available
Mem: 363Mi 66Mi 254Mi 0.0Ki 41Mi 251Mi
Swap: 1.1Gi 38Mi 1.1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment