* Re: Kermit?
1999-05-25 21:02 Kermit? Rui-Tao Dong
@ 1999-05-25 22:10 ` Michal Jaegermann
1999-05-25 22:18 ` Kermit? Larry Snyder
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Michal Jaegermann @ 1999-05-25 22:10 UTC (permalink / raw)
To: axp-list
Rui-Tao Dong wrote:
>
> I have a not quite dead (floppyless and diskless) UDB and I am trying
> to make it a dedicated firewall for my cable modem. I need a terminal
> program to talk to serial console.
Mostly anything should work here. Like minicom from your distribution
CD, for example.
> Has anyone got Kermit working?
Oh, sure. As a matter of fact I am using it right now (its telnet
part over ppp).
> I got the (very old) rpm
Just get current sources (7.0.195, I believe) and type 'make linux'.
That is about everything unless you want to change a configuration
a bit (say to switch off a support for Hebrew or Japanese).
Kermit has that kind of licence which prevents putting it in any
kind of a distribution. Get it from
ftp://kermit.columbia.edu/kermit2/test/tar/cku195.tar.gz
> /* Usage link /dev/cua0 */
^^^^^^
'cua' devices are deprecated for the last 3 years or so.
They will still work with 2.2 kernels but you will get a nastygram
in logs on every open.
Michal
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Kermit?
1999-05-25 21:02 Kermit? Rui-Tao Dong
1999-05-25 22:10 ` Kermit? Michal Jaegermann
@ 1999-05-25 22:18 ` Larry Snyder
1999-05-25 23:18 ` Kermit? Dan O'Reilly
1999-05-25 22:41 ` Kermit? Wes Bauske
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Larry Snyder @ 1999-05-25 22:18 UTC (permalink / raw)
To: axp-list
I use a Multia for a f/w myself. It provides NAT and demand isdn ppp
management very nicely. Assuming you want to run diskless, you're
obviously booting from another box. If it's Linux, try minicom.
It it's Sun, tip works. The Multias have both arc and srm
firmware, and I'd recommend using a native console with them until you
get the box up and running. Mine runs headless, with all services
turned off except ssh. If it dies (to the point of not being
reachable over the net), I just plug in a kbd & monitor from another
box to get in and fix it.
-ls-
Rui-Tao Dong <ruitao@home.com> wrote:
>
> I have a not quite dead (floppyless and diskless) UDB and I am trying
> to make it a dedicated firewall for my cable modem. I need a terminal
> program to talk to serial console.
>
> Has anyone got Kermit working? I got the (very old) rpm from
> Columbia, but it crashes on connect. I am having a hard time
> compiling it. Does anyone have an RPM? Or has any suggestion on a
> better terminal program? I tried to roll my own, but without much luck.
>
> --
> Regards,
>
> Rui-Tao (x679)
>
> /* Usage link /dev/cua0 */
>
> #include <stdio.h>
> #include <fcntl.h>
> #include <unistd.h>
> #include <sys/types.h>
>
> #define BUFSIZE 1024
>
> void copy_bytes(int in_fd, int out_fd)
> {
> char buf[BUFSIZE];
> int rbytes;
>
> if ( (rbytes=read(in_fd, buf, BUFSIZE)) > 0 )
> {
> int wbytes;
> char* buf_p=buf;
> fprintf(stderr, "Reading %d bytes from %d.\n", rbytes, in_fd);
>
> while (buf_p < buf+rbytes)
> {
> int wsize=rbytes+buf-buf_p;
> wbytes=write(out_fd, buf_p, wsize);
> fprintf(stderr, "Writing %d bytes to %d.\n", wbytes, out_fd);
> buf_p += wbytes;
> }
> if (wbytes < 0)
> {
> perror("write");
> exit(-1);
> }
> }
> else if (rbytes < 0)
> {
> perror("read");
> exit(-1);
> }
> }
>
> int main(int argc, char** argv)
> {
> int fd;
> fd_set read_set;
> /* Initialize the file descriptor set. */
>
> if (argc !=2)
> {
> fprintf(stderr, "Using %s device-file.\n", argv[0]);
> return -1;
> }
>
> if ((fd=open(argv[1], O_RDWR)) < 0)
> {
> perror("open");
> return -1;
> }
> FD_ZERO (&read_set);
> FD_SET (fd, &read_set);
> FD_SET (0, &read_set);
>
> while (1)
> {
> if ( select(FD_SETSIZE, &read_set, NULL, NULL, NULL) < 0 )
> {
> perror("select");
> return -1;
> }
>
> if ( FD_ISSET(fd, &read_set))
> {
> copy_bytes(fd, 1);
> }
> else if (FD_ISSET(0, &read_set))
> {
> copy_bytes(0, fd);
> }
> else
> {
> return -1;
> }
> }
>
> close(fd);
> return 0;
> }
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Kermit?
1999-05-25 22:18 ` Kermit? Larry Snyder
@ 1999-05-25 23:18 ` Dan O'Reilly
0 siblings, 0 replies; 8+ messages in thread
From: Dan O'Reilly @ 1999-05-25 23:18 UTC (permalink / raw)
To: axp-list; +Cc: larrys
So, do you have references as to how to set one up to do NAT? I have
an ISDN router with 5 IP addresses, and unfortunately, the 5 addresses
aren't enough (I need about 4 more). The logical thing would be to use
my Multia to do NAT for me for those other 4 addresses.
At 06:18 PM 5/25/99 -0400, Larry Snyder wrote:
>I use a Multia for a f/w myself. It provides NAT and demand isdn ppp
>management very nicely.
------
+-------------------------------+---------------------------------------+
| Dan O'Reilly | "Outside a dog, a book is man's best |
| Principal Engineer | friend. Inside a dog, it's too |
| Process Software Corporation | dark to read." |
| http://www.process.com | -- Groucho Marx |
+-------------------------------+---------------------------------------+
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kermit?
1999-05-25 21:02 Kermit? Rui-Tao Dong
1999-05-25 22:10 ` Kermit? Michal Jaegermann
1999-05-25 22:18 ` Kermit? Larry Snyder
@ 1999-05-25 22:41 ` Wes Bauske
1999-05-25 22:58 ` Kermit? Peter Petrakis
1999-05-26 9:34 ` Kermit? Peter Rye
4 siblings, 0 replies; 8+ messages in thread
From: Wes Bauske @ 1999-05-25 22:41 UTC (permalink / raw)
To: axp-list
Rui-Tao Dong wrote:
>
> I have a not quite dead (floppyless and diskless) UDB and I am trying
> to make it a dedicated firewall for my cable modem. I need a terminal
> program to talk to serial console.
>
> Has anyone got Kermit working? I got the (very old) rpm from
> Columbia, but it crashes on connect. I am having a hard time
> compiling it. Does anyone have an RPM? Or has any suggestion on a
> better terminal program? I tried to roll my own, but without much luck.
>
Something simple would be 'cu -l /dev/cua0' on a
null modem cable between systems.
Need to know how to use cu escape sequences though.
Wes
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kermit?
1999-05-25 21:02 Kermit? Rui-Tao Dong
` (2 preceding siblings ...)
1999-05-25 22:41 ` Kermit? Wes Bauske
@ 1999-05-25 22:58 ` Peter Petrakis
1999-05-26 9:34 ` Kermit? Peter Rye
4 siblings, 0 replies; 8+ messages in thread
From: Peter Petrakis @ 1999-05-25 22:58 UTC (permalink / raw)
To: axp-list
Have you tried using minicom yet?
Peter
Rui-Tao Dong wrote:
>
> I have a not quite dead (floppyless and diskless) UDB and I am trying
> to make it a dedicated firewall for my cable modem. I need a terminal
> program to talk to serial console.
>
> Has anyone got Kermit working? I got the (very old) rpm from
> Columbia, but it crashes on connect. I am having a hard time
> compiling it. Does anyone have an RPM? Or has any suggestion on a
> better terminal program? I tried to roll my own, but without much luck.
>
> --
> Regards,
>
> Rui-Tao (x679)
>
> /* Usage link /dev/cua0 */
>
> #include <stdio.h>
> #include <fcntl.h>
> #include <unistd.h>
> #include <sys/types.h>
>
> #define BUFSIZE 1024
>
> void copy_bytes(int in_fd, int out_fd)
> {
> char buf[BUFSIZE];
> int rbytes;
>
> if ( (rbytes=read(in_fd, buf, BUFSIZE)) > 0 )
> {
> int wbytes;
> char* buf_p=buf;
> fprintf(stderr, "Reading %d bytes from %d.\n", rbytes, in_fd);
>
> while (buf_p < buf+rbytes)
> {
> int wsize=rbytes+buf-buf_p;
> wbytes=write(out_fd, buf_p, wsize);
> fprintf(stderr, "Writing %d bytes to %d.\n", wbytes, out_fd);
> buf_p += wbytes;
> }
> if (wbytes < 0)
> {
> perror("write");
> exit(-1);
> }
> }
> else if (rbytes < 0)
> {
> perror("read");
> exit(-1);
> }
> }
>
> int main(int argc, char** argv)
> {
> int fd;
> fd_set read_set;
> /* Initialize the file descriptor set. */
>
> if (argc !=2)
> {
> fprintf(stderr, "Using %s device-file.\n", argv[0]);
> return -1;
> }
>
> if ((fd=open(argv[1], O_RDWR)) < 0)
> {
> perror("open");
> return -1;
> }
> FD_ZERO (&read_set);
> FD_SET (fd, &read_set);
> FD_SET (0, &read_set);
>
> while (1)
> {
> if ( select(FD_SETSIZE, &read_set, NULL, NULL, NULL) < 0 )
> {
> perror("select");
> return -1;
> }
>
> if ( FD_ISSET(fd, &read_set))
> {
> copy_bytes(fd, 1);
> }
> else if (FD_ISSET(0, &read_set))
> {
> copy_bytes(0, fd);
> }
> else
> {
> return -1;
> }
> }
>
> close(fd);
> return 0;
> }
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
www.alphalinux.org
Peter Petrakis Warrior/Engineer ppetrakis@alphalinux.org
"Oh my God! They killed Xena! You bastards!!"
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Kermit?
1999-05-25 21:02 Kermit? Rui-Tao Dong
` (3 preceding siblings ...)
1999-05-25 22:58 ` Kermit? Peter Petrakis
@ 1999-05-26 9:34 ` Peter Rye
1999-05-26 12:04 ` Kermit? mgraffam
4 siblings, 1 reply; 8+ messages in thread
From: Peter Rye @ 1999-05-26 9:34 UTC (permalink / raw)
To: axp-list
On Tue, May 25, 1999 at 02:02:26PM -0700, Rui-Tao Dong wrote:
>
> I have a not quite dead (floppyless and diskless) UDB and I am trying
> to make it a dedicated firewall for my cable modem. I need a terminal
> program to talk to serial console.
>
> Has anyone got Kermit working? I got the (very old) rpm from
> Columbia, but it crashes on connect. I am having a hard time
> compiling it. Does anyone have an RPM? Or has any suggestion on a
> better terminal program? I tried to roll my own, but without much luck.
I have kermit working at home. In fact, I uploaded src and alpha rpms to
columbia some time ago. Seems to work OK here.
This was kermit-6.1.193. Is this the version you're having trouble with?
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Kermit?
1999-05-26 9:34 ` Kermit? Peter Rye
@ 1999-05-26 12:04 ` mgraffam
0 siblings, 0 replies; 8+ messages in thread
From: mgraffam @ 1999-05-26 12:04 UTC (permalink / raw)
To: axp-list
On Wed, 26 May 1999, Peter Rye wrote:
> > Columbia, but it crashes on connect. I am having a hard time
> > compiling it. Does anyone have an RPM? Or has any suggestion on a
> > better terminal program? I tried to roll my own, but without much luck.
>
> I have kermit working at home. In fact, I uploaded src and alpha rpms to
> columbia some time ago. Seems to work OK here.
I haven't used terminal programs for all that much in the past few years..
but Minicom is decent, and it comes stock with RH. I use it occasionally
to talk to an old Mac.
Michael J. Graffam (mgraffam@idsi.net)
"Our merchants and master-manufacturers complain much of the bad effects
of high wages in raising the price, and thereby lessening the sale of
their goods both at home and abroad. They say nothing concerning the bad
effects of high profits. They are silent with regard to the pernicious
effects of their own gains." - Adam Smith, Wealth of Nations, Book I Chap. IX.
^ permalink raw reply [flat|nested] 8+ messages in thread