OneDrive on Fedora

Hello beautiful people,

I have tried using Copr Onedrive and Rclone to be able to use OneDrive.
My question is there an easier way to do it. I would like to have a GUI that sync even do I have 2FA activated and that I can use SharePoint without implementation issues.

What I am looking for is someones experience on the matter so that would simplify my daily workflow.

The following seems to have worked for me when I tried it just now:

$ sudo dnf install -y onedrive
$ curl -L https://github.com/bpozdena/OneDriveGUI/releases/download/v1.1.1a/OneDriveGUI-1.1.1-x86_64.AppImage | sudo dd of=/opt/OneDriveGUI status=none
$ sudo chmod +x /opt/OneDriveGUI
$ cat <<- END > ~/.local/share/applications/onedrivegui.desktop
[Desktop Entry]
Name=OneDriveGUI
Exec=/opt/OneDriveGUI
Icon=folder-onedrive
Terminal=false
Type=Application
END
$ update-desktop-database ~/.local/share/applications

You should end up with a OneDriveGUI icon in your applications menu. Check the box to create a new profile and then follow the prompts to set up the authentication. At one point, it seems like you get a blank page after signing in, but that is normal. You are expected to copy the URL from the address bar and paste it back into the OneDriveGUI app and then click Login.

Your files will show up under ~/OneDrive_<something> after it is done synchronizing.

1 Like

I owe you a beer, thank you.

Now, I just don’t understand something. I can only see My files and I can’t see SharePoint which I need for work.

Sorry, I’m not really a SharePoint user. I have an account that I never use (but it has 2FA, so I was able to use it to test and confirm the onedrive app worked with 2FA auth).

The other way I know of to access that content is via the office365.com web portal. Does the web portal not give you access to what you need?

Once you are signed in, click the grid icon in the upper-left, then the “SharePoint” icon, then click the gear icon in the upper-right, and finally the “Site contents” link. (At least that seems to get me to most of the content as of April 2025. MS seems to completely revamp their websites every year or so, so I don’t expect this info will age well. :slightly_smiling_face:)

Please read the client documentation on how to configure SharePoint access.

2 Likes

:stop_sign: Caution

Several users have reported files being overwritten causing data loss as a result of using this client with SharePoint Libraries when running as a systemd service.

When this has been investigated, the following has been noted as potential root causes:

  • File indexing application such as Baloo File Indexer or Tracker3 constantly indexing your OneDrive data

…

Tracker is evil. Can we get that program removed from Fedora Linux?

4 Likes

What I want is the be able to copy the path where the document is.
And example would be OneDrive/My files/Folder1/File1

I’m not sure I understand the question.

If you want a list of the files and their paths, you could use the find command.

For example:

$ find OneDrive
OneDrive
OneDrive/My files
OneDrive/My files/Folder1
OneDrive/My files/Folder1/File1
OneDrive/My files/Folder2

Then, you should be able to highlight the path you want to copy and press Ctrl+Shift+C to copy the highlighted text to your clipboard.

If you want to limit what the find command lists, you can add a filter such as -name 'File1' (you can use wildcards when matching file names).

$ find OneDrive -name 'File1'
OneDrive/My files/Folder1/File1
1 Like

I thought openSUSE TW figured out how to remove it :stuck_out_tongue: (no tracker3 binary or obvious Tracker3 package), but looks like upstream renamed it to localsearch and tinysparql: re-disable tracker/miner in 2024 (rebranded as localsearch/tinysparql) / Newbie Corner / Arch Linux Forums

There’s a new command for reset:

localsearch reset --filesystem
1 Like