Difference between revisions of "WinShares"

From SGEES Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
It's possible to get files from your Windows account ("disks H: and M:") via SMB protocol. This also works for MacOS Finder ("Go->Connect to server")
 
It's possible to get files from your Windows account ("disks H: and M:") via SMB protocol. This also works for MacOS Finder ("Go->Connect to server")
  
 +
Check if you have GVFS and CIFS (samba) installed and install if necessary:
  
; from any file manager which supports SMB (Dolphin, Thunar, Nautilus)
+
sudo apt install gvfs gvfs-backends cifs-utils
  
Check if you have GVFS installed and install if necessary:
+
=== From any file manager which supports SMB (Dolphin, Thunar, Nautilus) ===
 
 
<code>
 
sudo apt install gvfs gvfs-backends
 
</code>
 
  
 
* For M drive - <code> smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_SHARED/ </code>  
 
* For M drive - <code> smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_SHARED/ </code>  
* For H drive - <code> smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/your_windows_login </code>
+
* For H drive - <code> smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME </code>
 
+
where USERNAME is your STAFF login
  
 
* '''domain name:''' staff
 
* '''domain name:''' staff
Line 19: Line 16:
 
* '''[x]''' Remember Password
 
* '''[x]''' Remember Password
  
 +
=== From command line as ordinary user ===
 +
* For M drive - <code> gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_SHARED/ </code>
 +
* For H drive - <code> gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME </code>
 +
where USERNAME is your STAFF login
 +
 +
Note: This syntax works in Ubuntu since 18.04, for older distribution (16.04) use <code>dbus-launch gvfs-mount smb://....</code>
  
; With mount:
+
=== With mount (user must be in sudo group): ===
  
 
<code>
 
<code>

Revision as of 02:35, 20 April 2020

It's possible to get files from your Windows account ("disks H: and M:") via SMB protocol. This also works for MacOS Finder ("Go->Connect to server")

Check if you have GVFS and CIFS (samba) installed and install if necessary:

sudo apt install gvfs gvfs-backends cifs-utils

From any file manager which supports SMB (Dolphin, Thunar, Nautilus)

  • For M drive - smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_SHARED/
  • For H drive - smb://stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME

where USERNAME is your STAFF login

  • domain name: staff
  • login: your_windows_login
  • password: Your Staff (Windows) password
  • [x] Remember Password

From command line as ordinary user

  • For M drive - gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_SHARED/
  • For H drive - gio mount smb://USERNAME@stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_HOME/USERNAME

where USERNAME is your STAFF login

Note: This syntax works in Ubuntu since 18.04, for older distribution (16.04) use dbus-launch gvfs-mount smb://....

With mount (user must be in sudo group):

sudo mount -t cifs -o domain=staff,username=your_windows_login //stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_home/your_windows_login/ /Path/to/mount/point/of/windows/home_drive

sudo mount -t cifs -o domain=staff,username=your_windows_login //stastocoiscifs1.staff.vuw.ac.nz/SCIFAC_shared/ /Path/to/mount/point/of/shared_drive