Differences

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

Link to this comparison view

Next revision
Previous revision
en:public:lwdoc:netzlaufwerke_linux [12.10.2017 15:05] – created haa31353en:public:lwdoc:netzlaufwerke_linux [29.11.2023 11:05] (current) opd40275
Line 5: Line 5:
 <code>Instead \\fs-software.hs-regensburg.de\soft1 <code>Instead \\fs-software.hs-regensburg.de\soft1
 smb://fs-software.hs-regensburg.de/soft1</code> smb://fs-software.hs-regensburg.de/soft1</code>
- 
 ===== Filemanager and Samba ===== ===== Filemanager and Samba =====
 Installed Samba is required for this. Installed Samba is required for this.
Line 20: Line 19:
  
 In the menu in bookmarks or with Crtl+d a bookmark for this folder will be added. In the menu in bookmarks or with Crtl+d a bookmark for this folder will be added.
 +===== Using Terminal and GVfs =====
 +If you prefer to mount network drives using the terminal or want to automate this using a script, you have the option to do so using the 'gio' tool. 'gio' is capable of mounting SMB shares as GVfs mount points.
 +
 +To mount the shares, use the following command:
 +<code>gio mount smb://fs.hs-regensburg.de/storage
 +gio mount smb://fs-home.hs-regensburg.de/home/<Username></code>
 +When executing the command, you will be prompted for a username, domain, and password. Enter 'hs-regensburg.de' as the domain.
 +
 +If you want to unmount the shares, this is done using a parameter.
 +<code>gio mount -u smb://fs.hs-regensburg.de/storage
 +gio mount -u smb://fs-home.hs-regensburg.de/home/<Username></code>
 +
 +If you don't want to enter your login credentials every time, you can create a simple text file with this data and pass it as a parameter to the command using input redirection.
 +
 +The structure of the text file:
 +<code><Username>
 +hs-regensburg.de
 +<Passwort></code>
 +The text file is best saved in the home directory under /home/<Username>/.smbpass, and the permissions should be modified to ensure that only the user has access to it.
 +
 +<code>chmod 0600 /home/<Username>/.smboth</code>
 +
 +Subsequently, you can use this file when mounting the shares.
 +
 +<code>gio mount smb://fs.hs-regensburg.de/storage </home/<Username>/.smboth
 +gio mount smb://fs-home.hs-regensburg.de/home/<Username> </home/<Username>/.smboth</code>
 +
  
 ===== Mount Command and CIFS ===== ===== Mount Command and CIFS =====
Print/export
Languages