Rocksolid Light

Welcome to Rocksolid Light

register   nodelist   faq  


rocksolid / rocksolid.nodes / Re: hey, what do know ? vichan supports nntp

SubjectAuthor
* hey, what do know ? vichan supports nntpanon
+* Re: hey, what do know ? vichan supports nntpanon
|`* Re: hey, what do know ? vichan supports nntpRetro Guy
| `* Re: hey, what do know ? vichan supports nntpanon
|  `* Re: hey, what do know ? vichan supports nntpRetro Guy
|   `* Re: hey, what do know ? vichan supports nntpanon
|    `* Re: hey, what do know ? vichan supports nntpanon
|     `* Re: hey, what do know ? vichan supports nntpRetro Guy
|      `* Re: hey, what do know ? vichan supports nntpanon
|       `* Re: hey, what do know ? vichan supports nntpanon
|        +* Re: hey, what do know ? vichan supports nntpanon
|        |`* Re: hey, what do know ? vichan supports nntpanonymous
|        | +* Re: hey, what do know ? vichan supports nntpRetro Guy
|        | |`* Re: hey, what do know ? vichan supports nntpanon
|        | | `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        | |  `* Re: hey, what do know ? vichan supports nntpanonymous
|        | |   `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        | |    `* Re: hey, what do know ? vichan supports nntpanonymous
|        | |     `* Re: hey, what do know ? vichan supports nntpanon
|        | |      +* Re: hey, what do you know: vichan supports nntpanon
|        | |      |+- Re: hey, what do you know: vichan supports nntpRetro Guy
|        | |      |`* Re: hey, what do you know: vichan supports nntpanon
|        | |      | `- Re: hey, what do you know: vichan supports nntpRetro Guy
|        | |      `- Re: hey, what do know ? vichan supports nntpRetro Guy
|        | `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |  `* Re: hey, what do know ? vichan supports nntpanonymous
|        |   `* Re: hey, what do know ? vichan supports nntpanonymous
|        |    `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     +* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |`* Re: hey, what do know ? vichan supports nntpanonymous
|        |     | `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |  `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |   `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |    `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |     `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |      `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |       `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |        `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |         `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |          `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |           `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |            `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |             `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |              `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |               `* Re: hey, what do know ? vichan supports nntpanon
|        |     |                `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                 `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                  `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                   `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                    `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                     `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                      `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                       +* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                       |+- Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                       |`- Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                       `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                        `- Re: hey, what do know ? vichan supports nntpanonymous
|        |     `- Re: hey, what do know ? vichan supports nntpRetro Guy
|        `- Re: hey, what do know ? vichan supports nntpRetro Guy
+- Re: hey, what do know ? vichan supports nntpanon
+* Re: hey, what do know ? vichan supports nntpanon
|`* Re: hey, what do know ? vichan supports nntpanonymous
| +- Re: hey, what do you know....anon
| `* Re: hey, what do know ? vichan supports nntpanonymous
|  `* Re: hey, what do know ? vichan supports nntpRetro Guy
|   `- Re: hey, what do know ? vichan supports nntpanon
+* basics are workingAnonymous
|`- Re: basics are workingRetro Guy
+* guess i will open for business soonAnonymous
|+* Re: guess i will open for business soonMei
||`- Re: guess i will open for business soonRetro Guy
|`- Re: guess i will open for business soonRetro Guy
+- opsec check is goodAnonymous
+- > goo to go.Anonymous
+* yes that should workAnonymous
|`- Re: yes that should workRetro Guy
+* cron or not ?Anonymous
|`- Re: cron or not ?Retro Guy
+- themes on def2.i2pAnonymous
`* ok, ok, i switched the default themeAnonymous
 `* Re: ok, ok, i switched the default themeMei
  `- Re: ok, ok, i switched the default themeanon

Subject: Re: hey, what do know ? vichan supports nntp
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Organization: def5
Date: Thu, 14 May 2020 15:15 UTC

so vichan has a very simple to use api, see here for example:
https://lainchan.org/%CE%A9/catalog.json
so i guess all one needs to do is to write an interface from that json to ./post.php on rslight, generating and translating some information like threading and message id and so forth.
this would be to get messages from a vichan instance to a rslight instance.
for the other way round, i will first start with the buildin nntp option of vichan, and if it does not work, and replace it by the rslight nntp client code.
altogether this seems to be a simple excercise....

cheers

trw

Posted on def4


Subject: Re: hey, what do know ? vichan supports nntp
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Organization: def5
Date: Thu, 14 May 2020 16:27 UTC

https://github.com/vichan-devel/vichan/blob/master/inc/nntpchan/nntpchan.php

That one should take care of posting to an nntp server.

Posted on def4


Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Thu, 14 May 2020 20:47 UTC
and here is where the hacking starts:

function nntp_publish($msg, $id) {
        global $config;
        $server = $config["nntpchan"]["server"];
        $s = fsockopen("tcp://$server");
        fgets($s);
        fputs($s, "MODE STREAMrn");
        fgets($s);
        fputs($s, "TAKETHIS $idrn");
        fputs($s, $msg);
        fputs($s, "rn.rn");
        fgets($s);
        fputs($s, "QUITrn");
        fclose($s);
}


