Installing OneDrive on Bazzite

To install OneDrive on Bazzite (Fedora Atomic), there are multiple ways to do it. The first method is GNOME-specific the steps in their wiki:

  1. From GNOME's Menu, open Settings. Then go to Online Accounts.
  2. Open Microsoft 365 (not Microsoft). 
  3. To setup a custom client ID, you must register a new application with Microsoft and enable the appropriate permissions.
  4. Sign up and/or login to Microsoft Entra (entra.microsoft.com).
  5. In the sidebar select "Identity" -> "Applications" -> "App registrations"
  6. In the tab bar select "New registration"
  7. Choose a name for the application and select "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)". Leave the "Redirect URI" empty and click "Register"
  8. Copy the "Application (client) ID" and then click "Add a Redirect URI"
  9. Select "Add a platform" and then "Mobile and desktop applications"
  10. Under "Custom Redirect URIs" add goa-oauth2://localhost/<client-id>, then click "Configure"
  11. Select "API permissions" in the application sidebar, then "Add a permission" in the tab bar
  12. Select "Microsoft Graph" and "Delegated Permissions", then add the following permissions:

  • offline_access
  • contacts.readwrite
  • files.readwrite
  • files.readwrite.all
  • mail.readwrite
  • sites.read.all
  • sites.readwrite.all
  • user.read

13. Click on "Add permissions" to complete the process


Another way to use OneDrive on KDE or GNOME is using what is called "Layering Packages" with rpm-ostree:

  1. Go to https://copr.fedorainfracloud.org/coprs/jstaf/onedriver/.
  2. Find the .repo file for your release in the table. Click on the button in the Repo Download column. For Fedora 40, will use jstaf-onedriver-fedora-40.repo
  3. sudo mv ~/Downloads/jstaf-onedriver.repo /etc/yum.repos.d/
  4. rpm-ostree update --install onedriver
Warnings:
  1. "Using rpm-ostree irresponsibly can be destructive."
  2. "Layering packages may prevent updates and may cause several issues until the layered packages are uninstalled."
  3. "It is highly advised to not use third-party COPR repos if you can, but if you do realize there are risks associated with it."

Credit goes to d3Xt3r on AnswerOverflow and Pat Connors on Bazzite discourse.

Comments

Popular Posts