Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"If Diet Coke did not exist it would have been necessary to invent it." -- Karl Lehenbauer


computers / alt.bbs.mystic / Adding kermit as a protocol option

SubjectAuthor
* Adding kermit as a protocol optionChristian Sacks
`* Re: Adding kermit as a protocol optionAlexander Grotewohl
 `* Re: Adding kermit as a protocol optionChristian Sacks
  +* Re: Adding kermit as a protocol optionChristian Sacks
  |`- Re: Adding kermit as a protocol optionChristian Sacks
  `- Re: Adding kermit as a protocol optionAlexander Grotewohl

1
Adding kermit as a protocol option

<410648587@f5.n250.z2.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1902&group=alt.bbs.mystic#1902

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)
Newsgroups: alt.bbs.mystic
Subject: Adding kermit as a protocol option
Date: Tue, 08 Aug 2023 11:25:36 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <410648587@f5.n250.z2.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="19305"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: g00r00
 by: Christian Sacks - Mon, 7 Aug 2023 22:25 UTC

Hey g00r00,

I've installed `gkermit` on my linux host, and in protocol editor have made a
new "kermit" protocol, and the send/recv commands are like this;

Send Command � /usr/bin/gkermit -d /tmp/kermit-send.log -Ts %3
Recv Command � /usr/bin/gkermit -d /tmp/kermit-recv.log -Tr %3

With %3 as the filename(s), it seems to generate a file.lst on the client end,
and inside the file that it downloads just has a line for each file with it's
full filepath on the bbs, and doesn't download the actual file...

I looked at the default sexyz config which uses @%3 which I thought might be
required instead, but adding the @%3 instead just errors immediately with the
filename not being found according to the client.

Do you have any information about what %3 is exactly and anything else useful
for the protocol editor? the wiki pages are empty for protocol editor and would
love to get this working.

Cheers for your help =)

.... Light year: 1/3 less calories than your regular year

Re: Adding kermit as a protocol option

<3212494417@f616.n120.z1.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1903&group=alt.bbs.mystic#1903

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Alexander.Grotewohl@f616.n120.z1.fidonet.org (Alexander Grotewohl)
Newsgroups: alt.bbs.mystic
Subject: Re: Adding kermit as a protocol option
Date: Tue, 08 Aug 2023 14:09:00 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <3212494417@f616.n120.z1.fidonet.org>
References: <410648587@f5.n250.z2.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="26624"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Christian Sacks
 by: Alexander Grotewohl - Tue, 8 Aug 2023 01:09 UTC

On 08 Aug 2023, Christian Sacks said the following...
CS> I've installed `gkermit` on my linux host, and in protocol editor have
CS> made a new "kermit" protocol, and the send/recv commands are like this;
CS>
CS> Send Command � /usr/bin/gkermit -d /tmp/kermit-send.log -Ts %3
CS> Recv Command � /usr/bin/gkermit -d /tmp/kermit-recv.log -Tr %3
CS>
CS> With %3 as the filename(s), it seems to generate a file.lst on the
CS> client end, and inside the file that it downloads just has a line for
CS> each file with it's full filepath on the bbs, and doesn't download the
CS> actual file...

having searched around the docs a bit it looks like kermit does batch xfers
differently than most bbs software would expect. you would likely just have to
turn 'batch' off in the protocol config and have it work one file at a time.
(batch toggles whether %3 is just one file by itself, or a file list file)

CS> I looked at the default sexyz config which uses @%3 which I thought
CS> might be required instead, but adding the @%3 instead just errors
CS> immediately with the filename not being found according to the client.

@ is a sexyz parameter not a mystic one. if it finds that @ at the beginning of
the filename it will read that file line by line and send each of the files
listed. kermit doesn't support this so that's the problem.

if you're comfortable doing a little programming you could probably make a
script to read the lines in file.lst then run gkermit like it wants:

/usr/bin/gkermit -d /tmp/kermit-send.log -Ts file1 file2 file3

(or maybe it needs -Ts in front of every file.. don't use it so i can't test
it..)

then for the mystic protocol you'd just have

/wherever/yourprogram %3

and batch turned on.

Re: Adding kermit as a protocol option

<4000413550@f5.n250.z2.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1904&group=alt.bbs.mystic#1904

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)
Newsgroups: alt.bbs.mystic
Subject: Re: Adding kermit as a protocol option
Date: Wed, 09 Aug 2023 11:25:20 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <4000413550@f5.n250.z2.fidonet.org>
References: <3212494417@f616.n120.z1.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="12192"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: Alexander Grotewohl
X-MailConverter: SoupGate-Win32 v1.05
 by: Christian Sacks - Tue, 8 Aug 2023 22:25 UTC

On 08 Aug 2023, Alexander Grotewohl said the following...
AG> if you're comfortable doing a little programming you could probably make
AG> a script to read the lines in file.lst then run gkermit like it wants:
AG>
AG> /usr/bin/gkermit -d /tmp/kermit-send.log -Ts file1 file2 file3
AG>
AG> (or maybe it needs -Ts in front of every file.. don't use it so i can't
AG> test it..)

I am grateful for your thoughts, with them I have made this script;

#!/usr/bin/env bash
FILELIST="$1"
FILES=$(cat $FILELIST|tr '\n' ' ')
for FILE in $FILES; do
echo "/usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE"
/usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE
done

.... and then in the protocol editor I use this;

Active � Yes
OS � All
Batch � Yes
Hot Key � K
Description � Kermit (testing)
Send Command � /mystic/kermit_batch.sh %3
Recv Command � /usr/bin/gkermit -d /tmp/kermit-recv.log -XTr %3

I've tested using "qodem" terminal, and with a single and multiple files in a
batch it works perfectly (to download from the BBS to the client).

