issue82:comment_connecter_un_dispositif_ios
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue82:comment_connecter_un_dispositif_ios [2014/06/08 16:22] – créée auntiee | issue82:comment_connecter_un_dispositif_ios [2014/07/05 23:01] (Version actuelle) – lecastillan | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | I've been fascinated by KDE since I started my Linux experience, but I often use an iPad as a multimedia player; unfortunately KDE – and Kubuntu by consequence - does not support it out of the box as Ubuntu and other derivatives such as Xubuntu, Lubuntu and Ubuntu GNOME do. | + | ===== 1 ===== |
+ | **I've been fascinated by KDE since I started my Linux experience, but I often use an iPad as a multimedia player; unfortunately KDE – and Kubuntu by consequence - does not support it out of the box as Ubuntu and other derivatives such as Xubuntu, Lubuntu and Ubuntu GNOME do. | ||
Before becoming a Linux user, I downloaded multimedia files on my Windows XP notebook, then moved them to my iPad via iTunes: however, there' | Before becoming a Linux user, I downloaded multimedia files on my Windows XP notebook, then moved them to my iPad via iTunes: however, there' | ||
- | If I'm not mistaken, starting with iOS4, the core directories of the iOS are encrypted while apps directories are not. Luckily these days there are many free or cheap apps, so we can avoid using the encrypted part of the iOS file system by substituting standard iOS function with other apps. On my iPad I use OPlayerHD for podcasts, video and music, and Download as a pdf reader, and the directories where the files are stored for these apps are not encrypted . | + | If I'm not mistaken, starting with iOS4, the core directories of the iOS are encrypted while apps directories are not. Luckily these days there are many free or cheap apps, so we can avoid using the encrypted part of the iOS file system by substituting standard iOS function with other apps. On my iPad I use OPlayerHD for podcasts, video and music, and Download as a pdf reader, and the directories where the files are stored for these apps are not encrypted .** |
- | Dolphin, the file manager of KDE, uses software components named kio slave to support connection protocols to various removable devices. Unfortunately there' | + | KDE me fascine depuis le début de mon expérience avec Linux, mais j' |
+ | |||
+ | Avant de devenir utilisateur Linux, je téléchargeais des fichiers multimédia sur mon ordinateur portable sous Windows XP, puis je les mettais sur mon iPad via iTunes. Cependant, il n'y a aucune version d' | ||
+ | |||
+ | Sauf erreur de ma part, à partir de l' | ||
+ | |||
+ | ===== 2 ===== | ||
+ | |||
+ | **Dolphin, the file manager of KDE, uses software components named kio slave to support connection protocols to various removable devices. Unfortunately there' | ||
I've found two alternative solutions, the first via a CLI, and the second – a simpler solution – via the LXDE/ | I've found two alternative solutions, the first via a CLI, and the second – a simpler solution – via the LXDE/ | ||
- | Important tip: depending on iOS and idevice version, you may need to remove the access code (a 4 digit code) from your idevice to get the two connection methods working: it's an option in the General settings of your idevice – you can easily set it up again after the connection with Kubuntu is done. | + | Important tip: depending on iOS and idevice version, you may need to remove the access code (a 4 digit code) from your idevice to get the two connection methods working: it's an option in the General settings of your idevice – you can easily set it up again after the connection with Kubuntu is done.** |
+ | |||
+ | Dolphin, le gestionnaire de fichiers de KDE, utilise des composants logiciels appelés kio slave pour pouvoir prendre en charge les protocoles de connexion de divers dispositifs amovibles. Malheureusement, | ||
+ | |||
+ | J'ai trouvé deux solutions alternatives, | ||
+ | |||
+ | Conseil important : selon la version iOS de votre périphérique, | ||
+ | |||
+ | ===== 3 ===== | ||
- | First solution (CLI): ideviceinstaller and ifuse | + | **First solution (CLI): ideviceinstaller and ifuse |
First, we need to install ifuse and ideviceinstaller. In a terminal type: | First, we need to install ifuse and ideviceinstaller. In a terminal type: | ||
Ligne 22: | Ligne 39: | ||
The output is a list of all appid and names off the apps installed; my list is: | The output is a list of all appid and names off the apps installed; my list is: | ||
+ | Total: 7 apps | ||
+ | com.google.GoogleMobile - Google 3.0.2.20993 | ||
+ | com.olimsoft.oplayer.hd.lite - OPlayerHD Lite 2.0.13 | ||
+ | ch.smalltech.ledtorchfree - LED Torch 1.41 | ||
+ | com.demandviaspeech.dvs - Download 3.0 | ||
+ | com.trautvetter.atomicbrowser - Atomic Web 7.0.1 | ||
+ | com.apple.iBooks - iBooks 1929 | ||
+ | com.m-w.dictionaryipad - Dictionary 2.1 ** | ||
+ | |||
+ | Première solution (CLI - ligne de commande) : ideviceinstaller et ifuse | ||
+ | |||
+ | D' | ||
+ | |||
+ | sudo apt-get install ifuse ideviceinstaller | ||
+ | |||
+ | Puis branchez l'iPad avec un câble. Dans un terminal tapez : | ||
+ | |||
+ | ideviceinstaller -l | ||
+ | |||
+ | Le résultat est une liste de tous les ID (appid) et noms des applis installées. Voici ma liste : | ||
Total: 7 apps | Total: 7 apps | ||
com.google.GoogleMobile - Google 3.0.2.20993 | com.google.GoogleMobile - Google 3.0.2.20993 | ||
Ligne 30: | Ligne 67: | ||
com.apple.iBooks - iBooks 1929 | com.apple.iBooks - iBooks 1929 | ||
com.m-w.dictionaryipad - Dictionary 2.1 | com.m-w.dictionaryipad - Dictionary 2.1 | ||
+ | ===== 4 ===== | ||
- | As an example, I want to move some stuff from the notebook to the iPad, a podcast to OplayerHD, and some pdf files to Download; I need the information I've marked in bold characters, which are named appids, to mount the iDevice directories by ifuse later on. | + | **As an example, I want to move some stuff from the notebook to the iPad, a podcast to OplayerHD, and some pdf files to Download; I need the information I've marked in bold characters, which are named appids, to mount the iDevice directories by ifuse later on. |
On Kubuntu I create a directory ~/iPad (here CLI commands, the directories can also be created with Dolphin): | On Kubuntu I create a directory ~/iPad (here CLI commands, the directories can also be created with Dolphin): | ||
Ligne 55: | Ligne 93: | ||
ls ~/ | ls ~/ | ||
- | I see the list of files and directories I have on my iPad, and Dolphin can navigate to these directories. | + | I see the list of files and directories I have on my iPad, and Dolphin can navigate to these directories.** |
- | Shown right is one screenshot with Dolphin and a terminal showing one mounted iPad directory. | + | À titre d' |
+ | |||
+ | Sous Kubuntu, je crée un répertoire ~/iPad (voici les commandes CLI, on peut aussi créer les répertoires avec Dolphin) : | ||
+ | |||
+ | mkdir ~/iPad | ||
+ | |||
+ | Puis je crée un répertoire pour chaque répertoire d' | ||
+ | |||
+ | cd ~/iPad | ||
+ | |||
+ | mkdir | ||
+ | |||
+ | mkdir | ||
+ | |||
+ | Maintenant je peux monter les répertoires Documents des applis avec ifuse, en me servant des appids trouvés avec la commande ideviceinstaller -l, ceux en gras dans la liste ci-dessus : | ||
+ | |||
+ | ifuse –appid com.olimsoft.oplayer.hd.lite ~/ | ||
+ | |||
+ | ifuse –appid com.demandviaspeech.dvs ~/ | ||
+ | |||
+ | Et voilà. Si je tape : | ||
+ | |||
+ | ls ~/ | ||
+ | |||
+ | je vois la liste des fichiers et répertoires sur l'iPad et Dolphin pourra naviguer vers ces répertoires. | ||
+ | |||
+ | ===== 5 ===== | ||
+ | |||
+ | **Shown right is one screenshot with Dolphin and a terminal showing one mounted iPad directory. | ||
After we have moved our files, it's time to unmount the iPad. In Dolphin we leave the directories we have mounted with ifuse, and in a terminal type: | After we have moved our files, it's time to unmount the iPad. In Dolphin we leave the directories we have mounted with ifuse, and in a terminal type: | ||
Ligne 67: | Ligne 133: | ||
This mounting process is quite easy: once we have made the directories we need and have chosen the appids, it can be automated with a simple script that lists all the “ifuse –appid” instructions and the execution of the script can be added as an action to the Device notifier. | This mounting process is quite easy: once we have made the directories we need and have chosen the appids, it can be automated with a simple script that lists all the “ifuse –appid” instructions and the execution of the script can be added as an action to the Device notifier. | ||
- | I suggest this solution if you prefer to work by CLI and if you do not change the apps on your idevice very much. | + | I suggest this solution if you prefer to work by CLI and if you do not change the apps on your idevice very much.** |
- | Second solution (GUI): file manager PCManFM | + | À droite, vous voyez une capture d' |
+ | |||
+ | Après avoir transféré nos fichiers, l' | ||
+ | |||
+ | cd ~ | ||
+ | |||
+ | sudo umount ~/iPad/* | ||
+ | |||
+ | Cette procédure de montage est très facile : une fois les répertoires dont nous aurons besoin créés et une fois les appids choisis, on peut l' | ||
+ | |||
+ | |||
+ | |||
+ | ===== 6 ===== | ||
+ | |||
+ | **Second solution (GUI): file manager PCManFM | ||
We cannot connect directly to the idevice with Kubuntu because Dolphin does not support the AFC protocol, though there are other file managers which do so, such as PCManFM, the default file manager in Lubuntu. | We cannot connect directly to the idevice with Kubuntu because Dolphin does not support the AFC protocol, though there are other file managers which do so, such as PCManFM, the default file manager in Lubuntu. | ||
Ligne 87: | Ligne 167: | ||
sudo apt-get install pcmanfm-qt | sudo apt-get install pcmanfm-qt | ||
- | PCManFM supports AFC protocol, and once it’s installed, it is possible to mount, manage directories and files, and unmount directly via PCManFM. | + | PCManFM supports AFC protocol, and once it’s installed, it is possible to mount, manage directories and files, and unmount directly via PCManFM.** |
- | It's nice to set up a device notifier action that opens PCManFM when your iDevice is connected. My iPad and also a couple of other iDevices I tested are detected as cameras, so we can set up a device notifier action this way: | + | Seconde solution (interface graphique) : gestionnaire de fichiers PCManFM |
+ | |||
+ | Il est impossible de se connecter directement à l' | ||
+ | |||
+ | La meilleure solution que j'ai trouvée est d' | ||
+ | |||
+ | Au moment où j' | ||
+ | |||
+ | Nous devons installer le paquet pcmanfm-qt, disponible dans le ppa de la version quotidienne de Lubuntu. Il faut d' | ||
+ | |||
+ | sudo repository-apt-add ppa: | ||
+ | |||
+ | sudo apt-get update | ||
+ | |||
+ | Ensuite, nous installons le paquet : | ||
+ | |||
+ | sudo apt-get install pcmanfm-qt | ||
+ | |||
+ | PCManFM prend en charge le protocole AFC et, une fois installé, il est possible de monter, gérer et démonter des répertoires et des fichiers directement via PCManFM. | ||
+ | |||
+ | |||
+ | ===== 7 ===== | ||
+ | |||
+ | **It's nice to set up a device notifier action that opens PCManFM when your iDevice is connected. My iPad and also a couple of other iDevices I tested are detected as cameras, so we can set up a device notifier action this way: | ||
Device notifier settings (right click on the icon) > Device actions > Add | Device notifier settings (right click on the icon) > Device actions > Add | ||
Ligne 102: | Ligne 205: | ||
• choose ' | • choose ' | ||
- | Then save these parameters by clicking on 'Save Parameter Changes' | + | Then save these parameters by clicking on 'Save Parameter Changes' |
- | Below left is a picture of my settings. | + | Configurez une action du Device notifier, qui lancera PCManFM quand votre iDispositif est branché, cela peut être pratique. Mon iPad et deux ou trois autres iDispositifs que j'ai testés sont détectés en tant qu' |
+ | |||
+ | Device notifier settings (faites un clic droit sur l' | ||
+ | |||
+ | Puis remplissez la boîte de dialogue qui s' | ||
+ | * icon : cliquez dessus pour choisir une icône qui vous plaît (j'ai choisi l' | ||
+ | * title : c'est l' | ||
+ | * champ Command : tapez pcmanfm-qt ; | ||
+ | * champ Parameter Type : sélectionnez « Property Match » ; | ||
+ | * champ Device Type : choisissez « Camera » ; | ||
+ | * champ Value Name : choisissez « Supported Drivers » ; | ||
+ | * sélectionnez « Equals » dans la liste du dernier choix et tapez « gphoto » dans le champ à côté. | ||
+ | |||
+ | Enfin, sauvegardez ces paramètres en cliquant sur « Save Parameter Changes », puis sur OK deux fois. | ||
+ | |||
+ | ===== 8 ===== | ||
+ | |||
+ | **Below left is a picture of my settings. | ||
If you did everything right, when you plug in your iDevice, a new action will be available in the list presented by the device notifier; when you the click on it, PCManFM is launched. | If you did everything right, when you plug in your iDevice, a new action will be available in the list presented by the device notifier; when you the click on it, PCManFM is launched. | ||
Ligne 114: | Ligne 234: | ||
Below right is a picture of PCManFM and my iPad apps directories - my iPad's name is iPadGT, so I have iPadGT and “Documents on iPadGT” in the devices list. | Below right is a picture of PCManFM and my iPad apps directories - my iPad's name is iPadGT, so I have iPadGT and “Documents on iPadGT” in the devices list. | ||
- | I'm using this last method, and I'm quite satisfied with its behavior, even if an error message pops up occasionally while I'm unmounting the iPad device, since this does not affect the unmount operation. | + | I'm using this last method, and I'm quite satisfied with its behavior, even if an error message pops up occasionally while I'm unmounting the iPad device, since this does not affect the unmount operation.** |
+ | |||
+ | En bas à gauche vous pouvez voir ma configuration. | ||
+ | |||
+ | Si vous avez tout fait comme il fallait, quand vous branchez votre iDispositif, | ||
+ | |||
+ | Dans la liste, sur le côté gauche de PCManFM, sous Devices, vous verrez deux entrées comme « iPad » et « Documents on iPad ». C'est ce dernier qui nous permet d' | ||
+ | |||
+ | Une fois la gestion des fichiers de l' | ||
+ | |||
+ | En bas à droite, vous pouvez voir PCManFM et les répertoires des applis sur mon iPad. Le nom de mon iPad est iPadGT et iPadGT et « Documents on iPadGT » figurent comme il se doit dans la liste des dispositifs. | ||
+ | |||
+ | J' |
issue82/comment_connecter_un_dispositif_ios.1402237346.txt.gz · Dernière modification : 2014/06/08 16:22 de auntiee