Why is Jolla/sailfish so hard to connect to linux?
tldr; Please don't mistake mitigating workarounds for solutions to this problem. Simple connection with another Linux computer is tough or problematic for many users of Sailfish devices.
Why is a Linux/open-source phone so hard to sync/connect to a Linux computer? It should be easier than a walk in the park! What is missing? Why is it so important to force Linux users through circuitous MITM-style hubris just to connect?
Update : Ok, I see this issue still is hot and not solved in an nativ jolla app. So here is what I do at the moment.
Update (not OP): Ten step workarounds vs. plug and play? I should be able to connect and set up a read-only connection without device root or deference any third party (yes, even Jolla) ssh/root permission monitor/authenticator. For Read-only, this should be a user level permissions/connection fix. Write/Execute are distinct problems. Is the wireless/USB technology/security standard that bad, or is this a user auditability/security management issue?
- I have to be root - set under settings -> system ->developer mode . Set USB LAN to 192.168.1.11 set a SSH password
- make a script on my /home/(your user) f.eks. 'mountjolla'
- Script :
#!/usr/bin/bash
localIp='192.168.1.10/24'
localBroadcast='192.168.1.255'
netAdp=$1
mountPath='/home/(your user)/jolla'
user='nemo'
jollaIp='192.168.1.11'
sudo ip addr add $localIp broadcast $localBroadcast dev $netAdp
# First umount if all ready mounted
fusermount -u $mountPath
sleep 2
sshfs $user@$jollaIp:/home/$user -p 22 $mountPath
do a "mkdir /home/(your user)/jolla . If it is not there allready
do chmod 755 to your script "chmod 755 ~/mountjolla"
plug usb cable in phone & computer
if not check usbnet module is loaded with "lsmod"
do "ip link" ( on Archlinux ) and I guess others Linux OS's
notice what net device pop up ( f.eks. enp0s29u1u2u1u3 )
run your script "mountjolla enp0s29u1u2u1u3"
And you have you jolle "nemo" dir mounted at /home/(your user)/jolla !
- umount it with "fusermount -u /home/(your user)/jolla"
Still not an "easy way" tough :-/ but it works
Another way is using firefox with "FireFTP" extention: , after setup ssh settings + password etc , connect USB cable, get usbnet setup with "ip link" and "sudo ip addr add (localIP) broadcast (localBrodcast) dev (jollaIP)" and point browser to "sftp://(jollaIP)/". Then you get a nice "mc" like interface :P (thanks coderus for the hint)
Please provide some details, how were you trying to sync? Sailfish OS uses the MTP Protocol - https://en.wikipedia.org/wiki/Media_Transfer_Protocol Depending on your derivative there should be MTP support installable, please check the wikipedia page or post your exact operating system (example Ubuntu 12.04 LTS).
Otherwise you could enable SSH and build yourself a little bash script that connects and sync's.
I know its a bit inconvenient, but if you are using Gnu\Linux and a Jolla, you are probably a person that likes to hack their own stuff ;)
ozzi ( 2014-05-06 11:34:11 +0200 )editI find the use of the MTP Protocol problematic, at least for older Linux systems. If I connect my Jolla to my Ubuntu (11.10) laptop, it is recognized as digital camera, but no transfer is possible. I wonder about the reason why that protocol was chosen. Never mind, I decided to disable USB connectivity on my Jolla, and I now use ssh to connect to the phone.
barral ( 2014-05-06 11:59:08 +0200 )editI just think it is abit of a pain(and something to make better working ) to just plug the phone (USB) and transfeer some files to it. (MPT do not work under Archlinux at the moment) And I had no problems with my old "shitty" HTC on Linux ? So why can a Jolla just work on Linux with USB ? Now I run Bittorrent sync (andriod) to sync the phone but then I have to move stuff around and is not able to "browser" the dirs ? SSH sounds nice but my WiFi is not connected to my intranet so I have to lock in on the WIfi router to login on the Jolla !?
Mr.Thumb ( 2014-05-06 12:37:17 +0200 )editMy system is Ubuntu 10.04 LTS, and has no support for MTP neither.
Macilaci457 ( 2014-05-06 14:06:09 +0200 )editJolla connects well with Ubuntu 13.10 and 14.04. Already transfered many files to my phone and barely ever had a problem.
molan ( 2014-05-06 14:29:00 +0200 )edit