introduction
onedriver is a native Linux filesystem for Microsoft OneDrive.
onedriver is a network filesystem that gives your computer direct access to your files on Microsoft OneDrive. To your computer, there is no difference between using files on OneDrive and files on your local hard disk. onedriver isn’t a sync client, but it comes with all of the best features of one.
onedriver is extremely straightforwards to use:
- Install onedriver using your favorite installation method.
- Add one or more OneDrive accounts and select a mountpoint using the GUI (or via the command-line, I don’t discriminate!).
- Just start using your files on OneDrive as if they were normal files.
Ubuntu/Pop!_OS/Debian users can install onedriver from this PPA. Like the COPR install, this will enable you to install onedriver through your package manager and install updates as they become available.
Installation jstaf/onedriver
sudo add-apt-repository ppa:jstaf/onedriver
sudo apt update
sudo apt install onedriver
create the mountpoint and determine the service name
mkdir OneDrive_hpu
export SERVICE_NAME=$(systemd-escape --template onedriver@.service --path ~/OneDrive_hpu)
mount onedrive
liupei@t:~systemctl --user daemon-reload
liupei@t:~ systemctl --user start $SERVICE_NAME
login your account here
# automatically mount onedrive when you login
systemctl --user enable $SERVICE_NAME
# check onedriver’s logs for the current day
journalctl --user -u $SERVICE_NAME --since today
usage
onedriver-loader, then select a folder
Ref. jstaf
Installation yann1ck/onedrive
Step 1: Update /etc/apt/sources.list
Add the following to the end of your /etc/apt/sources.list
file:
deb https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/ ./
Step 2: Download and add the release key
Download the ‘Release.key’ file:
wget https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/Release.key
Add the ‘Release.key’ file to your apt key repository:
apt-key add ./Release.key
Step 3: Update your apt package cache
sudo apt update
Step 4: Install ‘onedrive’
sudo apt install onedrive
Step 5: config
liupei@hpc:~$ onedrive
Configuring Global Azure AD Endpoints
Authorize this app visiting:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d50ca740-c83f-4d1b-12c519384f0c&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.Read.All%20Sites.ReadWrite.All%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
Enter the response uri:
拷贝到浏览器,然后把返回输入到 uri中
liupei@hpc:~$ onedrive
Configuring Global Azure AD Endpoints
Authorize this app visiting:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d50ca740-c83f-4d1b-12c519384f0c&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.Read.All%20Sites.ReadWrite.All%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
Enter the response uri: https://login.microsoftonline.com/common/oauth2/nativeclient?code=M.R3_BAY.8cfc2048-46f0-102f-3d30-351d99c4f5
Application has been successfully authorised, however no additional command switches were provided.
Please use --help for further assistance in regards to running this application.
step6 usage:
onedrive
onedrive --synchronize
onedrive --help
onedrive --logout
onedrive --monitor
参考 [1], [[2](https://itslinuxfoss.com/how-to-install-and-use-onedrive-on-ubuntu-20-04/#:~:text=Installing and Using OneDrive on Ubuntu 20.04 1,6 Run the OneDrive application. More items… )]
onedriver for business
microsoft team