they have no auth in this, and i seem to remember that this was solved by some ssl certificates or other (in the case of overchan). so if i just replace this function with the appropriate counterpart from rslight/post.php, that should be it.

I have an instance of vichan running on the same machine as rslight now, and it should be possible to just use the rslight news server directly.

cheers

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid
Date: Fri, 15 May 2020 06:55 UTC
anon wrote:

work, and replace it by the rslight nntp client code. altogether this
seems to be a simple excercise....

....said every programmer in history :)




Subject: Re: hey, what do know ? vichan supports nntp
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid
Date: Fri, 15 May 2020 07:04 UTC
anonymous wrote:

and here is where the hacking starts:

function nntp_publish($msg, $id) {
        global $config;
        $server = $config["nntpchan"]["server"];
        $s = fsockopen("tcp://$server");
        fgets($s);
        fputs($s, "MODE STREAMrn");
        fgets($s);
        fputs($s, "TAKETHIS $idrn");
        fputs($s, $msg);
        fputs($s, "rn.rn");
        fgets($s);
        fputs($s, "QUITrn");
        fclose($s);
}


they have no auth in this, and i seem to remember that this was solved by
some ssl certificates or other (in the case of overchan). so if i just
replace this function with the appropriate counterpart from
rslight/post.php, that should be it.

Yeah, no auth at all. It's a simple function it seems, so adding auth
shouldn't be difficult at all:

      fputs($s,"AUTHINFO USER $server_auth_user\r\n");
      $weg=line_read($s);
      fputs($s,"AUTHINFO PASS $server_auth_pass\r\n");
      $weg=line_read($s);
      if (substr($weg,0,3) != "281" {
        AUTH FAILED
        can't do stuff...
      } else {
        IT DIDN"T FAIL, YAY!
        do stuff...
      }

I have an instance of vichan running on the same machine as rslight now,
and it should be possible to just use the rslight news server directly.

Do you know if this is sending one message at a time? If so, STREAM isn't
really necessary and could easily be MODE READER. If it's more than one
message, then I can add STREAM to nntp.php
rslight news server doesn't currently support MODE STREAM (I didn't need
it), but it can be added.

Retro Guy



Subject: Re: hey, what do know ? vichan supports nntp
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Organization: def5
Date: Fri, 15 May 2020 10:14 UTC

Do you know if this is sending one message at a time?

from the way the code is written, i would say yes (post.php is called when you make a post), can't be sure though.
i will try around a little. if need be, i can also connect to one of the inn servers (i mean if i need stream right now).

cheers

trw Posted on def4


Subject: Re: hey, what do know ? vichan supports nntp
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid
Date: Fri, 15 May 2020 09:15 UTC
anon wrote:


Do you know if this is sending one message at a time?

from the way the code is written, i would say yes (post.php is called when
you make a post), can't be sure though. i will try around a little. if
need be, i can also connect to one of the inn servers (i mean if i need
stream right now).

Sounds good. I'll add mode stream soon anyway so it's able to connect if it
really requires stream.

I need to get a copy of vichan (post.php really) and take a look at it. I
can do that in a few days.

Retro Guy




Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Fri, 15 May 2020 09:57 UTC
I can upload it somewhere, if you want me to. but you can also get everything from github (be sure to take the devel version, though).
If I understand post.php right, the inserting of messages (from another node into the vichan instance) is solved by using http. You just hand over all the parameters in a get request and post.php imports the message. That would be very nice (don't understand how attachments wor with that, yet).
So in this case you could post with wget or curl. Very nice.

Hope I can spend some time on this soon.

cheers

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid
Date: Fri, 15 May 2020 10:19 UTC
anonymous wrote:

I can upload it somewhere, if you want me to. but you can also get
everything from github (be sure to take the devel version, though). If I
understand post.php right, the inserting of messages (from another node
into the vichan instance) is solved by using http. You just hand over all
the parameters in a get request and post.php imports the message. That
would be very nice (don't understand how attachments wor with that, yet).
So in this case you could post with wget or curl. Very nice.

I'll download it soon (the devel version) and take a look.

Sounds like a simple matter of maybe just one function to send via http, or
a simple script on the vichan end to pull articles via nntp, then just
forward them via http to vichan.  spoolnews.php could be easily modified to
do that.

This would require no changes on the remote end, it doesn't even need to
care if it's vichan getting messages, or some other nntp server.

Retro Guy




Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Fri, 15 May 2020 20:07 UTC
the big question for me is: push or pull ? I think pull makes more sense for this kind of deployment, it will have a higher latency, but be more reliable and not require any changes on any existing node (or newsserver).
so the installation instructions would be something like:
-get vichan to run
-get the rslight nntp server and spoolnews, and install them on the same machine -set up a cronjob to update
-patch post.php (or replace it with some patched version)

that sound really nice.

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Pages:123456789
rocksolid light 0.6.5f
clearnet i2p tor