Re: [gentoo-user] File transfer via USB?

2021-04-25 Thread Grant Taylor

On 4/25/21 11:39 AM, k...@aspodata.se wrote:

I doubt that many are fluen in cu and uucp,


I think that lack of knowledge / dumb / ignorant about something is (or 
can be) a relatively easy problem to solve.


As in there is (or was) no knowledge about something and there will be 
(or is) knowledge at some point in the future.



are they even available on the ms-win side.


I used Taylor-UUCP (no known relation) on Windows XP a number of years 
ago via Cygwin.  I suspect that Windows Subsystem for Linux could be 
pressed into service for similar today.



Who knows, this might work  https://www.uupc.net/


Probably.

You can always build yourself two pairs of RS232 to RS422 converters 
and see where the limit on your serial ports are.


What would the RS232 to RS422 get you?  Why not just use RS232 between 
the computers?  What does RS422 provide to make the extra conversions 
worth while?


You can even try with other deserializes/serializers. What speed do 
you want ?


Probably.  I would be afraid that they would have a lower RoI, 
particularly on the effort front.




--
Grant. . . .
unix || die



Re: [gentoo-user] File transfer via USB?

2021-04-25 Thread karl
Grant:
> On 4/23/21 7:45 PM, k...@aspodata.se wrote:
> > Grant:
> 
> I think you are conflating me for the OP.  Easy to do with the same 
> first name.  ;-)

Well, your sig is at a cursory look wery alike, but now I see you
have some extra dots and an || expression.

...
> Is it wrong that the first thing that came to mind when reading the OP's 
> post is UUCP with as high speed serial as possible?

I doubt that many are fluen in cu and uucp, are they even available on
the ms-win side. Who knows, this might work  https://www.uupc.net/

> I wonder if the USB LapLink (type) cable or USB On The Go gadget cables 
> could present as a multi-megabit serial interface.

You can always build yourself two pairs of RS232 to RS422 converters 
and see where the limit on your serial ports are. You can even try with
other deserializes/serializers. What speed do you want ?

Regards,
/Karl Hammar





Re: [gentoo-user] File transfer via USB?

2021-04-25 Thread Grant Taylor

On 4/23/21 7:45 PM, k...@aspodata.se wrote:

Grant:


I think you are conflating me for the OP.  Easy to do with the same 
first name.  ;-)


In that case, your usb-connection (or anything) will probably be a 
borderline case to, since that is also a network...  But I guess the 
thing fobidden is anything makeing the ms-win box recognize and use 
somthing to communicate outwards.


I agree and that such is a possibility and is something that Grant 
/Edwards/ -- the OP -- will need to make a judgement call on.



Don't know much about the windows side, but I found this:
  https://stackoverflow.com/questions/766912/raw-ethernet-frames-using-winsock
  https://www.winpcap.org/
  
https://hacked10bits.blogspot.com/2011/12/sending-raw-ethernet-frames-in-6-easy.html
seems to be some programming involved.


That's about what I had expected.  Not many, if any, ready built tools 
for transferring raw Ethernet frames.  Though plenty of scaffolding to 
create it.



Seems it never was, though there were patches:
  https://flylib.com/books/en/3.151.1.29/1/


That's about what I remember.


4.18-rc1 it seems.


Thank you for finding and sharing that milestone.

Aside:  I don't like using "milestone" to describe the point that was 
removed.  Particularly something I think is good.



Ah, forgot that one.


;-)


About the original question. Here what a few thing I dig up.

https://www.amazon.com/Laplink-High-Speed-Transfer-Cable-PCmover/dp/B0093H83DW


This is the USB version of the Laplink cable concept.

Decidedly different than the old serial & parallel versions of which 
I've used many times.  LapLink, INTERLNK.EXE & INTERSVR.EXE, and '95's 
Direct Cable Connection used them.  I suspect there may have been more 
that I'm not aware of.



https://sourceforge.net/projects/lptransfer/


Interesting.

I'm not sure why a separate program was needed.  Maybe it didn't 
monopolize the server side the same way that INTERSVR.EXE did.


Because INTERLNK.EXE would map a drive to the server and return control 
to the command prompt / batch script allowing use of the new drive letter.



https://github.com/viveris/uMTP-Responder


Interesting.

This is most likely to be the lease problematic considering that it 
turns the Linux end into a /special/ USB flash drive.


It is usually simple to setup and use a serial null-modem cable and 
run kermit or somthing on the MS-Win side and add a getty (I've used 
mgetty) handling the serial port on the linux side.


Is it wrong that the first thing that came to mind when reading the OP's 
post is UUCP with as high speed serial as possible?


I wonder if the USB LapLink (type) cable or USB On The Go gadget cables 
could present as a multi-megabit serial interface.




--
Grant. . . .
unix || die



Re: [gentoo-user] File transfer via USB?

2021-04-25 Thread karl
Karl:
...
> About the original question. Here what a few thing I dig up.
> https://www.amazon.com/Laplink-High-Speed-Transfer-Cable-PCmover/dp/B0093H83DW
...

With

 Secure ms-win box - usb laplink cable - dummy ms-win box - tcp/ip - 
 linux box

you could be able to do it with usb.

Possible have a directory on the linux side be mounted (network share I 
think it called) on the dummy ms-win box. Then by using the laplink 
cable/software, transfer things from linux to secure box, it "should" 
work but I don't know if the laplink thing handles network shares on
the dummy well.

Their homepage is https://web.laplink.com/

Regards,
/Karl Hammar





Re: [gentoo-user] File transfer via USB?

2021-04-23 Thread karl
Grant:
> On 4/22/21 9:25 AM, k...@aspodata.se wrote:
> > No IP doesn't prohibit ethernet.
> 
> I agree technically.  Though I suspect it /may/ be problematic with the 
> spirit behind / motivating the ban on IP.

In that case, your usb-connection (or anything) will probably
be a borderline case to, since that is also a network...
But I guess the thing fobidden is anything makeing the ms-win box
recognize and use somthing to communicate outwards.

> > You could possible use:
> >   raw ethernet frames
> 
> Do you have any recommendations of utilities for each side?

Don't know much about the windows side, but I found this:
 https://stackoverflow.com/questions/766912/raw-ethernet-frames-using-winsock
 https://www.winpcap.org/
 
https://hacked10bits.blogspot.com/2011/12/sending-raw-ethernet-frames-in-6-easy.html
seems to be some programming involved.

> >   netbeui
> > samba
> 
> I thought that Samba has *LONG* been NetBIOS over TCP/IP (a.k.a. NBT). 
> Is NetBEUI code /still/ in Samba?

Seems it never was, though there were patches:
 https://flylib.com/books/en/3.151.1.29/1/
 
> >   ethertalk (appletalk)
> > http://netatalk.sourceforge.net/
> >   ipx (netware)
> > 
> > ftp://ftp.koansoftware.com/public/opensource/mars_nwe/mars_nwe-0.99.pl21.tgz
> 
> I believe that IPX support has been removed from 4. kernels. 
> Maybe 5..

4.18-rc1 it seems.

> DECnet Phase III or Phase IV.

Ah, forgot that one.

