Telnet from Linux to Amiga: Character problems

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Telnet from Linux to Amiga: Character problems

    I recently set up my Linux PC and my Amiga 4000 to talk to each other
    over TCP/IP. I can now telnet from the Linux PC to the Amiga and use its
    shell. But there are some problems.
    I configured Genesis (on the Amiga side) to open "NewShell *" for
    incoming telnet (port 23) connections. This gives me an AmigaDOS shell
    prompt when I type "telnet amiga" on the Linux PC. But there are
    problems with the character encoding.
    Pressing Return sends a code 0x0D, which the Amiga shell displays as
    ^M, and does not interpret it as a linefeed. I have to press ctrl-J to
    send a 0x0A, which is interpreted as a linefeed.
    Also, both the backspace and delete keys on my Linux PC send the code
    0x08, which the Amiga doesn't interpret as backspace, but instead
    displays as ^H. This means that I have to start over the entire command
    line if I make any mistakes.
    Finally, it seems as if the Amiga EOF character (^\, I think its code
    is 0x1C) can't be input from the Linux PC at all.
    Is it possible to change the codes sent to the Amiga?
    Or am I doing everything wrong by using "NewShell *" instead of a real
    telnet daemon on the Amiga side? If so, then where could I get a telnet
    daemon for the Amiga?

    --
    /-- Joona Palaste (palaste@cc.helsinki.fi) ---------------------------\
    | Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
    | [url]http://www.helsinki.fi/~palaste[/url] W++ B OP+ |
    \----------------------------------------- Finland rules! ------------/
    "Insanity is to be shared."
    - Tailgunner
    Joona I Palaste Guest

  2. Similar Questions and Discussions

    1. Telnet character limit?
      I have a perl telnet script which sends commands to a remote VAX host. The commands get wrapped around at 80 characters, which cause them to get...
    2. redefining Net::Telnet "escape" character
      Gentlepeople, i'm using net::telnet to connect to a remote script (rather than a login). the script internally uses "^]" to step back through...
    3. Character Set Problem: apache/php/linux/oracle
      Hi, If I connect to sqlplus through a linux shell, everything is working as expected (character set is set through an environmental variable...
    4. telnet problems
      Hi all! I'm programming a tunnelbroker with perl. We are already able to create tunnels by means of a telnet session using a telnet library of...
    5. HELP: Linux telnet smtp server fails, Works from MS Windows
      I'm stumped. And I'm not a guru. I think I have a network setup problem on my Linux box, but I'm not sure what to look for. Problem: Trying...
  3. #2

    Default Re: Telnet from Linux to Amiga: Character problems

    Joona I Palaste <palaste@cc.helsinki.fi> scribbled the following
    on comp.sys.amiga.programmer:
    > I recently set up my Linux PC and my Amiga 4000 to talk to each other
    > over TCP/IP. I can now telnet from the Linux PC to the Amiga and use its
    > shell. But there are some problems.
    > I configured Genesis (on the Amiga side) to open "NewShell *" for
    > incoming telnet (port 23) connections. This gives me an AmigaDOS shell
    > prompt when I type "telnet amiga" on the Linux PC. But there are
    > problems with the character encoding.
    > Pressing Return sends a code 0x0D, which the Amiga shell displays as
    > ^M, and does not interpret it as a linefeed. I have to press ctrl-J to
    > send a 0x0A, which is interpreted as a linefeed.
    > Also, both the backspace and delete keys on my Linux PC send the code
    > 0x08, which the Amiga doesn't interpret as backspace, but instead
    > displays as ^H. This means that I have to start over the entire command
    > line if I make any mistakes.
    > Finally, it seems as if the Amiga EOF character (^\, I think its code
    > is 0x1C) can't be input from the Linux PC at all.
    > Is it possible to change the codes sent to the Amiga?
    > Or am I doing everything wrong by using "NewShell *" instead of a real
    > telnet daemon on the Amiga side? If so, then where could I get a telnet
    > daemon for the Amiga?
    I have found that I can go a bit easier if I set telnet to line mode by
    pressing ^] and then saying "mode line", and then afterwards ending
    *EVERY* AmigaDOS command in a semicolon ";", to make AmigaDOS see the
    trailing 0x0D byte as a comment.
    This is quite fun, actually. Now if AmigaOS 3.9 only supported X
    windowing so I could open programs' GUI windows on my local Linux X
    screen instead of the Amiga's own screen.

    --
    /-- Joona Palaste (palaste@cc.helsinki.fi) ---------------------------\
    | Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
    | [url]http://www.helsinki.fi/~palaste[/url] W++ B OP+ |
    \----------------------------------------- Finland rules! ------------/
    "It sure is cool having money and chicks."
    - Beavis and Butt-head
    Joona I Palaste Guest

  4. #3

    Default Re: Telnet from Linux to Amiga: Character problems

    In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    > I can now telnet from the Linux PC to the Amiga and use its shell. But
    > there are some problems. I configured Genesis (on the Amiga side) to open
    > "NewShell *" for incoming telnet (port 23) connections. This gives me an
    > AmigaDOS shell prompt when I type "telnet amiga" on the Linux PC. But
    > there are problems with the character encoding.
    It might be a TERM= problem. You can find a termcap entry for amiga shells
    in the geekgadgets environment.
    > Or am I doing everything wrong by using "NewShell *" instead of a real
    > telnet daemon on the Amiga side? If so, then where could I get a telnet
    > daemon for the Amiga?
    Aminet? Maybe by installing NetBSD :-) Seriously, afaik there are some
    telnetd programs for AmigaOS but I never used these. Reading their
    documentation made me think that their usefulness was limited and that
    its hard to make them actually work.

    Gunther

    --
    Linux is only free if your time has no value
    - Jamie Zawinsky
    Gunther Nikl Guest

  5. #4

    Default Re: Telnet from Linux to Amiga: Character problems

    Gunther Nikl <gni@gecko.de> scribbled the following
    on comp.sys.amiga.programmer:
    > In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    >> I can now telnet from the Linux PC to the Amiga and use its shell. But
    >> there are some problems. I configured Genesis (on the Amiga side) to open
    >> "NewShell *" for incoming telnet (port 23) connections. This gives me an
    >> AmigaDOS shell prompt when I type "telnet amiga" on the Linux PC. But
    >> there are problems with the character encoding.
    > It might be a TERM= problem. You can find a termcap entry for amiga shells
    > in the geekgadgets environment.
    Where do I find the geekgadgets? And do I install this termcap entry
    on the Amiga side or on the Linux side?

    --
    /-- Joona Palaste (palaste@cc.helsinki.fi) ---------------------------\
    | Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
    | [url]http://www.helsinki.fi/~palaste[/url] W++ B OP+ |
    \----------------------------------------- Finland rules! ------------/
    "The obvious mathematical breakthrough would be development of an easy way to
    factor large prime numbers."
    - Bill Gates
    Joona I Palaste Guest

  6. #5

    Default Re: Telnet from Linux to Amiga: Character problems

    Gunther Nikl <gni@gecko.de> scribbled the following
    on comp.sys.amiga.programmer:
    > In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    >> Now if AmigaOS 3.9 only supported X windowing so I could open programs'
    >> GUI windows on my local Linux X screen instead of the Amiga's own screen.
    > There is a working X11 server for AmigaOS from Holger Kruse. You can also
    > try VNC.
    Where is it available? Is it free or does it cost something?
    But this might not be what I need - I don't want Linux programs to open
    their windows on AmigaOS's screen, I want to have it the other way
    around. I guess the only way to do that would be to hack Intuition
    OpenWindow() calls into checking if there was an X server available, and
    if so, to use that instead of the native display.

    --
    /-- Joona Palaste (palaste@cc.helsinki.fi) ---------------------------\
    | Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
    | [url]http://www.helsinki.fi/~palaste[/url] W++ B OP+ |
    \----------------------------------------- Finland rules! ------------/
    Joona I Palaste Guest

  7. #6

    Default Re: Telnet from Linux to Amiga: Character problems

    In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    > Gunther Nikl <gni@gecko.de> scribbled the following
    >> It might be a TERM= problem. You can find a termcap entry for amiga shells
    >> in the geekgadgets environment.
    >
    > Where do I find the geekgadgets?
    (www|ftp).geekgadgets.org or any mirror. I don't know in which archive the
    termcap entry is hidden. BTW, maybe your system termcap does already have
    an AmigaOS entry. termcap on my machine is here:

    /usr/share/misc/termcap

    and contains an amiga entry. Load the file in an editor and search for
    "amiga".
    > And do I install this termcap entry on the Amiga side or on the Linux side?
    Where do you start telnet? You must have the entry on the side there you
    do the telnet from.

    Gunther

    --
    Linux is only free if your time has no value
    - Jamie Zawinsky
    Gunther Nikl Guest

  8. #7

    Default Re: Telnet from Linux to Amiga: Character problems

    In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    > Gunther Nikl <gni@gecko.de> scribbled the following
    > on comp.sys.amiga.programmer:
    >> In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    >>> Now if AmigaOS 3.9 only supported X windowing so I could open programs'
    >>> GUI windows on my local Linux X screen instead of the Amiga's own screen.
    >
    >> There is a working X11 server for AmigaOS from Holger Kruse. You can also
    >> try VNC.
    >
    > Where is it available? Is it free or does it cost something?
    From AmiNet in gfx/x11 :) Yes, its not free and you probably can't get a
    key for it anymore.
    > But this might not be what I need - I don't want Linux programs to open
    > their windows on AmigaOS's screen, I want to have it the other way
    > around. I guess the only way to do that would be to hack Intuition
    > OpenWindow() calls into checking if there was an X server available,
    > and if so, to use that instead of the native display.
    Mhm, you want windows from your amiga open on your linux X11? Then your
    only solution is a VNC server for AmigaOS. Use google.

    Gunther

    --
    Linux is only free if your time has no value
    - Jamie Zawinsky
    Gunther Nikl Guest

  9. #8

    Default Re: Telnet from Linux to Amiga: Character problems

    Gunther Nikl <gni@gecko.de> scribbled the following
    on comp.sys.amiga.programmer:
    > In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    >> Gunther Nikl <gni@gecko.de> scribbled the following
    >>> It might be a TERM= problem. You can find a termcap entry for amiga shells
    >>> in the geekgadgets environment.
    >>
    >> Where do I find the geekgadgets?
    > (www|ftp).geekgadgets.org or any mirror. I don't know in which archive the
    > termcap entry is hidden. BTW, maybe your system termcap does already have
    > an AmigaOS entry. termcap on my machine is here:
    > /usr/share/misc/termcap
    > and contains an amiga entry. Load the file in an editor and search for
    > "amiga".
    I found three termcap entries in my termcap file: amiga, amiga-h and
    amiga-vnc. But how do I use them? How do I set a terminal style in the
    telnet session?
    >> And do I install this termcap entry on the Amiga side or on the Linux side?
    > Where do you start telnet? You must have the entry on the side there you
    > do the telnet from.
    That would be the Linux side.

    --
    /-- Joona Palaste (palaste@cc.helsinki.fi) ---------------------------\
    | Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
    | [url]http://www.helsinki.fi/~palaste[/url] W++ B OP+ |
    \----------------------------------------- Finland rules! ------------/
    "Shh! The maestro is decomposing!"
    - Gary Larson
    Joona I Palaste Guest

  10. #9

    Default Re: Telnet from Linux to Amiga: Character problems

    Gunther Nikl <gni@gecko.de> scribbled the following
    on comp.sys.amiga.programmer:
    > In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    >> I found three termcap entries in my termcap file: amiga, amiga-h and
    >> amiga-vnc. But how do I use them? How do I set a terminal style in the
    >> telnet session?
    > With bourn-shell you would do it like this:
    > $ TERM=amiga telnet <amiga>
    > I hope that this will work ;-)
    No, it doesn't seem to work. It sets the environment variable TERM to
    amiga, then connects to the Amiga, but it still uses the old values for
    the codes. I have to press ctrl-J instead of Return, and backspace is
    useless.

    --
    /-- Joona Palaste (palaste@cc.helsinki.fi) ---------------------------\
    | Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
    | [url]http://www.helsinki.fi/~palaste[/url] W++ B OP+ |
    \----------------------------------------- Finland rules! ------------/
    "We're women. We've got double standards to live up to."
    - Ally McBeal
    Joona I Palaste Guest

  11. #10

    Default Re: Telnet from Linux to Amiga: Character problems

    Joona I Palaste wrote:
    > Gunther Nikl <gni@gecko.de> scribbled the following
    > on comp.sys.amiga.programmer:
    >
    >>In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
    >>
    >>>I found three termcap entries in my termcap file: amiga, amiga-h and
    >>>amiga-vnc. But how do I use them? How do I set a terminal style in the
    >>>telnet session?
    >
    >
    >> With bourn-shell you would do it like this:
    >
    >
    >> $ TERM=amiga telnet <amiga>
    >
    >
    >> I hope that this will work ;-)
    >
    >
    > No, it doesn't seem to work. It sets the environment variable TERM to
    > amiga, then connects to the Amiga, but it still uses the old values for
    > the codes. I have to press ctrl-J instead of Return, and backspace is
    > useless.
    >
    Have you installed the proper "amiga" entry in your termcap before
    setting the variable?

    Patryk 'Silver Dream !' Łogiewa Guest

  12. #11

    Default Re: Telnet from Linux to Amiga: Character problems

    Joona I Palaste wrote:
    > Or am I doing everything wrong by using "NewShell *" instead of a real
    > telnet daemon on the Amiga side? If so, then where could I get a telnet
    > daemon for the Amiga?
    There is a telnetd daemon on aminet which might be worth trying.
    I used to use it with miami with no problems. Also, remember to
    never connect your amiga to a public network (e.g. the internet)
    whilst it's running the "newshell *" trick,

    Richard
    Richard Wheeldon Guest

  13. #12

    Default Re: Telnet from Linux to Amiga: Character problems

    Richard Wheeldon <richard@rswheeldon.com> scribbled the following
    on comp.sys.amiga.programmer:
    > Joona I Palaste wrote:
    >> Or am I doing everything wrong by using "NewShell *" instead of a real
    >> telnet daemon on the Amiga side? If so, then where could I get a telnet
    >> daemon for the Amiga?
    > There is a telnetd daemon on aminet which might be worth trying.
    > I used to use it with miami with no problems. Also, remember to
    > never connect your amiga to a public network (e.g. the internet)
    > whilst it's running the "newshell *" trick,
    My Amiga doesn't have a publically visible IP address or DNS name, so
    the only way to connect it is to first connect to my Linux PC, which
    does not automatically forward any incoming connections to the Amiga.
    So therefore right now the only person who can connect to the Amiga at
    all should be me...

    --
    /-- Joona Palaste (palaste@cc.helsinki.fi) ---------------------------\
    | Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
    | [url]http://www.helsinki.fi/~palaste[/url] W++ B OP+ |
    \----------------------------------------- Finland rules! ------------/
    "We're women. We've got double standards to live up to."
    - Ally McBeal
    Joona I Palaste Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139