You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Niubbo75 <a....@me.com> on 2019/07/31 10:24:17 UTC

How to add new console type under Telnet section

Hello all,
I need to have a 5250 emulator to let me operate on IBM AS400 using all
function's keys and get a correct formatted screen.
How can I add it? Where I need to start coding it?
Thanks for any help, best,
Alessandro.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: How to add new console type under Telnet section

Posted by Niubbo75 <a....@me.com>.
Hello Nick, no I'm not familiar with C but I can learn and try ;-)
I'm going to setup an old AS400 to be used for testing purpouse that could
be remotely connected.
It doen't have the last OS but for testing purpouse is ok.

Best,
Alessandro



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: How to add new console type under Telnet section

Posted by Nick Couchman <ni...@gmail.com>.
On Sat, Aug 3, 2019 at 4:09 AM Niubbo75 <a....@me.com> wrote:

> Thank you to you, Nick! I've see you adjustment :-)
> I would like to help, let me know what can I do.
> Best,
> Alessandro
>
>
>
Well, if you're familiar with C programming, or want to start messing with
that, you are welcome to look at the RFCs and see if you can figure out
what bits of code need to be written in order to implement that
functionality, either within the current telnet protocol or as a new
protocol.  I'm tempted to make it its own protocol, since it seems to be
different enough from regular telnet, but it could probably go either way.

If you're not up to programming in C, that's fine - no pressure at all -
I'll be looking at it when I get a chance, too, and will probably need some
help testing along the way.  I'll let you know.

-Nick

Re: How to add new console type under Telnet section

Posted by Niubbo75 <a....@me.com>.
Thank you to you, Nick! I've see you adjustment :-)
I would like to help, let me know what can I do.
Best,
Alessandro



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: How to add new console type under Telnet section

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Aug 2, 2019 at 11:01 PM Niubbo75 <a....@me.com> wrote:

> Hello Nick and thanks for your reply and your interest.
> I have open a jira, here the link:
>
> https://issues.apache.org/jira/browse/GUACAMOLE-860#
>
>
Thanks, Alessandro.  I made a couple of tweaks to it, and also linked the
various RFCs that define the interfaces.  We'll see if I can find some time
to make some progress on it.

-Nick

Re: How to add new console type under Telnet section

Posted by Niubbo75 <a....@me.com>.
Hello Nick and thanks for your reply and your interest.
I have open a jira, here the link:

https://issues.apache.org/jira/browse/GUACAMOLE-860#

Best,
Alessandro



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: How to add new console type under Telnet section

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Aug 2, 2019 at 9:24 AM Niubbo75 <a....@me.com> wrote:

> Hello Nick,
> after rebooting my server and retry to telnet to AS400 choosing TN5250 as
> terminal type I con't connect to it, also if I change terminal typo, seems
> telnet protocol stop to work.
> Catalina.out:
>

Yeah, i was doing some more reading up on the TN5250 (Telnet 5250)
terminal, and it turns out that it isn't just standard telnet with some
different terminal options, it's an entirely different protocol built on
top of Telnet.  I think it would be really interesting to add this support
to Guacamole.  Can you go to JIRA and enter an issue for it - new feature
request?  I'll start to play around with it and see what would be required
- I'm not sure if this would be just an add-on to the existing Telnet
support, or if it would be a different protocol altogether (using Telnet as
the base), but it's going to take a little more work to figure it out.

-Nick

Re: How to add new console type under Telnet section

Posted by Niubbo75 <a....@me.com>.
Hello Nick,
after rebooting my server and retry to telnet to AS400 choosing TN5250 as
terminal type I con't connect to it, also if I change terminal typo, seems
telnet protocol stop to work.
Catalina.out:



Any idea how can I fix it?
Thanks,
Alessandro.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: How to add new console type under Telnet section

Posted by Niubbo75 <a....@me.com>.
vnick wrote
> Can you describe what doesn't work - garbled output, you can see
> output,but doesn't type, etc.?

Simply I get the same terminal I got if I do not choose a specific type of
terminal, into settings menu I get this:
<http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/file/t957/telnet.png> 
vnick wrote
>> I'm also trying to add new color schema for terminal, nothing strange,>
>> Guacamole has variouse color schema for terminal, one of that is>
>> "gray-black", a user asked me for "black-gray", so I have think "Well,
>> it> will be a great problem to add, I just need to add the entry
>> "black-gray"> and save the file, recompile and all will work, I just
>> invert two colors",> well, also this doesn't work :-(> Any hint?>In 1.0.0
>> we introduced the ability to do custom color schemes - if you lookat the
>> color-scheme parameter in the manual you'll see that you canmanually
>> adjust
>> things:http://guacamole.apache.org/doc/gug/configuring-guacamole.html#telnet

I have put black-gray and I get this:
<http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/file/t957/color.png>
The same thing for new font size:
<http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/file/t957/font_size.png>
They simple doesn't work, if I choose my color schema I got the standard
white on black, font size simple doesn't change.
vnick wrote
>>> vnick wrote> >> Othervise I had to play around and add some code to the
>>> other file you> >> had> >> link to me, ok.> >> Surfing the web I have
>>> find this OpenSource project:> >>> >>
>>> https://github.com/tn5250j/tn5250j> >>> >> do you think is it possible
>>> to integrate it into guacamole?> >>> >> > We can take a look - I'm not
>>> sure that it could be integrated into the> > project - Guacamole already
>>> has a pretty extensive terminal emulator> > implemented - it's probably
>>> just a matter of implementing whatever items> > aren't currently
>>> supported, if any.> >> > -Nick>> Could be very useful for those who have
>>> to play around with AS400.>Yep, definitely would be interesting - I have
>>> at least one use-case in mycurrent job where it might help out.-Nick

Luky you! I have most of my users working on AS400.Implement it will be a
plus :-)Best,Alessandro



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: How to add new console type under Telnet section

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Aug 1, 2019 at 8:01 AM Niubbo75 <a....@me.com> wrote:

> vnick wrote
> > On Thu, Aug 1, 2019 at 3:54 AM Niubbo75 &lt;
>
> > a.sironi@
>
> > &gt; wrote:
> >
> >> Hello Nick and thanks for your reply.So, if I have correctly understand,
> >> you
> >> told me that I can first try to just add "TN5250" here:
> >>
> >>
> >>
> https://github.com/apache/guacamole-client/blob/ed374fc377257dd0e0dfe44c98005f0f2c1af4ed/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json#L102-L106
> >>
> >> and after recompiling guacamole client, try if it works? This will be
> >> great!!!!
> >>
> >
> > Yep, that would be worth a try - it'll just be a matter of seeing if
> > Guacamole already supports the various items required by that terminal.
>
> No, it doesn't work :-(
>

Can you describe what doesn't work - garbled output, you can see output,
but doesn't type, etc.?


> I'm also trying to add new color schema for terminal, nothing strange,
> Guacamole has variouse color schema for terminal, one of that is
> "gray-black", a user asked me for "black-gray", so I have think "Well, it
> will be a great problem to add, I just need to add the entry "black-gray"
> and save the file, recompile and all will work, I just invert two colors",
> well, also this doesn't work :-(
> Any hint?
>

In 1.0.0 we introduced the ability to do custom color schemes - if you look
at the color-scheme parameter in the manual you'll see that you can
manually adjust things:
http://guacamole.apache.org/doc/gug/configuring-guacamole.html#telnet


>
> vnick wrote
> >> Othervise I had to play around and add some code to the other file you
> >> had
> >> link to me, ok.
> >> Surfing the web I have find this OpenSource project:
> >>
> >> https://github.com/tn5250j/tn5250j
> >>
> >> do you think is it possible to integrate it into guacamole?
> >>
> >
> > We can take a look - I'm not sure that it could be integrated into the
> > project - Guacamole already has a pretty extensive terminal emulator
> > implemented - it's probably just a matter of implementing whatever items
> > aren't currently supported, if any.
> >
> > -Nick
>
> Could be very useful for those who have to play around with AS400.
>

Yep, definitely would be interesting - I have at least one use-case in my
current job where it might help out.

-Nick

Re: How to add new console type under Telnet section

Posted by Niubbo75 <a....@me.com>.
vnick wrote
> On Thu, Aug 1, 2019 at 3:54 AM Niubbo75 &lt;

> a.sironi@

