brain4free

Benutze dein Gehirn oder wir nehmen es dir wieder weg!

So ist der Homepagetitel zu verstehen. Wie ihr unter Ideen lesen könnt, wäre mit ungenutztem Hirnpotenzial durchaus ein sehr lukratives Geschäft zu machen. Die nötige Ressource wäre ja genügend vorhanden. Bis wir die Techniken dazu besitzen beschränke ich mich hier auf eine private Homepage mit meinen 3D Photos und vor allem meinen Projekten die euch hoffentlich nützlich sind.

brain4free Blog

DDOS2024

ddoS 30. August – 1. September 2024 das dreitägige odenwilusenz Sommerfest war in Beringen.

Ich habe eine Auswahl meiner 3D Photos präsentiert und am Abend gab es ein Konzert mit live Visuals.

2024/09/03 21:48 · dogbert · 48 Comments

Panasonic XZ6

I've bought a second hand Panasonic Thoughbook XZ6. This is a 2in1 convertible computer that can be used as tablet or notebook.

My goal is to run Debian GNU/Linux on it and use it as tablet as well as notebook.

Preperations

First it was delivered with Windows 10. Which sometimes can be useful at least to test the hardware and get some information about drivers etc. So I didn't want to delete it.

The first thing to do was to enter the UEFI menu (“BIOS”) and disable secure boot to be able to load any Linux USB image:

  1. Start Windows and login if necessary
  2. Hold down the shift key
  3. Click on the start menu and then power options
  4. Select restart while still holding down the shift key
  5. A menu appears. Go to Advanced –> Maintenance –> UEFI Menu
  6. The PC restarts and opens the “BIOS”
  7. Go to security and disable secure boot
  8. Go to security and enable “Boot Popup Menu”
  9. Exit and save your changes

You can press F2 during the boot process to enter the UEFI menu.

I used clonezilla to make first a backup of the whole disk if something go's wrong.

Then I used Gparted to delete the diagnostic partition and to shrink the windows partition to ~58 GiB. This gives me ~180GiB for the Linux installation.

Clonezilla and Gparted are part of the great SystemRescue Linux live system.

System Information
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:2744 Microchip Technology, Inc. (formerly SMSC) Hub
Bus 001 Device 003: ID 5986:1120 Bison Electronics Inc. USB HD Webcam
Bus 001 Device 004: ID 06cb:7fdb Synaptics, Inc. Synaptics HIDUSB TouchPad V03
Bus 001 Device 005: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 006: ID 0eef:c09e D-WAV Scientific Co., Ltd eGalaxTouch EXC3104-1247-07.00.00.00
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0424:5744 Microchip Technology, Inc. (formerly SMSC) Hub
lspci 
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:05.0 Multimedia controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Imaging Unit (rev 01)
00:13.0 Non-VGA unclassified device: Intel Corporation Sunrise Point-LP Integrated Sensor Hub (rev 21)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:14.3 Multimedia controller: Intel Corporation CSI-2 Host Controller (rev 01)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.2 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #2 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:16.3 Serial controller: Intel Corporation Sunrise Point-LP Active Management Technology - SOL (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #3 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC/eSPI Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-LM (rev 21)
01:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
Debian installation

Create a Debian Stable installation medium and boot from it. The Debian 12 installer was working without problem incl. WiFi.

I decided to use an encrypted root partition, so I needed to create a separate unencrypted boot partition. You can create this partitions and the dm-crypt device directly in the Debian installer when you launch it in expert mode.

