Debian repositories deb822 format.
Disable old-format sources.list:
# mv /etc/apt/sources.list /etc/apt/sources.list.bak
#!/bin/bash | |
check_root() { | |
if [ $UID -ne 0 ]; then | |
echo "ERROR: run as root" | |
exit 1 | |
fi | |
} | |
install_packages() { |
Many development boards incorporate an infrared receiver, such as Orange PI, Bananapi, Libre computer, Pine64, etc.
This manual explains how to configure the infrared receiver in Linux and shows an example of how to read the infrared codes emitted by a remote control.
Show all input devices:
#!/usr/bin/env python3 | |
import argparse | |
import socket | |
import os | |
import pty | |
import sys | |
import time | |
WAIT_CONNECTION = 10 |
This manual explains how to set up a low-cost NAS server to store videos from a Xiaomi camera, model MI Security Camera.
You can use a development board Linux based such as Raspberry PI or similar, an old PC, Barebone etc.
Install samba.
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware | |
deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware | |
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware | |
deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware | |
deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware | |
deb-src http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware | |
deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware |
#!/usr/bin/env python3 | |
import argparse | |
import logging | |
import os | |
import socket | |
import sys | |
BUFFER_SIZE = 1200 |
#!/usr/bin/env python3 | |
class MyPersonClass: | |
# Class attributes | |
count_instances = 0 | |
def __init__(self, name: str, surname: str, years: int): | |
MyPersonClass.count_instances += 1 |
#!/usr/bin/env python3 | |
import os | |
import signal | |
import sys | |
import time | |
PROCESS_PID_FILE = "process.pid" | |
_finish = False |