Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Saturday, June 13, 2015

Accessing Windows share from Linux machine

Just do the first half of this procedure:
www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux
(stop when you get to 'Creating the Share on Linux' - the article describes how to connect in both directions). Apologies for not putting in a link, but for some reason Blogger kept prefixing the address of this blog to the URL.

The only bit I had to change was that my Linux machine couldn't resolve the name of my Windows 7 machine. So

sudo mount.cifs //WOPR/D /mnt/woprd -o user=falken
didn't work, but
sudo mount.cifs //192.168.2.3/D /mnt/woprd -o user=falken
did. In case you don't know, you can find the IP address of the Windows machine with 'ping WOPR' (or whatever its name is) from a command prompt on that machine.

What annoys me most is that I spent all morning wading through articles and forum responses on this subject, and not one of them mentioned that you only need to set up Samba on the Linux machine if you want to access a shared folder on that machine from a Windows machine - the exact opposite of what we require here.

But I did learn something very useful - if you substitute 'linux' for 'ubuntu' in searches, you'll get much more helpful answers, and you won't have to visit askubuntu either. It's vying with the Mozilla forums in uselessness.

Further sayance... what you seem to be doing when you do this is setting up a connection using the CIFS protocol, which I think Windows refers to as SMB protocol, or perhaps it's that Microsoft's implementation of SMB is enhanced to include CIFS functionality. I don't know and I don't need to, because the point is that CIFS and SMB are the keywords to use when doing searches about this stuff.

Which is what I did when I was trying to work out how to see what username I was showing up as from Windows' point of view - do net session to see all SMB connections.

And if you're wondering why you can't paste onto your Windows share from Linux in the original scenario above, even though you've mounted rw, it's probably because you've only given root (at the Linux end) rw permission. You just need to sudo the application in which you're trying to do the pasting (thunar in my case).

Followers

Blog Archive