This morning the Dragon 32 power supply broke. I have a Dragon 32 that I bought one time ago. But when I tried to turn it on, it didn’t work. I checked the power circuit inside of the Dragon 32 and found that the regulator was broken.

It was a LM340T 7812, 12v regulator, so I replaced it with a new one. But when I tried to turn it on, it didn’t work.

I have been repairing the IBM 5150 motherboard.

Tantalum Capacitors are known to fail, :-) This is the famous C56

Exploded

Almost each memory chip had a tantalum capacitor.

Motherboard

Also ISA slots had tantalum capacitors.

Motherboard2

This ones, near the power supply connector, were also tested.

Motherboard3

I have been repairing the Dragon 32

When I powered it up, the screen was all garbled. I opened it up and found a capacitor that was bulging.

Screen

Nude Dragon

Motherboard

Replaced Capacitor

Capacitor

First attempt to fix it was to replace the bulging capacitor. I replaced it with a new one, but after powering it up, the cursor was missing.

No cursor

Finally I have had to replace most of the capacitors on the board.

KVM notes

- 3 mins read

KVM notes

Check if the CPU supports virtualization:

egrep -c '(vmx|svm)' /proc/cpuinfo
lscpu | grep Virtualization
  • Install KVM
sudo apt install qemu-kvm qemu-utils libvirt-daemon-system libvirt-clients virtinst virt-manager
  • Check Virtualization
systemctl status libvirtd
systemctl --now enable libvirtd
  • Check qemu and virsh:
kvm --version
virsh --version
  • Components that can be used
sudo virt-host-validate
  • Check IOMMU
dmesg | grep -e DMAR -e IOMMU
  • Edit /etc/default/grub if WARN (IOMMU not enabled)

GRUB_CMDLINE_LINUX="intel_iommu=on" add this line to /etc/default/grub and sudo update-grub

Playing with langchain this is the conversation between a Commodore 64 and a ZX Spectrum.

Debate rules

You are in a debate your goal is to persuade your conversation partner of your point of view. 
Argue about topic polite. Be concise and conclusive use arround 60 words.
DO look up information with your tool to refute your partner's claims.
DO NOT fabricate fake citations.
DO NOT cite any source that you did not look up.
Do not add anything else.
Stop speaking the moment you finish speaking from your perspective.
Context: {memory}

Conversation for 10 rounds

Photon (work notes)

- 1 min read

PHOTON MISC

enable/disable docker

systemctl start docker
systemctl enable docker

install packages

tdnf install git
tdnf install github-cli
tdnf install zsh
tdnf install wget
tdnf install docker-compose
tdnf install nfs-tools
tdnf install nfs-utils
tdnf install tar

keyboard

localectl
localectl list-keymaps
tdnf install kbd
localectl list-keymaps
localectl set-keymap es
reboot

sshd root access

cat > /etc/systemd/network/10-static-en.network << "EOF"
[Match]
Name=eth0
[Network]
Address=192.168.1.200/24
Gateway=192.168.1.1

chmod 644 10-static-en.network

install docker-compose (check versions on github https://github.com/docker/compose/releases)

curl -L https://github.com/docker/compose/releases/download/v2.9.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

install portainer - expose port 9000

docker volume create portainer_data
ls -la
docker run -d -p 9000:9000 --name Portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

docker run -d -p 8000:8000 -p 9443:9443 --name rh_portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

iptables - open docker expose ports

iptables -L  (list rules)
iptables -nL (show port numbers)
# open port 9000
iptables -I INPUT 4 -p tcp --dport 9000 -j ACCEPT

save iptables

add -I INPUT 4 -p tcp –dport 9000 -j ACCEPT

GPT News anonymizer

- 3 mins read

I’m using at home my own server to run gpt models. Without cost I can do funny and stupid things. This one run a pipeline of tasks to anonymize news, critics, sumarize, extract names, places, products, etc.

First I get the entries from google trends

Then I use the GPT model to generate the news.

With this I can generate my own “News Corporation”

The pipeline is like this:

Crazy idea to draw over screen using any tablet or phone :-) of course on linux

Is a client-server application that allows users to use their tablet devices to draw over their computer screen. It is designed to enhance creativity and collaboration by providing an interactive drawing experience. This documentation will guide you through the installation, setup, and usage of the program.

WORK IN PROGRESS

Features Two drawing modes: Mouse Drawing Mode (local) and Tablet Drawing Mode (remote) Tablet Drawing Mode accessible via a web interface, compatible with various tablet devices including iPads and Android tablets/phones. Screen capture and drawing capabilities on captured images. Supports image resizing for optimal tablet viewing.

Wireguard Setup (work notes)

- 2 mins read

Generate a valid and working WireGuard configuration file /etc/wireguard/wg0.conf. Our setup guide offers details.

Note: You may have to replace the Endpoint hostname with the WireGuard server IP address in the WireGuard configuration file. DNS may or may not be applied when systemd brings the wg0 interface up. Add the WireGuard service to systemd:

sudo systemctl enable wg-quick@wg0.service
sudo systemctl daemon-reload

Start the new service immediately:

sudo systemctl start wg-quick@wg0

Reboot your computer system to verify the automatic connection on startup works as expected.