English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 04 October 2022, 23:48   #1
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Roadshow: Using TelNetD and Configuring the Users File

(I also posted this message on the Roadshow forum.)

Hi all!

I'm a happy Roadshow user that I use on one of my Amiga while the others use Miami

I recently installed TelNetD v2.0 on these Amigas without much problem. With Roadshow, I'm facing a problem: whenever I try to connect via telnet to my Amiga, TelNetD Guru 8000 0004 or the Amiga crashes entirely and reboots

I think that the problem come from my Roadshow "users" file because its syntax is different from that of AmiTCP or Miami. I put the following line, but I think that it's wrong:

Code:
NAME=tygre PASSWORD=abcdef UID=1 GID=1 DIR=RAM: SHELL=CLI
I added a HOSTNAME env. variable but it didn't seem to make any difference...

Could anyone help?
Take care!

Last edited by tygre; 04 October 2022 at 23:49. Reason: More details
tygre is offline  
Old 17 October 2022, 16:13   #2
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Hi all!

I did some more test over the weekend and got something closer to working: I increased the stack to the server description with STACK=65535 and it seems that SHELL in the user file is a switch, not a keyword requiring a value

Now, when I connect with a telnet client to my Amiga, SnoopDOS shows something like that:

Code:
NewSell -DEVICE fakesr.device -UNIT 21
but the telnet client stays "frozen", not showing any prompt or anything.

I saw that there is a DOS switch that I could add to the server description to link the I/O to the TCP stream, but when I use it, Roadshow doesn't allow my telnet client to connect anymore and the NewShell command above doesn't happen.

What am I doing wrong?
tygre is offline  
Old 17 October 2022, 21:53   #3
duga
Registered User
 
Join Date: Nov 2010
Location: Sweden
Posts: 528
Have you asked on the official Roadshow68k forum?
duga is offline  
Old 17 October 2022, 23:46   #4
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Yes indeed!

(See my first post, but I haven't received any answer there yet...)
tygre is offline  
Old 23 October 2022, 18:05   #5
AiO
Registered User
 
Join Date: Oct 2017
Location: Sweden
Posts: 17
Did you make any progress?

I was fiddling with VCON also. But it launches the shell in a Window on the Amiga instead of giving it to the telnet-client.

I have the same issues as you with telnetd v2.0 it gurus on me.
AiO is offline  
Old 23 October 2022, 20:38   #6
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Hi AiO!

No news yet: I wrote directly to APC&TCP and a Andreas answered me back, writing that they had forwarded my e-mail to the developer

With VCON, did you try the DOS switch in the server description?

Cheers!
tygre is offline  
Old 14 November 2022, 17:06   #7
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Hi all!

Anyone could help?

PS. I already contacted APC&TCP...
tygre is offline  
Old 25 November 2022, 16:24   #8
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Hi there!

Has anyone some ideas how to make it work?

Cheers!
tygre is offline  
Old 26 November 2022, 01:20   #9
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
First of all, you were right in that it needs more stack, at default 4096 it sortof managed to work, sometimes, but if you run MuForce you see exceptions and crazy stuff happening. So I guess telnetd was really close to the stack limit with AmiTCP/Miami and calling bsdsocket.library functions in Roadshow simply needs a little bit more stack.

So this is what was needed for the stack, but you already figured that out:
Code:
9.Ram Disk:> search DEVS:Internet/servers telnet NONUM 
telnet  STACK=8192      stream  noreq   SYS:serv/telnetd
The users entry is a bit interesting, more specifically the shell part where telnetd.guide mentions that the leading * in the example is needed for telnetd to redirect standard input and output.

The * as argument to NewShell is to tell NewShell to use standard input/output instead of opening a new console window for standard input/output and can be replaced with CONSOLE: in 2.0+.

As Roadshow parses the arguments ReadArgs()/ReadItem()-style, * needs to be escaped with an additional *. You also you need "" quotes around the argument as it contains a space. So this is what it will look like:
Code:
9.Ram Disk:> search DEVS:Internet/users patrik NONUM 
NAME=patrik PASSWORD=secret UID=1000 GID=1000 DIR=RAM: SHELL="**NewShell **"

Last edited by patrik; 26 November 2022 at 01:26.
patrik is offline  
Old 28 November 2022, 01:38   #10
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Hi Patrik and thank you so much! With your examples, it works now!

I couldn't understand what the * was about, thanks for your explanations. I just added my own startup to change the prompt like on my other Amigas.

I noticed two "issues". First, the "USER" global variable doesn't seem to be set by Roadshow. Second, executing "dir" breaks something in the I/O handling: after a call to "dir", what I type in my terminal doesn't show and the prompts all show on a same line rather than on the next line (But "list" doesn't cause this issue, so no problem really!) Would you have any ideas on these issues?

Thanks again!
tygre is offline  
Old 28 November 2022, 18:58   #11
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
Quote:
Originally Posted by tygre View Post
I noticed two "issues". First, the "USER" global variable doesn't seem to be set by Roadshow. Second, executing "dir" breaks something in the I/O handling: after a call to "dir", what I type in my terminal doesn't show and the prompts all show on a same line rather than on the next line (But "list" doesn't cause this issue, so no problem really!) Would you have any ideas on these issues?
I assume this does not happen in when you run telnetd on the other systems? Is it the same versions of workbench/kickstart on all of them btw?
patrik is offline  
Old 28 November 2022, 23:50   #12
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Quote:
Originally Posted by patrik View Post
I assume this does not happen in when you run telnetd on the other systems? Is it the same versions of workbench/kickstart on all of them btw?
Yes, absolutely: no such issue with Miami... Regarding the Workbench/Kickstart, IIRC, they are all 3.1 or 3.1 + elements of 3.9

PS. Command "list" and "ls" (from GeekGadgets) don't create this issue...
tygre is offline  
Old 29 November 2022, 08:22   #13
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
Got the exact same result under 3.2.1 - dir makes what I type in the prompt become invisible, but list does not.

I wonder if it can be because of some slight difference in TCP: behaviour.
patrik is offline  
Old 29 November 2022, 23:56   #14
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Thanks for confirming

Maybe ThoR or others well-versed in the dark arts of the console will have some ideas

I don't know what to do but, in the meantime, list or ls will do!

Thanks again!
tygre is offline  
Old 09 February 2023, 18:52   #15
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
I setup telnetd today with Roadshow / OS 3.2.1 so thanks for this info Patrik!
I'm not seeing the issues with 'dir'. What telnet client are you using?

I tried 3 clients. All support ANSI colours.
- Windows: Doesn't handle CR/LF correctly (tried all terminal types).
- Linux: Seems OK but misses the odd CR.
- Windows Putty. This seems the best.

My users file uses s:telnet-startup to run 'noreq' (see telnetd2_0.lha)
Code:
NAME=user PASSWORD=password UID=1000 GID=1000 DIR=RAM: SHELL="**NewShell ** FROM s:telnet-startup"
telnet-startup:
Code:
c:noreq
Execute s:shell-startup
PROMPT "*E[0m*E[33m%N.*E[32m%S>*E[0m "
The only remaining problem I have with arrow keys, tab, ctrl+c etc do not work. For example, up arrow echoes ^[[A
nogginthenog is offline  
Old 14 February 2023, 08:48   #16
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
Quote:
Originally Posted by nogginthenog View Post
I'm not seeing the issues with 'dir'. What telnet client are you using?
The telnet command in an older 10.11 OS X, so BSD/old UNIX origins I presume.
patrik is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
e-uae bsdsocket.library with tcpip servers (telnetd)?? GeoKM support.OtherUAE 6 09 August 2013 12:34
I need help configuring Amithlon! jimmy2x2x support.Other 6 08 April 2011 11:01
Configuring Joystick(s) Kristian83 support.WinUAE 24 06 January 2009 00:34
Re-Configuring Picasso96 THX1138 support.Hardware 4 26 April 2006 11:19
Telnetd.device dEViAN New to Emulation or Amiga scene 7 10 October 2005 05:43

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:58.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.20263 seconds with 15 queries