You're going to hit a lot of walls such as a reliable source for entropy bits for encryption. It will take minutes to generate keys for instance. There's more entropy requirements in operating ssh than you may realize and you'll likely be bitten by this limitation at every startup to some extent (look into sshd_config for more details). So you may get like ~5 minute boot times without a bit of work.
On a VAX 11/780 for instance, just last year, ssh key creation for me took about an hour. The sshd daemon will then become your bottleneck for file transfers. Expect ~100KB/s on a local network for file transfer on a 486. Look into FTP/NFS to avoid the encryption overhead. If it's a local network, you might even consider telnet. You can also force older less CPU intensive algorithms as well if you really want performant ssh.
Also unless you're going to figure out a way to stuff 64MB of RAM in the thing you'll choke pretty quickly. Do research on what your board supports. Anything over 64 is uncommon. There are a few that support 128/256 although they are quite rare (heck, there's even at least one, the olivetti 5040E that uses a proprietary "olibus" that could do multiprocessing and 1GB with some addon cards). Outside of those few exotic birds like this 4-way mylex, seeing a mix of 72 and 30 pin slots like this is a good sign you have a magic board.
It's possible to make do with less then 64 you'll likely hit swap regardless (more below about that). Under 16 and you'll likely run into booting problems unless you choose wisely.
Also there's processor instructions things are compiled against which your 486 simply will not support so you'll likely have to recompile. Oftentimes you won't know this until you start running the program and it mysteriously dumps core at strange places. It really is that finicky. This will even happen on older pentiums. Testing pre-mmx pentiums and 486s is in nobody's release qualification chart in 2021.
Along with that the modern compiling toolchain is pretty hungry so doing it on the host may be an issue which means you'll probably need to cross-compile it from a modern machine to the reduced instruction set.
You could pretend that gcc 2.95 ought to be enough for anybody but you'll quickly discover lots of modern software simply does not even parse with the older compilers because the code is using C99 or modernish C++ features.
So I'm serious about the why question. You'll get better results from a Pi zero, it's ~$13, you don't need to keep old platter disks running and it will take a fraction of the power.
Is it some cool old laptop? Just curiosity?
As you can probably tell, I've done this stuff before, being able to instrument the machine externally is important. It makes problems way easier to fix.
Two buys you should consider: a "IDE SD card" ($10), it'll make your life way easier. Especially if you point a VM at it on a modern machine. Beyond that get a "PCI USB card" ($7-50) and you can put modern hardware on it, essentially "it just works". Here's a breakdown:
MB/s Tech
1.5 USB 1 <-- Avoid. Not worth it.
3.3 IDE (PIO 0) <-- Possibly you
8.0 ISA <-- You certainly support this.
16.7 EIDE/ATA-3 (PIO 4) <-- Possibly you as well.
33.3 EISA <-- You very likely have these (backwards compatible to ISA)
40.0 MCA <-- My sympathies if you have this. the number of people running modern linux on it will go from 0->1
60.0 USB 2 <-- Cheap and plentiful
100.0 ATA/100 <-- If you have PCI, you can get this.
133.0 ATA/133 <-- And this. In fact, just get this.
133.0 PCI 33Mhz <-- This is your bus, likely (PCI 1.0, 1992)
167.0 UDMA/167 <-- Not cheap.
177.0 FPM/DRAM <-- Probably your RAM.
266.0 PCI 66Mhz <-- Very unlikely but might be you (called PCI 2.1, introduced 1995)
400.0 USB 3
So yeah, ATA/133 and USB 3.0 are your friends here. SD card performance is a different topic - if you buy one that's recommended for video you'll likely be fine. USB 3.0 legacy PCI cards are between $25-$50 depending on how lucky you get. Look up PCIUSB3S22 for 2-port and PCIUSB3S4 for the 4-port variation.
USB 2.0 cards are way cheaper and quite plentiful.
These are "maximum theoretical speeds" not actual real world ones. But making sure you have a fast I/O pipeline where you don't all of a sudden hit say, a 1.5 MB/s USB 1 bus or a 3.3 MB/s PIO 0 bus is worth the effort. If you can get 100 MB/s disk throughput on a 486 by carefully spending under $100 then I say do it, especially if you can get something that realistically will be probably between 50-75% as fast as your RAM.
Oftentimes the old BIOSes won't support hard drives over 528 MEGAbytes, as in under 1gb. Those old drives are slow, all close to failure, and will present quite a challenge for a modern linux install. They're reasonably priced if you really want one, but they're all over 26 years old (500MB were made around 1994) and the platter's material degrades, the controller chips fail, the reading head becomes loose ... it's no good. I love them and I wish you luck, but unless you really want it, try to avoid them.
Instead, if you're up against the 528MB wall, get a "PCI ATA" or an "ISA ATA" card and then hook your IDE SD bridge to it and you'll be able to put in a modern, say, 16GB SD card.
If it's E/ISA ONLY then you may want to go with an ISA SCSI card and then do a SCSI2SD, which is more expensive, but both are easier to find than an ISA/USB or ISA/ATA card (both exist, you'll probably be writing the drivers yourself though)
Assuming PCI, there's 2 additional major capacity walls depending on the age of the ATA card you just got, one at 2.1GB and another at 33.8GB. So try and look for a relatively modern PCI IDE card (post-2000 or so) to avoid that and you should be able to pop in a card > 100GB and be ok. "ATA-133" support is a reasonably reliable proxy for that.
You won't be able to boot from CD btw, iso9660s "el torito" boot sector predates your hardware so if you throw my advice to the wind, you may be lucky and have an updated BIOS but more than likely you'll need to go get yourself some floppies. Modern Linux kinda ignores the root/boot 1.44MB limit but there's a variety of options out there if you really want to (I recommend installing on a newer machine then hook up the sdcard contraption after the install to the 486 and cross your fingers). If you really really want floppies and 1.44 is not enough there may be 2.88 (called 3 1/2 inch ED or Extended, as opposed to HD, 1987 - many IBMs had this) models compatible with your hardware, people call this "2.88 floppies" online, don't expect to get them for cheap and check the connectors - there's a bunch of different kinds of 2.88s (they were used in unix workstations). The famous 120mb superdisk is unlikely to work in a way your bios understands for boot.
Anyways, after boot you can mount via USB (with the PCI USB I recommended) or over network (see below) for additional storage - such as the things you just cross compiled.
Now make one of those your swap drive (the sd or usb). It'll be slower than RAM but way faster than platter. Making swap a dedicated device and going with modern fast hardware is highly advisable. If you ignore this and do host kernel compiles using platter based swap, be prepared for ~2 week compile times. No really, that path will take ~200-2000 times longer.
If it's a laptop, get the docking station. You'll get a lot of options, including sometimes a peripheral slot, like an ISA or PCI, for instance
If somehow none of this is possible, check for PXE boot options there's cheap ISA ethernet cards with PXE chips * . Then you can completely netboot, not use local disk or floppies at all and control the machine like a puppet until you get it right. If you have a PCI slot for it then go with that, the ISA bus can't keep up with 100Mb/s ethernet, yet alone 1Gb/s.
If it's a laptop, get a "PCMCIA to USB" card to get yourself on a modern bus and see above for details. A 486 laptop likely DOES NOT support CardBus (~1997) so make sure it's labeled something like "16-bit PCMCIA" or "PC CARD" - the connectors are identical. If it's a SCSI machine, you'll pay a bit more but all the same hardware exists. If it's MFM, just use the ISA slots and ignore the MFM.
And finally if you want to not save time then ignore all of this and enjoy your hobby.
Note: pxe chips. see this .. how there's that hole for a chip on the left, this card doesn't have it. Here's a card with it see how there's no optional chip that's not there. You need one with the chip for PXE
Modern hardware is legitimately magical. Pop in a $25 card to a computer from 1993 and then just plug in a 512gb usb stick and a wireless keyboard and it's like "alright, cool"
The most useful kind of hammer is the one that smashes fingers as well.
You could be in a chroot or some kind of jails environment. You could be running in a container or a vm.
Tools become more versatile and powerful when you limit the assumptions and the opinions on how they ought to be used.
Just like the solution with, say stoves are "don't put your face on it" and the solution with bleach is "don't drink it" there's dangerous ways to use computer tools as well and there's nothing to fix.
Besides, there already is many safety mechanisms: backups, not being root, depending on the filesystem there's rollback windows, etc...
If someone decides to ignore all of those than this is what happens.
I'm going to do "the thing" here. Why a 486 then?
You're going to hit a lot of walls such as a reliable source for entropy bits for encryption. It will take minutes to generate keys for instance. There's more entropy requirements in operating ssh than you may realize and you'll likely be bitten by this limitation at every startup to some extent (look into sshd_config for more details). So you may get like ~5 minute boot times without a bit of work.
On a VAX 11/780 for instance, just last year, ssh key creation for me took about an hour. The sshd daemon will then become your bottleneck for file transfers. Expect ~100KB/s on a local network for file transfer on a 486. Look into FTP/NFS to avoid the encryption overhead. If it's a local network, you might even consider telnet. You can also force older less CPU intensive algorithms as well if you really want performant ssh.
Also unless you're going to figure out a way to stuff 64MB of RAM in the thing you'll choke pretty quickly. Do research on what your board supports. Anything over 64 is uncommon. There are a few that support 128/256 although they are quite rare (heck, there's even at least one, the olivetti 5040E that uses a proprietary "olibus" that could do multiprocessing and 1GB with some addon cards). Outside of those few exotic birds like this 4-way mylex, seeing a mix of 72 and 30 pin slots like this is a good sign you have a magic board.
It's possible to make do with less then 64 you'll likely hit swap regardless (more below about that). Under 16 and you'll likely run into booting problems unless you choose wisely.
Also there's processor instructions things are compiled against which your 486 simply will not support so you'll likely have to recompile. Oftentimes you won't know this until you start running the program and it mysteriously dumps core at strange places. It really is that finicky. This will even happen on older pentiums. Testing pre-mmx pentiums and 486s is in nobody's release qualification chart in 2021.
Along with that the modern compiling toolchain is pretty hungry so doing it on the host may be an issue which means you'll probably need to cross-compile it from a modern machine to the reduced instruction set.
You could pretend that gcc 2.95 ought to be enough for anybody but you'll quickly discover lots of modern software simply does not even parse with the older compilers because the code is using C99 or modernish C++ features.
So I'm serious about the why question. You'll get better results from a Pi zero, it's ~$13, you don't need to keep old platter disks running and it will take a fraction of the power.
Is it some cool old laptop? Just curiosity?
As you can probably tell, I've done this stuff before, being able to instrument the machine externally is important. It makes problems way easier to fix.
Two buys you should consider: a "IDE SD card" (
$10), it'll make your life way easier. Especially if you point a VM at it on a modern machine. Beyond that get a "PCI USB card" ($7-50) and you can put modern hardware on it, essentially "it just works". Here's a breakdown:So yeah, ATA/133 and USB 3.0 are your friends here. SD card performance is a different topic - if you buy one that's recommended for video you'll likely be fine. USB 3.0 legacy PCI cards are between $25-$50 depending on how lucky you get. Look up PCIUSB3S22 for 2-port and PCIUSB3S4 for the 4-port variation.
USB 2.0 cards are way cheaper and quite plentiful.
These are "maximum theoretical speeds" not actual real world ones. But making sure you have a fast I/O pipeline where you don't all of a sudden hit say, a 1.5 MB/s USB 1 bus or a 3.3 MB/s PIO 0 bus is worth the effort. If you can get 100 MB/s disk throughput on a 486 by carefully spending under $100 then I say do it, especially if you can get something that realistically will be probably between 50-75% as fast as your RAM.
Oftentimes the old BIOSes won't support hard drives over 528 MEGAbytes, as in under 1gb. Those old drives are slow, all close to failure, and will present quite a challenge for a modern linux install. They're reasonably priced if you really want one, but they're all over 26 years old (500MB were made around 1994) and the platter's material degrades, the controller chips fail, the reading head becomes loose ... it's no good. I love them and I wish you luck, but unless you really want it, try to avoid them.
Instead, if you're up against the 528MB wall, get a "PCI ATA" or an "ISA ATA" card and then hook your IDE SD bridge to it and you'll be able to put in a modern, say, 16GB SD card.
If it's E/ISA ONLY then you may want to go with an ISA SCSI card and then do a SCSI2SD, which is more expensive, but both are easier to find than an ISA/USB or ISA/ATA card (both exist, you'll probably be writing the drivers yourself though)
Assuming PCI, there's 2 additional major capacity walls depending on the age of the ATA card you just got, one at 2.1GB and another at 33.8GB. So try and look for a relatively modern PCI IDE card (post-2000 or so) to avoid that and you should be able to pop in a card > 100GB and be ok. "ATA-133" support is a reasonably reliable proxy for that.
You won't be able to boot from CD btw, iso9660s "el torito" boot sector predates your hardware so if you throw my advice to the wind, you may be lucky and have an updated BIOS but more than likely you'll need to go get yourself some floppies. Modern Linux kinda ignores the root/boot 1.44MB limit but there's a variety of options out there if you really want to (I recommend installing on a newer machine then hook up the sdcard contraption after the install to the 486 and cross your fingers). If you really really want floppies and 1.44 is not enough there may be 2.88 (called 3 1/2 inch ED or Extended, as opposed to HD, 1987 - many IBMs had this) models compatible with your hardware, people call this "2.88 floppies" online, don't expect to get them for cheap and check the connectors - there's a bunch of different kinds of 2.88s (they were used in unix workstations). The famous 120mb superdisk is unlikely to work in a way your bios understands for boot.
Anyways, after boot you can mount via USB (with the PCI USB I recommended) or over network (see below) for additional storage - such as the things you just cross compiled.
Now make one of those your swap drive (the sd or usb). It'll be slower than RAM but way faster than platter. Making swap a dedicated device and going with modern fast hardware is highly advisable. If you ignore this and do host kernel compiles using platter based swap, be prepared for ~2 week compile times. No really, that path will take ~200-2000 times longer.
If it's a laptop, get the docking station. You'll get a lot of options, including sometimes a peripheral slot, like an ISA or PCI, for instance
If somehow none of this is possible, check for PXE boot options there's cheap ISA ethernet cards with PXE chips * . Then you can completely netboot, not use local disk or floppies at all and control the machine like a puppet until you get it right. If you have a PCI slot for it then go with that, the ISA bus can't keep up with 100Mb/s ethernet, yet alone 1Gb/s.
If it's a laptop, get a "PCMCIA to USB" card to get yourself on a modern bus and see above for details. A 486 laptop likely DOES NOT support CardBus (~1997) so make sure it's labeled something like "16-bit PCMCIA" or "PC CARD" - the connectors are identical. If it's a SCSI machine, you'll pay a bit more but all the same hardware exists. If it's MFM, just use the ISA slots and ignore the MFM.
And finally if you want to not save time then ignore all of this and enjoy your hobby.
Note: pxe chips. see this .. how there's that hole for a chip on the left, this card doesn't have it. Here's a card with it see how there's no optional chip that's not there. You need one with the chip for PXE
Probably 99% donate 0 so do it.
Modern hardware is legitimately magical. Pop in a $25 card to a computer from 1993 and then just plug in a 512gb usb stick and a wireless keyboard and it's like "alright, cool"
The most useful kind of hammer is the one that smashes fingers as well.
You could be in a chroot or some kind of jails environment. You could be running in a container or a vm.
Tools become more versatile and powerful when you limit the assumptions and the opinions on how they ought to be used.
Just like the solution with, say stoves are "don't put your face on it" and the solution with bleach is "don't drink it" there's dangerous ways to use computer tools as well and there's nothing to fix.
Besides, there already is many safety mechanisms: backups, not being root, depending on the filesystem there's rollback windows, etc...
If someone decides to ignore all of those than this is what happens.
Reliability is the most important thing. Who cares how fast it is if you can't trust it.