Outils pour utilisateurs

Outils du site


issue221:passer_a_linux

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
issue221:passer_a_linux [2025/09/28 14:03] d52frissue221:passer_a_linux [2025/09/29 19:07] (Version actuelle) andre_domenech
Ligne 4: Ligne 4:
  
 Using OneDrive in Linux is further complicated by the fact that Microsoft, in its undoubted wisdom, does not offer a Linux client for OneDrive. Nevertheless, the Linux development community has come to the rescue with not one, but two related applications that make using OneDrive in Linux a breeze, or at least a moderate gale!** Using OneDrive in Linux is further complicated by the fact that Microsoft, in its undoubted wisdom, does not offer a Linux client for OneDrive. Nevertheless, the Linux development community has come to the rescue with not one, but two related applications that make using OneDrive in Linux a breeze, or at least a moderate gale!**
 +
 +Dans la partie 7 de cette série, nous avons étudié l'exécution de programmes Windows sous Linux avec Wine ou Play on Linux. L'exemple principal était l'installation de ma copie d'Office 2010, classée Platinium dans la base de données Wine AppDB. Dans cette même base de données, Office 2016 est classé Gold et donc parfaitement utilisable. Cependant, Office 365, la version actuelle de la suite bureautique de Microsoft, est répertorié comme « Garbage » (déchet), ce qui signifie qu'elle ne peut pas être installée et exécutée sous Linux. Mais qu'en est-il des applications Web ? Par exemple, peut-on exécuter Word 365 en tant qu'application Web dans un navigateur Linux ? Découvrons-le...
 +
 +L'un des principaux problèmes que je rencontre avec Microsoft 365 est qu'il ne me permet pas d'ouvrir, de modifier et d'enregistrer les fichiers stockés dans mon dossier préféré sur mon disque dur local. Autrement dit, il n'offre pas les options habituelles « Fichier-Ouvrir » et « Fichier-Enregistrer ». Au contraire, il insiste pour que les fichiers soient accessibles depuis Microsoft OneDrive. Il est possible de téléverser un fichier depuis un disque local, de le modifier dans Word 365, puis de le télécharger sur le stockage local, mais cette procédure est très fastidieuse.
 +
 +L'utilisation de OneDrive sous Linux est d'autant plus compliquée que Microsoft, dans sa grande sagesse, ne propose pas de client Linux pour OneDrive. Néanmoins, la communauté des développeurs Linux est venue à la rescousse avec non pas une, mais deux applications connexes qui simplifient l'utilisation de OneDrive sous Linux, ou du moins la rendent plus simple.
 +
  
 **OneDrive Client for Linux is described by its developer as a free Microsoft OneDrive Client that seamlessly supports OneDrive Personal, OneDrive for Business, OneDrive for Office365, and SharePoint Libraries. It is compatible with all major Linux distributions and offers both one-way and two-way synchronization capabilities. The companion application is OneDriveGUI which, as the name suggests, provides a graphical user interface for the OneDrive client. **OneDrive Client for Linux is described by its developer as a free Microsoft OneDrive Client that seamlessly supports OneDrive Personal, OneDrive for Business, OneDrive for Office365, and SharePoint Libraries. It is compatible with all major Linux distributions and offers both one-way and two-way synchronization capabilities. The companion application is OneDriveGUI which, as the name suggests, provides a graphical user interface for the OneDrive client.
