Share Folder On Windows Network?
#11
As an experienced writer, I was always happy with an external SD card where I stored and edited my files. The easier the storage device is, the less errors occur. I am currently evaluating with strong pressure a successor device to my Samsung Galaxy S5 4.4. The last device I had for this purpose is gone, and I suffer, since my heart is involved in that process.

The PinePhone has many advantages for this. Write to the external SD card, reboot the device to Jumpdrive and access the SD cards via usb from PC.

My PinePhone which I ordered from Ricardo Switzerland has not yet arrived, therefore I looking for workarounds. I thought about a Samba Shared folder, which seems to be quiet easy, but also seems to be buggy in Ubports, as well as in Android.

I also thought about a Rasperri Pi with OpenMediaVault connected over SSH to a writing device, or running it on a virtual machine. The first seems to be easy. But who wants to carry around a Rasperri PI all the time with the PinePhone or another phone? Only a temporary solution, or as a backup device.

SSH from Windows to Linux and vice versa seems to be a very professional solution, but I could not find out yet with what applications this is done the easiest way Angry .
  Reply
#12
Your requirements seem to be a moving target. Are you looking for something that works on a network, or can cope with offline edits to sync later? Text only, or arbitrary files? Or are you having new ideas sparked by the suggestions people are making?

ssh has been included in Windows 10 for 4 years or so - before that people usually used PuTTY. A web search will find the docs for either. For some pinephone-specific docs, the mobian wiki has a section on setting up ssh to use keys instead of password, which is strongly recommended given that the password is usually trivially short for faster screen unlocking.
https://wiki.mobian-project.org/doku.php...ty&s[]=ssh
Perhaps my difficulty understanding the problem is that I've been using ssh for more years than I care to remember, and have forgotten what it was like to start with.

Syncthing has already been mentioned as a relatively simple option. Another would be learning to use a version control system like git - much less simple, but much more powerful, and maybe worth the effort depending on what you're doing. For general use I went with Nextcloud on a server at home, and wireguard to let me access it when I'm away from home. The client is available for most common platforms (linux, windows, mac, iOS, android), can be selective about what to sync on which devices, and warns about conflicting changes rather than blindly using the most recent. As with other things on the pinephone the difficulty is in the gui scaling.
  Reply
#13
(03-30-2022, 07:57 PM)Peter Gamma Wrote: I thought about a Samba Shared folder, which seems to be quiet easy, but also seems to be buggy in Ubports, as well as in Android.

Samba is buggy in Linux because Microsoft are not actually interested in interoperability, in fact quite the contrary.  If all devices on your network are using Linux, you would be much better off with the native Linux equivalent which would be NFS.  You only need Samba if you have mixed devices on your network (i.e., one or more Windows boxen).

Syncthing, being written in Go, is cross platform.

(03-30-2022, 07:57 PM)Peter Gamma Wrote: I also thought about a Rasperri Pi with OpenMediaVault connected over SSH to a writing device, or running it on a virtual machine. The first seems to be easy. But who wants to carry around a Rasperri PI all the time with the PinePhone or another phone? Only a temporary solution, or as a backup device.

Yeah, seems cumbersome.  Where Single Board Computers (SBC, a more general and IMHO preferred term than RPi) really shine is in leaving them hooked to your network at home, and then using them for file sync (by any of the many ways being discussed in this thread).

(03-30-2022, 07:57 PM)Peter Gamma Wrote: SSH from Windows to Linux and vice versa seems to be a very professional solution, but I could not find out yet with what applications this is done the easiest way Angry .

Yes SSH is very nice, for certain applications.  In Emacs I use dired and TRAMP (which work on top of ssh) which also works very nice for manipulating remote files.  But Emacs is a hairy beast, not recommended unless you are going to commit to getting over the learning curve which is pretty big.  So maybe I should not have menbtioned that.  I guess point being, all these tools have their place, depending on what you are trying to do.

(03-31-2022, 09:26 AM)wibble Wrote: Your requirements seem to be a moving target. Are you looking for something that works on a network, or can cope with offline edits to sync later? Text only, or arbitrary files? Or are you having new ideas sparked by the suggestions people are making?

I think this cuts to the root of the issue.  Almost like we are getting into XY problem.

So maybe we should start anew, by firstly defining exactly what your criteria/priorities are?  Then maybe we can suggest the most appropriate tool(s).

(03-31-2022, 09:26 AM)wibble Wrote: For general use I went with Nextcloud on a server at home, and wireguard to let me access it when I'm away from home. The client is available for most common platforms (linux, windows, mac, iOS, android), can be selective about what to sync on which devices, and warns about conflicting changes rather than blindly using the most recent.

Syncthing automatically finds the most recent file on any device and propagates that.  In the event of conflicts, those are synced also, and dated, so you can resolve them manually.  In practice, this happens seldom (unless you have some devices offline a lot, and edit those in parallel).

Of course you can select which devices to sync or not.  Even which folders, etc.

The reason I went with Syncthing over Nextcloud (which I also used to run) is that Nextcloud file sync is based on WebDAV, and therefore is syncing a whole entire file at a time.  Where Syncthing is chopping every file into chunkhs, hashing them, and doing incremental sync which is much more efficient.  Although if we are talking about small (or even medium to large) text files, it probably won't make a difference.

Also Syncthing is truly decentralized, clients will find each other (including navigating NAT) by way of community/project run relay servers.  Where Nextcloud is a classic server-client (hub and spoke) model.  You do not need to be running any server / SBC at home to use Syncthing (even though I do).

As wibbble mentioned, Wireguard can be a workaround for the NAT issue, as well as providing security.  I use Wireguard too, for that (and other things).

I also use git for other things in parallel (because git / version control have yet other use-cases; even for writers, which was in fact how I started out (not using it for code actually)).

But back to what wibble said above (let's define the actual use-case), before we go any further.  Smile
Cheers,
TRS-80

What is Free Software and why is it so important for society?

Protocols, not Platforms

For the most Linux-y experience on your Linux phone, try SXMO!

I am (nominally) the Armbian Maintainer for PineBook Pro (although severely lacking in time these days).
  Reply
#14
Thank you both for the detailed discussion of this important topic Idea .
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Samba share on the Pinephone? Peter Gamma 0 636 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Share some experience user641 1 1,553 07-17-2023, 09:56 PM
Last Post: PineFone
  How to replace the home folder on eMMC ragreenburg 2 2,210 03-31-2022, 02:19 PM
Last Post: ragreenburg
  No cellular network gibbz 5 5,059 03-04-2021, 05:30 PM
Last Post: rocket2nfinity
  Windows 95 on the PinePhone? Peter Gamma 9 10,044 02-06-2021, 02:40 AM
Last Post: KC9UDX
  Moving windows in Phosh NO_ob 1 3,552 07-05-2020, 06:55 AM
Last Post: dawg161

Forum Jump:


Users browsing this thread: 12 Guest(s)