2
shine
51d

How do you transfer text from one machine ( laptop ) to another ( phone ) with no common tools ( Firefox Send spat out a long string of characters that I had no way of transferring either ) on either? Basically a clipboard sync.

There used to be this online notepad at notepad.cc, but that tool is gone away now.

How do you do it hacker-style? `wall`!

- SSH into the same same server from both machines ( this also assumes you have Termux or some equivalent tool for your phone )
- use `wall` to broadcast message from source
- copy broadcast at destination
- done

Comments
  • 0
    Or just use USB if your phone is OTG-compatible
  • 0
    @gathurian I just wanted to copy 2 links. USB was over-kill for the purpose.

    Though, it would potentially work if I wanted to transfer files. I mean, if I wanted to transfer files to the device, I wouldn't need a USB drive though. Just connect it direct to the computer and get the job done.
  • 0
    @shine I'd dare say Email or messaging, like Telegram probably wouldve been easier. But hey, of it looks srupid but it works, it aint stupid 🤷🏼‍♂️
  • 1
    GitNasTorrentScpRsyncTelegraphSemaphore?

    Or just a USB drive and a station wagon.
  • 0
    @gathurian Exactly. Funny thing is that I wanted to share those links to someone on Signal. My phone had Signal, but the machine I was using was borrowed and a sandbox environment. I didn't want to install or leave any traces of my activity on that machine.
  • 1
    KDE Connect?
    Email?
  • 0
    @SortOfTested too much work no? don't you think? all I wanted was to copy 2 links
  • 1
    @Root Ha, KDE Conect.

    That's something that I had on my personal machine, but I didn't think of in that scenario.

    Again, this was a borrowed machine, not my own.

    Using an app that wouldn't record any data ( and potentially keep even if removed; like Telegram for example ) on the underlying system was the aim; KDEConnect would've worked there.
  • 2
    As @Root said, KDE Connect. It's beautiful, it just works.
  • 0
    @olback I know, right? I just didn't think of it in the moment. :|
  • 1
    @shine
    Scp or rsync are too much work? 👀
  • 0
    Android adb push works too they have wireless client
  • 0
    I'm wondering why no one suggested pushbullet yet. Was there a security concern with it?
  • 0
    @SortOfTested scp / rsync to a phone? how?

    + @hash-table

    I mean, you did notice that I wanted to send only 2 links to my phone so that I could share it with someone, right?
  • 0
    @melezorus34 pushbullet is a notification syncing thing right? I don't remember exactly, but I'm sure they didn't work with GNU/Linux
  • 1
    @shine I just use the browser extension. Works on any OS.

    I mostly use it to send links between phone and PC so I can continue reading an article on the go. But you can send any sort of generic text too.
  • 1
    My work blocks gmail and google drive. Pretty much any third party email or cloud storage service. Super annoying
  • 0
    Try feem
    They have app for all major platform
  • 0
    Pushbullet works perfectly fine, you can send links from one device to another.
    Another option would be crono but I couldn't get it to work.
  • 0
    When I need to do this I send it to myself on Slack 😂
  • 1
    @CrashOverride bruh, I wish teams had that feature
  • 0
    @CrashOverride that's only when you have the same app on both devices right?

    If I was on my personal laptop, I wouldn't even have the need to send those links to my phone.

    My laptop already had the desktop app which I could use; but like I mentioned earlier, this was a borrowed machine with not so much flexibility to do whatever I liked on it.

    And plus, I needed to keep the traces of my usage to a minimum as well.

    I don't like leaving traces of my usage on any other machine other than my own.
  • 1
    If that machine had a camera you could use a qrcode reader website to read it from your phone
  • 1
    @melezorus34 oh, that's a good idea too. though I think you mixed up the presentation of the idea but I got what you meant.

    I think you meant to show the QR code on the machine and use my phone to scan and get the link. The machine wouldn't need a camera.
  • 0
    Oh yeah lol, 7/10 time it's reverse for me.
  • 0
    @melezorus34 oh, but how do you generate the QR code for the link on your phone though? do you use a different app? or do you open up a website which generates the QR code? or is it possible by default from Chrome or some other browser? I use Firefox Focus, so, it isn't a 'feature' there.

    Also, what do you use to read the QR code from the laptop? another website?
  • 0
  • 1
  • 0
    @SortOfTested oh, dudette, if you were to login to a public server from your phone, then you might as well use `wall`. That's exactly what I did.

    Why put in the extra effort of :

    - writing your text to a file to `rsync`

    - `rsync`

    - reading the file to copy the text

    - paste into another app

    `wall` would reduce 2 steps for you, no?
  • 2
    I have been using drop.lol for file transfers and clipboard pastes, even ctrl v works on the site.

    Btw it's a real site
  • 0
    @pollux I wish I could just smash that ++ button all the way to it's highest limit of signed int ( which I'm guessing is the data type of the counter ).

    This was exactly what I was looking for. I don't know how to thank you for this. You're the second person in the past week ( sliding window ) who has showed me something absolutely useful that I've wanted for so long.

    And extra brownie points for it having a CLI tool as well!

    I wish this was StackOverflow or Discourse where I could mark your comment as the 'solution'. Thank you so much.
  • 0
  • 0
    @pollux don't tell me you're mat-sz, are you?
Add Comment