Ligne 10: Ligne 17:
  
 In a perfect world the easiest option is to use the Software Manager. Simply search for onedrive and install the package. Check that onedrive has been installed correctly by opening a Terminal window and typing onedrive --version. Currently, this command will return onedrive v2.5.5-1+np1+1.1.** In a perfect world the easiest option is to use the Software Manager. Simply search for onedrive and install the package. Check that onedrive has been installed correctly by opening a Terminal window and typing onedrive --version. Currently, this command will return onedrive v2.5.5-1+np1+1.1.**
 +
 +Le client OneDrive pour Linux est décrit par son développeur comme un client Microsoft OneDrive gratuit prenant en charge OneDrive Personnel, OneDrive Entreprise, OneDrive pour Office 365 et les bibliothèques SharePoint. Il est compatible avec les principales distributions Linux et offre des fonctionnalités de synchronisation unidirectionnelle et bidirectionnelle. L'application associée, OneDriveGUI, fournit, comme son nom l'indique, une interface utilisateur graphique pour le client OneDrive.
 +
 +La bonne nouvelle est que Linux Mint inclut le client OneDrive pour Linux dans ses dépôts, ce qui permet de l'installer directement dans le Gestionnaire de logiciels. Cependant, vérifiez la version disponible pour vous assurer qu'elle est prise en charge par la version actuelle de OneDriveGUI. Si la version du client OneDrive pour Linux disponible via le Gestionnaire de logiciels est trop ancienne, il sera nécessaire d'installer manuellement le client actuel. Les instructions pour cela sont disponibles sur le site Web d'abraunegg sur GitHub : https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md.
 +
 +Idéalement, l'option la plus simple serait d'utiliser le Gestionnaire de logiciels. Recherchez simplement OneDrive et installez le paquet. Vérifiez que OneDrive est correctement installé en ouvrant un terminal et en saisissant onedrive --version. Actuellement, cette commande renvoie OneDrive v2.5.5-1+np1+1.1.
 +
  
 **To run OneDrive manually and authorize access to Microsoft’s OneDrive server, type onedrive in the Terminal window. The response is shown in Figure 1. Take careful note of the final set of instructions that (a) provide a URL that is to be entered into a web browser, and (b) indicate Enter the response uri from your browser. **To run OneDrive manually and authorize access to Microsoft’s OneDrive server, type onedrive in the Terminal window. The response is shown in Figure 1. Take careful note of the final set of instructions that (a) provide a URL that is to be entered into a web browser, and (b) indicate Enter the response uri from your browser.
