Upload
allothers
View
233
Download
3
Embed Size (px)
DESCRIPTION
Automatically Mount Box Cloud Storage in Ubuntu
Citation preview
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 1/13
Tutorials for newbies!
Automatically Mount Box CloudStorage in Ubuntu 12.04 / 11.10
Yesterday we showed you how to manually mount Box Cloud Storage in
Ubuntu 12.04 (Precise Pangolin) and 11.10 (Oneiric Ocelot). Today we’re going
to show you how to automatically mount Box Cloud Storage every time you
login to Ubuntu. When your storage is mounted automatically, you won’t
have to manually mount it every time you wish to access your content from
Box.com. It will be there when you login.
To read our previous tutorial on this, click here.
Objectives:
Automatically mount Box Cloud Storage in Ubuntu 12.04 / 11.10
Enjoy!
To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When
it opens, run the commands below to install davfs2 package.
sudo aptget install davfs2
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 2/13
Next, run the commands below to reconfigure davfs2 so that regular users
can mount storages.
When prompted with the screen below, select Yes.
Next, run the commands below to copy davfs2 folder to your home directory.
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 3/13
sudo cp r /etc/davfs2/ /home/<username>/.davfs2
Then run the commands below to change the permissions so that you’re the
owner.
sudo chown R <username> /home/richard/.davfs2/
Next, run the commands below to edit davfs2 secrets file. This is where your
username and password are kept.
gedit ~/.davfs2/secrets
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 4/13
When the file opens, add the line shown below at the end and save.
https://www.box.com/dav <box_username> <box_password>
After that, run the commands below to open the fstab configuration file.
sudo gedit /etc/fstab
Then add the line shown below at the end and save the file.
https://www.box.com/dav/ /home/<username>/box davfs _netdev,rw,user 0 0
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 5/13
After that, run the commands below to add your account to davfs2 group.
sudo adduser <username> davfs2
Finally, create the mount point in your home directory where box cloud
storage will be mounted.
mkdir ~/box
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 6/13
Restart your computer to test.
Enjoy!
Remember to replace all <username> with your box account username, and
<password> with your box account password.
Email Facebook 2 Twitter Reddit Google Pinterest Print
Related:
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 7/13
Automatically Mount Cloud Services in Ubuntu 11.10 using OTIXO Cloud Service
In "How-To/Tips"
Mount Box Cloud Storage in Ubuntu 12.04 / 11.10
In "How-To/Tips"
Automatically Mount Box.Net Cloud Storage In Ubuntu 12.10 And Backup Your Data
In "How-To/Tips"
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 8/13
16 thoughts on “Automatically Mount Box CloudStorage in Ubuntu 12.04 / 11.10”
maverick
January 31, 2013 at 1:14 PM
hi, i’m an ubuntu 12.10 user
thank you for your tutorial, i appreciate it.
after i following each steps i got some window pop up, said:
unable to mount box
/sbin/mount.davfs:/home/maverick_endit81/.davfs2/davfs2.conf:24: system
option in user configuration file
/sbin/mount.davfs: Mounting failed.
Could not authenticate to server: rejected Basic challenge
could you help me out with this? i’m newbie to linux based environment
maybe if the tutorial couldnt apply to ubuntu 12.10 could you help me to undo
all the procedure?
Anton
Richard W March 30, 2012 How-To/Tips, Internet, Linux Ubuntu 11.10 Oneiric Ocelot,
Ubuntu 12.04 Precise Pangolin
/ / /
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 9/13
February 11, 2013 at 2:45 PM
Thanks! It’s work :)
Antopola
February 22, 2013 at 8:05 AM
Thanks for your information…i will use on xubuntu 12.04.
Daughain
February 25, 2013 at 5:43 AM
Followed instructions, and everything went nice and clean. The problem is,
the dir /box connects to nothing..??COmpletely empty, and has no error
messages.
Ideas?
binu
March 28, 2013 at 7:15 AM
hi,
even though you’re tutorial is extremely clean and very easy to follow I have
error when trying to access it. I also tried a “sudo mount -a” but have the
same message:
“/sbin/mount.davfs: file /etc/davfs2/secrets has wrong permissions”
I verified all steps again and exactly as mentioned.
Does anyone have any clue to help?
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 10/13
binu
March 28, 2013 at 7:40 AM
I solved my problem by changing the /etc/davfs2/secret to 600
NeurOSick
May 5, 2013 at 9:29 AM
Work great on Ubuntu 13.04 but loading “box folder” is very slow, anyidea?
piobaire24
June 23, 2013 at 6:42 AM
I have the same issue with Ubuntu 13.04…very slow
marc
November 26, 2013 at 2:22 PM
Hi Richard your tuto is really helpfull and I used it for mounting box
it comes that box has changed its server for webdav and it is now
https://dav.box.com/dav
as stated on their site : https://support.box.com/hc/en-
us/articles/200519748-Does-Box-support-WebDAV-
So as I have used your tuto it is now my turn to contribute to it
regards
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 11/13
mallik
January 17, 2014 at 1:50 AM
Please note that box.com address is
https://dav.box.com/dav
andrew
February 2, 2014 at 4:42 AM
I’ve tried the process above (substituting the different WebDAV server based
upon the comments) on an Ubuntu server. Now the server is not responding
to login attempts via shell – is it just trying to sync the drive and it just takes
forever, or do i have a bigger problem ? I can ping it, but it doesn’t respond to
SCP…
andrew
February 2, 2014 at 10:37 AM
Furhter to my question above, I tried it again on Amazon AWS just as an
experiment. It doesn’t block the server, but unless I do a “mount ~/box”
after logging in the box folder remains empty and invisible… Does anyone
have any ideas ?
Thanks for the varoius helpful posts, but thos one I’m really struggling to get
it right !
Alex Barchiesi
February 19, 2014 at 8:53 AM
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 12/13
I confirm that it works on ubuntu 12.04 with the https://dav.box.com/dav
https://dav.box.com/dav/ instead of https://www.box.com
https://www.box.com/
thanks
Julián
April 17, 2014 at 7:17 PM
Tanto el montaje manual, como el descrito aquí, no funcionan para las
cuentas gratuitas.
El acceso FTP está restringido para los usuarios de pago.
Si se configura el sistema Ubuntu, teniendo una cuenta gratuita en BOX, da
problemas que tal vez algunos no sepan resolver. Al “Cerrar sesión” se
bloquea el sistema por imposibilidad de montar “davfs”.
He resuelto el problema deshaciendo todo lo hecho.
Con una suscripción, funciona fino.
Muchas gracias por la aportación.
Jesús Rafael
March 9, 2015 at 6:11 PM
Hola Julián,
Soy nuevo en esto. Y efectivamente, se bloquea al cerrar seción. ¿Cómo pudeo
deshacer todo lo hecho?.
Saludos.
2/4/2016 Automatically Mount Box Cloud Storage in Ubuntu 12.04 / 11.10 – Liberian Geek
http://www.liberiangeek.net/2012/03/automatically-mount-box-cloud-storage-in-ubuntu-12-04-11-10/ 13/13
loanemu.com
October 14, 2015 at 3:41 AM
Major thanks for the article.Much thanks again. Cool.
Proudly powered by WordPress