Benjamin_Loison commented on issue Benjamin_Loison/linux#28 2025-01-01 02:06:57 +01:00
Get device network name potentially different due to router
ping -c 1 Benjamin-Loison-HP-Ubuntu
PING Benjamin-Loison-HP-Ubuntu.home (192.168.1.36) 56(84) bytes of data.
64 bytes from benjamin-loison-hp-ubuntu.home (192.168.1.36):…
Benjamin_Loison commented on issue Benjamin_Loison/linux#28 2025-01-01 02:04:43 +01:00
Get device network name potentially different due to router
getent
No command getent found, did you mean:
 Command gettext in package gettext
 Command gentest in package samba
 Command getopt in package util-linux
Benjamin_Loison commented on issue Benjamin_Loison/linux#28 2025-01-01 01:12:25 +01:00
Get device network name potentially different due to router
ip a
Output:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00…
Benjamin_Loison commented on issue Benjamin_Loison/linux#28 2025-01-01 00:55:14 +01:00
Get device network name potentially different due to router
nmap -sP 192.168.221.11
Starting Nmap 7.95 ( https://nmap.org ) at 2025-01-01 00:54 CET
Nmap scan report for 192.168.221.11
Host is up (0.0039s latency).
Nmap done: 1 IP…
Benjamin_Loison commented on issue Benjamin_Loison/linux#35 2024-12-31 22:37:07 +01:00
Limit rights of programs

See on my Linux Mint 22 Cinnamon Framework 13 benjamin-less-safe user.

Benjamin_Loison commented on issue Benjamin_Loison/linux#22 2024-12-31 21:30:29 +01:00
How to shred free disk slots?
date && time sudo sfill -vl /
Output:
Tue Dec 31 08:30:27 PM CET 2024
Using /dev/urandom for random input.
Wipe mode is insecure (two passes…
Benjamin_Loison commented on issue Benjamin_Loison/linux#22 2024-12-31 20:14:39 +01:00
How to shred free disk slots?

Should test getting file back with testdisk.

Benjamin_Loison commented on issue Benjamin_Loison/linux#28 2024-12-31 04:29:04 +01:00
Get device network name potentially different due to router
nmap -sP 192.168.XXX.XXX
Output:
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-12-31 04:27 CET
Nmap scan report for benjamin-loison-hp-deb…
Benjamin_Loison opened issue Benjamin_Loison/adb#24 2024-12-31 02:10:31 +01:00
Dump native OS to be able to restore it by adb sideload
Benjamin_Loison commented on issue Benjamin_Loison/adb#22 2024-12-31 01:17:36 +01:00
Set *Restrict USB* > *Deny USB connections*/*Allow USB connections when unlocked* with adb

DuckDuckGo and Google search "adb" "Restrict USB".

Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:48:18 +01:00
Decode data matrix

Could investigate the library example images.

Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:47:00 +01:00
Decode data matrix
from pylibdmtx.pylibdmtx import decode
from PIL import Image

print(decode(Image.open('1280px-Datamatrix.svg.png')))
Output:
Traceback…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:40:58 +01:00
Decode data matrix
read_datamatrix --help
Output:
usage: read_datamatrix [-h] [-v] image [image ...]

Reads datamatrix barcodes in images

positional…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:40:14 +01:00
Decode data matrix
time read_datamatrix 1280px-Datamatrix.svg.png
Output:
Traceback (most recent call last):
  File "/home/benjamin/venv/bin/read_datamatrix",…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:37:41 +01:00
Decode data matrix
sudo apt install -y libdmtx0t64
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:37:01 +01:00
Decode data matrix
sudo apt install -y libdmtx0a
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Packag…
Benjamin_Loison commented on issue Benjamin_Loison/linux#55 2024-12-30 19:36:02 +01:00
Decode data matrix

Same error after pip install "Pillow>=3.2.0".