Poof? Kilowatt? Running a program in KLinux?

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,806
4,789
75
As I mentioned in the A^3 MTR thread, I'm still trying to get FTP working on KLinux. I compiled a statically linked version, and it works on standard Linux, but on KLinux it gives me:

Sh: /bin/ftp: Not found.

Which doesn't tell me anything. And yes, the file is there and executable. So (1) do you know how to make this work, or (2) does anyone know how to format a floppy in ext2 format from Windows, KLinux, or Tom's rtbt Linux?

Thanks!

P.S. The binary references "/lib/ld-linux.so.2", which KLinux doesn't have. Does that help?
 

Poof

Diamond Member
Jul 27, 2000
4,305
0
0
Are you trying to ftp into the klinux box or from it? If you're trying to get to it, you would need the ftp server (ie., something like ftpd). The plain old "ftp" file is the client.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,806
4,789
75
Right now I'm trying to get any program I compile to run on KLinux at all! Then I want to ftp out form KLinux. FTP in would be nice, but I think it would be more complicated, and everything needs to fit in about 800k or less.

I'm going to try copying that /lib/... file and see what that does.

Edit: Okay, I tried it, and it came up with an error about loading some shared libraries: libresolv.2.so. Closer, but I'd need more files to make this work. So how can I set the compiler to compile for /lib/ld-linux.so.1.9.9 instead? And shouldn't this have been fixed already by linking statically?
 

Poof

Diamond Member
Jul 27, 2000
4,305
0
0
You might be able to copy the files you need to a regular windoze floppy and then mount that floppy to klinux (with the "mount -t vfat /dev/fd0 /floppy" command)

I think I've done that myself a few times before.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,806
4,789
75
I've already been doing that. This is coming down to a problem of compiler options. Are 1.9.9, 2.0, and 2.4.4 Linux kernel versions? GCC versions?

Anyway, how about that other question? How do I format a floppy for the ext2 filesystem, using, basically, command-line programs?

Thanks!
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Your best option would be to reinstall or install another version of linux. It looks like you dont have anything on the system that you would need to get a useful system...
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,806
4,789
75
KLinux is a floppy-based linux. I'm running it on computers without hard drives, so I reinstall every boot-up.

Nevertheless, I think you may be right. I'm considering another floppy-based linux that does have FTP; but it doesn't support dos filesystems. That's why I may need the ext2 floppy, although I suppose I could just FTP everything.

And I don't suppose anybody knows how to modify the contents of a floppy image?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,806
4,789
75
Update: I found an FTP that runs on KLinux, from LOAF. But it came up with an error of ftp/tcp: service not found. Maybe somebody can figure that one out. Meanwhile, I'll see if I can get LOAF to work with Realtek RTL8139 ethernet cards.

Oh, and I'm even confusing myself with this one. That other Linux that works doesn't support FTP; it supports TFTP, and it's something of a pain to boot. So I'm still looking...