Changes

Jump to: navigation, search

Hasznos parancssori eszkozok

1,617 bytes added, 06:22, 23 May 2023
Microsoft OneDrive
=Microsoft OneDrive=
https://www.linuxuprising.com/2020/02/how{{note|A teljes OneDrive-to-keep-onedrive-in-sync-with.htmlot nem tudta szinkronizálni, de egy beállított mappára működik}}<br>
Forrás: https://www.linuxuprising.com/2020/02/how-to-keep-onedrive-in-sync-with.html
===Telepítés===<br>'''rpm letöltése innen''': https://koji.fedoraproject.org/koji/packageinfo?packageID=26044<br><br>Majd válasszuk ki a megfelelő Fedora verziót, majd utána az x86_64 architektúrát. <br>
:[[File:ClipCapIt-230522-204629.PNG]]
<br><br>
Telepítsük:
<pre>
# dnf install onedrive-2.4.13-4.fc36.x86_64.rpm
</pre>
<br><br>
Majd be kell jelentkezni:
<pre>
</pre>
{{note|Itt azt nem tudom, hogy mennyi ideig él a token és hogy hogyan tudunk róla értesülni ha lejárt}}
<br><br>
 ===Tesztelés===
Próbáljuk ki, hogy tudna e syncronizálni (nem fog semmit csinálni, dry run)
<pre>
</pre>
Ha itt kiírja a fájlok nevét ami a oneDrive-ban van, akkor jó lesz.
<br><br>
===Kiválasztott mappa szinkronizálása===
A teljes OneDrive account-ot nem tudja szinkronizálni, de egy mappára működik. A ~/OneDrive mappa alatt hozzunk létre egy új mappát, aminek a tartalmát szinkronizálni akarjuk.
<pre>
$ mkdir ~/OneDrive/myDir
</pre>
Hozzunk létre itt egy ilyen fájlt, amibe fel lehet sorolni a szinkronizálandó mappákat:
<pre>
echo "myDir" >> ~/.config/onedrive/sync_list
</pre>
 
<br>
===Indítás===
<pre>
$ systemctl --user start onedrive</pre> <br> Tegyünk online is fájlokat a myDir mappába és lokálisan is. Ekkor áthatjuk a logokban hogy szinkronizálja őket: <pre>$ journalctl --user-unit onedrive -f....May 22 23:24:52 localhost.localdomain onedrive[adam@109403]: Uploading new file Project/felhő-gyülés.txt ...May 22 23:24:54 localhost ~.localdomain onedrive[109403]: [470B blob data]May 22 23:24:54 localhost.localdomain onedrive[109403]: done.May 22 23:26:21 localhost.localdomain onedrive[109403]: Uploading new file Project/workspace.code-workspace ...May 22 23:26:23 localhost.localdomain onedrive[109403]: [470B blob data]May 22 23:26:23 localhost.localdomain onedrive[109403]: done.May 22 23:28:23 localhost.localdomain onedrive[109403]: Downloading file Project/Customer.odg ... done.May 22 23:28:26 localhost.localdomain onedrive[109403]: Downloading file Project/Screenshot from 2020-08-10 23-04-12.png ... done.</pre> <br>===Auto start up===<pre>$ 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</pre>    [adam@localhost ~]$ systemctl --user stop onedrive
</pre>
<br>
<br>

Navigation menu