I wrote a similar piece of software a few years ago. I solved that by having a config flag for each clipboard agent to disable broadcasting of their clipboard changes and only listening for changes. Then I simply activated that on the box that holds keys/passwords etc.
Is there a program out there that will expose a Unix socket as a named pipe or something that can be read to and written from like a file? That way you could take care of this with SSH tunneling.
edit: I meant "port", not "socket"! But apparently this is basically what netcat does by default.
I love such generalized titles. My mathematically modified brain automatically searches for an example when you cannot copy something, then the whole statement is not true. My dog agrees, he cannot be copied over the network :)
I didn't realize from the title that this was a CLI network clipboard client/server, and another commenter helpfully pointed out it operates independently of the system clipboard.
Doesn't this depend on the universe being not entirely discrete? If the universe is entirely discrete, then it should be possible to represent the exact state of it?
In any case, I don't think it follows that an infinite amount of information is necessary to describe e.g. a dog to the extent to which it could be transferred and there being no functional difference to the copy, even though the exact state is not represented.
It's nice that this is open-source, but if it involves an intermediate server anyway, PushBullet also does a great job, and on various platforms: https://www.pushbullet.com/ (No affiliation)
You don't generally use a clipboard to share files with other people, you use it to share files between your desktop applications, and in this case between your computers. I have been emailing myself files, because synergy doesn't copy files and airdropping with an old mac is annoying.
I've been looking for something like this for ages. I use QubesOS, and copy + paste between HVM(Windows) and paravirtual domains(Linux) just did not work with Windows 10. I previously used a little webserver on a separate VM on my virtual network where I had to go with a browser to copy and paste stuff in a shared chat window. And files were even worse.
That solution was not as secure as I'd like and necessitates network connectivity between machine where I want to share data. Piknik is still not secure in that sense, but it is much more seamless and can be installed as a drop-in replacement since the environment is so similar to my current solution!
41 comments
[ 4.5 ms ] story [ 99.5 ms ] threadawesome
edit: I meant "port", not "socket"! But apparently this is basically what netcat does by default.
That's why you can do things like `ssh <foo> -e 'cat somefile' > some_localfile`
It's not always recommended, but possible.
In any case, I don't think it follows that an infinite amount of information is necessary to describe e.g. a dog to the extent to which it could be transferred and there being no functional difference to the copy, even though the exact state is not represented.
Also nice that I see this posted soon after CloudFlare Access[0] was launched; which can add good security for Piknik's use case.
[0] https://blog.cloudflare.com/introducing-cloudflare-access/
Relevant: https://xkcd.com/949
Relevant: https://what-if.xkcd.com/31/
I've been looking for something like this for ages. I use QubesOS, and copy + paste between HVM(Windows) and paravirtual domains(Linux) just did not work with Windows 10. I previously used a little webserver on a separate VM on my virtual network where I had to go with a browser to copy and paste stuff in a shared chat window. And files were even worse.
That solution was not as secure as I'd like and necessitates network connectivity between machine where I want to share data. Piknik is still not secure in that sense, but it is much more seamless and can be installed as a drop-in replacement since the environment is so similar to my current solution!
Not to mention, with the Linux subshell, you have the potential to automate a SSH tunnel or tar | nc.
Just some thoughts about non-3rd party solutions.
Great to copy from any host to another, just by sharing a short secret.
Google 'synergy app'.
Update: Noticed just after commenting, that user falcolas had also mentioned Synergy here in this thread:
https://news.ycombinator.com/item?id=16177216
Others too, just noticed.
https://news.ycombinator.com/item?id=14263881
https://news.ycombinator.com/item?id=14649727
https://news.ycombinator.com/item?id=16216156