Many years ago i started segmenting my network using vlans.
In 2022 i started to reconfigure my lab and using a lot more Mikrotik switches. So how many … is to many, because i always overdo stuff.
Well .. is 9 to many for home environments?
default vlan – did’t bother to configure
old DMZ .. to be migrated
DMZ – my servers live here
Wifi personal workstations – Mobiles and laptops .. macaddress limited
IOT – only arduino’s, raspberries and other hardware live here
Personal workstations – UTP connected workstations with less networking limitations
LAB – My lab environment, Ovirt virtualisation for fun and manage access to servers in dmz
Storage – my SFP enabled all-flash storage
Management – really tight restricted access to management interfaces (switches/routers/storage/ILO)
Hard to manage? All those vlan’s? .. Sure, but i learn a lot! (Not really .. when you got the basics down, more of the same. Hardest part? .. not cutting-off connections/switchports you are using!)
Got a working amiga again. \o/ woot Needed to replace Paula chip, cleaning and some TLC.
Modulator
Chip donor
Scart cable i’ve got is one without the resistors, so my monitor isn’t detecting the signal. Using a A520 modulator works. At least RF, don’t know why RCA/composite video isn’t working.
Even a memory expansion and second drive (5.24 inch) are working.
One of the first disks i tested
To do:
Fix something to get disk images from and to my pc.
(My old catweasel card only fits in a ISA slot which i don’t have any more)
I was wrong .. i’ve got a IV Catweasel .. PCI it is
Fix scart
Fix my Action Replay, which i soldered into a non working state apparently .. 🙂
Get a better mouse!
Catweasel IV
Kickstart selectorAction Replay
Disks to convert:
Personal text files from ages ago
My first seka demo
My oscillator drawing program
Other assembly source files
Got another one running today also:
Olivetti M21 machine you could carry with you. 9″ screen, 640K memory, 8086 Cpu
A long time ago i took a book about doing funny stuff in dos, and wrote own additions in the sidelines of the book. Or used the empty pages.
It contains jokes using autoexec.bat and config.sys. Additions by me are most of the time things you could do with debug.com, a little program which existed on any pc at that time.
A little program which created static on a CGA or Hercules monitor. Yes, that long ago. CGA provided 16 colors in 80×25 or 40×25 text modes, but only four colors at 320×200 resolution and two colors at 640×200. Hercules was only monochrome and a max resolution of 720×348. It was on a hercules card i made my first copperbar. ( Before the effect was named copperbar ). Due to difference in timing on every machine, you had to get the copperbar timing right by using two keys i’d assigned the timing to.
MOV AL,00 # Fill AL register with 0
MOV DX,0x03D8 (cga) 03B8 (herc)# DX with address
OUT DX,AL # Set address with AL
MOV AL,[0101] # Reg AL with contents
INC AL # Increment AL
MOV [0101],AL # Address fill with AL
JMP 100 # Jump to start
The opcodes for the program :
b0 00
66 ba d8 03
ee
a0 41 00 00 00
fe c0
a2 41 00 00 00
e9 60 00 00 00
Sometimes i put these little programs in autoexec.bat, so at next restart of the pc, it would do something weird. My little BOFH jokes. Friends and computerstores where not safe.
Another example:
Two drives in a PC ? (Wie A: zegt moet ook B: zeggen) Use with care, below will f*ck up your drives. (And makes a lot of noise while doing so.)
MOV DX,0x03F2
MOV AL,71
OUT DX,AL
MOV AL,74
OUT DX,AL
JMP 100
20220502: Fixed another C64, PIA (Peripheral Interface Adapter) was dead, luckily i’ve got several spare-part c64’s. So that was a easy fix.
20220504: Got my sd2iec adaptor in, see bottom of this page.
Booting with a power cartridge
None of my old computers was unmodified
Demo by my old friend Sepp
Drive is a 1541model 2
De wires are going to the DOUT pins of the memory chips. Showing activity using leds. Sometimes i monitored CS .. also informative.
SD2IES Cardreader
Little small funky gadget, it replaces a 1541 Floppy drive with a SDCard reader where you can store a lot of floppydisk images on. More on this later.
NOTE : Doesn’t work together with my KCS Power cartridge.
CartridgeScreen
I’ve tested two cartridges.
Final cartridge III fastload test on a program did ~3 seconds. ( Normal load time ~17 seconds. ) KCS powercartridge didn’t work. Tip: press `runstop` when using FC3 while turning on to get into basic not the desktop.
I made a sound mixer controller for my applications, a while ago.
Some arduino project laying around on my desk. (OBS controller, Mqtt-sound-and-display-with-mute-acknowledge-button and Octoprint monitor, below that my dusty mixer)
I’m probably make a V2 with new functionality:
Switching applications which are using sound from speakers to headset and vice versa.
Today Vincent mentioned a link about mqtt and mikrotiks, i knew about addons, but not mqtt .. lets try this.
When you want to use MQTT with Mikrotik you have to install the iot package from extra_packages.
Download correct package zip from ( https://mikrotik.com/download )
Download extra packages zip for your system
Extract and use file upload
Reboot your mikrotik
(i had to upgrade my firmware first, iot package was not build for my version)
Create a entry in IoT > Mqtt to your broker.
save below in a script ending with a .rsc extention, and upload in file manager
# Required packages: iot
################ Configuration #################
# Name of an existing MQTT broker that should be used for publishing, the one you just created
:local broker "10.1.0.17"
# MQTT topic where the message should be published
# i've got mine in a tree called mikrotik/switchtype/
:local topic "mikrotik/rb2011/topic"
############### System ###############
# You can create your own variables below
:put ("[*] Gathering system info...")
:local cpuLoad [/system resource get cpu-load]
:local freeMemory [/system resource get free-memory]
:local usedMemory ([/system resource get total-memory] - $freeMemory)
:local rosVersion [/system package get value-name=version \
[/system package find where name ~ "^routeros"]]
:local model [/system routerboard get value-name=model]
:local serialNumber [/system routerboard get value-name=serial-number]
:local upTime [/system resource get uptime]
################## MQTT ###################
# create a message
:local message \
"{\"model\":\"$model\",\
\"sn\":\"$serialNumber\",\
\"ros\":\"$rosVersion\",\
\"cpu\":$cpuLoad,\
\"umem\":$usedMemory,\
\"fmem\":$freeMemory,\
\"uptime\":\"$upTime\"}"
:log info "$message";
:put ("[*] Total message size: $[:len $message] bytes")
:put ("[*] Sending message to MQTT broker...")
/iot mqtt publish broker=$broker topic=$topic message=$message
:put ("[*] Done")
Import script using
import mikrotikmqtt.rsc
Todo’s:
Import is just @ import time, need to “cron” this?
In the past i created a lot of websites. From scratch. I wanted to learn html and using databases. Sites got bigger and bigger, most of them personal interest. But there where several work and music band related websites. Besides that my pipetunesearch pet project, which lasted 20 years. This one started as ‘how to create a php website with a database backend’
So why hating wordpress? It’s all being done for you, but i want do it yourself and learn from it. I’ve made several sites with their own CMS. No way secure, but secure by obsurity, whereas wordpress sites a being hacked with zeroday exploits using bots. No-one WANTED, even to hack mine.
I started with SSI (server site includes), php3, cgi scripts in bash/perl/c etcetera. I loved (and still do) interactive websites, connection to a backend, reacting on user input. Sometimes while doing so, creating a thing before it was a thing.
For my webcam, which wasn’t anything more dan a video capturing card, with a simple composite little B/W camera. This camera was mounted on some big steppermotors, and held in place by a chunk of metal, machined by a friend of mine.
I learned to make streaming webcams by generating a progressive jpg being created by a cgi script. Controlling the movement was done by .. by anything which i needed to get things working. I think i where several binaries written in C and glued together with perl or bash. Pushing the little control buttons always send the user to the next page. Reloading and restarting the webcam stream. Then i found the 402 no content header, sending this to the browser kept it from progressing to the next page. Loads of problems to overcome, but learned a lot!
Sometimes you have to choose. DIY or NOT. Flacky or proven to work for many, made by many.
Using Esphome in HA, you can flash arduino’s using your browser.
I wanted to test with a M5stickC because of the intergrated sensors.
Steps to take:
Install Esphome add repo from https://esphome.io/guides/getting_started_hassio.html
Connect M5Stick to usb ( you can do this from the same machine where your browser is running ), i connected the device directly to the NUC where Home Assistant is running.
Open EspHome integration
New Device (First time it will ask for your default Wifi credentials)
Give it a name, and select Pick specifiec board (M5Stick-c)
When presented a edit field with yml, past below for first test