80 lines
2.7 KiB
Markdown
80 lines
2.7 KiB
Markdown
<header><h1>
|
|
Teams - Linux
|
|
</h1></header>
|
|
|
|
It's possible to have Microsoft Teams on Linux and to mount teams folder.
|
|
|
|
----------
|
|
|
|
# Install Microsoft Teams on Linux
|
|
|
|
<details>
|
|
<summary>Install Snap</summary>
|
|
|
|
``` bash
|
|
sudo apt update
|
|
sudo apt install snapd
|
|
```
|
|
</details>
|
|
|
|
``` 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. <br>
|
|
 <br>
|
|

|
|
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. <br>
|
|
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. <br>
|
|
 <br>
|
|

|
|
6. Retrieve the drive identification (id). <BR>
|
|
Here the drive id is: "b!VO_EZd3x8kCvLWgx9xV6DHhPlp9FcB9Ijwi7ItVt4U66KjVZebmAQZO2GymljnCS"
|
|
|
|
## Mount Teams folder with rClone
|
|
|
|
<details>
|
|
<summary>Install rClone</summary>
|
|
|
|
``` bash
|
|
sudo apt update
|
|
sudo apt install rclone
|
|
```
|
|
</details>
|
|
|
|
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 <br>
|
|
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}"
|
|
```
|
|
|