This post describes ,how to mount Box.com cloud on a desktop with Ubuntu using , WebDav , davfs2, gio mount. davfs2 is a Linux file system driver that allows to mount a WebDAV resource. WebDAV is an extension to HTTP/1.1 that allows remote collaborative authoring of Web resources First of all you will have to open a free Box.com account Install davfs2 On the Ubuntu terminal sudo apt install davfs2 sudo addsuser your username davfs2 ( use your linux username ) sudo dpkg-reconfigure davfs press <Yes> tab as shown in the flowing figure (This is to mount Box.com as a non-root user) Figure 1:- configuring davfs Open the Nautilus file browser. Press the “+ Other Locations” tab .At the bottom of the opened window you can find a box for connecting to the server .On the box enter davs://dav.box.com/dav and press the connect button at the right hand corner . Then it will prompt to enter username and password of your Box.com account After entering your password and username tick Remember forever box figure 2:-Entering username and password of your Box.com account Then a window will popup to enter a key . For the key just hit the enter key of the keyboard .( empty key). This is to make easy to automount the Box.com during the boot time.If you enter a key box.com will not mount at the boot time. If you miss the entering empty key , you can make the default keyring empty using “Passwords and Keys” tool as shown in the following figure Figure 3:- Changing default keyring to empty key Now Box.com is mounted as shown in the following figure. Figure 4:-Bookmarking the Box.com at the location Now Bookmark the location by pressing the button of the window as shown in Figure 3:- Next task is to making a script for automounting Box.com at the boot time. On the terminal sudo gedit boxmont.sh Enter the code ” gio mount davs://dav.box.com “as shown in the figure below and save the file To make boxmount.sh executable In the Ubuntu terminal chmod u+x boxmont.sh Figure 5:-Script file to automount Box.com at the boot time Then add the script to startup programs as shown in the following figure Figure 6:-Adding the script to startup programs If you restart the computer you will be able to see your box account is mounted automatically on the desktop as shown in the following figure Figure 6:-box.com mounted at the boot time Note:- Box management has announced that they will deprecate support for WebDAV after Jan 31, 2019 . Therefore you may not be able to use this method after Jan 2019. But linux users still can use Box.com for auto sync data using git-annex. Please refer my earlier post on “How to sync zoneminder events with box.com account using git-annex on Ubuntu 18.04“
0 Comments
Leave a Reply. |
AuthorRetired Director of Irrigation ,Sri Lanka Categories
All
Archives
March 2020
|