Automatically Mount Cloud Services in Ubuntu 11.10 using OTIXO Cloud Service

Few days ago we showed you how to map your cloud services like SkyDrive, Google Doc, Box, Amazon S3, Dropbox, Picasa, etc. in Ubuntu using OTIXO Cloud Service. What’s missing in our previous tutorials is how to mount these cloud services automatically when you login to Ubuntu.

Mapping these services automatically will allow you access to them everytime you login to Ubuntu. This can be a great way to automatically backup your important data online securely.

To read our previous tutorials, click here.

 

Enhance your coding experience with this split keyboard that offers up to 9" of separation.

  

Objectives:

  • Read our previous tutorial
  • Install and configure davfs2
  • Mount your cloud services automatically
  • Enjoy!

 

To get started,  press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to install davfs2.

sudo apt-get install davfs2

 

auto_mount_otixo_oneiric

 

Next, run the commands below to re-configure davfs2 so that normal users can mount WebDAV services.

sudo dpkg-reconfigure davfs2

 

auto_mount_otixo_oneiric_5

 

Then choose to allow unprivileged users to mount WebDAV.

 

auto_mount_otixo_oneiric_6

 

Next, run the commands below to copy davfs2 files from /etc/ to your home directory.

sudo cp -r /etc/davfs2/ /home/<username>/.davfs2

 

auto_mount_otixo_oneiric_1

 

Then change the permissions on the folder you copied so that you are the owner.

sudo chown -R <username> /home/<username>/.davfs2

 

auto_mount_otixo_oneiric_2

 

Next, run the commands below to open davfs2 secrets file to enter your OTIXO credentials.

gedit ~/.davfs2/secrets

 

auto_mount_otixo_oneiric_3

 

Then enter your OTIXO server address, your username and password and save.

https://dav.otixo.com/ <otixo_username> <otixo_pass>

 

auto_mount_otixo_oneiric_4

 

Next,  run the commands below to edit /etc/fstab file.

sudo gedit /etc/fstab

 

auto_mount_otixo_oneiric_7

 

Then add the line below at the bottom of the file and save.

https://dav.otixo.com/ home/<username>/dav  davfs  _netdev,rw,user 0 0

auto_mount_otixo_oneiric_8

 

Next, add your account to be member of davfs2 group by running the commands below.

sudo usermod -a -G davfs2 <username>

 

auto_mount_otixo_oneiric_9

 

Finally, create the mount point and you’re done.

mkdir ~/dav

 

That’s it. Restart your computer to test it. To access your mounted cloud services, go to dav or what ever you named it in your home folder.

 

Enjoy!

Invest in some screen real estate with a new big screen, backlit monitor availabe in five different sizes and price points.

2 thoughts on “Automatically Mount Cloud Services in Ubuntu 11.10 using OTIXO Cloud Service”

  1. Hi!
    Your website is very well. I have a wheezy in my PC. I followed your tutorial, but in the last step I can’t connected with the server. Do you know how solver this problem?

    Regards!

  2. Doesn’t work properly. When i reboot my pc, the mount point still empty. When i do the command : sudo mount -a > asks my credential! So, no automount. My guess, is that davfs don’t read the “secrets” file. But the permissions is ok: rw for user as own owner.

Leave a Reply

Your email address will not be published. Required fields are marked *