I shall next attempt to test the uploads, but I assume this will just be ok as
it is.

I shall let y'all know how it goes.
FWIW kermit seems to be much quicker than zmodem =)

.... That's not a bug, it's an undocumented feature

Re: Adding kermit as a protocol option

<699515172@f5.n250.z2.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1905&group=alt.bbs.mystic#1905

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)
Newsgroups: alt.bbs.mystic
Subject: Re: Adding kermit as a protocol option
Date: Wed, 09 Aug 2023 11:48:57 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <699515172@f5.n250.z2.fidonet.org>
References: <4000413550@f5.n250.z2.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="13316"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: All
X-MailConverter: SoupGate-Win32 v1.05
 by: Christian Sacks - Tue, 8 Aug 2023 22:48 UTC

On 09 Aug 2023, Christian Sacks said the following...
CS> On 08 Aug 2023, Alexander Grotewohl said the following...
CS>
CS> AG> if you're comfortable doing a little programming you could probably m
CS> AG> a script to read the lines in file.lst then run gkermit like it wants
CS> AG>
CS> AG> /usr/bin/gkermit -d /tmp/kermit-send.log -Ts file1 file2 file3
CS> AG>
CS> AG> (or maybe it needs -Ts in front of every file.. don't use it so i can
CS> AG> test it..)
CS>
CS> I am grateful for your thoughts, with them I have made this script;
CS>
CS> #!/usr/bin/env bash
CS> FILELIST="$1"
CS> FILES=$(cat $FILELIST|tr '\n' ' ')
CS> for FILE in $FILES; do
CS> echo "/usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE"
CS> /usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE
CS> done
CS>
CS> ... and then in the protocol editor I use this;
CS>
CS> Active � Yes
CS> OS � All
CS> Batch � Yes
CS> Hot Key � K
CS> Description � Kermit (testing)
CS> Send Command � /mystic/kermit_batch.sh %3
CS> Recv Command � /usr/bin/gkermit -d /tmp/kermit-recv.log -XTr %3
CS>
CS> I've tested using "qodem" terminal, and with a single and multiple files
CS> in a batch it works perfectly (to download from the BBS to the client).
CS>
CS> I shall next attempt to test the uploads, but I assume this will just be
CS> ok as it is.
CS>
CS> I shall let y'all know how it goes.
CS> FWIW kermit seems to be much quicker than zmodem =)
CS>
CS> ... That's not a bug, it's an undocumented feature
CS>
CS> --- Mystic BBS v1.12 A48 2022/07/15 (Linux/64)
CS> * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (2:250/5)

After testing the files downloaded with this script, I realised the files
themselves were corrupted, so updated my wrapper script to use this syntax for
the actual downloading;

/usr/bin/gkermit -d /tmp/kermit-send.log -Xis $FILE

-X means eXternal - seemed appropriate
i means Binary mode transfer (default) but wanted to force it to make sure
s means Send with the filename as the argument

Reckon this is good to go now =)

.... Help! I can't find the "ANY" key.

Re: Adding kermit as a protocol option

<357925529@f5.n250.z2.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1906&group=alt.bbs.mystic#1906

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)
Newsgroups: alt.bbs.mystic
Subject: Re: Adding kermit as a protocol option
Date: Wed, 09 Aug 2023 14:27:07 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <357925529@f5.n250.z2.fidonet.org>
References: <699515172@f5.n250.z2.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="15441"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: All
 by: Christian Sacks - Wed, 9 Aug 2023 01:27 UTC

On 09 Aug 2023, Christian Sacks said the following...
CS> After testing the files downloaded with this script, I realised the files
CS> themselves were corrupted, so updated my wrapper script to use this
CS> syntax for the actual downloading;
CS>
CS> /usr/bin/gkermit -d /tmp/kermit-send.log -Xis $FILE
CS>
CS> -X means eXternal - seemed appropriate
CS> i means Binary mode transfer (default) but wanted to force it to make
CS> sure s means Send with the filename as the argument
CS>
CS> Reckon this is good to go now =)

Another update, this time it also allows messages in message bases to be saved
by kermit too;

#!/usr/bin/env bash
FILELIST="$1"
FILES=$(cat $FILELIST|tr '\n' ' ')
if [[ "$(basename $FILELIST)" == "file.lst" ]]; then
for FILE in $FILES; do
echo "Sending file: $FILE"
/usr/bin/gkermit -d /tmp/kermit-send.log -Xis $FILE
done
else
echo "Sending file: $FILELIST"
/usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILELIST
fi
rm $FILELIST

Still haven't tested uploads yet, but that is next =)

.... My reality check just bounced

Re: Adding kermit as a protocol option

<1478410133@f616.n120.z1.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1907&group=alt.bbs.mystic#1907

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Alexander.Grotewohl@f616.n120.z1.fidonet.org (Alexander Grotewohl)
Newsgroups: alt.bbs.mystic
Subject: Re: Adding kermit as a protocol option
Date: Wed, 09 Aug 2023 13:58:53 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <1478410133@f616.n120.z1.fidonet.org>
References: <4000413550@f5.n250.z2.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="19471"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Christian Sacks
 by: Alexander Grotewohl - Wed, 9 Aug 2023 00:58 UTC

On 09 Aug 2023, Christian Sacks said the following...
CS> I've tested using "qodem" terminal, and with a single and multiple files
CS> in a batch it works perfectly (to download from the BBS to the client).

that's awesome, glad it worked out!

CS> FWIW kermit seems to be much quicker than zmodem =)

yeah.. i'm not sure how much the protocol itself has changed, but iirc it was
an official university-sponsored project until recently. few decades worth of
tweaks here and there.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor