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 [2023/05/08 11:51] – [Mount WebDAV using command line] giuliordms:access:linux:webdav [2025/04/07 11:22] (current) – small fixes to the text giulio
Line 1: Line 1:
 ====== WebDAV on Linux ====== ====== WebDAV on Linux ======
  
-===== Mount WebDAV using command line =====+===== Mount WebDAV using Command Line =====
  
 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. 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.
Line 8: Line 8:
  
 <code> <code>
-$ sudo apt-get davfs2+$ sudo apt-get install davfs2
 </code> </code>
  
Line 29: Line 29:
  
 <code> <code>
-$ sudo mount -t davfs https://webdav.data.rug.nl ~/rdms_webdav/ +$ sudo mount -t davfs -o uid=1000,gid=1000 https://webdav.data.rug.nl ~/rdms_webdav/ 
 </code> </code>
  
Line 40: Line 40:
 </code> </code>
  
-===== Using a file manager =====+**Notes**: 
 +  * In the ''sudo mount'' command shown above, the RDMS WebDAV was mounted with the permissions of the default user with a user and group id (uid/gid) of 1000. Assigning this incorrectly can cause issues if you want to read and especially write data to the mounted RDMS folder. If you are unsure about your current users uid/gid, you can run ''id <your_linux_username>'' to retrieve this info. 
 +  *  The email address of the RDMS account you want to use for mounting can be also already specified during command execution by additionally giving the '' -o username=<emailaddress>'' command. If you do so, do not forget to substitute the email placeholder with your correct RDMS account.  
 +  * The command as shown above will mount the RDMS WebDAV root folder which contains different RDMS folders like your user's home folder, available [[rdms:solution:team|RDMS Team Drives]] and [[rdms:solution:projects|RDMS Projects]]. You can also specify a specific subfolder in the RDMS WebDAV root if you do not want to make all available via the mount point by changing the WebDAV address. For example adjusting to ''%%https://webdav.data.rug.nl%%/<Team_Name>'' will make the Team Drive ''<Team_Name>'' available while ''%%https://webdav.data.rug.nl%%/<emailadress>'' will mount the home folder of the user with the specified mail address.  
 +===== 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**.  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**. 
  
Line 53: Line 57:
 Open the file manager and select **Other locations**. Input ''%%davs://webdav.data.rug.nl%%'' as the server address and press **Connect**. 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 |}}+{{ :rdms:access:linux:webdav_gnome.png?direct&600 |}}
  
-After entering your username (your RUG email) and password, the RDMS home directory and its subdirectories become available via the **GNOME Files** file manager as **webdav.data.rug.nl**.+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 ==== ==== KDE Desktop Environment ====
 The standard file manager of the KDE desktop environment is called **Dolphin**. 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 (RUG email) and password, and after connecting to the WebDAV address, the RDMS becomes available in your file browser.+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 |}}+{{ :rdms:access:linux:webdav_dolphin.png?direct&600 |}}
  
 ==== Xfce Desktop Environment ==== ==== Xfce Desktop Environment ====
 The standard file manager of the Xfce desktop environment is called **Thunar**. 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 (RUG email) and password, and after connecting to the WebDAV address, the RDMS becomes available in your file browser.+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 |}}+{{ :rdms:access:linux:webdav_thunar.png?direct&600 |}}