diff --git a/HES-SO/OneDrive.md b/HES-SO/OneDrive.md new file mode 100644 index 0000000..e971bf2 --- /dev/null +++ b/HES-SO/OneDrive.md @@ -0,0 +1,95 @@ +

+OneDrive - Linux +

+ +It's possible to have files from OneDrive on Linux by two ways: + +---------- + +# 1. Using rClone (Mounting) + +1. Update the system: +2. Install rClone: + ``` bash + sudo apt install rclone + ``` +3. Configure rClone: + ``` bash + rclone config + ``` +4. Follow the instructions to configure rClone +5. Create a directory to mount the OneDrive: + ``` bash + mkdir ~/OneDrive + ``` +6. Mount OneDrive folder: + ``` bash + rclone --vfs-cache-mode writes mount [rCloneProfilName]: ~/OneDrive + ``` +7. Automount OneDrive folder on Startup
+ On `Startup Applications` add a new entry with the following command: + ``` bash + sh -c "rclone --vfs-cache-mode writes mount [rCloneProfilName]: ~/OneDrive" + ``` + +---------- + +# 2. Using OneDrive for Linux (Synchronization) +This tutorial work for Ubuntu 22.04 Jammy + +## 2.1 Remove any configured PPA and associated 'onedrive' package and systemd service files + +Remove the PPA repository and the older client, run the following commands: +``` bash +sudo apt remove onedrive +sudo add-apt-repository --remove ppa:yann1ck/onedrive +``` +If no previous installation, the following command will return an error message, which can be ignored. + +Remove the symbolic link to the systemd service file: +``` bash +sudo rm /etc/systemd/user/default.target.wants/onedrive.service +``` + +## 2.2 Ensure the system is up to date and verify you system version + +1. Update the system: +2. Reboot the system: +3. Verify the system version: + ``` bash + lsb_release -a + ``` + The output should be similar to: + ``` bash + remi@marvin:~$ lsb_release -a + No LSB modules are available. + Distributor ID: Ubuntu + Description: Ubuntu 22.04.4 LTS + Release: 22.04 + Codename: jammy + ``` + +## 2.3 Install OneDrive for Linux + +1. Add the OpenSuSE Build Service repository release key: + ``` bash + wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /usr/share/keyrings/obs-onedrive.gpg > /dev/null + ``` +2. Add the OpenSuSE Build Service repository: + ``` bash + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/obs-onedrive.gpg] https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/ ./" | sudo tee /etc/apt/sources.list.d/onedrive.list + ``` +3. Update the package list: + ``` bash + sudo apt update + ``` +4. Install the OneDrive for Linux client: + ``` bash + sudo apt install --no-install-recommends --no-install-suggests onedrive + ``` +5. Autorun OneDrive for linux on Startup
+ On `Startup Applications` add a new entry with the following command: + ``` bash + sh -c "onedrive --monitor" + ``` + diff --git a/HES-SO/README.md b/HES-SO/README.md new file mode 100644 index 0000000..0ca445b --- /dev/null +++ b/HES-SO/README.md @@ -0,0 +1,5 @@ +

+Working environment at HES-SO +

+ +- [OneDrive - Linux](HES-SO/OneDrive.md) \ No newline at end of file diff --git a/README.md b/README.md index b2b352f..27085cd 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,8 @@ Mainly some topics: # [STM32](/STM32/) Here some note specific about STM32 + +# [Working environment at HES-SO](/HES-SO/) +Here some note about the working environment at HES-SO + +- [OneDrive - Linux](/HES-SO/OneDrive.md) diff --git a/_navbar.md b/_navbar.md index 5c92592..d97ee85 100644 --- a/_navbar.md +++ b/_navbar.md @@ -3,4 +3,6 @@ * [SDi - Systèmes Distribués](/infotro/SDi/) * [Eln - Électronique](/infotro/Eln/) * [SEm - Systèmes Embarqués](/infotro/SEm/) -* [STM32](/STM32/) \ No newline at end of file +* [STM32](/STM32/) +* [HES-SO](/HES-SO/) + * [OneDrive - Linux](/HES-SO/OneDrive.md)