Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rdms:access:linux:webdav [2022/07/20 12:01]
marguerite
rdms:access:linux:webdav [2024/04/25 16:16] (current)
jelte added ref to lowercase
Line 1: Line 1:
-====== WebDav on Linux ====== +====== WebDAV on Linux ======
-{{ :rdms:access:linux:nautilus.png?600|}}+
  
 +===== Mount WebDAV using Command Line =====
  
-The default file manager in Ubuntu is GNOME files. With the GNOME files file manager you can add a WebDAV connection to the RDMS. +If you'd rather access the RDMS directly from your file system instead of connecting to it remotely, it is also possible to mount a WebDAV share under Linux to access the RDMS from your machine. The most generic method to do so is to use the mount command via the command line interface. In order for this action to work, the ''davfs2'' package has to be installed on your machine. As the installer for this package might vary based on your Linux distro, please check on what version of Linux your operating system is based on.
  
-  * Select "Other locations" in the left side of the screen and fill in the server address and login credentials +On Debian, Ubuntu and other Ubuntu-based Linux distros, this can be installed via the ''APT'' package managing utility:
-  * Connect to Server%%"davs://webdav.data.rug.nl"%% +
-  * Please log in with your mail address and corresponding password+
  
 +<code>
 +$ sudo apt-get davfs2
 +</code>
 +
 +Alternatively, on Linux distros that use ''RPM'' as their package manager (e.g. Fedora), ''davfs2'' can be installed via:
 +<code>
 +$ yum install davfs2
 +</code>
 +or
 +<code>
 +$ dnf install davfs2
 +</code>
 +
 +Additionally, you need to have an empty directory on the local Linux machine to use as a mount point. You can create an empty directory called ''rdms_webdav'' in your home directory by typing and running the following command in your terminal:
 +
 +<code>
 +$ mkdir ~/rdms_webdav/
 +</code>
 +
 +You can then make the RDMS accessible at this mount point by running:
 +
 +<code>
 +$ sudo mount -t davfs https://webdav.data.rug.nl ~/rdms_webdav/ 
 +</code>
 +
 +WebDAV will then prompt you to provide your login credentials to connect to the RDMS. After you enter your RDMS username (UG email address) and associated password, the RDMS storage becomes available at ''~/rdms_webdav/''.
 +
 +Once you are done and wish to unmount the WebDAV mount of the RDMS via the terminal, simply run:
 +
 +<code>
 +$ sudo umount ~/rdms_webdav/ 
 +</code>
 +
 +===== Using a File Manager =====
 +Different distros of Linux come with different desktop environments and also different file managers which can be used to easily mount network shares. In the following paragraph, you will read about how to mount the RDMS via WebDAV for the three file managers **GNOME Files**, **Dolphin** and **Thunar**. 
 +
 +If you are unsure about the standard file manager on your Linux system, you can display this information by running the following command in the terminal:
 +
 +<code>
 +$ xdg-mime query default inode/directory
 +</code>
 +
 +==== GNOME Desktop Environment ====
 +The standard file manager of the GNOME desktop environment is **GNOME Files**, formerly known as **Nautilus**. 
 +Open the file manager and select **Other locations**. Input ''%%davs://webdav.data.rug.nl%%'' as the server address and press **Connect**.
 +
 +{{ :rdms:access:linux:webdav_gnome.png?600 |}}
 +
 +After entering your username (your UG mail in lowercase) and password, the RDMS home directory and its subdirectories become available via the **GNOME Files** file manager as **webdav.data.rug.nl**.
 +
 +==== KDE Desktop Environment ====
 +The standard file manager of the KDE desktop environment is called **Dolphin**.
 +To connect to the RDMS through WebDAV, open the **Dolphin** file manager, then select **Network** to specify a remote network location. In the field for the remote address, type ''%%webdavs://webdav.data.rug.nl%%'' and hit Enter. You will be asked for your username (your UG mail in lowercase) and password, and after connecting to the WebDAV address, the RDMS becomes available in your file browser.
 +
 +{{ :rdms:access:linux:webdav_dolphin.png?600 |}}
 +
 +==== Xfce Desktop Environment ====
 +The standard file manager of the Xfce desktop environment is called **Thunar**.
 +To connect to the RDMS through WebDAV, open the **Thunar** file manager and select **Browse Network**. Enter ''%%webdavs://webdav.data.rug.nl%%'' in the address bar of the newly opened window and hit Enter. You will be asked for your username (your UG mail in lowercase) and password, and after connecting to the WebDAV address, the RDMS becomes available in your file browser.
 +
 +{{ :rdms:access:linux:webdav_thunar.png?600 |}}