Yandex.Disk as a file system


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

    One of the advantages for me personally, Linuxoid - you do not need to install additional applications, as is the case with DropBox. The service can be connected through the Nautilus file manager using WebDAV. Which I, in fact, immediately did.

    However, I did not limit myself to this, because gua access is not entirely good, no one canceled the consoles.


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

    Install the davfs2 package :

    # apt-get install davfs2
    


    Create a mount point:

    # mkdir /mnt/yandex.disk
    


    We mount our disk by entering the login and password from our mail on Ya.ru ( use https, Luke !):

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


    Make sure that everything is in order:
    # 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 gigabytes is always good for any backups or quick file sharing, especially if it is a server.

    A simple script for automatic mounting (thanks to 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
    

    Also popular now: