68k project (under construction)
Idea:here
Read by tag:68kavr
Z80 project (considered complete, but will be updated sometimes)
Idea here
Read about Searle Grant's SBC SD interface (and generally CP/M SD implementation) by tag sgsbcsd
Note, that the early records were imported from Livejournal and should be edited by me sometimes later (I bet that will never happen).
Also, some early records may contain some weird letters - that's russian, but it is always translated, do not be afraid.
Also, sometimes I write about some unrelated (even PC!) but weird hardware, some unrelated but weird network technologies, and some weird things. May be even I'll attempt to write a big post about butterflies. If I ever got interested in butterflies.
Thursday, November 12, 2037
Sunday, July 20, 2025
prosody and mod_groups
I spent some time trying to make mod_groups to work in prosody and the problem was that it must reside under VirtualHost
It sounds oblivious, but no place where is is written.
Tuesday, July 8, 2025
NAT port redirections vs TCP tunnel with socat: the difference
There is a difference in making TCP port redirection via iptables/nftables/pf firewall NAT and via a dedicated TCP tunnel process, such as socat.
Let's say we face the setup -- firewall A, server B, and -- server B has a defaultroute elsewhere, not via firewall A In case of tcp tube, the connection from a firewall goes via socat with the source address of LAN of the firewall. Server B sees A's LAN address and sends data back there happily.
In case of nat redirection, the connection via filewall A comes from external addresses to server B, and it replies to that external address via server's B defaultroute (and in case it is elsewhere this connection cannot be established: even it sends packets to the source, they are coming from another IP).
I wish there had been someone several years ago that could explain that to me ;-)
Let's say we face the setup -- firewall A, server B, and -- server B has a defaultroute elsewhere, not via firewall A In case of tcp tube, the connection from a firewall goes via socat with the source address of LAN of the firewall. Server B sees A's LAN address and sends data back there happily.
In case of nat redirection, the connection via filewall A comes from external addresses to server B, and it replies to that external address via server's B defaultroute (and in case it is elsewhere this connection cannot be established: even it sends packets to the source, they are coming from another IP).
I wish there had been someone several years ago that could explain that to me ;-)
Tuesday, August 13, 2024
Friday, August 12, 2022
Kchibo KK-9803 old & new version
Kchibo KK9803 is known to be an unexpectedly good radio. However, now here is a new DSP ( kt0936 ) version, that is known to be as shitty as shit.
Here are old version an a new one. Almost impossible to guess which is which.
However, the old version has a variable capacitor tuning, the new one has a resitor tuning -- and here they are (top photo: top is old; bottom photo: top is new):
Even more, new version has POWER led, but the old version has TUNE led.
Be warned!
PS. Unclear why DSP radio is such a shit -- it even has a quartz there.
Friday, July 22, 2022
Basic HTTP auth with lighttpd, mod_authn_dbi and stored PLAIN PASSWORDS
First, if you can avoid storing PLAIN PASSWORDS - avoid them and do not read this at all!
Next,
Generally speaking, I do not understand the authors of lighttpd (which is my web-server of choice for around 10 years) in this exact logic and their love of Digest auth (I prefer Basic+https).
This works at least for lighttpd 1.4.65
Crossposted to linkedin
Next,
auth.backend = "dbi" auth.backend.dbi += ( "sql" => "select md5(concat(username,':MyRealm:',password)) where username = '?'" , "dbtype" => "mysql", "dbname" => "mymydb", "username" => "mymylogin", "password" => "mymypassword" ) auth.require = ( "/" => ( "method" => "basic", "realm" => "MyRealm", # The same realm as in sql statement! "require" => "valid-user" ) )
Generally speaking, I do not understand the authors of lighttpd (which is my web-server of choice for around 10 years) in this exact logic and their love of Digest auth (I prefer Basic+https).
This works at least for lighttpd 1.4.65
Crossposted to linkedin
Saturday, January 15, 2022
Ikea Tradfri hub loosing connectivity
Ikea Tradfri Zigbee controllers are known sometimes to get offline, a lot of people over inet complaining on that. In case it is rebooted, it is working.
The less known thing is the network disconnect also restores availability.
However, disabling/enabling port on switch does not work, because some of the devices just stops transmission over ethernet port.
The thing that helps is speed changing to 10mbps and back! I have my Ikea Tradfri hubs running for several months. The server pings them and if it loses connectivity, I just change the speed of the ethernet ports -- and viola! - my Tradfri hub is back online.
The other problem is when devices goes offline, I have no solution -- and I do not even know how to detect that via COAPS....
Monday, October 25, 2021
Prosody on OpenBSD 7.0
after upgrade OpenBSD to 7.0, I've got " Cannot load driver MySQL. Available drivers are: SQLite3"
pkg_add lua52dbi-mysql
helped.
Yes, that's all I want to say about that!
Saturday, May 8, 2021
Compiling LIRC on Void Linux
After compiling I've noticed that 'default' driver is missing, this makes it unusable on Raspberry PI1.
The trick is
#include <sys/sysmacros.h>
in plugins/default.c somewhere around line 35.
Saturday, April 27, 2019
pmwiki and lighttpd
Just my config, nothing more!
$HTTP["host"] == "wiki.MYDOMAIN.TLD" {
$HTTP["remoteip"] !~ "^2001:START-OF-MY-IPV6-ADDR" {
url.access-deny = ( "" )
}
$HTTP["remoteip"] =~ "^2001:START-OF-MY-IPV6-ADDR" {
url.rewrite-once = (
"^/wiki/?([^?]*)$" => "/pmwiki.php?n=$1",
"^/wiki/?([^?]*)[?](.*)$" => "/pmwiki.php?n=$1&$2"
}
url.rewrite = (
"^/scripts/" => "404.html",
"^/wiki\.d/" => "404.html",
"^/local/" => "404.html",
"^/cookcook/" => "404.html"
)
fastcgi.server = ( ".php" =>
( "php-tcp3" =>
(
"host" => "127.0.0.1",
"port" => 9003,
# Do not check file exists on server side
"check-local" => "disable",
# Some php stuff
"broken-scriptfilename" => "enable",
# Docroot comes from sql in my case "docroot" => "/var/www"
,"fix-root-scriptname" => "enable"
)
),
)
}
Tuesday, January 22, 2019
ZyWALL, D-Link DFL-860, NAT-T: tricks and throughput
I have Dlink DFL-860 running as IPSEC server. I've tried to connect to it with Zywall W30 and Zywall 2 behind of NAT, calling DFL.
That's possible. The trick is to set "My Address" of ZyWalls to WAN address - which they get from the DHCP behind the Nat (and not the real IP).
So the right way is to configure WAN port statically or bind WAN interface to fixed IP via dhcpd.
And next, some throughput table with my settings (somehow same for all the tested devices):
Those devices are really antique (except DFL-860), but that's what I have to share.
I was not able to test D-Link DFL-100 and ASUS SL1000 because they are unable to do XAuth as client.
That's possible. The trick is to set "My Address" of ZyWalls to WAN address - which they get from the DHCP behind the Nat (and not the real IP).
So the right way is to configure WAN port statically or bind WAN interface to fixed IP via dhcpd.
And next, some throughput table with my settings (somehow same for all the tested devices):
| Device | IPSEC/IKE1 throughput, as wget shows,kilo/megaBYTEs | ||
| D-Link HV808 | 540 KB/s (0.5 megabits/sec) | ||
| ZyWALL 30W | 1.28 MB/s | ||
| ZyWALL 2 | 2.15 MB/s | ||
| D-Link DFL-860E | 6.36 MB/s (note: the wire itself if 70Mbs) | ||
| pppd over ssh, without hardware router (one side - banana PI, other is i7?) | |||
| IPv4 | 1,05MB/s | ||
| IPv6 | 962KB/s | ||
| Direct wget over IPv4, for line testing | 9,64MB/s (but ISP says I have 70Mbs) | Direct wget over IPv4 via DI-808HV, Wan is DHCP | ~5.4MB/s |
I was not able to test D-Link DFL-100 and ASUS SL1000 because they are unable to do XAuth as client.
Friday, December 7, 2018
Compex SRX1224
Some notes on Compex SRX1224 switch.
You plug an null modem cable there, and it does not work? Right?
That's easy. You need the straight, non-null-modem cable! And you need some DB9F-to-DB9F direct converter.
As for switch itself, it is 100Mbs switch, managed from console only, without 802.1Q, just port switch.
UPD: also, for the Nortel/Baystack 325 and 425, you need straight cable, too. But it's a very different device, full of vlans and other useful features.
Sunday, June 10, 2018
Some more investigations on Compaq Prosignia VS
I was sure that the board has a memory hole. Nothing like that! It's highly configurable. In the Compaq Setup you can say you have Unix and even Linux installed.
However, BIOS still reports 16M. You have to tell Linux it has more (8 onboard + 4*8 in my case) - so tell Lilo
append="sim710=addr:0x8000,irq:15 mem=exactmap mem=640k@0 mem=15M@1M mem=24M@16M mem=nopentium acpi=off noisapnp"
No matter, still - one of the first thing Linux says - "I've caught NMI!". And linux ignores it. But OpenBSD does not ;-(
However, BIOS still reports 16M. You have to tell Linux it has more (8 onboard + 4*8 in my case) - so tell Lilo
append="sim710=addr:0x8000,irq:15 mem=exactmap mem=640k@0 mem=15M@1M mem=24M@16M mem=nopentium acpi=off noisapnp"
No matter, still - one of the first thing Linux says - "I've caught NMI!". And linux ignores it. But OpenBSD does not ;-(
Wednesday, March 28, 2018
Video cards in HP 9000 computers
From time to time I get some HP 9000 video cards and plug them into my hp/ux HPPA computers.
For a long time I could not understand why they are not working: I can see them both in boot and in HP/UX, but hell, they show nothing!
The answer is simple: use at least 1260x1024x75 monitor. Really, I wasted a lot of time trying to understand why I cant run it.
And more, A4552 66501 PCI-X card at least shows something in PCI C160 computer!
For a long time I could not understand why they are not working: I can see them both in boot and in HP/UX, but hell, they show nothing!
The answer is simple: use at least 1260x1024x75 monitor. Really, I wasted a lot of time trying to understand why I cant run it.
And more, A4552 66501 PCI-X card at least shows something in PCI C160 computer!
Tuesday, December 19, 2017
RCA / CDP1802 project with the same ideas
Here. Well, one more project to boot a CPU from ATMega8. And today that's a 1802!
Wednesday, November 15, 2017
Tiny AVR based project to reset Z80 (or any other CPU) by a serial line
For the modern DIY computers that's normal to be connected by serial port. And in most of cases that's the only way how the communication is made.
But all that Z80 and MC68000 CPUs sometimes HANGS! (Well, do not blame them, blame yourself for a buggy code). But no matter - we have to reset them. And to do that remotely.
So this tiny tool does that: it uses 2 lines from your DIY computer - the reset line and TTL-level RX line of the console. To initiate /RESET, just send break.
You need ATTINY2313, avr-gcc compiler, mm...avrdude and (probably) to edit 2 lines of code in main.c:
First is the freq of yours' quarts, the second is the baudrate of your console.
And all that work for me.
Get it all here
But all that Z80 and MC68000 CPUs sometimes HANGS! (Well, do not blame them, blame yourself for a buggy code). But no matter - we have to reset them. And to do that remotely.
So this tiny tool does that: it uses 2 lines from your DIY computer - the reset line and TTL-level RX line of the console. To initiate /RESET, just send break.
You need ATTINY2313, avr-gcc compiler, mm...avrdude and (probably) to edit 2 lines of code in main.c:
#define F_CPU 12000000L
#define BAUD 57600
First is the freq of yours' quarts, the second is the baudrate of your console.
And all that work for me.
Get it all here
Tuesday, June 13, 2017
Restoring root password in LevelOne GSW-2472TGX switch
..is not trivial. More, there is no known way.
So this is the original and the only known method invented by me:
Take off the case. (The CPU is VIA6526A; just FYI, that will not help us). Plug serial @ 9600 8n1, plug power. Wait for login prompt.
Then, hot-plug-off the only chip you can plug off - that's 2408 serial eeprom. Yes, really, plug it off! The switch is useless if you cannot restore root password, so nothing bad can happen, except of electric shock!
Then, login as root/root. It will think a little, but allow you to log in.
Next, hot-plug 2408 chip again and change the password.
You are done. My congrats!
So this is the original and the only known method invented by me:
Take off the case. (The CPU is VIA6526A; just FYI, that will not help us). Plug serial @ 9600 8n1, plug power. Wait for login prompt.
Then, hot-plug-off the only chip you can plug off - that's 2408 serial eeprom. Yes, really, plug it off! The switch is useless if you cannot restore root password, so nothing bad can happen, except of electric shock!
Then, login as root/root. It will think a little, but allow you to log in.
Next, hot-plug 2408 chip again and change the password.
You are done. My congrats!
Friday, March 17, 2017
Sun 150 and semi-dead nvram
Well, it happened to me: while Sun blade said some reasonable Mac and SystemID, they did not match.
The following helped:
Take Ultra 10 (you own Ultra 10, don't you?), power it up, then hotswap nvram chip and use mkp with system id 0x83.
It will complain "nvram is wrong", but auto-boot. Then put the chip back to SB100.
The problem came when I plugged VGA display to SB, improperly grounded.
UPD: the nvram died permanently. So I had to break the chip and install CR2032 to feed it.
The following helped:
Take Ultra 10 (you own Ultra 10, don't you?), power it up, then hotswap nvram chip and use mkp with system id 0x83.
It will complain "nvram is wrong", but auto-boot. Then put the chip back to SB100.
The problem came when I plugged VGA display to SB, improperly grounded.
UPD: the nvram died permanently. So I had to break the chip and install CR2032 to feed it.
Saturday, August 20, 2016
Installing Slackware 14.2 on Toshiba ac 100 with mainline kernel
The tasks:
First, follow ARCH linux installation guide. The easiest way to compile kernel is to do it on some other ARM computer - saying, on Orange PI (Banana or Raspberry, if you prefer). Stop following this guide until you have only /boot (and /lib with kernel modules, and /etc/ with fstab) on your's EMMC card.
Then take Slackware arm root from here and copy it to EMMC (without boot and preserving /etc/fstab and /lib/kernel modules). Check twice you have a correct fstab (first, root fs and after you boot it - tmpfs and udev)
Next, take a full slackware-arm to sd card, boot the system, plug sd card, mount it, check you have udev running and.. you know what to do with slackware.
- - switch to GPT partitioning and partition the EMMC
- - compile kernel, make it bootable
- - take slackware root
First, follow ARCH linux installation guide. The easiest way to compile kernel is to do it on some other ARM computer - saying, on Orange PI (Banana or Raspberry, if you prefer). Stop following this guide until you have only /boot (and /lib with kernel modules, and /etc/ with fstab) on your's EMMC card.
Then take Slackware arm root from here and copy it to EMMC (without boot and preserving /etc/fstab and /lib/kernel modules). Check twice you have a correct fstab (first, root fs and after you boot it - tmpfs and udev)
Next, take a full slackware-arm to sd card, boot the system, plug sd card, mount it, check you have udev running and.. you know what to do with slackware.
Friday, August 5, 2016
GammuTK - very basic TK gui for sending SMSes via GAMMU
Well, that does exactly what it does, and nothing more: it provides simple TCL/TK gui for sending [long][i18n] SMSes. It takes CSV file with phones, lets you edit the SMS and sends to selected numbers.
Nothing more. Grab it here.
Subscribe to:
Posts (Atom)




