Tip: IOS Files + Samba - seamless access to $HOME through phone over Wifi
All, After being forced to update my phone (they took down 3G), a pleasant surprise was the "Files" app that will connect to any available smb server. I may be late to this party, but this was a huge improvement with the pain of e-mailing from my phone to my server to transfer files on the old iphone 4s. If you haven't discovered samba on Linux, then a simple way to share your files with your phone is to install the samba package, and you can use a simple config to share $HOME and make your files available to via the Files app. (note: samba 4.15 is fine, but 4.16 introduced a bug that broke sharing of [homes] in standalone mode, https://bugzilla.samba.org/show_bug.cgi?id=15062, this will be fixed in the next 4.16.x release) 15.4 still has samba 4.15, so you are fine. Double check if on Tumbleweed. The cliffs notes version, create a trivial /etc/samba/smb.conf to share your $HOME (done through the [homes] share in the config). A basic config is: [global] dns proxy = No map to guest = Bad User printcap name = cups security = USER server string = %h Samba %v workgroup = WORKGROUP map to guest = Bad User cups options = raw vfs objects = fruit streams_xattr [homes] browseable = No comment = Home Directories read only = No (The 'vfs objects' config is required to handle IOS connections, and of course you are free to change 'WORKGROUP' to whatever) You can limit connections to your specific subnet or specific IP addresses with a space separated list, e.g.: hosts allow = 192.168.0. (when done editing smb.conf, run 'testparm' to check your config and see a dump of the settings. If no errors, all is good) To add valid samba users, all that is needed is: # smbpasswd -a username Use Yast-firewall to add 'samba' to the public zone, and then start 'nmb' and 'smb', e.g. # systemctl start nmb # systemctl start smb (to have it automatically start at boot, substitute 'enable' for 'start' and re-run the two commands above) That's it. Just open the Files app on your IOS device, click the ... menu and "Connect to Server", type in your hostname, then next and enter your samba user name (keep it the same as your Linux user), and pw and presto, $HOME appears on your phone. I'm no IOS fan, but this is one app they got right. So long as your IOS device is connected to your LAN via Wifi, Files provides access to all smb shares available. (I also recommend disconnecting from local shares before leaving your wireless range. Otherwise, if you need to access Files on your phone while away, you will wait through ~60 sec timeout as Files tries to connect to your server -- something discovered while trying to pull up my auto-insurance information to hand to a friendly DPS officer...) -- David C. Rankin, J.D.,P.E.
participants (1)
-
David C. Rankin