[Wiki] How to transfer files between Jolla and Mac OS X over the network (LAN)
asked 2014-10-09 12:36:22 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
How to transfer files between Jolla and Mac OS X over the network (LAN)
This method will allow your Mac to mount the Jolla's filesystem as a network volume.
For this to work, you need to enable developer mode on the Jolla and install sshfs on the Mac.
WARNING: You can cause serious damage to the phone if you accidentally delete or modify a critical system file. I can't emphasize this enough.
On the phone:
Developer mode must be enabled on the phone: Settings->System->Developer mode
Allow remote connection as well (same menu in settings as (1) above)
Set a password for SSH (same menu)
Note down your IP address which should be visible here under Networking. You will need this IP address later on the Mac to establish the connection.
On the Mac:
Install MacPorts from here:
https://www.macports.org/install.php
Macports has some prerequisites to install; follow their detailed instructions. Note that they may differ slightly depending on the OS X version that you are running. You should also keep macports up-to-date using their instructions
Start the OS X Terminal.app located in /Applications/Utility/Terminal.app
In the terminal, execute the following command:
$ sudo port install sshfs
If all goes well, you will now be able to mount the Jolla's file system using its IP address which you noted down earlier (say 192.168.0.18).
Create the mountpoint on OS X:
$ mkdir /Volumes/jolla
Now to connect to Jolla. sshfs will ask for the password you entered into the phone. The example below mounts the entire filesystem from root. Be careful, you can do some serious damage if you're careless.
$ sshfs nemo@192.168.0.18:/ /Volumes/jolla
On the Finder desktop, you should now see a network drive which is your phone's filesystem.
Once again, if you delete/modify a critical file, you can break your phone. I am NOT responsible.
To mount just the home directory, which is what you would usually need:
$ mkdir /Volumes/nemo
$ sshfs nemo@192.168.0.18:/home/nemo /Volumes/nemo
TODO
- Since OS X deletes the mount point directory when you unmount the network drive, you will have to create it every time you connect to the Jolla. There should be an easier way.
Hi @SanjayMehta , I would be very pleased to have your detailed instructions. As didactic as possible,not everyone is familiar with sshfs (me for example :-p). That will also help others I believe. Thank you in advance!
damourti ( 2014-10-09 12:55:02 +0200 )edit@damourti: done. Let me know if anything's unclear.
Sanjay Mehta ( 2014-10-09 13:39:59 +0200 )editGreat post, but suggesting the following for clearance:
- Option 1: Make this post a wiki
- Option 2: Form your question as a simple question (How can I transfer files between Jolla and Mac OS) and offer this Finder solution as one answer to your own question.
simo ( 2014-10-09 17:52:45 +0200 )editCleaned up and converted to wiki. I need some help with the formatting - the list numbering keeps resetting back to 1.
Sanjay Mehta ( 2014-10-10 05:49:52 +0200 )editGreat! I've edited the numbering, is it ok now? Count starts from the beginning if there's a line starting from very beginning in between, but using space in front of the line moves it along to the numbered list.
simo ( 2014-10-10 09:43:28 +0200 )edit