Partition Layout
sudo parted /dev/sda print
Model: ATA SAMSUNG MZNLN256 (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  106MB   105MB   fat32        EFI system partition          boot, esp
 2      106MB   123MB   16.8MB               Microsoft reserved partition  msftres
 3      123MB   62.1GB  61.9GB  ntfs         Basic data partition          msftdata
 4      62.1GB  63.1GB  1000MB  ext4
 5      63.1GB  256GB   193GB''
  1. This is the EFI boot partition
  2. Don't know, was already there
  3. Existing Windows 10 installation
  4. Linux /boot partition
  5. Encrypted Linux / (root) partition
cat /etc/fstab 
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/sda5_crypt /               btrfs   defaults,subvol=@rootfs 0       0
# /boot was on /dev/sda4 during installation
UUID=2b2492b0-c026-4d99-9a77-d02498252b87 /boot           ext4    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
UUID=DE95-1AF0  /boot/efi       vfat    umask=0077      0       1
#swapfile, mainly for hibernation
/swapfile       none            swap    sw              0       0
Hybrid-Hibernate

I didn't create a swap partition, but we need some kind of swap for hibernate to work. So I had to create first a swap file on my btrfs root partition:

btrfs filesystem mkswapfile --size 8G swapfile
chmod 600 swapfile
swapon -v /swapfile

Get the correct offset (For Btrfs, do not try to use the filefrag tool, from Archwiki):

btrfs inspect-internal map-swapfile -r /swapfile

then enable hibernate according to this tutorial https://medium.com/@arsalaan.fa/hibernation-guide-for-debian-12-unlocking-seamless-power-management-on-linux-529b388f8d36

Touch screen

Works out of the box.

If you use Wayland (which is default with Gnome on Debian 12 an later) and Firefox you should tell it to use Wayland features like touch events:
echo MOZ_ENABLE_WAYLAND=1 » /etc/environment

Touch screen to unlock LUKS

TODO, but should be enough to follow some how-to's

configure osk-sdl and plymouth

Cameras
2024/07/20 23:35 · dogbert · 6 Comments

Scanner upcycling - Leuchttisch

Dies ist eine kurze Beschreibung eines alten Kleinprojekts von mir, kurz und schmerzlos damit es anderen nützlich sei.

Manchmal ist man an einem Projekt dran und organisiert Baumaterial bzw. recycled ein defektes Gerät und nebenbei kommt einem etwas in die Finger, dass dann schnell zum separaten Projekt wird. So ist es hier geschehen, als ich einen Scanner umgebaut habe zu einem knapp funktionierendem Laser Cutter. Beim Scanner war auch eine Durchlichteinheit dabei um Negative oder Dias zu scannen.

Diese Durchlichteinheit wurde kurzerhand umgebaut, so dass sie als Leuchttisch benutzt werden kann. Eignet sich gut zum Sortieren von Dias oder Negativen könnte aber auch zum betrachten von Röntgenbildern benutzt werden.

2020/06/04 08:40 · dogbert

Script to reconnect Bluetooth device in Linux

Example of a radio with iPod dock connector, now with Bluetooth receiver

Today I wasted several hours to write a small script that helps you to use a Bluetooth audio device with several Linux computers.

Problem: Several computers, one Bluetooth receiver

Our radio in the kitchen got upcycled with a Bluetooth receiver that fits into the obsolete 30 pin iPod dock connector. This receivers are cheap and easy and help lots of devices to get an interface to modern equipment.

Unfortunately our receiver can only handle one pairing, which means that every-time my girlfriend used the radio before me, I had to open the KDE bluedevil menu to delete, search and newly connect the device before I could listen to music in the kitchen (and vice versa). Time consuming and annoying.

Linux and Bluetooth

Bluetooth is a very common standard to connect phones and computers to audio devices like headphones and loudspeakers. But for Linux users Bluetooth is not the easiest thing and it's known to be not very well documented. OK, the Bluetooth standard changes more often than other technologies and the Linux Bluetooth tools improved as well, but also the tool names changed more then once and there was also the chance from pure ALSA to PulseAudio…

None of that helped me today to find a quick, simple solution for my small problem. I found numerous old guides for long gone tools and interfaces and the current Linux Bluetooth tools are not built to be run from scripts?!

Solution

OK, after many searches, try and errors and climbing up from the legacy tools to the more recent ones I managed to have a script that:

  • Deletes a connection to previously used Bluetooth device
  • Scans for Bluetooth devices
  • Creates a new connection incl. pairing to the deleted device.

connect-i-link.sh

#!/bin/bash

# remove old connection 
echo -e 'power on\ndisconnect EB:06:BF:0A:13:6F\nremove EB:06:BF:0A:13:6F\nquit' | bluetoothctl

# scan bluetooth devices for 20 s
timeout -k 20 15 bt-adapter --discover

# create a new pairing and connection
bt-device --connect EB:06:BF:0A:13:6F

# the command above does not connect audio, so do again a connection with bluetoothctl
echo -e 'trust EB:06:BF:0A:13:6F\nconnect EB:06:BF:0A:13:6F\ninfo EB:06:BF:0A:13:6F\nquit' | bluetoothctl

You have to replace the MAC address (EB:06:BF:0A:13:6F) in the script with the address of your device. You find this address in bluedevil or with bluetoothctl (command: scan on)

To get Bluetooth audio working in recent Linux distributions (> 2018) you have to install:

apt install bluez bluez-tools bluez-firmware pulseaudio-module-bluetooth
2020/04/15 23:44 · dogbert

Insel Mainau

Wir hatten Besuch und haben diese Gelegenheit genutzt um die Insel Mainau zu besuchen. Ich habe meine 3D Photoausrüstung mitgenommen und die besseren Photos habe ich vorhin online gestellt.

Zur Photogalerie: Insel Mainau

Insel Mainau, 3D, Orchidee

Wichtiger Hinweis:

Trauen sie diesem Text nicht! Die Person die ihn geschrieben hat leidet unter psychischen Störungen, extremer Verwirrtheit, steht unter der Wirkung einer nicht unbedenklichen Menge an toxischen Umweltgiften und Hormonen die aus Abwässern stammen oder direkt in die Nahrungskette eingebracht wurden und Wirkungen zeigen können, wie unter massivem Drogeneinfluss.
Die Weltanschauung dieser Person kann nicht als objektiv bezeichnet werden. Durch einen massiv übermässigen Konsum von Unterhaltungsmedien wie Fernseher und Computerspiele in seiner Kindheit, die eine heikle Entwicklungsphase darstellt, konnte sich diese Person nicht wie andere normal in seine Umgebung integrieren.
Nehemen sie sich vor dieser Person in acht, sie kann sehr sprunghaft reagieren, ist sehr launisch, wierderspricht sich dauernd, nimmt nichts ernst und versucht andere Leute dauerhaft zu verwirren und damit ihr schönes, kleines Leben zu zerstören.

Der EG Gesundheitsminister

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International