Skip to content

Instantly share code, notes, and snippets.

@vitali2y
Last active November 6, 2023 21:27
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 vitali2y/0012df6c0334334b2225d97395428a62 to your computer and use it in GitHub Desktop.
Save vitali2y/0012df6c0334334b2225d97395428a62 to your computer and use it in GitHub Desktop.
All steps for running camenoti @ Debian Bookworm distro @ Odroid U3 device

The goal of this manual is:

  • installing the latest Debian Bookworm distro on quite old, but great, Odroid U3 device, and
  • installing and running the very simple (just actially few configuration lines + motion + curl), but battle-tested motion detection & notification surveillance camenoti solution on it.

Installing Debian Bookworm on Odroid U3

  1. On host box let's download the recent odroid_u3-armv7l-bookworm.img.gz from here:
➜  bookworm-230507 wget https://github.com/hexdump0815/imagebuilder/releases/download/230224-05/odroid_u3-armv7l-bookworm.img.gz
~...~
➜  bookworm-230507 gzip -d odroid_u3-armv7l-bookworm.img.gz
~...~
➜  bookworm-230507 ls -lat odroid_u3-armv7l-bookworm.img
-rw-rw-r-- 1 vit vit 3758096384 May  7 13:43 odroid_u3-armv7l-bookworm.img
➜  bookworm-230507 md5sum odroid_u3-armv7l-bookworm.img
ff0da040119696b24124729b0139987e  odroid_u3-armv7l-bookworm.img
➜  bookworm-230507
  1. Cleaning up SD Card with using USB Stick Formater and burning unpacked image with USB Image Writer,
  2. Insert SD Card into device and power on (red LED is always on, watching the blue LED flashing during booting),
  3. First login with default username / password: linux / changeme :
linux@camenoti:~$ uname -a
Linux camenoti 6.1.11-stb-exy+ #1 SMP PREEMPT Sat Feb 11 17:02:27 CET 2023 armv7l GNU/Linux
linux@camenoti:~$ grep PRETTY_NAME /etc/os-release 
PRETTY_NAME="Debian GNU/Linux bookworm/sid"
linux@camenoti:~$
  1. Changing the password:
passwd

Making distro headless (optional)

sudo systemctl disable cups
sudo systemctl disable cups-browsed
sudo service motion restart
sudo apt-get -y purge evolution-data-server evolution sylpheed gnumeric abiword audacious pidgin rhythmbox simple-scan hexchat hexchat-common mysql-common cups bluez bluez-tools bluez-cups bluez-obexd bluetooth
sudo apt-get -y purge lightdm task-desktop tasksel tasksel-data
sudo apt-get -y purge xorg xserver-xorg xfwm4 xfce4 x11-apps thunar speech-dispatcher parted
sudo apt-get -y purge thunar-data wpasupplicant cups-client cups-common cups-pk-helper libcups2 python3-cups python3-cupshelpers
apt list --installed | grep xfce | awk '{ system("echo "$0" | cut -d \"/\" -f 1") }' | xargs sudo apt-get remove -y
apt list --installed | grep x11 | awk '{ system("echo "$0" | cut -d \"/\" -f 1") }' | xargs sudo apt-get remove -y
apt list --installed | grep exim | awk '{ system("echo "$0" | cut -d \"/\" -f 1") }' | xargs sudo apt-get purge -y
sudo apt -y autoremove

Installing and configuring camenoti app

  1. Installing motion detection & notification surveillance camenoti app - see install.sh script,
  2. Configuring your Telegram camenoti-group group's TOKEN and CHANNEL variables into my_vars.sh script,
  3. Starting up motion service:
sudo service motion start
  1. Reboot.
linux@camenoti:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            926M     0  926M   0% /dev
tmpfs           196M  3.2M  193M   2% /run
/dev/mmcblk0p2  3.0G  1.7G  1.2G  59% /
tmpfs           979M     0  979M   0% /dev/shm
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/mmcblk0p1  504M   23M  471M   5% /boot
tmpfs           196M     0  196M   0% /run/user/1000
linux@camenoti:~$
@vitali2y
Copy link
Author

vitali2y commented Nov 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment