Telnet for MOS
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Estrayk
    Posts: 142 from 2003/12/30
    From: Spain!
    Config: PegasosII G4/1000, 256MB DDR400, VooDoo 3000 AGP
  • »23.03.04 - 13:45
    Profile Visit Website
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    Where is the Putty port when you need one :-P
    www.mikseri.net/hooligan <- Free music
  • »23.03.04 - 14:18
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    poundsmack
    Posts: 1346 from 2003/6/8
    From: USA California
    seriously putty is a must have......
    "Poundsmack, official morphzone thread creator" -LorD
    "Wanna be lord of the avatars." -JKD
  • »23.03.04 - 19:23
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Estrayk
    Posts: 142 from 2003/12/30
    From: Spain!
    yes! we need it! :-x

    :-x :-x :-x :-x :-x :-x

    hey! coders !!!! :(o): please !!!!
    Config: PegasosII G4/1000, 256MB DDR400, VooDoo 3000 AGP
  • »23.03.04 - 21:59
    Profile Visit Website
  • Cocoon
    Cocoon
    muckboy
    Posts: 47 from 2004/1/15
    From: West Chester, PA
    Try DCTelnet.

    Putty is sucky IMHO. If you need a good telnet-client
    for win32, get secureCRT.
    PegasosII/G4@1GHz | 512MB PC2100 ECC/REG | Radeon9200/128MB | Seagate Barracuda 160GB@7200RPM
  • »24.03.04 - 07:09
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 534 from 2003/2/25
    From: France
    Quote:


    Estrayk wrote:
    yes! we need it! :-x

    :-x :-x :-x :-x :-x :-x

    hey! coders !!!! :(o): please !!!!


    I have dl the source to give a look at. No doc, no comment and all sources mixed randomly. It is not easy to port.

    sixK maybe? He's used with un*x ports.
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »24.03.04 - 07:26
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Posts: 979 from 2003/6/28
    We need a good telnet/ssh and others protocols client :-)
  • »24.03.04 - 07:42
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Estrayk
    Posts: 142 from 2003/12/30
    From: Spain!
    thanks muckboy.

    DCTelnet 1.5 works fine here!


    ;-)
    Config: PegasosII G4/1000, 256MB DDR400, VooDoo 3000 AGP
  • »24.03.04 - 13:50
    Profile Visit Website
  • Just looking around
    Gunnar
    Posts: 6 from 2003/12/28
    There are 'normal' telnet and
    ssh commands available for MOS.
    They offer the same possibilities as the Linux
    version do.
    Telnet is included in the MOS SDK.
    Lousie has ported the ssh client.
    http://pegasos.innoidea.hu/


    There is just two *annoying* things:

    a) The MOS shell has different colors
    than a 'normal' Terminal.
    But luckily those colors can be changed.
    To change them you need to issue some echo commands. If you put those commands in your s:shell-startup then the colors are set for every shell you open.
    example:
    echo "*E[1;255;0;255V" set color 1 to purple.


    b) For me a big problem is that the MOS shell
    send different escape codes then other (linux)
    boxes expect.
    This means the arrow keys will not work when you
    use telnet or ssh.
    This could theoritycal be fixed by setting the terminal to the proper value. I tried this but I was unsuccessfull.
    This problem is really dissappointing me.

    I asked a few times for help on the beta2 mailing list, but no one could or wanted to help.


    @BBRV
    It would be great if Genesi would support us here . If the ssh would work completely then MOS would be so much more usefull.



    Cheers
    Gunnar
  • »25.03.04 - 07:49
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Estrayk
    Posts: 142 from 2003/12/30
    From: Spain!
    Really, thank you very much Gunnar.
    :-)
    Config: PegasosII G4/1000, 256MB DDR400, VooDoo 3000 AGP
  • »25.03.04 - 15:53
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    DoctorMorbius_FP
    Posts: 315 from 2004/2/13
    From: Naples - Italy
    Have you tried to edit the keymap and associate the needed characters to the arrow keys?. If this works you only need to load the specialized keymap when you use ssh...

    Maybe this approach does not work, but if you want to give it a try, use KME from Aminet: it works! I used this keymap editor to set the AmigaOS3.1 italian keymap in order to be able to generate special characters absent on the MorphOS pc105_i keymap.

    Of course KME does not recognize alien keys that do not appear on a standard Amiga keyboard, but this is irrelevant in the present context.
    Powered by PegasosII-G4, MacMini, PowerMac MDD.
  • »26.03.04 - 01:00
    Profile Visit Website
  • Just looking around
    Gunnar
    Posts: 6 from 2003/12/28
    >Have you tried to edit the keymap and associate the needed characters to the arrow keys?

    No, I didn't.
    I think the arrow keys send the right "amiga" sequences so I'm not what I might break if I change them. But your idea is worth to try out.
    Thanks ! If it works then I will update you.


    I thought that the best way to fix this is to
    create a working MOS-Amiga terminfo on
    the Linux site. Unfortunatly I have no real UNIX
    background - I tried to create a working termcap
    but unfortunately I always failed.


    If a UNiX Guru is reading this -
    # Please be so kind and help me/us:
    # We need a working termcap for Linux which is
    # aware of the strange characters that the
    # MOS-Shell is sending for the arrow keys.
    #
    # Mr Guru, you could do me a real favour by
    # helping to create a working termcap.
    # I would be glad to pay you in Coke,Beer and
    # Pizza if you come anytime close to southern Germany.


    Thanks
    Gunnar
  • »26.03.04 - 15:02
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    DoctorMorbius_FP
    Posts: 315 from 2004/2/13
    From: Naples - Italy
    @Gunnar

    Note that the keymap trick (if it works) can be done in a system-compliant way. In fact there is an utility I have used years ago (it should be find on Aminet, I think) that can set the keymap locally, only in the CLI window where you run the command. So you can use the standard keymap in all your applications, except in the Telnet window (or the like), where you should initialize the special keymap...

    Let me know if the keymap trick works. If it does, I will search my backups for the command that I have mentioned above.

    Bye,
    Fulvio
    Powered by PegasosII-G4, MacMini, PowerMac MDD.
  • »27.03.04 - 18:36
    Profile Visit Website
  • MorphOS Developer
    March
    Posts: 91 from 2003/7/30
    From: Warsaw, Poland
    Thanks for hint!

    This really works! :)

    How I did it:

    1. I've prepared a special keyboard map with Un*x escape sequences assigned to keys like arrows or function keys.

    2. I got a special font with additional VT100 characters.

    3. I set the TERM variable to "ansi" (case IS IMPORTANT).

    4. For changing font and keyboard layout I use standard commands
    available on Workbench3.x disks: SetKeyboard and SetFont

    5. SSH from OpenSSH for AmigaOS archive seens to be fully useable now.

    6. I created a small AmigaDOS script that changes font and keyboard
    and then runs ssh.
    Marek Szyprowski ...... happy MorphOS, AmigaOS and Debian/Linux user ........
  • »27.03.04 - 19:40
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    marcik
    Posts: 268 from 2003/4/12
    From: Kielce/Krakow,...
    Could you upload needed files somewhere? I think, that there are lots of peoples interested in it.
  • »27.03.04 - 19:53
    Profile
  • MorphOS Developer
    March
    Posts: 91 from 2003/7/30
    From: Warsaw, Poland
    It's here.
    Marek Szyprowski ...... happy MorphOS, AmigaOS and Debian/Linux user ........
  • »27.03.04 - 23:06
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    DoctorMorbius_FP
    Posts: 315 from 2004/2/13
    From: Naples - Italy
    Well, Marek Szyprowski has finally proved that my hint concerning the generation of an alternate keymap was right. He has also written an useful list of simple rules that explain how the problem should be managed (see above), and provided the needed files (March, the archive is corrupted, please replace it!).

    Also note that a keymap editor that works fine in MorphOS environment is KME, that can be found on Aminet in the util/misc/kme.lha archive.

    Then I suggest to Targhan that the rules and the archive should be included in the FAQ section (thanks in advance, Dave, for your constant and kind attention). In fact, there were several rants and help requests in the beta2 mailing list, in the last few months, concerning the problem of the arrow keys not working with SSH. So the subject seems to be of general interest.
    Powered by PegasosII-G4, MacMini, PowerMac MDD.
  • »27.03.04 - 23:44
    Profile Visit Website
  • Targhan
    Posts: 2833 from 2003/2/8
    From: USA
    Ack! I'm sorry I've missed some from the thread here.

    I'll try to get up a link to KME sometime this weekend.

    Could someone please explain the SSH, rules, and the arrow thing again? We'll need to get that into the FAQ ;-)
    :idea:Targhan

    MorphOS portal? www.MorphZone.org
  • »28.03.04 - 06:26
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    hiTCH-HiKER
    Posts: 169 from 2003/12/31
    @March:
    Your Archive is corrupt :(
    I tried downloading in Win2k and MorphOS, on both systems I get CRC errors when unpacking.
    Could you please upload it again?
  • »28.03.04 - 13:16
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    Have you tried to use one of the UNIX-shells found on Aminet ?
    AFAIK these should send the right escapes.

    Or if you got the SDK installed, just type sh.
  • »28.03.04 - 13:33
    Profile
  • MorphOS Developer
    March
    Posts: 91 from 2003/7/30
    From: Warsaw, Poland
    I tried them. They don't tranlate keycodes.
    Marek Szyprowski ...... happy MorphOS, AmigaOS and Debian/Linux user ........
  • »28.03.04 - 15:44
    Profile Visit Website
  • MorphOS Developer
    March
    Posts: 91 from 2003/7/30
    From: Warsaw, Poland
    Done.

    I had to pack it using LZX because my LHA always produced corrupted archive. Strange... :-(
    Marek Szyprowski ...... happy MorphOS, AmigaOS and Debian/Linux user ........
  • »28.03.04 - 15:47
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    hiTCH-HiKER
    Posts: 169 from 2003/12/31
    Well done March, works perfectly.
    Do you know if there is a way to handle the keys "page up/page down" correctly?
    That would be very nice for navigating in the bash or in programs like pine.
  • »28.03.04 - 16:03
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    DoctorMorbius_FP
    Posts: 315 from 2004/2/13
    From: Naples - Italy
    @ hiTCH-HiKER & March
    KME is a classic Amiga keymap editor, so it is not able to recognize keys not present on the original Amiga keyboard. However <Page Up>, <Page Down>, <Home>, <End> and so on can be implemented associating the needed codes to the relevant keys of the numeric keypad. You can improve your work, March!

    @ Targhan & March
    Although I had the idea to edit the keymap and create a specific "communication keymap" to solve once and for all this long-standing problem concerning Telnet programs, I have never used these programs. So I think that March has the necessary competence to write the FAQ, just expanding his list.

    @ all
    The "communication keymap" generated for SSH should work unchanged for any program you like, included unix shells ported to the Amiga.
    Powered by PegasosII-G4, MacMini, PowerMac MDD.
  • »28.03.04 - 18:57
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    hiTCH-HiKER
    Posts: 169 from 2003/12/31
    I have a little problem with the SSH Script. When I used it, then my original MorphOS german keymap isn't restored. How can I change the MorphOS keymap via shell command, as the keymaps don't seem to be in keymaps:?

    @DoctorMorbius_FP:
    How can these codes be added to the keymap? Is there some kind of keymap editor available?
  • »28.03.04 - 19:03
    Profile