|
Post by Leif Bloomquist on Mar 16, 2004 22:09:32 GMT -5
Hi all, In addition to calling 8-bit Telnet BBS's with my C64 and a Win32 helper program, I would like to be able to connect to a Linux machine. My software doesn't handle the Telnet IAC/DO/DON'T/etc... protocol yet, so it doesn't get anywhere. Six's HayesEm doesn't support it either, and I haven't been able to install Tom Stock's TCPCOM - the setup program asks me to reboot over and over. Before I dig too deeply into this - has anyone else gotten this to work? I heard at SWRAP about people telnetting to videocam.net.au and so on with their C64s - what software/setup did they use? Having a bash prompt, Pine, lynx etc. on my C64 would be 1) useful and 2) cool. But I'd like to see how it's been solved in the past before I rush into things. Any tips?
|
|
|
Post by Jim Brain on Mar 16, 2004 22:24:52 GMT -5
I solved it with my code I am working on.
As you guessed, you have the handle the IAC stuff. I hacked up some code that basically DOs to all WILLs, WILL to all DOs, and sends a 00 response to any extended negotiations. I need to clean it up, as telnet does not like having no term tyope set (one of the extended parms is terminal type).
I can provide my current code, which will get you by (you'll have the convert from C to VB, but that should not be too hard), but I do hope to write a proper parser for it as soon as I get my issue with control lines fixed.
However, most people with a UNIX variant simply run mgetty or getty or agetty on the serial port if all they want is outbound communication. There may be a windows version of these apps.
Jim
|
|
|
Post by Leif Bloomquist on Mar 23, 2004 11:23:31 GMT -5
As you guessed, you have the handle the IAC stuff. I hacked up some code that basically DOs to all WILLs, WILL to all DOs, and sends a 00 response to any extended negotiations. I need to clean it up, as telnet does not like having no term tyope set (one of the extended parms is terminal type). I found a website that talks more about this, and has some VB code that I've tested successfully. forums.devshed.com/archive/t-83009However, their approach is a bit different, they reply WONT to every DO and DONT to any WILL. I'll have to experiment and see what works best. As for terminal type, can't you then just do an export TERM=xxxx once you're logged in, or set it into a login script?
|
|
|
Post by Jim Brain on Mar 24, 2004 11:59:34 GMT -5
I had code that did that too (WONT for DO, DONT for WILL). But, in testing against Linux, evidently the base telnet daemon MUST have some of the options, or it hangs... (Or, it could have been my code, but I changed the code slightly to do WILL and DO and it started working fine...)
yes, you can do export TERM=...
Have fun.
|
|
|
Post by Leif Bloomquist on Mar 30, 2004 11:29:09 GMT -5
Success! I added that code at devshed to my application, and I can now telnet to my RedHat 7.1 Linux box "through" my Win2K PC and my BBS Server program. Used Novaterm 9.6. Pics: (Can you tell I got a digital camera for Christmas? ;D ) Bash prompt, including color. Lynx Web browser. Pine Email client. These were taken on that borrowed C128 in 80 column mode, but it also works great with Novaterm's "simulated" 80 column mode on a regular C64. However, if I did anything with ANSI in full-screen with Novaterm in 40 column mode, (such as Pine/Lynx) - Novaterm would just lock up, solid. (Requiring restart of the 64). I could also put several IPs of Linux machines or BBSes in my Novaterm address book and "dial" them that way. This worked fine as well.
|
|
|
Post by Jeff Ledger on Mar 30, 2004 18:13:15 GMT -5
You've got your code able to telnet to linux?? FANTASTIC! Mind sharing a copy?
This is a much needed element for allowing CBMs to use the internet.
Jeff
|
|
|
Post by Leif Bloomquist on Mar 30, 2004 20:44:41 GMT -5
You've got your code able to telnet to linux?? FANTASTIC! Mind sharing a copy? This is a much needed element for allowing CBMs to use the internet. Sure thing, just need to do some tidying. It should (in theory) Telnet to anything now. Just for a test, I set up the (very simple) Telnet server included with Windows 2000, and was able to telnet to it as well. DOS prompt on my 64!I was even able to run "edit" and move text around and so on....but there was no way to send "ALT-F" so I couldn't exit the application ;D I won't bother taking a picture...
|
|
|
Post by Leif Bloomquist on Mar 30, 2004 20:48:20 GMT -5
Of course, I now have three PC's hooked up to my C64! This probably isn't the most optimal solution. - Windows 2000 PC running BBS Server
- Linux PC running Red Hat 7.1 (bash, pine, lynx, etc)
- DOS PC running 64HDD
I'm really just using the 64 as a dumb terminal though. This could even be done with those old monochrome RS-232 terminals. If were able to FTP a file and put directly onto my 64HDD system (possible in theory) - that would be a BIT better!
|
|