Howto: using fusesmb in OpenSuSE 10.2 to access Windows shares

Fusesmb seems to be the answer to my little problem, which I posted about earlier. Check out the features! Using fusesmb, it is possible to access your shared directories on Windows and stream video and mp3’s! It only takes very little configuring and a single command will enable access to all your shared directories, just as if you would if you where using “My Network Neighbourhood” in Windows.
Al I needed to do was use YaST to install the packages “fuse” and “fusesmb”. Then I did the following:

mkdir ~/.smb
touch ~/.smb/fusesmb.cache

After that, you change directory into ~/.smb and create the file fusesmb.conf. See also man fusesmb and man fusesmb.conf. It is really quite simple, and an example is included in the manual just in case you are unsure how to proceed with this. Finally, you need to create a directory in your home directory, which will serve as mount point for your shares. For example, you could execute mkdir ~/"Windows Shared Files", or whatever you prefer.
After that, reboot and load the fuse module. Then change directory into ~/.smb and execute fusesmb ~/Windows\ Shared\ Files/

And that’s it! You should now be able to open Konqueror, open your homedir and peruse the shares at your leisure. Then pick a nice movie and just play it with mplayer, just like you would on Windows!
I only wonder why fusesmb is not used by default. Maybe they know something I don’t? Perhaps there have been problems with fuse? I don’t know, but it works for me. A million times better than smbmount or smbfs, or whatever the hell they’re shipping OpenSuSE 10.2 with.

Since there appears to be no support for fusesmb at this time, I will have to figure out a clever way to initiate it on demand. Running it on boot just isn’t good enough. My network configuration varies between wired and wireless networks, since I use network manager. Therefore it has to happen when I need it, or fusesmb will simply timeout and die.

I think I’ll be able to figure it out.

12 Responses to Howto: using fusesmb in OpenSuSE 10.2 to access Windows shares

  1. Alexander Pfister says:

    Hello,

    I tried fusesmb like you described, but it doesn’t work. Does fusesmb automatically find the fusesmb.conf when I’m in the same directory? How is the user written (user@domain or domain\\user)? Is there anything else to do on the Windows Server side?
    The shares are reachable with Konqueror (smb://server/share).

    Thank you

    Alexander Pfister

  2. Menzonius says:

    Are you getting any error messages when you use fusesmb to mount the Windows share? If that is not the case, then fusesmb is probably able to find and read the ~/.smb/fusesmb.conf file just fine.
    Regarding this question: How is the user written (user@domain or domain\\user)?
    I’m afraid I’m not quite sure what you mean. Where exactly are you trying to write that?

  3. Eric Carter says:

    Hi
    I have a slightly different problem and I am not 100% sure it is down to Fuse
    Using fusesmb with Zenwalk on a small laptop itt works reasonably well and can see other linux samba shares. However although it can see the directories on the Win XP NTFS machine it can not open any of them. Response when trying to open them is that they do not exist! These can be opened by the other linux machines on the network using samba

    Any ideas where I start?

  4. Menzonius says:

    It’s hard to say what might be causing the problem. Usually, when you cannot access files, it is caused by permission problems. Perhaps the fusesmb.conf file you’re using needs modifying, for example by specifying a username and password if you’ve restricted access to the shared directories on Windows. If that is not the case, and Windows really is configured correctly, then I would recommend registering with a linux forum (I recommend LinuxQuestions.org) and asking the question there. Not that I mind answering questions here, but it’s just that on the forum I mentioned, there are way more people and they all know more about Samba networking than I do. Chances are you’ll get a better answer than I could ever give you, in half the time it has taken me to write this message ;)
    In any case, good luck!

  5. Alexander Pfister says:

    Hello,
    regarding the syntax of the username I meant the username in the ~/.smb/fusesmb.conf .
    But the problem was not the username. We solved the problem by setting the WINS-server in the /etc/samba/smb.conf . Obviously the fusesmb command needs also some settings in the smb.conf.
    Thank you for your reply anyway.

  6. […] Windows Network Browsing @ Ubuntu Forums Ubuntu LinuxをLibretto L5に(xubuntu) @ Second Weblog Howto: using fusesmb in OpenSuSE 10.2 to access Windows shares @ SMB for Fuse freshmeat.net : Project details for SMB for FUSE […]

  7. I don’t quite get the point:

    Using fusesmb, it is possible to access your shared directories on Windows and stream video and mp3’s stream video and mp3!

    Since I think I’m currently using smbfs (on Linux) to do exactly that, could you be a bit more specific? I don’t quite get the point.

    Well written sumup though, I’ll add your blog to my blogroll :)

  8. Menzonius says:

    Hi Emanuele, thanks for your feedback!

    I see the fusesmb homepage is off-line right now, so here are the main features straight from google’s cache:

    * Browsing workgroups/hosts and shares from any application
    * Streaming of files (movies/music)
    * Browsing the network is fast because all hosts and shares are cached

    And here are the disadvantages of the alternatives:

    Other solutions as GnomeVFS or KIO slaves provide a similar solution, but have a few disadvantages:

    * Programs need to be rewritten to make them network transparent.
    * KIO Slaves cannot stream files making movie/music playing over LAN impossible.
    * Gnome VFS just is unstable on my system, although is offers streaming.
    * Automounting shares is possible, but you cannot see more than 8 at a time, because NT Workstation limits the number of connections it’s also a lot slower.

    (All quoted from the main fusesmb page, including typos.)

    I hope that explains it a bit better and thanks for adding me to your blogroll!

  9. Yes, it does.
    Keep up the good work, I hope I could be “stealing” some topics from you from now on :-D

  10. Paul Marwick says:

    A useful setup, thanks. For some reason, it works much better for me (talking to share on OS/2 machines) than ‘mount -t smbfs’. I do have one problem though – if I start the share with this: “fusesmb ~/smbmount, it finds and mounts my shares just fine.

    What I haven’t worked out is how to unmount the share – I’ve tried a number of options, and keep getting this sort of message back:

    [red2]:~$ fusesmb smb -o hard_remove
    fuse: mountpoint is not empty
    fuse: if you are sure this is safe, use the ‘nonempty’ mount option

    So, is there a simple command to unmount the shares?

    paul

  11. Kenny says:

    [Paul Marwick]
    So, is there a simple command to unmount the shares?
    [/Paul Marwick]

    Use the command “fusermount -u /media/network” without quotes.
    Just change the ‘/media/network’ to whatever your mount point is…

  12. rate me says:

    You need to dry out the sore so that it will not flame up and have some pus in it.

    Place it away from where it can be contaminated by their feces.
    Hot tapping, also known as pressure tapping, is a way of connecting existing pipeline or vessels without emptying the connected section of pipe or the vessel.

Leave a reply to rate me Cancel reply