richardjdare / bb2-mode

Emacs major mode for Blitz Basic 2 (a basic compiler for the Amiga)
GNU General Public License v3.0
6 stars 0 forks source link

Telnet username #22

Open gazj82 opened 1 year ago

gazj82 commented 1 year ago

Hi Richard,

I apologize if I am leaving this in the wrong place. I do not know my way round github very well.

I have nearly got bb2 working with a real amiga. I can interface my linux filesystem using smbfs on my amiga which comes up on the amiga as a device named PC:

I am using the roadshow tcp/ip stack on my amiga and emacs can telnet in, if I make the following mod in my emacs init.el

(setq bb2-arexx-script "root\r echo \"/**bb2mode.rexx**/*Naddress TED_REXX1*NSHOWSCREEN*NWINDOWTOFRONT*NACTIVATE*NLOADNEW '%s'*NCOMPILE*N\" > ram:bb2mode.rexx")

This is because i need to login as user root when using telent. Can a bb2-telnet-user variable be created to accomplish this instead?

richardjdare commented 1 year ago

Hi, Thanks for writing, I'm impressed you're getting it going on a real Amiga. I've only ever used it with WinUAE. I kinda hoped it would happen eventually but I don't have any real gear for testing on. I'll add a bb2-telnet-user variable shortly.

richardjdare commented 1 year ago

I've added bb2-telnet user. Let me know how you get on!

gazj82 commented 4 months ago

Hi Richard,

Sorry it took so long to reply. Any amiga programming is when I finally get some spare time. I got it working with my real amiga after some hurdles.

First, I had to set the bb2-telnet-user="root/n/n". This is because the telnet server (that comes as the roadshow TCP/IP stack I use on my real amiga) expects a carriage return after the username, it then also asks for a password that only needs to be blank in this case but also needs another carriage return to work.

I also found that only the SUPERTED editor accepts arexx requests, not the older TED editors. Is this something you have noticed, it maybe worth mentioning it in the docs if this is the case.

I also didn't seem to have RX in my path, despite started arexx after my paths had been set in my startup scripts. I solved this by copying RX to c:

I will try to make a tutorial for getting this setup on a real amiga and submit a org file that can be used in the docs, if you think it maybe of use to others.

Thanks for your great package. I shall get lots of use out of it. It is so good to just hit "C-c C-e" and the code starts running on a real amiga immediately.

richardjdare commented 4 months ago

Hi, thanks for writing. Well done on getting it going on your amiga! Please feel free to send over any modifications and docs, or make a pull request. Sometime I'll put something in the docs about what Blitz versions to use.

What I might do is pull out the hardcoded telnet stuff and make a "connection" data structure, so the user can add their own and choose which one they want to use. I can put your amiga connection details in there, alongside the WinUAE ones, and any other settings that come up for different tcp/ip stacks etc. Then the user can pick the one they want.