> &gt; wrote:
> 
>> Hello Nick and thanks for your reply.So, if I have correctly understand,
>> you
>> told me that I can first try to just add "TN5250" here:
>>
>>
>> https://github.com/apache/guacamole-client/blob/ed374fc377257dd0e0dfe44c98005f0f2c1af4ed/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json#L102-L106
>>
>> and after recompiling guacamole client, try if it works? This will be
>> great!!!!
>>
> 
> Yep, that would be worth a try - it'll just be a matter of seeing if
> Guacamole already supports the various items required by that terminal.

No, it doesn't work :-(
I'm also trying to add new color schema for terminal, nothing strange,
Guacamole has variouse color schema for terminal, one of that is
"gray-black", a user asked me for "black-gray", so I have think "Well, it
will be a great problem to add, I just need to add the entry "black-gray"
and save the file, recompile and all will work, I just invert two colors",
well, also this doesn't work :-(
Any hint?


vnick wrote
>> Othervise I had to play around and add some code to the other file you
>> had
>> link to me, ok.
>> Surfing the web I have find this OpenSource project:
>>
>> https://github.com/tn5250j/tn5250j
>>
>> do you think is it possible to integrate it into guacamole?
>>
> 
> We can take a look - I'm not sure that it could be integrated into the
> project - Guacamole already has a pretty extensive terminal emulator
> implemented - it's probably just a matter of implementing whatever items
> aren't currently supported, if any.
> 
> -Nick

Could be very useful for those who have to play around with AS400.

Best,
Alessandro.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: How to add new console type under Telnet section

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Aug 1, 2019 at 3:54 AM Niubbo75 <a....@me.com> wrote:

> Hello Nick and thanks for your reply.So, if I have correctly understand,
> you
> told me that I can first try to just add "TN5250" here:
>
>
> https://github.com/apache/guacamole-client/blob/ed374fc377257dd0e0dfe44c98005f0f2c1af4ed/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json#L102-L106
>
> and after recompiling guacamole client, try if it works? This will be
> great!!!!
>

Yep, that would be worth a try - it'll just be a matter of seeing if
Guacamole already supports the various items required by that terminal.


> Othervise I had to play around and add some code to the other file you had
> link to me, ok.
> Surfing the web I have find this OpenSource project:
>
> https://github.com/tn5250j/tn5250j
>
> do you think is it possible to integrate it into guacamole?
>

We can take a look - I'm not sure that it could be integrated into the
project - Guacamole already has a pretty extensive terminal emulator
implemented - it's probably just a matter of implementing whatever items
aren't currently supported, if any.

-Nick

Re: How to add new console type under Telnet section

Posted by Niubbo75 <a....@me.com>.
Hello Nick and thanks for your reply.So, if I have correctly understand, you
told me that I can first try to just add "TN5250" here:

https://github.com/apache/guacamole-client/blob/ed374fc377257dd0e0dfe44c98005f0f2c1af4ed/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json#L102-L106

and after recompiling guacamole client, try if it works? This will be
great!!!!
Othervise I had to play around and add some code to the other file you had
link to me, ok.
Surfing the web I have find this OpenSource project:

https://github.com/tn5250j/tn5250j

do you think is it possible to integrate it into guacamole?
Best,
Alessandro



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: How to add new console type under Telnet section

Posted by Nick Couchman <ni...@gmail.com>.
On Wed, Jul 31, 2019 at 6:24 AM Niubbo75 <a....@me.com> wrote:

> Hello all,
> I need to have a 5250 emulator to let me operate on IBM AS400 using all
> function's keys and get a correct formatted screen.
> How can I add it? Where I need to start coding it?
> Thanks for any help, best,
> Alessandro.
>
>
The terminal values that are available when configuring the connection are
available, here:

https://github.com/apache/guacamole-client/blob/ed374fc377257dd0e0dfe44c98005f0f2c1af4ed/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json#L102-L106

You're welcome to try to add the value to that section and then compile the
code and see if it works - that connection parameter just sets the TERM
value within the connection.  It is possible that guacd does not properly
support all of the required terminal emulation, so if you run into issues
there might be some additional code required on the guacd side to get the
proper terminal emulation support.  The terminal emulation code is located,
here:

https://github.com/apache/guacamole-server/tree/master/src/terminal

-Nick