diff --git a/HES-SO/OneDrive.md b/HES-SO/OneDrive.md index e971bf2..1740e56 100644 --- a/HES-SO/OneDrive.md +++ b/HES-SO/OneDrive.md @@ -92,4 +92,4 @@ sudo rm /etc/systemd/user/default.target.wants/onedrive.service ``` bash sh -c "onedrive --monitor" ``` - + diff --git a/HES-SO/README.md b/HES-SO/README.md index 0ca445b..fea1d83 100644 --- a/HES-SO/README.md +++ b/HES-SO/README.md @@ -2,4 +2,5 @@ Working environment at HES-SO -- [OneDrive - Linux](HES-SO/OneDrive.md) \ No newline at end of file +- [OneDrive - Linux](HES-SO/OneDrive.md) +- [Teams](HES-SO/Teams.md) \ No newline at end of file diff --git a/HES-SO/Teams.md b/HES-SO/Teams.md new file mode 100644 index 0000000..a5ce441 --- /dev/null +++ b/HES-SO/Teams.md @@ -0,0 +1,79 @@ +

+Teams - Linux +

+ +It's possible to have Microsoft Teams on Linux and to mount teams folder. + +---------- + +# Install Microsoft Teams on Linux + +
+Install Snap + +``` bash +sudo apt update +sudo apt install snapd +``` +
+ +``` bash +sudo snap install teams-for-linux +``` + +# Mount Teams folder +The various software for backing up One Drive require a "Drive ID" for copying documents. +For the personal drive of the account this is done automatically but when you want the ID of a Teams group, +you need the address of the Sharepoint drive. Here's how to get it. + +## Find drive ID + +1. Open the [Microsoft Graph](https://developer.microsoft.com/en-us/graph/graph-explorer) site and go to Graph Explorer +2. Sign in with your Microsoft account and make sure the tenant is HESSO +3. Insert the command: `https://graph.microsoft.com/v1.0/sites?search={Name_of_your_team}` then execute it. The text to the right of the symbol = acts as a search engine. + Here we want all sites related to FS.
+ ![microsoft_graph-search_bar.png](medias/microsoft_graph-search_bar.png)
+ ![microsoft_graph-result_research.png](medias/microsoft_graph-result_research.png) +4. Retrieve the site identification (id). + We also check that the site name is correct, here the first one is "ProjetFS" which is indeed the name of the Sharepoint.
+ Here the site id is: "hessoit.sharepoint.com,65c4ef54-f1dd-40f2-af2d-6831f7157a0c,9f964f78-7045-481f-8f08-bb22d56de14e" +5. Now taper the command: `https://graph.microsoft.com/v1.0/sites/{site-id}/drive` by replacing `{site-id}` with the result obtained previously.
+ ![microsoft_graph-search_site_id.png](medias/microsoft_graph-search_site_id.png)
+ ![microsoft_graph-result_id.png](medias/microsoft_graph-result_id.png) +6. Retrieve the drive identification (id).
+ Here the drive id is: "b!VO_EZd3x8kCvLWgx9xV6DHhPlp9FcB9Ijwi7ItVt4U66KjVZebmAQZO2GymljnCS" + +## Mount Teams folder with rClone + +
+Install rClone + +``` bash +sudo apt update +sudo apt install rclone +``` +
+ +1. Configure rClone: + ``` bash + rclone config + ``` +2. Follow the instructions to configure rClone + 1. It's a "OneDrive" configuration + 2. Leve blank the "client_id" and "client_secret" + 3. It's on Microsoft Cloud Global + 4. Choose "Type in driveID" +3. Create a directory to mount the Teams: + ``` bash + mkdir ~/Teams/{Team_name} + ``` +4. Mount Teams folder: + ``` bash + rclone --vfs-cache-mode writes mount {team_name}: ~/Teams/{Team_name} + ``` +5. Automount Teams folder on Startup
+6. On `Startup Applications` add a new entry with the following command: + ``` bash + sh -c "rclone --vfs-cache-mode writes mount {team_name}: ~/Teams/{Team_name}" + ``` + diff --git a/HES-SO/medias/microsoft_graph-result_id.png b/HES-SO/medias/microsoft_graph-result_id.png new file mode 100644 index 0000000..a149eb9 Binary files /dev/null and b/HES-SO/medias/microsoft_graph-result_id.png differ diff --git a/HES-SO/medias/microsoft_graph-result_research.png b/HES-SO/medias/microsoft_graph-result_research.png new file mode 100644 index 0000000..bbfa549 Binary files /dev/null and b/HES-SO/medias/microsoft_graph-result_research.png differ diff --git a/HES-SO/medias/microsoft_graph-search_bar.png b/HES-SO/medias/microsoft_graph-search_bar.png new file mode 100644 index 0000000..77b41d7 Binary files /dev/null and b/HES-SO/medias/microsoft_graph-search_bar.png differ diff --git a/HES-SO/medias/microsoft_graph-search_site_id.png b/HES-SO/medias/microsoft_graph-search_site_id.png new file mode 100644 index 0000000..958e896 Binary files /dev/null and b/HES-SO/medias/microsoft_graph-search_site_id.png differ diff --git a/README.md b/README.md index f982f64..0127e9f 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,4 @@ Here some note specific about some Embedded System Here some note about the working environment at HES-SO - [OneDrive - Linux](/HES-SO/OneDrive.md) +- [Teams - Linux](/HES-SO/Teams.md) diff --git a/_navbar.md b/_navbar.md index 1545383..3e4db9e 100644 --- a/_navbar.md +++ b/_navbar.md @@ -8,3 +8,4 @@ * [nRF](/Embed/nRF/) * [HES-SO](/HES-SO/) * [OneDrive - Linux](/HES-SO/OneDrive.md) + * [Teams - Linux](/HES-SO/Teams.md)