Hey,

I was wondering what folks use to quickly send a file or a link between your PC and android phone in a lightweight and self hosted way.

Currently I use syncthing to copy files around, but I’m looking for something more immediate, and quick than doesn’t involve searching for folders in a file manager.

Example use case: Send a file from PC to phone. Notification pops up on phone, tap it to access.

(PC runs OpenBSD)

What lightweight software do you guys use?

Stuff I tried so far:

  • syncthing
  • xmpp
  • tox
  • scp and termux.
  • magic wormhole
  • telegram saved messages
  • Lettuce eat lettuce@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I love localsend.

    Works on Linux, Android, iOS, Windows, and Mac. It is basically an OS agnostic Airdrop.

    It’s FOSS, so you can go to the Github and build from source for OpenBSD, but I have no idea if that would work.

  • arthurpizza@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Open source file manager Material Files lets you set an SSH server as a bookmark and mount it instantly. Moving files around just like like it’s native. Works seamlessly through Tailscale.

  • JASN_DE@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    As I have basically all devices connected to my Nextcloud instance, I simply use that. I don’t have any “time-critical” file transfers though.

    • vext01@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Well my transfers aren’t “time critical” either, but life feels easier if I don’t have to jump through hoops to solve a task that involves copy files around.

      Re: next cloud, looking for something more lightweight than that.

  • Deckweiss@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    https://pairdrop.net/

    open source, can be self hosted or you can use the official instance.


    Personally I have been using KDE connect most of the time when I am at home.

    Pairdrop I use more when sharing with other people across the internet.

    • vext01@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      pairdrop

      I like this a lot.

      A question. Docs say:

      Your files are sent using WebRTC, encrypting them in transit. Still you have to trust the PairDrop server. To ensure the connection is secure and there is no MITM there is a plan to make PairDrop zero trust by encrypting the signaling and implementing a verification process. See issue #180 to keep updated.

      Does this mean if you self-host on your LAN for personal use without https, then nothing is encrypted, or does WebRTC negotiate its own crypto?

  • haverholm@kbin.earth
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I’ve tried LocalSend for this, but I usually end up using more reliable ways like Syncthing (not instantly transfered, but at a decent speed) or sending myself the file on Element for Matrix (as good as instantaneous).

  • one_knight_scripting@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Do you have any hosting in your home lab? Preferably something for running a docker container, but a hypervisor could do the job too.

    Nextcloud is an option if you do. Technically speaking you could properly protect it and make it public. You don’t have to do that though. Any file you upload on your computer could be copied to your phone or vice versa. If it’s public, then this could be done from anywhere.

  • nullptr@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I ll just hijack this thread : when plugging my android into laptop, the laptop doesn’t recognise it as anything. And the phone doesn’t give me the option to “share files” instead of just charge. Does anyone knows what’s wrong?

    • qwerty@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Check if your cable has data lanes, some cables don’t have them and can only be used for charging. Tap the charging notification and check if you can change it to file transfer.

  • knF@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I’m using a selfhosted pastebin (microbin) as sometimes I want to transfer text, other files… It’s very efficient and in my instance it’s using 13MB of RAM, which is fairly lightweight for modern standards

  • reddwarf@feddit.nl
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    You got some good replies and I personally am enamored by LocalSend, it is worth checking it out.

    However, there is a simple way if a) you use whatsapp and b) the devices involved have access to whatsapp.
    This involves not just sending files but you can send text and whatever whatsapp supports and you’ll have a history of these chats should you need to have them later again. Probably possible with other platforms but I use whatsapp so that is what I setup for information transfer to myself.
    The thing you want to do is create a chat group, add a friend for a very brief moment, remove said friend again after they accepted, enjoy your private group where you can dump any and all info into and pick up from wherever you have whatsapp available. The trick is to add a friend for a couple of seconds. If you create a group you are automatically in it but you cannot use it until you add someone else, then it becomes active and use-able. The fact that you end up alone in that group does not make it unavailable again. Weird but it works.

  • Fuzzypyro@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Taildrop works relatively well for most all circumstances. Only thing is you gotta use trayscale or cli currently for sending files from a Linux/bsd machine. I don’t know if opened has a port for trayscale but it definitely has a port of tailscale.