📜 ⬆️ ⬇️

Yandex.Disk as a file system


Recently, Yandex announced its new service, similar to DropBox. Many immediately began to water it in a bucket, although, I think, in vain.

One of the advantages for me personally, Linux, is that you do not need to install additional applications, as is the case with DropBox. The service can be connected via the Nautilus file manager using WebDAV. What I actually did immediately.

However, I didn’t limit myself to this, because the access is not very good, nobody has canceled the console.
')

We connect Yandex.Disk as a file system , for example, in Ubuntu.

Install the davfs2 package:

# apt-get install davfs2


:

# mkdir /mnt/yandex.disk


, . (use https, Luke!):

# mount -t davfs https://webdav.yandex.ru /mnt/yandex.disk/


, :
# df -h /mnt/yandex.disk/
Filesystem            Size  Used Avail Use% Mounted on
https://webdav.yandex.ru
                       10G  7.7M   10G   1% /mnt/yandex.disk


10 — , - , , .

( uscr via habrahabr.ru/post/142067/#comment_4752116):
#!/usr/bin/expect
spawn mount.davfs https://webdav.yandex.ru /clouds/yandex.disk/
expect "Username:"
send "USERNAME@yandex.ru\r"
expect "Password:"
send "PASS\r"
expect eof

Source: https://habr.com/ru/post/142067/


All Articles