r/DOS • • 17d ago

https://github.com/ke4ahr/Pyterlink

https://github.com/ke4ahr/Pyterlink
9 Upvotes

1 comment sorted by

0

u/catonic 17d ago

EDIT: Only support serial ports. Also, rsync will not work as DOS does not support dotfiles.

The nuts and bolts of it are this, once the installation/dependencies are resolved:

If you're using it as a server, you need to:

sudo tools/serial_latency.sh set
python3 -m pyterlink.server.cli C:=/share/path -port /dev/ttyUSB0 -baud 115200 -v

As a client:

sudo tools/serial_latency.sh set
sudo mkdir -p /mnt/lnkclient
sudo modprobe nbd
sudo python3 -m pyterlink.client.cli -port /dev/ttyUSB1 -baud 115200 -attach /dev/nbd0 -v &
sudo mount -t msdos -o rw,flush,uid=$(id -u),gid=$(id -g) /dev/nbd0 /mnt/lnkclient
ls -la /mnt/lnkclient

There will be a delay as udev initially discovers the other side.

Only one transfer at a time, so expect it to take a while. You do NOT need to run serial_latency.sh if you are using real hardware serial ports. It is only for USB serial ports.

My apologies for not making it work better out of the box.