Refracta Development, Scripts, etc.
Post a reply

linux/windows file sharing

Sat Jan 26, 2013 1:13 pm

I've got the following in the release notes. Can someone test these commands to see if they work? I have no way to do that.


___ MOUNT WINDOWS SHARE ___

# This needs troubleshooting.
mount.cifs //windows-host/user <mountpoint> -o uid=user,gid=user
umount.cifs <mountpoint>



And this does not apply to xfce.
# This works:
Or connect through System Tools ---> Computer ---> Network (Tested with samba server.)


I think it should be like this, but again, I can't test it. No windows here.
Open Thunar and click on Network. Select the network you want. Do something else?




=================================

Re: linux/windows file sharing

Sat Jan 26, 2013 4:22 pm

No windows here either . . . ;)

Re: linux/windows file sharing

Sun Jan 27, 2013 8:50 am

I am trying to set up a Windows Share to test it, but i seem to fail.
networking in Windows: foam at mouth, fire and brimbstone.
Example? I open network center and click on connect. It then opens a pop-up and says: please open the network center. I open it, i click on connect, it opens a pop-up ... Hurray.

That, btw, is my main problem. Most Gnu/Linux docus explains in detail how to use the clients, but are silent when it comes to Windows. Windows docu itself is the way that it is.

Anyway:
What about pyneighborhood ?
antiX comes with it. I searched at http://wiki.ubuntuusers.de/Samba_Client ... mount.cifs and to me it looks like a gui frontent to smbclient of mount.cifs (or both? I don't know).

I recall that bugsbunny wrote a lot about samba.
Also about connecting easily, perhaps with smbclient, without the hazzle of setting up samba.

Last one: If it was me i wouldn't care about that. It doesn't look like that many would use WindowsShare at all, and the ones who do should be able to figure it out themselves.
For me filezilla from Gnu/Linux and filezilla-server at Windows is a poor man's but easy workaround (only possible if we talk about small data, sure).


PS: Don't get me wrong. I am at it and willing to test as much as possible, but my Windows-foo is close to non-existent.

Re: linux/windows file sharing

Sun Jan 27, 2013 9:46 am

K, i could make it work with pyNeighborhood.
(it asks for the root password).

I had to disable the need for a password on Windows
(i did a lot, that is the last i did. I am not sure if it is necessary)

mount.cifs gives a mount error (13).
the German Ubuntu wiki mentions a bug:
https://bugs.launchpad.net/ubuntu/+sour ... bug/563805
which is said to be solved like this:
chmod +s /sbin/mount.cifs
chmod +s /sbin/umount.cifs

In short: It is Windows as it's best. Shooting in the dark with the eyes closed, without any reason.

Re: linux/windows file sharing

Sun Jan 27, 2013 9:50 am

Oh, and my thunar doesn't seem to have any "Network".

Re: linux/windows file sharing

Sun Jan 27, 2013 2:55 pm

Thanks for testing. I'm wondering why you don't have a network bookmark in thunar. It should be in the side panel. Are you using one of the refracta-wheezy betas?

I'm not sure what caused it to be there. Here's what I've got.
Code:
user@refracta:~$ aptitude search ~ithunar
i A libthunarx-2-0                  - extension library for thunar             
i   thunar                          - File Manager for Xfce                     
i   thunar-archive-plugin           - Archive plugin for Thunar file manager   
i A thunar-data                     - Provides thunar documentation, icons and t
i   thunar-volman                   - Thunar extension for volumes management   
user@refracta:~$ aptitude search ~igvfs 
i A gvfs                            - userspace virtual filesystem - GIO module
i   gvfs-backends                   - userspace virtual filesystem - backends   
i A gvfs-common                     - userspace virtual filesystem - common data
i A gvfs-daemons                    - userspace virtual filesystem - servers   
i A gvfs-libs                       - userspace virtual filesystem - private lib


OK, I wasn't entirely honest when I said there was no windows installation here. I've got XP in vbox, and I just managed to figure out how to share files. Going in through the network bookmark in thunar was easy.

I also managed to do it on command line:
Code:
mount.cifs //<local-IP-number>/SharedDocs /mnt -o uid=user,gid=user
I got the share name, SharedDocs, from Shared Document Properties, which I got to by clicking on Share This Folder. Had to enter the windows admin password, I guess because it was the admin account who shared some files. Also had to use the IP number. Couldn't do it with a name (tried the machine name and the workgroup name. Neither worked.) Also had to disable windows firewall - setting it to allow file and printer sharing wasn't enough. I'm pretty sure I'm not going to include any instructions for what to do on the windows side of this procedure.

Re: linux/windows file sharing

Sun Jan 27, 2013 3:24 pm

No idea why i ain't got "Network".
The files you listed are installed.
The arch wiki mentions:
gvfs-smb
but it doesn't seem to be in the Debian repos.

But no, this is Debian (Sid), two installations (yet). Not refracta.

-
I tested with Win7, btw.
I guess with a bit more of Windows knowledge it is easy enough.

Re: linux/windows file sharing

Mon Jan 28, 2013 6:15 pm

Sorry, no functional Windows here at the moment, to test that! Nor much appetite for supporting Windows (unless £$€ for the beer fund)

But I suppose it should be seen tested and working, if Refracta will be an even more universal and functional live system than already is.
Post a reply