onedrive ubuntu Installation and Setup Guide

Author

Reads 379

Side view of contemplating female assistant in casual style standing near shelves and choosing file with documents
Credit: pexels.com, Side view of contemplating female assistant in casual style standing near shelves and choosing file with documents

Installing OneDrive on Ubuntu can be a bit tricky, but don't worry, I've got you covered. First, you'll need to install the Microsoft OneDrive package using the command `sudo apt-get install onedrive`.

To set up OneDrive on Ubuntu, you'll need to create a Microsoft account or sign in with an existing one. This will allow you to access your OneDrive files and sync them across all your devices.

The OneDrive client will automatically detect your Microsoft account and sync your files. You can also configure OneDrive to sync specific folders or files to your Ubuntu system.

OneDrive is a great way to access your files from anywhere, and setting it up on Ubuntu is a straightforward process.

Curious to learn more? Check out: Chromebook Onedrive

Installation

To install OneDrive on Ubuntu, you can start by opening a terminal. You can do this by pressing Ctrl+Alt+T on your keyboard.

You can install the OneDrive client from the system repository. For Ubuntu users, simply run the command to install it. However, the package in the Ubuntu repository is old, so you may want to consider installing from a third-party repository instead.

If this caught your attention, see: Nextcloud Ubuntu Installation

Credit: youtube.com, How to Install and Use OneDrive on Ubuntu 22.04

To install from a third-party repository, click the link to the OBS repository and follow the instructions to download the .deb package for your system. If you're not sure which Ubuntu version you're running, you can open a terminal and run the cat /etc/os-release and dpkg --print-architecture commands to find out.

Alternatively, you can install the OneDrive client from source, which is available on the OneDrive Client for Linux's GitHub page. This method may require more technical expertise, but it can be a good option if you need the latest version of the client.

Here are the steps to install OneDrive on various Linux distributions:

  • Debian, Deepin, Elementary OS, Kali Linux, Lubuntu, Linux Mint, Pop!_OS, Peppermint OS, Raspberry Pi OS, Ubuntu, Kubuntu, Xubuntu, Ubuntu Mate, and Zorin OS can install OneDrive using the OpenSuSE Build Service Packages.
  • Manjaro users can install onedriver from the Arch User Repository (AUR) using a tool like yay.
  • Fedora users can install onedriver from the Cool Other Package Repo (COPR).

Remember to update your system before installing OneDrive, and be aware that distribution-provided packages may be outdated and contain bugs.

Configuration

If you're not satisfied with the default sync options, you can run a command to copy an example config file to a local folder.

For Ubuntu 23.10+, use gnome-text-editor instead of gedit, and for non-GNOME Desktop, use your text editor or nano command line editor.

Here's an interesting read: Google Drive File Editor

Credit: youtube.com, "How To Use Microsoft OneDrive With Ubuntu Linux – Step By Step Guide"

To configure OneDrive, you need to create a mount point to mount your OneDrive storage on. Simply create a directory, such as "onedrive" in your home directory.

You can also tweak the Ubuntu Dock settings to hide unmounted drives or remote mounts. Alternatively, use the toggle switch in your Microsoft 365 account panel to disable/enable OneDrive access as needed.

To enable any option and change its value, simply remove the # at the beginning of the line and save the file.

You can configure onedriver by creating a mount point, entering your OneDrive account credentials, and selecting the mount point you wish to use.

Here are the steps to configure onedriver:

  • Create a mount point, such as "onedrive" in your home directory.
  • Enter your OneDrive account ID and password.
  • Select the mount point you wish to use.

To apply changes to the OneDrive client, you need to restart the service by running the command "systemctl restart --user onedrive".

Troubleshooting

If you're experiencing issues with OneDrive on Ubuntu, start by checking your internet connection and ensuring you have a stable network.

Credit: youtube.com, The Problem With OneDrive Backup

First, verify that you've installed the OneDrive client correctly, as described in the "Installation" section. Make sure you've followed all the steps and haven't missed any crucial details.

Check your username and password for the OneDrive account, as incorrect credentials can cause problems. If you're still having issues, try resetting your password.

OneDrive's sync process can sometimes get stuck, causing files to fail to sync. To resolve this, stop the OneDrive service, delete the cache folder, and restart the service.

See what others are reading: Google Storage Transfer Service

Microsoft OneDrive

Microsoft OneDrive is a cloud storage service that comes in several flavors, including a free-to-use version for home and personal use which gives you 5GB of cloud storage.

You can buy more storage if you need to, and OneDrive for Business can be purchased as a subscription or is included in other subscriptions such as the Microsoft 365 range of services.

The onedriver application provides easy access to your Microsoft OneDrive cloud storage, making it appear in the locations sidebar of the file browser and as a regular directory in the terminal window.

A unique perspective: Microsoft 365 vs Onedrive

Credit: youtube.com, Use OneDrive On Linux: The EASY Way

Onedriver isn't a file sync tool, but rather a way to access your OneDrive files directly, allowing you to create a file locally and have it appear in your OneDrive, or take a photo with OneDrive on your smartphone and have it be accessible on your Linux machine.

