Mounting a Webdav File System: Difference between revisions

Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Quite often we will give a researcher access to a web experiment by giving a webdav enabled url, a username and password. This page describes how to use this url. In the remainder of this page we will assume that you were given the url https://exp.socsci.ru.nl/experiment/webdav.php, the username u123456 and the password PASSWORD.
Quite often we will give a researcher access to some resource by giving a webdav enabled url, a username and password. This page describes how to use this url.  
 
In the remainder of this page we will assume that you were given the url <code><nowiki>https://exp.socsci.ru.nl/experiment/webdav.php</nowiki></code>, the username <code>u123456</code> and the password <code>PASSWORD</code>.
 
The resource can be anything. It can be simply a folder for shared data, or it can be a web experiment accessible via another (non webdav) url.


= Webbrowser =
= Webbrowser =
Line 10: Line 14:
In Linux (and other POSIX compliant operating systems) you can connect a local directory (~/experiment in this example) to the Webdav resource (replace USER with your username):
In Linux (and other POSIX compliant operating systems) you can connect a local directory (~/experiment in this example) to the Webdav resource (replace USER with your username):


  sudo apt install davfs2 # no need to allow non root users (setuid root)
<pre>
  mkdir ~/experiment
sudo apt install davfs2 # no need to allow non root users (setuid root)
  sudo mount.davfs https://exp.socsci.ru.nl/experiment/webdav.php ~/experiment -o rw,uid=USER,gid=USER
mkdir ~/experiment
sudo mount.davfs https://exp.socsci.ru.nl/experiment/webdav.php ~/experiment -o rw,uid=USER,gid=USER
</pre>


If you want to mount this resource each time you boot your computer, put the following in /etc/fstab (replacing USER with your username)
If you want to mount this resource each time you boot your computer, put the following in /etc/fstab (replacing USER with your username)


  https://exp.socsci.ru.nl/experiment/webdav.php /home/USER/experiment davfs _netdev,noauto,user,uid=USER,gid=USER 0 0
<pre>
https://exp.socsci.ru.nl/experiment/webdav.php /home/USER/experiment davfs _netdev,noauto,user,uid=USER,gid=USER 0 0
</pre>


and put the password in /etc/davfs2/secrets using:
and put the password in /etc/davfs2/secrets using:


  /home/USER/experiment u123456 PASSWORD
<pre>
/home/USER/experiment u123456 PASSWORD
</pre>


= Nautilus =
== Nautilus ==
Type ctrl-L to open the address bar. Type the address: davs://u123456@exp.socsci.ru.nl/experiment/webdav.php. A popup will appear for the password.
Type ctrl-L to open the address bar. Type the address: davs://u123456@exp.socsci.ru.nl/experiment/webdav.php. A popup will appear for the password.


= Dolphin =
== Dolphin ==
[[File:Dolphinwebdav.png.png|thumb|none|Dolphin mounting a  Webdav filesystem]]
Click the address bar. Type the address: webdavs://u123456@exp.socsci.ru.nl/experiment/webdav.php. A popup will appear for the password.
Click the address bar. Type the address: webdavs://u123456@exp.socsci.ru.nl/experiment/webdav.php. A popup will appear for the password.


= Cyberduck =
= Microsoft Windows =
If you use Microsoft windows, Cyberduck is probably the best choice for mounting a webdav resource.
[[File:Map windows webdav.png|thumb|none|Mapping a network drive in Microsoft Windows]]
[[File:Mount webdav cyberduck.png|thumb|Mounting a webdav filesystem in cyberduck]]
One can use the Microsoft Windows '''Map Network Drive''' feature to assign a drive letter. No special Windows program is needed to do this. It is an operating system feature. Note that there are quite a few [https://sabre.io/dav/clients/windows/ issues]. If you use Microsoft Windows it is usually a better idea to use an external program for accessing a webdav drive. Among other things, if the mount is not in the root directory of the server (http://example.com/mydir) but at a deeper level (http://example.com/superdir/mydir) using the microsoft operating system feature will probably not work.
 
== Cyberduck ==
If you use Microsoft windows, Cyberduck is the most popular way to mount a webdav resource. See the image for how to enter information about the mount.
[[File:Mount webdav cyberduck.png|thumb|none|Mounting a webdav filesystem in cyberduck]]
 
== KS<sup>2</sup> drive ==
If you want data to be synchronized automatically you can use
[https://github.com/FrKaram/KS2.Drive KS<sup>2</sup> drive]. It is the same program that Utrecht university calls Yoda drive and for which the Donders Institute has an
[https://data.donders.ru.nl/doc/help/user-manual/transfer-data/YodaDrive.html?3 intranet page]. It integrates nicely with the classical MS-DOS system with drive letters.
[[File:Ks2.png|thumb|none|KS<sup>2</sup> configure]]
 
If you do not have administrative privileges on your computer, please install the ''portable'' version of the software. Just unzip it somewhere convenient.


= Microsoft Windows =
After installing the software configure your webdav drive as shown in the image. After this you can use the taskbar icon for viewing the log and mounting the drive:
One can use the Microsoft Windows """Map Network Drive""" feature to assign a drive letter. No special Windows program is needed to do this. It is an operating system feature. Note that there are quite a few [https://sabre.io/dav/clients/windows/ issues]. If you use Microsoft Windows it is usually a better idea to use an external program for accessing a webdav drive.
[[File:Ks2 mount.png|frame|none|KS<sup>2</sup> taskbar menu]]
[[File:Map windows webdav.png|thumb|Mapping a network drive in Microsoft Windows]]
 
= Mac OSX =
Use the finder "Connect to Server" option (cmd-k) to mount to the webdav file folder. For the server address use: <code><nowiki>https://exp.socsci.ru.nl/experiment/webdav.php</nowiki></code> and replace "experiment" with the name of your experiment folder. Press the connect button and login as a registered user with your u-number or s-number. If you want to use OSX finder please ask TSG to enable file locking, otherwise resouces will be mounted read only.
[[File:Finder connecttoserver login.jpg|thumb|none|Mapping a network drive in OSX using Finder]]
 
Alternatively Cyberduck (see Windows) also works for OSX.
 
== References ==
https://en.wikipedia.org/wiki/SabreDAV