> > I have previously (in the 90's) used mars, worked great.
> 
> I've never run MARS but I've done more than a little with Novell 
> NetWare.  I recently had a 4.14 kernel mount an NCPFS from a server. 
> (4.14 obviously still has IPX.)

///

About the original question. Here what a few thing I dig up.

https://www.amazon.com/Laplink-High-Speed-Transfer-Cable-PCmover/dp/B0093H83DW
https://sourceforge.net/projects/lptransfer/
https://github.com/viveris/uMTP-Responder

It is usually simple to setup and use a serial null-modem cable and
run kermit or somthing on the MS-Win side and add a getty (I've used
mgetty) handling the serial port on the linux side.

Regards,
/Karl Hammar





Re: [gentoo-user] File transfer via USB?

2021-04-23 Thread Grant Taylor

On 4/22/21 9:25 AM, k...@aspodata.se wrote:

No IP doesn't prohibit ethernet.


I agree technically.  Though I suspect it /may/ be problematic with the 
spirit behind / motivating the ban on IP.



You could possible use:
  raw ethernet frames


Do you have any recommendations of utilities for each side?


  netbeui
samba


I thought that Samba has *LONG* been NetBIOS over TCP/IP (a.k.a. NBT). 
Is NetBEUI code /still/ in Samba?



  ethertalk (appletalk)
http://netatalk.sourceforge.net/
  ipx (netware)
ftp://ftp.koansoftware.com/public/opensource/mars_nwe/mars_nwe-0.99.pl21.tgz


I believe that IPX support has been removed from 4. kernels. 
Maybe 5..


DECnet Phase III or Phase IV.


I have previously (in the 90's) used mars, worked great.


I've never run MARS but I've done more than a little with Novell 
NetWare.  I recently had a 4.14 kernel mount an NCPFS from a server. 
(4.14 obviously still has IPX.)




--
Grant. . . .
unix || die



Re: [gentoo-user] File transfer via USB?

2021-04-22 Thread Sid Spry
On Thu, Apr 22, 2021, at 9:27 AM, Grant Edwards wrote:
> I'm trying to figure out a convenient way to transfer files between a
> Linux machine (running Gentoo) and a Windows 10 machine (which has no
> internet access). IP connection between the machines is not allowed.
> 
> Yes, I can shuffle a USB flash drive back and forth, but that's
> really annoying.
> 
> Can I run an MTP server on a Linux host and connect a USB-C port on
> the Linux machine to the USB-C port on the Windows machine (assuming
> the Linux port is dual-role, which I need to confirm).
> 

Two usb-serial converters will be easiest. You can set some USB3 ports 
(typically one per machine) to device mode for debugging. It shows up as a 
serial device in userland. Gadget mode USB would work but needs something like 
an RPi.



Re: [gentoo-user] File transfer via USB?

2021-04-22 Thread tastytea
On 2021-04-22 14:27- Grant Edwards 
wrote:

> I'm trying to figure out a convenient way to transfer files between a
> Linux machine (running Gentoo) and a Windows 10 machine (which has no
> internet access). IP connection between the machines is not allowed.

The easiest solution would be to connect both machines with an ethernet
cable and run samba on Linux. The interfaces will be configured with a
link-local address¹ automatically.

> Yes, I can shuffle a USB flash drive back and forth, but that's
> really annoying.
> 
> Can I run an MTP server on a Linux host and connect a USB-C port on
> the Linux machine to the USB-C port on the Windows machine (assuming
> the Linux port is dual-role, which I need to confirm).

If USB connections between the 2 machines are allowed then “IP
connection between the machines is not allowed” surely does not apply
to direct ethernet connections between the 2 machines?

¹ 

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpUz4R86tbox.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] File transfer via USB?

2021-04-22 Thread karl
Grant:
> I'm trying to figure out a convenient way to transfer files between a
> Linux machine (running Gentoo) and a Windows 10 machine (which has no
> internet access). IP connection between the machines is not allowed.

No IP doesn't prohibit ethernet.

You could possible use:
 raw ethernet frames
 netbeui
   samba
 ethertalk (appletalk)
   http://netatalk.sourceforge.net/
 ipx (netware)
   ftp://ftp.koansoftware.com/public/opensource/mars_nwe/mars_nwe-0.99.pl21.tgz

I have previously (in the 90's) used mars, worked great.

Regards,
/Karl Hammar





[gentoo-user] File transfer via USB?

2021-04-22 Thread Grant Edwards
I'm trying to figure out a convenient way to transfer files between a
Linux machine (running Gentoo) and a Windows 10 machine (which has no
internet access). IP connection between the machines is not allowed.

Yes, I can shuffle a USB flash drive back and forth, but that's
really annoying.

Can I run an MTP server on a Linux host and connect a USB-C port on
the Linux machine to the USB-C port on the Windows machine (assuming
the Linux port is dual-role, which I need to confirm).

--
Grant