Check if iproute2 is installed.
dpkg -s iproute2
#!/bin/bash | |
BLACKLIST_DEVICES="/dev/sda /dev/sdb /dev/sdc /dev/sdd" | |
DD_BIN="/usr/bin/dd" | |
main() { | |
for arg in $@; do | |
for dev in $BLACKLIST_DEVICES; do | |
if [[ "$arg" == *"$dev"* ]]; then |
#!/usr/bin/env python3 | |
import os | |
import signal | |
import sys | |
import time | |
PROCESS_PID_FILE = "process.pid" | |
_finish = False |
#!/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 argparse | |
import logging | |
import os | |
import socket | |
import sys | |
BUFFER_SIZE = 1200 |
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 |
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.
#!/usr/bin/env python3 | |
import argparse | |
import socket | |
import os | |
import pty | |
import sys | |
import time | |
WAIT_CONNECTION = 10 |
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:
#!/bin/bash | |
check_root() { | |
if [ $UID -ne 0 ]; then | |
echo "ERROR: run as root" | |
exit 1 | |
fi | |
} | |
install_packages() { |