Ligne 16: Ligne 30:
  
 * Take special note of how to cut and paste the response URI as we will need to repeat the process to configure OneDriveGUI** * Take special note of how to cut and paste the response URI as we will need to repeat the process to configure OneDriveGUI**
 +
 +Pour exécuter OneDrive manuellement et autoriser l'accès au serveur OneDrive de Microsoft, saisissez « onedrive » dans la fenêtre du Terminal. La réponse est illustrée dans l'imaage de la page 27. Notez attentivement les instructions finales : (a) une URL à saisir dans un navigateur Web et (b) « Entrez l'URI de réponse depuis votre navigateur ».
 +
 +Bien que les instructions soient correctes, certains utilisateurs (moi !) peuvent trouver leur mise en œuvre confuse. L'URL en surbrillance ouvre la page Web du service de connexion à OneDrive de Microsoft. Il est alors évident qu'il est nécessaire de se connecter et de saisir les identifiants de connexion (nom d'utilisateur et mot de passe). Cependant, une fois cette étape effectuée, le résultat apparaît à première vue comme une page blanche. En réalité, l'URL a changé dans la barre d'adresse. Ce n'est pas évident. Il est toutefois important de noter qu'il s'agit de l'« URI de réponse » à copier-coller de la barre d'adresse du navigateur vers la fenêtre du Terminal*. Une fois l'URL collée acceptée, la fenêtre du Terminal indique que l'application a été autorisée.
 +
 +* Notez bien comment copier-coller l'URI de réponse, car nous devrons répéter la procédure pour configurer l'interface graphique OneDrive.
 +
  
 **Rather than running OneDrive manually from the Terminal, we will use OneDriveGUI to provide a graphical user interface to the actual client. We can download OneDriveGUI as an AppImage, a special type of file that packages the application and any necessary dependencies into a single executable file. At the time of writing, the current version is OneDriveGUI-1.1.1-x86_64.AppImage. **Rather than running OneDrive manually from the Terminal, we will use OneDriveGUI to provide a graphical user interface to the actual client. We can download OneDriveGUI as an AppImage, a special type of file that packages the application and any necessary dependencies into a single executable file. At the time of writing, the current version is OneDriveGUI-1.1.1-x86_64.AppImage.
Ligne 22: Ligne 43:
  
 When OneDriveGUI is first run, a dialogue box indicates that the use of Microsoft’s OneDrive Login Service is once again required to provide access to OneDrive’s server. The process of logging in, obtaining and using the response URI, is exactly the same as described above – complete with the “blank” page, and the required response URI in the address bar!** When OneDriveGUI is first run, a dialogue box indicates that the use of Microsoft’s OneDrive Login Service is once again required to provide access to OneDrive’s server. The process of logging in, obtaining and using the response URI, is exactly the same as described above – complete with the “blank” page, and the required response URI in the address bar!**
 +
 +Plutôt que d'exécuter OneDrive manuellement depuis le Terminal, nous utiliserons OneDriveGUI pour fournir une interface utilisateur graphique au client. Nous pouvons télécharger OneDriveGUI sous forme d'AppImage, un type de fichier spécial qui regroupe l'application et ses dépendances dans un seul fichier exécutable. À l'heure actuelle, la version actuelle est OneDriveGUI-1.1.1-x86_64.AppImage.
 +
 +Une fois ce fichier obtenu et stocké dans le dossier Téléchargements, nous pouvons faire un clic droit dessus, accéder à Propriétés et définir l'autorisation d'exécution (Propriétés > Autorisations > Exécuter) en cochant la case « Autoriser l'exécution du fichier en tant que programme ». Un simple double-clic sur le fichier AppImage lance OneDriveGUI.
 +
 +Lors du premier lancement de OneDriveGUI, une boîte de dialogue indique que l'utilisation du service de connexion OneDrive de Microsoft est à nouveau requise pour accéder au serveur OneDrive. Le processus de connexion, d’obtention et d’utilisation de l’URI de réponse est exactement le même que celui décrit ci-dessus – avec la page « vierge » et l’URI de réponse requise dans la barre d’adresse !
 +
  
 **The initial synchronization process can now be started manually by clicking on the white triangle in the window’s header. This provides a startup wizard that first checks the installed version of OneDrive Client for Linux, and then offers to add a OneDrive profile. Check the box labelled Create new OneDrive profile. In the next dialogue box (Figure 2), specify the name of the new profile (e.g. OneDriveMint), and browse for the folder that is to be used for synchronizing files between the local hard drive (e.g. /media/DataDisk/OneDriveFiles) and Microsoft's OneDrive server. Now, click on Create new profile. **The initial synchronization process can now be started manually by clicking on the white triangle in the window’s header. This provides a startup wizard that first checks the installed version of OneDrive Client for Linux, and then offers to add a OneDrive profile. Check the box labelled Create new OneDrive profile. In the next dialogue box (Figure 2), specify the name of the new profile (e.g. OneDriveMint), and browse for the folder that is to be used for synchronizing files between the local hard drive (e.g. /media/DataDisk/OneDriveFiles) and Microsoft's OneDrive server. Now, click on Create new profile.
  
 One additional change to the configuration may be useful. Click on the person icon in the centre of the bottom edge of the OneDriveGUI window (Figure 3) to load the OneDriveGUI – Profiles window. On the Sync Options tab, check the box labelled Bypass data preservation. This prevents the application creating backups of files that are synchronized between the local hard drive and OneDrive’s server. This is an optional setting and my preference is to maintain a “clean” folder of synchronized files without any additional backups.** One additional change to the configuration may be useful. Click on the person icon in the centre of the bottom edge of the OneDriveGUI window (Figure 3) to load the OneDriveGUI – Profiles window. On the Sync Options tab, check the box labelled Bypass data preservation. This prevents the application creating backups of files that are synchronized between the local hard drive and OneDrive’s server. This is an optional setting and my preference is to maintain a “clean” folder of synchronized files without any additional backups.**
 +
 +Vous pouvez maintenant lancer manuellement le processus de synchronisation initiale en cliquant sur le triangle blanc dans l'en-tête de la fenêtre. Un assistant de démarrage vérifie la version installée du client OneDrive pour Linux, puis propose d'ajouter un profil OneDrive. Cochez la case « Créer un nouveau profil OneDrive ». Dans la boîte de dialogue suivante (figure ci-contre), indiquez le nom du nouveau profil (par exemple, OneDriveMint) et recherchez le dossier à utiliser pour la synchronisation des fichiers entre le disque dur local (par exemple, /media/DataDisk/OneDriveFiles) et le serveur OneDrive de Microsoft. Cliquez ensuite sur « Créer un nouveau profil ».
 +
 +Une modification supplémentaire de la configuration peut être utile. Cliquez sur l'icône représentant une personne au centre du bord inférieur de la fenêtre OneDriveGUI (figure ci-contre) pour ouvrir la fenêtre OneDriveGUI – Profils. Dans l'onglet « Options de synchronisation », cochez la case « Ignorer la conservation des données ». Cela empêche l'application de créer des sauvegardes des fichiers synchronisés entre le disque dur local et le serveur OneDrive. Il s’agit d’un paramètre facultatif et je préfère conserver un dossier « propre » de fichiers synchronisés sans aucune sauvegarde supplémentaire.
 +
  
 **Normally, when OneDriveGUI is started, the application scans the two folders and automatically synchronizes the files present in both. By default, this is a two-way process, with new and modified files being copied between the folders, and files that have been deleted in one folder being removed from the other folder. This behaviour can be customized through an extensive set of options in the profile. If OneDriveGUI is left running, the application continues to monitor the folder pair and will copy or delete files according to the established profile. **Normally, when OneDriveGUI is started, the application scans the two folders and automatically synchronizes the files present in both. By default, this is a two-way process, with new and modified files being copied between the folders, and files that have been deleted in one folder being removed from the other folder. This behaviour can be customized through an extensive set of options in the profile. If OneDriveGUI is left running, the application continues to monitor the folder pair and will copy or delete files according to the established profile.
  
 Microsoft 365 doesn’t make it easy to use local files in apps such as Word, Excel, and PowerPoint, and is even less accommodating for those of us who use Linux. The availability of OneDrive Client for Linux and OneDriveGUI goes a long way to making the process of using the web-based apps from Microsoft’s office suite more efficient and hence much more useful to Linux users. ** Microsoft 365 doesn’t make it easy to use local files in apps such as Word, Excel, and PowerPoint, and is even less accommodating for those of us who use Linux. The availability of OneDrive Client for Linux and OneDriveGUI goes a long way to making the process of using the web-based apps from Microsoft’s office suite more efficient and hence much more useful to Linux users. **
 +
 +Normalement, au démarrage de OneDriveGUI, l'application analyse les deux dossiers et synchronise automatiquement les fichiers qu'ils contiennent. Par défaut, ce processus est bidirectionnel : les fichiers nouveaux et modifiés sont copiés entre les dossiers, et les fichiers supprimés d'un dossier sont supprimés de l'autre. Ce comportement est personnalisable grâce à de nombreuses options disponibles dans le profil. Si OneDriveGUI reste actif, l'application continue de surveiller la paire de dossiers et copie ou supprime les fichiers selon le profil défini.
 +
 +Microsoft 365 ne facilite pas l'utilisation des fichiers locaux dans des applications telles que Word, Excel et PowerPoint, et est encore moins adapté aux utilisateurs de Linux. La disponibilité du client OneDrive pour Linux et de OneDriveGUI contribue grandement à optimiser l'utilisation des applications Web de la suite bureautique de Microsoft et, par conséquent, à la rendre plus utile aux utilisateurs de Linux.
  
  
Ligne 42: Ligne 79:
 Version 1.1.1 Version 1.1.1
 Boris Pozdena Boris Pozdena
-https://github.com/bpozdena/OneDriveGUI*+https://github.com/bpozdena/OneDriveGUI*
 + 
 +Pour finir 
 + 
 +OneDrive Client for Linux (Open Source) 
 +Version 2.5.5 
 +abraunegg, Melbourne, Australia 
 +https://github.com/abraunegg/onedrive 
 + 
 +OneDriveGUI 
 +Version 1.1.1 
 +Boris Pozdena 
 +https://github.com/bpozdena/OneDriveGUI
  
issue221/passer_a_linux.1759061029.txt.gz · Dernière modification : 2025/09/28 14:03 de d52fr