Ask a Question related to UNIX Programming, Design and Development.
-
Joona I Palaste #1
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
-
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... -
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... -
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... -
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... -
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... -
Joona I Palaste #2
Re: Telnet from Linux to Amiga: Character problems
Joona I Palaste <palaste@cc.helsinki.fi> scribbled the following
on comp.sys.amiga.programmer:I have found that I can go a bit easier if I set telnet to line mode by> 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?
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
-
Gunther Nikl #3
Re: Telnet from Linux to Amiga: Character problems
In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
It might be a TERM= problem. You can find a termcap entry for amiga shells> 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.
in the geekgadgets environment.
Aminet? Maybe by installing NetBSD :-) Seriously, afaik there are some> 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?
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
-
Joona I Palaste #4
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.Where do I find the geekgadgets? And do I install this termcap entry> It might be a TERM= problem. You can find a termcap entry for amiga shells
> in the geekgadgets environment.
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
-
Joona I Palaste #5
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.Where is it available? Is it free or does it cost something?> There is a working X11 server for AmigaOS from Holger Kruse. You can also
> try VNC.
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
-
Gunther Nikl #6
Re: Telnet from Linux to Amiga: Character problems
In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
(www|ftp).geekgadgets.org or any mirror. I don't know in which archive the> 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?
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".
Where do you start telnet? You must have the entry on the side there you> And do I install this termcap entry on the Amiga side or on the Linux side?
do the telnet from.
Gunther
--
Linux is only free if your time has no value
- Jamie Zawinsky
Gunther Nikl Guest
-
Gunther Nikl #7
Re: Telnet from Linux to Amiga: Character problems
In comp.sys.amiga.programmer Joona I Palaste <palaste@cc.helsinki.fi> wrote:
From AmiNet in gfx/x11 :) Yes, its not free and you probably can't get a> 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?
key for it anymore.
Mhm, you want windows from your amiga open on your linux X11? Then your> 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.
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
-
Joona I Palaste #8
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/termcapI found three termcap entries in my termcap file: amiga, amiga-h and> and contains an amiga entry. Load the file in an editor and search for
> "amiga".
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?That would be the Linux side.> Where do you start telnet? You must have the entry on the side there you
> do the telnet from.
--
/-- 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
-
Joona I Palaste #9
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>No, it doesn't seem to work. It sets the environment variable TERM to> I hope that this will work ;-)
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
-
Patryk 'Silver Dream !' Łogiewa #10
Re: Telnet from Linux to Amiga: Character problems
Joona I Palaste wrote:
Have you installed the proper "amiga" entry in your termcap before> 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.
>
setting the variable?
Patryk 'Silver Dream !' Łogiewa Guest
-
Richard Wheeldon #11
Re: Telnet from Linux to Amiga: Character problems
Joona I Palaste wrote:
There is a telnetd daemon on aminet which might be worth trying.> 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 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
-
Joona I Palaste #12
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?My Amiga doesn't have a publically visible IP address or DNS name, so> 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,
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



Reply With Quote

