FREE and best way for me is installing a webserver in your local machine and share everything via Safari browser on the iPhone, this are the steps YMMV
sudo apt install nginx php-fpm git
mkdir ~/iphoneFiles
sudo nano /etc/nginx/sites-available/default
Delete everything in there and put something like this, remember to modify <YOUR-USER> and if necessary change the php version php7.4-fpm.sock
server {
listen 80;
server_name localhost;
root /home/<YOUR-USER>/iphoneFiles/elFinder;
index elfinder.src.html;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
}
Installing https://github.com/Studio-42/elFinder
cd ~/iphoneFiles
git clone https://github.com/Studio-42/elFinder.git
Configuring elFinder
mv elFinder/php/connector.minimal.php-dist connector.minimal.php
Setting the (probably) right permissions for the upload folder
sudo usermod -a -G www-data $USER
sudo chown -R $USER:www-data elFinder/files/
sudo chmod a+rwx,o-rwx,ug+s elFinder/files/
ln -s ~/iphoneFiles/elFinder/files/ ~/Documents/iphoneFiles
Making nginx to load the new set directives
sudo service nginx reload
Now get your local network IP
hostname -i | awk '{print $1}'
Enter with your iPhone to that IP and start uploading pictures or whatever you want
note: you will need to modify elFinder setting to allow upload of all types of files
sed -i 's/.*uploadDeny.*/'uploadDeny' => array(''),/' elFinder/php/connector.minimal.php
sed -i 's/.*uploadDeny.*/'uploadAllow' => array('all'),/' elFinder/php/connector.minimal.php
If you did everything good you should have your files in:
~/Documents/iphoneFiles
it's plugged over USB (using the AFC protocol)
how to connect like this – Kasun Siyambalapitiya Sep 25 '16 at 02:58gvfs-backends
installed. – s3lph Sep 25 '16 at 20:35sudo apt-get update
and thensudo apt-get install gvsf-backends
then it notifies me that I am having the latest one installed. But when I connect iphone to Ubuntu, only I am able to copy the camera photos ( and other pdfs, pptx...) to my computer only, I cannot copy ones from my computer to the iphone. I even triedBanshee
but it doesnot havedevices
tab in the left side. How to Sync music and videos from Ubuntu 16.04 toiphone 4s
? – Kasun Siyambalapitiya Sep 26 '16 at 01:28sudo apt-get install gvfs-backends
– Chris Mar 15 '17 at 00:13afc://
. Open Nautilus with CTRL+L and edit the Addressline toafc://'000080200001682A0C6A002E'
which looks the same as if you just klick on the Folder for your iPhone in the left bar in Nautilus – rubo77 Dec 31 '23 at 07:10