Files are only downloaded when you access them, and changes you make to existing files or new files you create are reflected in your OneDrive.

However, if the same file has been modified on your local computer and in OneDrive, the next time you use that file locally the modified copy from OneDrive will not be downloaded to prevent local changes from being lost.

Syncing Files

Syncing files between your local folder and OneDrive cloud is a straightforward process. You can run the client in terminal by typing `onedrive --synchronize` to test the configuration.

This command will create a OneDrive folder in your user home directory for syncing files, but it won't download, upload, or remove any files. It's a great way to get started with syncing your files.

A unique perspective: Dropbox Local Folder

Credit: youtube.com, The EASY Way to Sync Files To The Cloud - OneDrive Tips!

If you want to upload local files first and then download from the cloud, you can use the `onedrive --synchronize --local-first` command. This will sync your local files with the cloud, and then download any changes from the cloud to your local machine.

You can also sync only a single folder, like the "Pictures" sub-folder under OneDrive directory, by running the command `onedrive --synchronize --path /path/to/Pictures`. This is handy if you only want to sync specific files or folders.

If you want to download only the differences from the cloud to your local machine, you can use the `--download-only` command option. This will save you time and bandwidth by only downloading the changes.

One thing to keep in mind is that if you manually delete a file that's previously synced, it won't be removed from the cloud. If you want to avoid this, you can use the `--no-remote-delete` command option.

To sync files automatically, you can start OneDrive as a systemd service. This will run the client in the background and sync your files automatically.

Setup and Management

Credit: youtube.com, OneDrive on Ubuntu? What?

The OneDrive Client for Linux is a fully-fledged client that's available from GitHub and can be installed on most Linux distributions.

To install it on Ubuntu 22.04 LTS, you'll need to use the OpenSuSE Build Service Repository, starting by adding the release key. This is a straightforward process that can be completed in just a few minutes.

Among the features of OneDrive Client for Linux are state caching, real-time file monitoring and syncing, file upload and download validation, traffic rate limiting, and resumable uploads.

Why Do You Need?

You may have history with OneDrive, making it crucial to access your data.

OneDrive on Linux is a straightforward way to sync your data, especially if you've been using it for years like the author. You can access your 50GB of storage that you don't want to lose, including photos of your children snapped on Windows Phone devices.

You can't rely solely on the "free" storage option, which is just 5GB. This means you need to sync your data to ensure you don't lose it.

Syncing your data is a priority if you've paid a monthly subscription for Office 365, like the author did for years.

Choose the Best Option

Credit: youtube.com, Best Practice Series: Configuration Management

If you need OneDrive access on Linux, you need to use OneDrive Client for Linux. This is the best option available, as it's a fully-fledged client that's at least as good as the one on Android.

The OneDrive Client for Linux has a range of features, including state caching, real-time file monitoring and syncing, file upload and download validation, traffic rate limiting, and resumable uploads. These features make it a reliable and efficient tool for syncing files across different platforms.

OneDrive Client for Linux supports free OneDrive, subscriber OneDrive, OneDrive for Business, national cloud deployments, and other Office 365 variants, SharePoint, and Office 365 libraries, and shared folders. This makes it a versatile option for various use cases.

Installing the OneDrive Client for Linux on Ubuntu 22.04 LTS requires adding the OpenSuSE Build Service Repository. This is a straightforward process that can be completed in just a few minutes.

On a similar theme: How Do You Use Onedrive

Authorize with Account

To authorize with your OneDrive account, you need to open terminal and run the command: onedrive-client --authorize. This will output a link url that you should copy and open in your web browser.

A Woman in Green Hoodie Sitting Near the Table while Having Conversation Through Her Desktop
Credit: pexels.com, A Woman in Green Hoodie Sitting Near the Table while Having Conversation Through Her Desktop

In the web page, click the "Accept" button to grant permissions to access your OneDrive account. If done successfully, the terminal will output a message saying 'Application has been successfully authorized'.

You'll need to authorize the app with your OneDrive account before you can upload or download files. This is a one-time process that allows the app to access your account.

After authorizing, you'll be able to use the OneDrive Client for Linux to sync your files, with features like state caching, real-time file monitoring and syncing, and file upload and download validation.

Frequently Asked Questions

What is the best OneDrive client for Ubuntu?

For Ubuntu users, ExpanDrive is a top choice as a powerful OneDrive client, offering seamless two-way sync and secure connection to OneDrive, OneDrive for Business, and SharePoint. It's a reliable option for those seeking a robust cloud storage solution.

What is the best OneDrive client for Linux?

For a seamless OneDrive experience on Linux, ExpanDrive is a top choice, offering two-way sync and secure connections to OneDrive, OneDrive for Business, and SharePoint. It supports a wide range of Linux distributions, making it a versatile solution for users.

Oscar Hettinger

Writer

Oscar Hettinger is a skilled writer with a passion for crafting informative and engaging content. With a keen eye for detail, he has established himself as a go-to expert in the tech industry, covering topics such as cloud storage and productivity tools. His work has been featured in various online publications, where he has shared his insights on Google Drive subtitle management and other related topics.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.