Live data from Hacker News

Piknik – Copy and paste anything over the network

github.com

11–20 of 42 posts

Re: Piknik – Copy and paste anything over the network

#11
post #9

Instead of local: "rsync content me@target-server" remote: "cat content" we now have different much better commands and need a third server awesome

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.

  socat

Re: Piknik – Copy and paste anything over the network

#13
post #9

Instead of local: "rsync content me@target-server" remote: "cat content" we now have different much better commands and need a third server awesome

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.

Well, your basic SSH does this pretty much by default. Whatever program you execute remotely is handed stdin/stdout/stderr from your local terminal.

That's why you can do things like `ssh -e 'cat somefile' > some_localfile`

It's not always recommended, but possible.

Re: Piknik – Copy and paste anything over the network

#14
post #9

Instead of local: "rsync content me@target-server" remote: "cat content" we now have different much better commands and need a third server awesome

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.

like netcat?

Re: Piknik – Copy and paste anything over the network

#16

Instead of local: "rsync content me@target-server" remote: "cat content" we now have different much better commands and need a third server awesome

Why yes it is, in the case where one or both of the endpoints are behind a firewall or are plagued by NAT.

* plagued by firewall/NAT, but connected to the internet

Re: Piknik – Copy and paste anything over the network

#18
Thank you, thank you, thank you!

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!

Re: Piknik – Copy and paste anything over the network

#19

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.

Re: Piknik – Copy and paste anything over the network

#20

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)

Can you host your own PushBullet server?
Post reply on HN