User Tools

Site Tools


linux:debian:access_windows_samba_share

Differences

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

Link to this comparison view

linux:debian:access_windows_samba_share [2016/11/17 07:43]
ozan created
linux:debian:access_windows_samba_share [2016/11/17 08:34] (current)
ozan
Line 2: Line 2:
  
 Let me just note that I am not a Linux expert. Let me just note that I am not a Linux expert.
-Since I mostly use Xfce desktop on Debian, I sometimes have problems which are not valid for other Linux users. For example, Debian (jessie) with Xfce desktop does not come with samba packages preinstalled which allows to access windows shares or share folders for windows users. Even I tried to install samba packages I got some errors while connecting (may be I set config wrongly) and ''​thunar''​ (Xfce file browser) had some complaints as well. Finally I figured out how to do it and I write the instructions here for others like me.+Since I mostly use Xfce desktop on Debian, I sometimes have problems which are not valid for other Linux users. For example, Debian (jessie) with Xfce desktop does not come with samba packages preinstalled which allows to access windows shares or share folders for windows users. Finally I figured out how to do it and I write the instructions here for others like me.
 I have uninstalled every packages related to my samba experiment and I installed following packages. I have uninstalled every packages related to my samba experiment and I installed following packages.
 <code bash> <code bash>
-aptitude install samba samba-client samba-vfs-modules winbind gigolo gvfs gvfs-bin gvfs-backends ​+aptitude install samba samba-client samba-vfs-modules winbind ​cifs-utils ​gigolo gvfs gvfs-bin gvfs-backends ​
 </​code>​ </​code>​
-The package ''​[[https://​www.uvena.de/​gigolo|gigolo]]''​ is to manage/​connect/​mount remote filesystems and is a part of Xfce goodies project. ''​gigolo''​ will allow us to connect to windows shares ​if we install samba packages+The package ''​[[https://​www.uvena.de/​gigolo|gigolo]]''​ is to manage/​connect/​mount remote filesystems and is a part of Xfce goodies project. ''​gigolo''​ will allow us to connect to windows shares. 
-After installing required packages run gigolo from shell or from menu and create a new connection like below;+After installing required packages run gigolo from shell or from menu and create a new connection like below with approriate inputs.
  
 +{{ :​linux:​debian:​access_windows_samba_share:​gigolo_screen.png?​nolink |}}
  
 +Then you can connect to windows share from ''​thunar''​. It is nice and easy.
 +
 +
 +If you would like to have a desktop shortcut, you need to create a launcher. Right click on the desktop and press ''​Create Launcher...''​ menu and create a launcher like this;
 +
 +{{ :​linux:​debian:​access_windows_samba_share:​create_launcher.png?​nolink |}}
 +
 +When you save this launcher, you can access your share from desktop by double click.
 +
 +However, if you want to edit files from share by clicking and editing them, you cannot do this with this method ( I don't know why). I mounted this share to my desktop to overcome this. From shell as root, create a folder on desktop and mount the samba share on this folder with correct username and password.
 +<​code>​
 +mount -t cifs //​192.168.1.3/​share /​root/​Desktop/​SERVER -o username=<​username>,​workgroup=<​WORKGROUP>​
 +# unmounting is simply;
 +# umount /​root/​Desktop/​SERVER
 +</​code>​
 +What if you want to make this mount permanent, then you can add this entry below to ''/​etc/​fstab''​. Do not forget to change username, password, mount folder and target share, etc.
 +<​code>​
 +//​192.168.1.3/​share /​root/​Desktop/​SERVER cifs username=<​username>,​workgroup=<​WORKGROUP>,​password=<​password>,​file_mode=0777,​dir_mode=0777,​noperm
 +</​code>​
 +The options ''​file_mode=0777,​dir_mode=0777,​noperm''​ is to give write access to other users if you mount it to a place where non-root users can access. You can omit them if you like. Check options with ''​man mount.cifs''​.
 +
 +Let me know if anything is missing or incorrect.
 +{{tag>​debian jessie xfce samba windows gigolo mount fstab}}
 +~~DISCUSSION~~
linux/debian/access_windows_samba_share.txt · Last modified: 2016/11/17 08:34 by ozan