LSDF Online Storage: WebDAV: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
WebDAV or Web-based Distributed Authoring and Versioning is an extension of the Hypertext Transfer Protocol (HTTP) allowing to access files over the internet. |
WebDAV or Web-based Distributed Authoring and Versioning is an extension of the Hypertext Transfer Protocol (HTTP) allowing to access files over the internet. WebDAV access to the LSDF Online Storage is provided via a cluster of servers reachable at the address '''os-webdav.lsdf.kit.edu'''. |
||
__FORCETOC__ |
|||
__FORCETOC__ |
|||
== Using WebDav from a Web Browser == |
|||
To access the starting page enter the following URL in your web browser |
|||
<pre> |
|||
https://os-webdab.lsdf.kit.edu/ |
|||
</pre> |
|||
Project directories are accessible at the usual location: |
|||
<pre> |
|||
https://os-webdab.lsdf.kit.edu/kit/<OE>/projects/ |
|||
</pre> |
|||
where '''<OE>''' is the name of OE. |
|||
Your home directory is accessible with the following URL: |
|||
<pre> |
|||
https://os-webdab.lsdf.kit.edu/kit/inst/<OE>/<USERNAME>/ |
|||
</pre> |
|||
where '''<USERNAME>''' is you username. |
|||
== Using WebDav on Linux == |
|||
=== Mount WebDAV share as root (davfs2) === |
|||
davfs2 is designed to fully integrate into the filesystem semantics of Unix-like systems (mount, umount, etc.). |
|||
davfs2 does extensive caching to make the file system responsive, to avoid unnecessary network traffic and to prevent data loss, and to cope for slow or unreliable connections. |
|||
'''Installation:''' |
|||
<pre> |
|||
>yum install -y epel-release |
|||
>yum install davfs2 |
|||
</pre> |
|||
<pre> |
|||
>mkdir /mnt/webdav |
|||
>mount.davfs https://os-webdav.lsdf.kit.edu/ /mnt/webdav >/dev/null 2>&1 |
|||
Please enter the username to authenticate with server |
|||
https://os-webdav.lsdf.kit.edu/ or hit enter for none. |
|||
Username: xy1234 |
|||
Please enter the password to authenticate user fg9068 with server |
|||
https://os-webdav.lsdf.kit.edu/ or hit enter for none. |
|||
Password: |
|||
or |
|||
>mount.davfs -o username=xy1234,uid=xxx,gid=yyy,rw https://os-webdav.lsdf.kit.edu/inst/projects /mnt/webdav |
|||
... |
|||
</pre> |
|||
'''WebDav mount check:''' |
|||
<pre> |
|||
>df | grep webdav |
|||
https://os-webdav.lsdf.kit.edu/ 26666664 13333332 13333332 50% /mnt/webdav |
|||
</pre> |
|||
'''Mount WebDAV share using fstab''' |
|||
<pre> |
|||
>cat /etc/fstab | grep webdav |
|||
https://os-webdav.lsdf.kit.edu/kit/inst/projects /mnt/webdav davfs rw,noauto,user,uid=xy1234 0 0 |
|||
>mkdir /mnt/webdav |
|||
>cat /etc/davfs2/secrets | grep os-webdav |
|||
https://os-webdav.lsdf.kit.edu/kit/inst/projects xy1234 *** |
|||
>mount /mnt/webdav >/dev/null 2>&1 |
|||
</pre> |
|||
'''WebDav umount:''' |
|||
<pre> |
|||
>umount.davfs /mnt/webdav |
|||
</pre> |
|||
<H3>Mount WebDAV share as user</H3> |
|||
'''davfs2''' makes mounting by unprivileged users as easy and secure as possible. |
|||
User must be a member of the davfs2 group: |
|||
<pre> |
|||
>usermod -a -G davfs2 xy1234 |
|||
>grep davfs2 /etc/group |
|||
</pre> |
|||
'''Example:''' |
|||
<pre> |
|||
>cat /etc/fstab | grep webdav |
|||
https://os-webdav.lsdf.kit.edu/kit/inst/projects /mnt/webdav davfs rw,noauto,user,uid=xy1234 0 0 |
|||
>chmod 600 /lsdf/kit/inst/xy1234/.davfs2/secrets |
|||
>cat /lsdf/kit/inst/xy1234/.davfs2/secrets | grep os-webdav |
|||
https://os-webdav.lsdf.kit.edu/kit/inst/projects xy1234 *** |
|||
>mount /mnt/webdav >/dev/null 2>&1 |
|||
>umount /mnt/webdav |
|||
umount: /mnt/webdav: umount failed: Operation not permitted |
|||
</pre> |
|||
You can mount the above-mentioned WebDAV share using '''sudo''' utility. |
|||
=== WebDav client cadaver === |
|||
'''cadaver''' is a command-line WebDAV client, with support for file upload, download, on-screen display, in-place editing, namespace operations (move/copy), collection creation and deletion, property manipulation, and resource locking. |
|||
'''Installation:''' |
|||
<pre> |
|||
yum install cadaver |
|||
</pre> |
|||
'''Example:''' |
|||
<pre> |
|||
cadaver https://os-webdav.lsdf.kit.edu/kit/inst/xy1234 |
|||
dav:/kit/inst/xy1234/> help |
|||
Available commands: |
|||
Available commands: |
|||
ls cd pwd put get mget mput |
|||
edit less mkcol cat delete rmcol copy |
|||
move lock unlock discover steal showlocks version |
|||
checkin checkout uncheckout history label propnames chexec |
|||
propget propdel propset search set open close |
|||
echo quit unset lcd lls lpwd logout |
|||
help describe about |
|||
Aliases: rm=delete, mkdir=mkcol, mv=move, cp=copy, more=less, quit=exit=bye |
|||
</pre> |
|||
=== Connection via File Manager === |
|||
* '''Nautilus''' (Gnome) |
|||
* '''Kubuntu (Dolphin/Konqueror)''' (KDE) |
|||
* '''Xubuntu (Thunar)''' (Xfce) |
|||
* '''Lubuntu (PCManFM)''' |
|||
* |
|||
== Using WebDav on Windows == |
|||
=== Add network address === |
|||
'''Example:''' |
|||
Computer => Add network address => Continue => https://os-webdab.lsdf.kit.edu/kit/inst/projects |
|||
=== Network drive over WebDav === |
|||
'''Examples:''' |
|||
<pre> |
|||
>net use * https://os-webdav.lsdf.kit.edu/kit/inst/projects /user:xy1234 |
|||
Laufwerk W: ist jetzt mit https://os-webdav.lsdf.kit.edu/ verbunden. |
|||
Der Befehl wurde erfolgreich ausgeführt. |
|||
or |
|||
>net use * \\os-webdav.lsdf.kit.edu@SSL\ /user:xy1234 |
|||
... |
|||
</pre> |
|||
Revision as of 17:20, 7 August 2019
WebDAV or Web-based Distributed Authoring and Versioning is an extension of the Hypertext Transfer Protocol (HTTP) allowing to access files over the internet. WebDAV access to the LSDF Online Storage is provided via a cluster of servers reachable at the address os-webdav.lsdf.kit.edu.
Using WebDav from a Web Browser
To access the starting page enter the following URL in your web browser
https://os-webdab.lsdf.kit.edu/
Project directories are accessible at the usual location:
https://os-webdab.lsdf.kit.edu/kit/<OE>/projects/
where <OE> is the name of OE.
Your home directory is accessible with the following URL:
https://os-webdab.lsdf.kit.edu/kit/inst/<OE>/<USERNAME>/
where <USERNAME> is you username.
Using WebDav on Linux
davfs2 is designed to fully integrate into the filesystem semantics of Unix-like systems (mount, umount, etc.).
davfs2 does extensive caching to make the file system responsive, to avoid unnecessary network traffic and to prevent data loss, and to cope for slow or unreliable connections.
Installation:
>yum install -y epel-release >yum install davfs2
>mkdir /mnt/webdav >mount.davfs https://os-webdav.lsdf.kit.edu/ /mnt/webdav >/dev/null 2>&1 Please enter the username to authenticate with server https://os-webdav.lsdf.kit.edu/ or hit enter for none. Username: xy1234 Please enter the password to authenticate user fg9068 with server https://os-webdav.lsdf.kit.edu/ or hit enter for none. Password: or >mount.davfs -o username=xy1234,uid=xxx,gid=yyy,rw https://os-webdav.lsdf.kit.edu/inst/projects /mnt/webdav ...
WebDav mount check:
>df | grep webdav https://os-webdav.lsdf.kit.edu/ 26666664 13333332 13333332 50% /mnt/webdav
Mount WebDAV share using fstab
>cat /etc/fstab | grep webdav https://os-webdav.lsdf.kit.edu/kit/inst/projects /mnt/webdav davfs rw,noauto,user,uid=xy1234 0 0 >mkdir /mnt/webdav >cat /etc/davfs2/secrets | grep os-webdav https://os-webdav.lsdf.kit.edu/kit/inst/projects xy1234 *** >mount /mnt/webdav >/dev/null 2>&1
WebDav umount:
>umount.davfs /mnt/webdav
davfs2 makes mounting by unprivileged users as easy and secure as possible.
User must be a member of the davfs2 group:
>usermod -a -G davfs2 xy1234 >grep davfs2 /etc/group
Example:
>cat /etc/fstab | grep webdav https://os-webdav.lsdf.kit.edu/kit/inst/projects /mnt/webdav davfs rw,noauto,user,uid=xy1234 0 0 >chmod 600 /lsdf/kit/inst/xy1234/.davfs2/secrets >cat /lsdf/kit/inst/xy1234/.davfs2/secrets | grep os-webdav https://os-webdav.lsdf.kit.edu/kit/inst/projects xy1234 *** >mount /mnt/webdav >/dev/null 2>&1 >umount /mnt/webdav umount: /mnt/webdav: umount failed: Operation not permitted
You can mount the above-mentioned WebDAV share using sudo utility.
WebDav client cadaver
cadaver is a command-line WebDAV client, with support for file upload, download, on-screen display, in-place editing, namespace operations (move/copy), collection creation and deletion, property manipulation, and resource locking.
Installation:
yum install cadaver
Example:
cadaver https://os-webdav.lsdf.kit.edu/kit/inst/xy1234 dav:/kit/inst/xy1234/> help Available commands: Available commands: ls cd pwd put get mget mput edit less mkcol cat delete rmcol copy move lock unlock discover steal showlocks version checkin checkout uncheckout history label propnames chexec propget propdel propset search set open close echo quit unset lcd lls lpwd logout help describe about Aliases: rm=delete, mkdir=mkcol, mv=move, cp=copy, more=less, quit=exit=bye
Connection via File Manager
- Nautilus (Gnome)
- Kubuntu (Dolphin/Konqueror) (KDE)
- Xubuntu (Thunar) (Xfce)
- Lubuntu (PCManFM)
Using WebDav on Windows
Add network address
Example: Computer => Add network address => Continue => https://os-webdab.lsdf.kit.edu/kit/inst/projects
Network drive over WebDav
Examples:
>net use * https://os-webdav.lsdf.kit.edu/kit/inst/projects /user:xy1234 Laufwerk W: ist jetzt mit https://os-webdav.lsdf.kit.edu/ verbunden. Der Befehl wurde erfolgreich ausgeführt. or >net use * \\os-webdav.lsdf.kit.edu@SSL\ /user:xy1234 ...