Best Current File Transfer Methods? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127) +--- Thread: Best Current File Transfer Methods? (/showthread.php?tid=16102) |
Best Current File Transfer Methods? - britelite - 02-15-2022 I saw there were a few posts although I was wondering if there were any updates. Bluetooth works but slowly. I was actually kind of amazed that you can't just upload via USB stick (or can you only do it on a few distros like Mobian? I didn't find a pinephone-devtools or whatever in PostmarketOS) I don't know how to SSH but I saw there were a few articles, does anyone have a simple guide on how to transfer files using something similar (like scp or whatever)? Mainly I guess I wasn't sure how to find the server address to connect to, if say I am just connecting via USB between a computer and Pinephone. Actually the easiest method seemed maybe like I could put a bunch of files on to a MicroSD card and just insert that in the back, but I wanted to learn ssh so I could update files more regularly. Is it a problem to take out the MicroSD card frequently to update files? I imagine it would be cumbersome and a bit hard on the hardware, but it requires the least knowledge if it works. Pine64's Luke in the subreddit said you could boot up the Pinephone by holding the power button and a volume button, which would have the Pinephone connect to a computer. I'm assuming this doesn't work anymore or in any event it didn't seem to work for me. Any simple guides to file transfer or step by step instructions I can follow? Thank you RE: Best Current File Transfer Methods? - Zebulon Walton - 02-15-2022 Most convenient would be if the USB connection worked as it does with Android phones so you could just connect the Pinephone to a Linux computer and browse the phone's filesystem. (A Windows computer doesn't grok Linux filesystems unless you install an appropriate driver.) USB connection doesn't work for file transfer though, at least not in Mobian. You can do it with Jumpdrive tp access the eMMC. I like using sshfs, though it has the limitation of not supporting symbolic links: https://www.baeldung.com/linux/mounting-remote-directory-sshfs Of course for this to work you need to have ssh server running on the Pinephone and you need to know the phone's IP address. (At home I have my router configured to always give out the same IP address to the Pinephone.) RE: Best Current File Transfer Methods? - acrux - 02-16-2022 Using USB Type-A/Type-C combo stick here. With Manjaro PlaMo. RE: Best Current File Transfer Methods? - vap0rtranz - 02-16-2022 (02-15-2022, 10:15 PM)britelite Wrote: Is it a problem to take out the MicroSD card frequently to update files? I imagine it would be cumbersome and a bit hard on the hardware, but it requires the least knowledge if it works. I don't think so. I've done this for a few years and my only worry is the back plastic case will eventually crack from taking it on & off. So yea not long-term solution. (02-15-2022, 11:40 PM)Zebulon Walton Wrote: Most convenient would be if the USB connection worked as it does with Android phones so you could just connect the Pinephone to a Linux computer and browse the phone's filesystem. (A Windows computer doesn't grok Linux filesystems unless you install an appropriate driver.) USB connection doesn't work for file transfer though, at least not in Mobian. +1. I re-tried USB dongle the other day to see if latest Mobian Bookworm fixed this, but no. A new NIC is detected by my laptop, not a filesystem. Evidently this is by design?? https://wiki.mobian-project.org/doku.php?id=howto:networking @britelite here's one way you could use scp: 1. Find the phone's IP address. 1.a. If your OS uses NetworkManager (most do), the phone's IP address on Wifi is under: Settings -> Wi-Fi -> gear icon next to the Wi-Fi name -> Details -> IPv4 Address. 1.b. a home network IP address should be something like 192.168.1.50 2. Find where the SDCard has been mounted by your PinePhone's OS 2.a. If using Portfolio file browser app, the SDCard is listed under Devices. Example: you may see "32 GB Volume" and also something like "/media/mobian/4F7C-4334" <-- you need this mountpoint later 2.b. if using Gnome File app, I believe it's basically the same as 2.a. but I can't check right now 3. Enable SSH daemon on phone I believe each OS wiki has the steps you'll need. For Mobian, the wiki's steps are at: https://wiki.mobian-project.org/doku.php?id=howto:security&s[]=sshd You may already know but just encase others don't: use your OS' steps not some generic GoogleFu howto. Manjaro is Arch based so they use pacman to install. PostmarketOS still uses runlevels instead of systemd to manage daemons. Mobian is Debian based so uses apt to install & systemd services. Etc. 4. Connect SSH/SCP on laptop/desktop 4.a. if your laptop/desktop is Linux/Mac, then scp/sftp should be installed already. scp/sftp/ssh commands are usually all included in an SSH package like OpenSSH. 4.b. scp syntax is simply: 'scp <LOCAL_PATH_TO_FILE> <USER>@<PINEPHONE_IP_ADDR>:<SDCARD_MOUNTPOINT> 4.b.i. that ^ SDCARD_MOUNTPOINT refers back to whatever you found in 2.a. / 2.b. 4.b.ii. USER is OS specific. Mobian's default user is simply "mobian". PostmarketOS is "user" IIRC but I could be wrong. Again check your OS wiki for sshd details. Example: Code: scp ./my-fav-song.flac mobian@192.168.0.50:/media/mobian/4F7C-4334/ 4.c. if your laptop/desktop is Windows, AFAIK scp is now installed by default (since Win10 at least) and usable by running cmd. Otherwise you have to install an app like Putty 4.c.i. do same scp command as above 4.d. if the SSH connection is working, you'll be prompted for your PinePhone's password. It's the same one you use when unlocking the phone. HTHs RE: Best Current File Transfer Methods? - Zebulon Walton - 02-16-2022 (02-16-2022, 01:35 AM)acrux Wrote: Using USB Type-A/Type-C combo stick here. With Manjaro PlaMo. As I recall, USB file transfer worked with Mobian early on but then the feature was removed. RE: Best Current File Transfer Methods? - mikehenson - 02-16-2022 syncthing is the best! It takes a little to set up, but once it setup it is the best! https://syncthing.net/ RE: Best Current File Transfer Methods? - vusra - 02-18-2022 Install FileZilla on your PC. Use the SFTP - SSH File Transfer Protocol to logon to your Pine and transfer files with a GUI. For step 3. from terminal on pinephone run Code: ip a RE: Best Current File Transfer Methods? - user641 - 02-18-2022 USB-C pendrive... RE: Best Current File Transfer Methods? - TRS-80 - 02-22-2022 Syncthing +1 I use it to sync files across all my devices (desktop, laptop, mobile (including Android), SBCs, etc.). I sync my encrypted password file, notes, media, and all sorts of things. It's really interesting software, truly decentralized. Unlike proprietary alternatives (Dropbox, et al) it does not actually require any centralized server. The Syncthing project (and volunteers) run a number of servers which help all your devices locate one another, even across NAT. |