Difference between revisions of "WebDAV"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Mutantmonkey
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''WebDAV''' is a HTTP extension that makes the Internet a writeable medium by allowing files to be created, changed, or deleted over the ubiquitous HTTP protocol. WebDAV can be used to access your [[Filebox]] or to transfer files to and from [[Scholar]]. This example assumes you are using Filebox, but the instructions for Scholar are identical; just replace the URL with the one you get from Scholar as necessary.
+
== cadaver ==
 +
[http://www.webdav.org/cadaver/ cadaver] is a [[w:File Transfer Protocol|FTP]]-like command-line client for connecting to WebDAV shares. To connect to a share, simply specify the URL as an argument to the cadaver command:
 +
cadaver {{{shareurl}}}
 +
You will be asked for your username and password. After connecting, you can issue standard FTP commands like '''ls''', '''get''', '''put''', and '''delete'''. To disconnect, type '''exit'''.
  
<!-- The rest of this page uses a template from the Uniluug project; please see https://uniluug.org/wiki/Template:WebDAV if you wish to edit it. -->
+
== davfs2 ==
<!-- Note that the curl extension must be installed for this to work properly. Also, raw must be used for template variables to work, but this breaks images, so the wiki must be configured to use a shared image repository. -->
+
[[w:davfs2|davfs2]] is a file system driver that allows WebDAV shares to be mounted and treated as if they were local files. After installing davfs2 through your distribution's package manager, it is simple to mount a share to a directory. First, the directory must be created:
{{raw:u:WebDAV|shareurl=https://dav.filebox.vt.edu/users/example|mountpoint=/media/filebox}}
+
sudo mkdir {{{mountpoint|/media/webdav}}}
 +
Now mount the directory:
 +
sudo mount -t davfs {{{shareurl}}} {{{mountpoint|/media/webdav}}}
 +
You will be asked for your username and password and the share will be mounted.
 +
 
 +
== GVFS ==
 +
''Note: Some users have experienced problems with the WebDAV support in GVFS; caution should be exercised when making use of this feature.''
 +
 
 +
[[w:GVFS|GVFS]] provides support for WebDAV and connections can be made using [[w:Nautilus (file manager)|Nautilus]] and other applications that use GVFS.
 +
 
 +
* Open Nautilus and select '''Connect to Server''' in the '''File''' menu.
 +
* For the service type, select '''Secure WebDAV (HTTPS)'''
 +
* For the server, enter '''{{{shareserver}}}'''
 +
* For the path, enter <code>{{{sharepath}}}</code>
 +
* Enter your username and optionally select '''Add bookmark''' if you plan on connecting to this share again
 +
* Select '''Connect'''
 +
 
 +
==See Also==
 +
https://www.itma.vt.edu/courses/complit/lesson4.htm
  
 
[[Category:Howtos]]
 
[[Category:Howtos]]
 +
[[Category:Software]]
 +
[[Category:Needs restoration]]

Latest revision as of 07:28, 4 January 2019

cadaver

cadaver is a FTP-like command-line client for connecting to WebDAV shares. To connect to a share, simply specify the URL as an argument to the cadaver command:

cadaver {{{shareurl}}}

You will be asked for your username and password. After connecting, you can issue standard FTP commands like ls, get, put, and delete. To disconnect, type exit.

davfs2

davfs2 is a file system driver that allows WebDAV shares to be mounted and treated as if they were local files. After installing davfs2 through your distribution's package manager, it is simple to mount a share to a directory. First, the directory must be created:

sudo mkdir /media/webdav

Now mount the directory:

sudo mount -t davfs {{{shareurl}}} /media/webdav

You will be asked for your username and password and the share will be mounted.

GVFS

Note: Some users have experienced problems with the WebDAV support in GVFS; caution should be exercised when making use of this feature.

GVFS provides support for WebDAV and connections can be made using Nautilus and other applications that use GVFS.

  • Open Nautilus and select Connect to Server in the File menu.
  • For the service type, select Secure WebDAV (HTTPS)
  • For the server, enter {{{shareserver}}}
  • For the path, enter {{{sharepath}}}
  • Enter your username and optionally select Add bookmark if you plan on connecting to this share again
  • Select Connect

See Also

https://www.itma.vt.edu/courses/complit/lesson4.htm