Rocksolid Light

groups  faq  privacy  How to post  login

Message-ID:  

You're not my type. For that matter, you're not even my species!!!


rocksolid / de.comp.lang.perl / LAN Clipboard

SubjectAuthor
o LAN ClipboardUlli Horlacher

1
Subject: LAN Clipboard
From: Ulli Horlacher
Newsgroups: de.comp.lang.perl
Organization: University of Stuttgart, FRG
Date: Fri, 29 Dec 2023 09:27 UTC
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.datentrampelpfad.de!thinkmo.de!news.uni-stuttgart.de!.POSTED!not-for-mail
From: frams...@rus.uni-stuttgart.de (Ulli Horlacher)
Newsgroups: de.comp.lang.perl
Subject: LAN Clipboard
Date: Fri, 29 Dec 2023 09:27:11 +0000 (UTC)
Organization: University of Stuttgart, FRG
Lines: 82
Message-ID: <umm3df$ja3$2@news2.informatik.uni-stuttgart.de>
X-Trace: news2.informatik.uni-stuttgart.de 1703842031 19779 129.69.1.129 (29 Dec 2023 09:27:11 GMT)
X-Complaints-To: rusnews@informatik.uni-stuttgart.de
NNTP-Posting-Date: Fri, 29 Dec 2023 09:27:11 +0000 (UTC)
User-Agent: tin/2.4.5-20200522 ("Millburn") (Linux/5.15.0-91-generic (x86_64))
View all headers

Weil hier so wenig los ist, erlaub ich mir mal (m)ein neues Perl-Programm
vorzustellen.

Wem das zu viel Werbung ist, der moege weiterblaettern :-)

In de.comp.os.unix.linux.misc fragte jemand nach einem Host-uebergreifenden
Clipboard mit Shell-Integration.

Ich fand die Idee interessant und hab das implementiert, zumal ich dafuer
auf vorhandene Software zurueckgreifen konnte und nur noch wenig neu
programmieren musste.

Client wie Server sind in Perl geschrieben. Bisher hab ichs nur auf Linux
und MacOS getestet.

Internet clipboards gibts zwar diverse, aber keines davon ist in der Shell
wirklich brauchbar. Mein LAN Clipboard kann Dateien+Verzeichnisse (tar) und
STDIN/STDOUT (pipe) verarbeiten und erkennt automatisch den Inhaltstyp
(text/binary/files). Die Ablage ist organisiert ueber versionierte
Clipboards, von denen es beliebig viele in beliebiger Groesse geben kann.
Damit ist zB ein Austausch von pipe-data oder directory-trees mit Kollegen
moeglich, ohne aufwaendige Authorisierung, login, etcpipapo.

Der Zugriff erfolgt entweder ueber freigegebene IPs bzw Netze oder
alternativ ueber Authorisierungs-Token. Dazu gibt es ein Client-Programm
(yy, siehe "examples" unten.) und curl/bash-Funktionen.

Sobald sich ein paar Tester finden, veroeffentliche ich den Sourcecode.
Testserver mit Dokumentation:

https://fextest.rus.uni-stuttgart.de/lcb

Ich muss dazu nur die IP-Adressen wissen, von wo aus zugegriffen werden
soll. Notfalls kann ich auch Authorisierungs-Token vergeben.
Wens interessiert, soll sich bitte bei mir melden.
Feature requests werden auch noch angenommen :-)

Zusaetzlich gibts auch noch Webbrowser-Zugriff fuer
upload/download/listing.

https://fextest.rus.uni-stuttgart.de/lcb/yy

yy: shared LAN clipboard (version 20230830)

usage:
yy [CLIPBOARD:] FILE [...] # copy file(s) as tar archive
yy [CLIPBOARD:] DIRECTORY # copy directory recursivly
yy [CLIPBOARD:] - # copy STDIN
yy [CLIPBOARD:] - FILE # copy file
... | yy [CLIPBOARD:] # copy STDOUT from pipe
yy :: # list known clipboards
yy [CLIPBOARD]:[ITEM] # paste file(s) or STDOUT
yy [CLIPBOARD]:[ITEM:]q # query for meta data
yy [CLIPBOARD]:[ITEM:]f # fex clipboard item
yy [CLIPBOARD]:[ITEM:]d # delete clipboard item
yy CLIPBOARD:D # delete clipboard
yy CLIPBOARD:p # toggle public mode (rename clipboard)
yy -t [-p] ANYTHING... # copy ANYTHING... as tar archive (-p = public)
yy -q # query configuration

CLIPBOARD may consist of characters a-z A-Z 0-9 . _ + - (default is "_")
ITEM may consist of number 1-9 (default is 1) and is rotated by copy

examples:
uname -a | yy # copy pipe data into clipboard
yy *jpg # copy all JPGs into clipboard
yy - # copy text from keyboard into clipboard
yy ABC: project/ # copy directory project into clipboard "ABC"
yy -tp project/ # copy directory project into clipboard "public_project"
yy # paste data from default clipboard
yy :3 # paste data version 3 from default clipboard
yy ABC: # paste data from clipboard "ABC"
yy ABC:d # delete last item from clipboard "ABC"
yy ABC:0:d # delete dangling upload from clipboard "ABC"

--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/


rocksolid / de.comp.lang.perl / LAN Clipboard

1
server_pubkey.txt

rocksolid light 0.9.136
clearnet tor