7,540
edits
Changes
→Microsoft MS teams
$ loginctl show-session 2 -p Type
Type=x11
</pre>
<br>
<br>
=Microsoft OneDrive=
https://www.linuxuprising.com/2020/02/how-to-keep-onedrive-in-sync-with.html
rpm letöltése innen: https://koji.fedoraproject.org/koji/packageinfo?packageID=26044
Majd válasszuk ki a megfelelő Fedora verziót, majd utána az x86_64 architektúrát.
:[[File:ClipCapIt-230522-204629.PNG]]
Telepítsük:
<pre>
# dnf install onedrive-2.4.13-4.fc36.x86_64.rpm
</pre>
Majd be kell jelentkezni:
<pre>
$ onedrive
Configuring Global Azure AD Endpoints
Authorize this app visiting:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d50ca740-c83f-4d1b-b616-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:
</pre>
Meg kell nyitni a böngészőben a command line-ban lévő URL-t majd ott jelentkezzünk be a microsoft account-ba. Ezután a böngésző egy üres oldalra navigál. Másoljuk ki ezt az URL-t és másoljuk be a command line-ba:
<pre>
....
Enter the response uri: https://login.microsoftonline.com/common/oauth2/nativeclient?code=0XXXXqiEi9B0XXXXXBhHAnOyXA-hoPyvu-ufAUkFYXXXXnO5XXXXXTEWxRfn44F1h6ibreL37mIo5plF4lZXXXXHEJBH8MODXBBe&session_state=edXXXX1f150d
Application has been successfully authorised, however no additional command switches were provided.
Please use --help for further assistance in regards to running this application.
</pre>
Próbáljuk ki, hogy tudna e syncronizálni (nem fog semmit csinálni, dry run)
<pre>
$ onedrive --synchronize --verbose --dry-run
Using 'user' Config Dir: /home/adam/.config/onedrive
Using 'system' Config Dir: /etc/onedrive
....
Downloading file Microsoft Teams Chat Files/Screenshot from 2020-03-17 15-22-08.png ... done.
Downloading file Microsoft Teams Chat Files/memory-usage-dev.ods
...
</pre>
Ha itt kiírja a fájlok nevét ami a oneDrive-ban van, akkor jó lesz.
<pre>
[adam@localhost ~]$ systemctl --user enable onedrive
Created symlink /home/adam/.config/systemd/user/default.target.wants/onedrive.service → /usr/lib/systemd/user/onedrive.service.
[adam@localhost ~]$ systemctl --user start onedrive
[adam@localhost ~]$ systemctl --user stop onedrive
</pre>
<br>