-
How to: Xubuntu - Thunar Native Windows Network Browsing
Since Thunar doesn't have native network Browsing, here is a good way to accomplish it:
1) In XFCE's Applications -> System -> Shared Folders. (This should trigger a Samba install if you don't already have a share, and it should allow you to define the proper workgroup)
2) Install fusesmb in Synaptic (from Universe repository)
3) Edit /etc/modules and add the word 'fuse' to the modules list to be loaded (without quotes), and save the file.
4) Reboot, so the fuse module loads, and the proper workgroup is read for samba.
5) In XFCE Applications -> System -> Users and Groups... Properties of your username... User Priveleges Tab... check "Allow use of fuse file systems..."
6) Create a directory that you are going to mount your network browse to... I used /media/network. Change permissions to read / write for group and others (777).
*** 6.5) In a terminal, type: sudo chown <username>:fuse /media/network
(Where <username> is your user account logon name)
*** 6.6) Double check that the permission to use fuse took. Applications -> System -> Users and Groups... Manage Groups... find fuse and choose properties. Make sure your user name account is in that group and check-marked.
*** 6.7) Reboot the system and triple check with step 6.6
7) In XFCE Applications -> Settings -> Autostarted Applications... Add an application... name and describe as you wish... for command line, put: fusesmb /media/network (Or whatever mountoint you created).
8) Open Thunar, and navigate to the parent folder of your mountpoint... then drag the 'mounpoint folder' to the places (shortcut) pane of thunar.
9) Logout and log back in (So the user privilege and fusesmb autostart will take affect)
*** Added steps to help prevent some access denied issues some people have been experiencing with fusesmb.
My original thread on this topic is here: http://www.ubuntuforums.org/showthread.php?t=300310
I hope this helps my fellow Xubuntu users... and I also hope that the Xubuntu team somehow enables something similar by default, or at least as an install option.
-Taz
-
1 Attachment(s)
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
It is definitely a Edgy how-to. However I managed to accomplish it on Dapper.
For those who is still on Dapper like myself and have no intention to move to Edgy in the nearest future:
1. You can backport fusesmb using an excellent prevu tool, see the topic here
http://www.ubuntuforums.org/showthread.php?t=268687
Alternatively I am attaching a Daper version, I backported myself to this thread.
2. You need to add yourself in the fuse group using Users and Groups tool as there is no entry like "Allow use of fuse file systems..." in my case.
For some reason I had to reboot a number of times to make it work. But I have not done anything else.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
This is great. I gave up on Xubuntu and went back to Ubuntu just because of the lack of a network browser. This is so simple, I hope it gets included in the next release of Xubuntu if not in Thunar itself. The only problem I have though is how to access a password protected user share.
Any ideas?
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I haven't got this working yet, but will I hope.
My workaround was just to put the nautilus home folder on the desktop/appbar and use that for my SMB browsing, other times I use thunar. Not ideal I know but it saved me going back to Gnome.
Russ
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Thanks for this. I was able to get it going without installing samba, thus avoiding the overhead of being a server, since all I want to do is access shares on other servers.
Basically skip step 1, do all the other steps.
Skipping step 1 avoids all the server stuff but you'll have to do one or two other things before you're done:
Manually edit ~/.smb/fusesmb.conf to add your windows browsing credentials:
Code:
[global]
username=YourSMBUsername
password=YourSMBPassword
Do a "man fusesmb.conf" to learn what other options you can put here, but this is all you absolutely need.
Additionally I had to "chgrp fuse /dev/fusesmb", which should have happened automatically when fuse was installed but didn't.
To make life easier I added a launcher to the panel to run "thunar /media/network/" and gave it the file management icon.
That's it; all the browsing convenience and none of the being-a-server overhead. Thanks again for the great howto.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I was just playing with a custom python app for that but maybe now I won't need that anymore since I can access everything directly from within Thunar.
Only drawback: Accessing my own shares works only partly and it says I don't have permissions for some folders. Weird...
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Awesome dude, maybe later I'll write an automated shell script for this. :D
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
foxy123
It is definitely a Edgy how-to. However I managed to accomplish it on Dapper.
Yes, it's an edgy How-to. Glad you found a way to do it on Dapper! :)
Quote:
Originally Posted by
sawjew
The only problem I have though is how to access a password protected user share.
Any ideas?
Not the most secure solution... but set your shares on the Windows box to "full control" for "everyone", and in the advanced options, set it to make the changes to the child folders and files. If you are using "simple sharing"... check the box to "allow network users to change files".
Quote:
Originally Posted by
EatMorePie
Thanks for this. I was able to get it going without installing samba, thus avoiding the overhead of being a server, since all I want to do is access shares on other servers.
Basically skip step 1, do all the other steps.
Well, the first step is so you can send files back to your Xubuntu box from a Windows box. If one doesn't have a need for that... then, yes... skip step 1.
Quote:
Originally Posted by
kalikiana
Only drawback: Accessing my own shares works only partly and it says I don't have permissions for some folders. Weird...
See above... check your Windows security permissions on those shared folders that are giving problems. Windows file sharing is a little wonky. ;)
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Tazix,
Thanks, this works well for me running Feisty, which shouldn't be that different from Edgy at the moment.
Regards
Warren
http://grumpymole.blogspot.com
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
My idea won't work for this. What I want to do is make a graphical way to mount ISOs and FTP sites using Fuse. I wanted to do the SMB as well, but it mounts the whole network, not just one server or share, so my idea is unnecessary here.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
This works well until the network changes. It only picks up what's on the network at boot not anything that is added later. Is there any way to refresh the network?
EDIT: I just found the answer to my own question from here http://ubuntuforums.org/showthread.php?t=71797
Just open a terminal and type in
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Hi all...Newbie alert :-)
I have followed the how-to but when I reach the final step (opening the /media/network folder) there is no MSHOME inside.
When I check /media/network folder permissions I find Owner (Root) is still read and write but Group and Others have been changed to read only.
The "Allow use of fuse filesystems etc" box mentioned in step 5 is ticked.
sudo chmod 777 /media/network gives permission denied.
mount /media/network gives....
according to mtab, fusesmb is already mounted on /media/network mount failed
FWIW, in "Process Manager" I have two instances of fusesmb running.
Any advice appreciated.
Regards
Miguel
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
Miguellint
sudo chmod 777 /media/network gives permission denied.
Sounds like either your sudo is messed up, or fusesmb is "locking" the changing of the directoy or something.
Since I don't see any way in the help / man pages to start / stop fusesmb... Try undoing step 7, so it doesn't auto start (remove the auto started application in xfce)
If you are also running it in your fstab, edit and take it out of there too.
Reboot... then try to sudo chmod 777 /media/network in a terminal window.
If you can successfully change the permissions to 777, Then redo step 7 and don't add anything to your fstab.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
Tazix
Sounds like either your sudo is messed up, or fusesmb is "locking" the changing of the directoy or something.
Since I don't see any way in the help / man pages to start / stop fusesmb... Try undoing step 7, so it doesn't auto start (remove the auto started application in xfce)
If you are also running it in your fstab, edit and take it out of there too.
Reboot... then try to sudo chmod 777 /media/network in a terminal window.
If you can successfully change the permissions to 777, Then redo step 7 and don't add anything to your fstab.
Hello Taz....Thanks for the reply. Still no success.
There's no mention of fusesmb in my /etc/fstab.
Without the fusesmb autostart I can manually sudo chmod 777 /media/network.
But after I fusesmb /media/network in the terminal the permissions change back to Owner rw, Group and Others ro which was my original problem.
However once I do the fusesmb /media/network command my /etc/mtab has a fusesmb entry....
fusesmb /media/network fuse rw,nosuid,nodev,max_read=32768,user=samsung 0 0
(samsung is my username). Is this of any help?
Thanks
Miguel
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
Miguellint
But after I fusesmb /media/network in the terminal the permissions change back to Owner rw, Group and Others ro which was my original problem.
Try running fusesmb with this command instead:
Code:
fusesmb /media/network -o allow_other
that should fix the permissions so anyone can access it.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
reacocard
Try running fusesmb with this command instead:
Code:
fusesmb /media/network -o allow_other
that should fix the permissions so anyone can access it.
Hello reacocard....Thanks for taking the time to reply.
I entered the command as you suggested but there's no change except /etc/mtab now reads.....
fusesmb /media/network fuse rw,nosuid,nodev,allow_other,max_read=32768,user=sa msung 0 0
Before I entered the fusesmb command, /media/network was owned by root and everyone had read and write permissions.
After I entered the fusesmb command, /media/network was owned by samsung (my user name) and Group and Others became read only. When I try to manually change the permissions I get "access denied"
Should "system/users_and_groups/root/properties/user privileges/allow use of fuse...." be ticked or not. My "user_name/allow use of fuse...." is ticked as per Taz's original instructions, but root isn't. (FTR, I've tried root ticked and not ticked and neither seem to make a difference.)
Any help appreciated.
Thanks
Miguel
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
Miguellint
I entered the command as you suggested but there's no change except /etc/mtab now reads.....
fusesmb /media/network fuse rw,nosuid,nodev,allow_other,max_read=32768,user=sa msung 0 0
Before I entered the fusesmb command, /media/network was owned by root and everyone had read and write permissions.
After I entered the fusesmb command, /media/network was owned by samsung (my user name) and Group and Others became read only. When I try to manually change the permissions I get "access denied"
Try doing fusesmb as root instead:
Code:
sudo fusesmb /media/network -o allow_other
that should work. If this fails, you could just mount fusesmb with read-write for your current user in /home/<username>/Network, thereby avoiding the permissions problem altogether.
Quote:
Should "system/users_and_groups/root/properties/user privileges/allow use of fuse...." be ticked or not. My "user_name/allow use of fuse...." is ticked as per Taz's original instructions, but root isn't. (FTR, I've tried root ticked and not ticked and neither seem to make a difference.)
Yes, allow fuse should be checked. Having root's checked shouldn't matter, as root has access to everything.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Hello again reacocard,
My apologies. I seem to have been wasting everyones time.
I tried your latest suggestions but with no success.
So I resized my 60GB Xubuntu partition down to 50GB and used the freed up 10GB for a fresh install of Xubuntu to the new 10GB partition (called Xubuntu2)
Lo and behold, by following Taz's original instructions there were no problems setting up the samba network share in the fresh installation. So something is amiss in my original installation.
I doubt I have the ability to track down what's causing the problem so it looks like I might just increase the size of my new 10 GB partition and gradually migrate to it from the old partition.
Crude, I know. But it gets the job done which is the main thing.
Again, apologies for wasting your (and Taz's) time.
Regards
Miguel
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
Miguellint
Hello again reacocard,
My apologies. I seem to have been wasting everyones time.
I tried your latest suggestions but with no success.
So I resized my 60GB Xubuntu partition down to 50GB and used the freed up 10GB for a fresh install of Xubuntu to the new 10GB partition (called Xubuntu2)
Lo and behold, by following Taz's original instructions there were no problems setting up the samba network share in the fresh installation. So something is amiss in my original installation.
I doubt I have the ability to track down what's causing the problem so it looks like I might just increase the size of my new 10 GB partition and gradually migrate to it from the old partition.
Crude, I know. But it gets the job done which is the main thing.
Again, apologies for wasting your (and Taz's) time.
Regards
Miguel
I had a similar problem but then it was gone. I am not sure that I did much for that. I remeber creating another dir in /media but have never used it as /media/network started to work fine.
Try to uninstall all the fuse stuff and do it again. Might help.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
Miguellint
Hello again reacocard,
So I resized my 60GB Xubuntu partition down to 50GB and used the freed up 10GB for a fresh install of Xubuntu to the new 10GB partition (called Xubuntu2)
Lo and behold, by following Taz's original instructions there were no problems setting up the samba network share in the fresh installation. So something is amiss in my original installation.
Sorry for the long time to reply. Busy Holliday Season for me this year. :)
It sounds like something was forcing security permissions on your original install... Like an SELinux install option (Not sure if Xubuntu has this... haven't done an install in a while). But the point is... It looks like some security app (whether installed durring or after your original install) was overridding any permissions that you were trying to set.
Glad it worked for you on a fresh install, though. ;)
-Taz
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Hi All,
quickly...
- tried the "Tazix How to"...: every step ok....
- tried the "EatMorePie trick to avoid installing Samba"..: found problems...
1) trying to use the command "chgrp fuse /dev/fusesmb" I don't find any "fusesmb" file under /dev directory; there is only a "fuse" file....;
- found the "fusesmb" file under /usr/bin/ directory together at "fusesmb.cache" and "fusermount" files...
...lost in Linux space....any idea??
best regards...
faby
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
hello everyone
Im a newbie in ubuntu/xubuntu and im stuck in this:](*,)
Quote:
Originally Posted by
Tazix
7) In XFCE Applications -> Settings -> Autostarted Applications... Add an application... name and describe as you wish... for command line, put: fusesmb /media/network (Or whatever mountoint you created).
it returns me an error: Error writting the file autostart/(mynamedescription).desktop ( the original error message is in portuguese -> "Falha ao escrever ficheiro autostart/ddd.desktop" where ddd is the name that i gave for the service name)
I believe its because i am not the root user, but no password is asked. How can i run xfce as root in order to alter or create the file ? Can i add this autostarted app by terminal in order to use the sudo thing?
This must be a simple thing but :-k im a noob
cheers
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
:) SOLVED
Created a new user with admin privileges and added the app .. i really dont know whats wrong with my default user.. but its done .
cheers
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
This guide is exactly what I was looking for, but I am having an issue.
Everything seems to work fine, the mount point contains the workgroups, which in turn contains the servers, and the shares (ie. "/media/network/WORKGROUP/DANGERMOUSE/MUSIC (M)" exists) and I can browse this structure to that point, but as soon as I try to open the share (MUSIC in the above example) I get a dialog box saying
Quote:
Failed to open directory "MUSIC"
Connection timed out.
from Thunar, or from the command line
Code:
$ ls /media/network/WORKGROUP/DANGERMOUSE/MUSIC\ \(M\)/
ls: /media/network/WORKGROUP/DANGERMOUSE/MUSIC (M)/: Connection timed out
This is only a problem when accessing shares on the windows box in the network, accessing my local (samba) shares through this works perfectly. I'm 99.9% sure the windows shares aren't password protected (and it doesn't sound like a permissions problem anyway, but I could be wrong).
I've searched but can't seem to find anything useful. Has anyone else run into this, and found a cause and/or solution?
Note: I am actually using Ubuntu 6.10, not Xubuntu, but I use XFCE as my desktop. Not sure if this has any impact.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
DeprecatedBehaviour
Note: I am actually using Ubuntu 6.10, not Xubuntu, but I use XFCE as my desktop. Not sure if this has any impact.
Hmm... since I haven't run into this... the only thing I can say is, yes, possibly it's something quirky with Ubuntu running the XFCE desktop instead of using pure Xubuntu. Miguellint reinstalled his Xubuntu and his problems went away.
Probably not the answer you want to hear, but I have no way of re-creating your situation since I don't run Gnome-Ubuntu at all.
You might try that fusesmb.cache command that Sawjew posted in this thread.
I really wish a Xubuntu dev would pipe in, here. My Linux knowledge is mediocre... above newbie, but far from guru. ;)
-Taz
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I have had a similar problem and it seems to have resolved itself now. I don't think that using it on ubuntu is a problem as I had it working on a standard install of ubuntu edgy with no problems, I just used nautilus instead of thunar and it is much faster and easier than nautilus's samba browser.
I think I found that if I went to the windows pc first and accessed my ubuntu pc then the network worked fine after that. I had this problem but I am no longer having it and I am not exactly sure why. Sorry I can't help any more.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
great howto :) i agree it should be default, I wasn't going to use thunar until I found this, because smb support is essential to me..
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Well... on a fresh installation on another machine... I ran into the same issue as Miguellint did.
Not exactly sure what is causing it.... but after several attempts of recreating directories in /media, manually running fusesmb /media/network in the terminal... what seemed to fix it was removing from autostarted applications... then a sudo fusesmb /media/network, then a reboot, then a discovery that the fuse permission needed to be redone (step 5) because it was no longer checked off, another reboot after fixing that, and then another manual fusesmb /media/network (no sudo this time). Once working the command can be added back to autostarted applications (step 7).
I also found after that after I got it working.... /media/ was root owner and 777, but /network/ was myself as owner and 755. I'm pretty sure fusesmb sets that on the fly, because when I tried the sudo fusesmb command... I couldn't get in the directory as myself... had to look at it "as root". Maybe adding a chown step 6.5 would be in order to help get the thing working. Example: Step 6.5 chown yourusername:yourusername /media/network
Anyway... the whole point is.... double check that step 5 took... you may have to fiddle around manually a few times, with a few reboots to get it to show step 5 didn't take. It must be some sort of PAM glitch or something. But it is repairable.
Hope that helps,
Taz
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
perfect thanks very much, this was the only reason to make still use of nautilus
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Thanks for the great howto, I just have one question which I'm afraid might be more about xp than xubuntu -
2 of the 3 computers on my network show up in mshome, but not the xp one that I'm really interested in seeing. The computer has a simple one-word name, similar description, is on the same workgroup, etc. I can see it fine from another xp computer.
Does anyone know why it doesn't show up in thunar? ( I can mount it just fine using mount //192..... )
Again, sorry for asking an xp-based question, but I figure you guys might have the most experience with this kind of problem
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
TomFumb
Thanks for the great howto, I just have one question which I'm afraid might be more about xp than xubuntu -
2 of the 3 computers on my network show up in mshome, but not the xp one that I'm really interested in seeing. The computer has a simple one-word name, similar description, is on the same workgroup, etc. I can see it fine from another xp computer.
Does anyone know why it doesn't show up in thunar? ( I can mount it just fine using mount //192..... )
Again, sorry for asking an xp-based question, but I figure you guys might have the most experience with this kind of problem
try then wait till it shows up.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
thanks, I wrote that post just after trying fusesmb.cache, and came up with nothing, but then I left it for a while, and now everything's showing up fine
cheers
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Hi,
Personnaly I use "LinNeighborhood" for XFCE, it roxx !!
Code:
$ sudo apt-get install linneighborhood smbfs samba
$ sudo chmod u+x /usr/bin/smbmnt
$ sudo chmod u+s /usr/bin/smbmnt
$ sudo chmod u+x /usr/bin/smbumount
$ sudo chmod u+s /usr/bin/smbumount
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
recently my Windows desktop stop appearing in the network folder. I can still access it through its ip address, but not through fusefs. I do not remember that I have changed anything eithe rin Windows nor in my Ubuntu network settings.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I currently have the same problem that Tazix and Miguellint have seen (I can browser machines but opening an actual share gives the connection timed out error).
It takes about 1minute for the error to come up after clicking on a share so I don't really believe it has timed out as this should be ample time.
I have fiddled around with things as Tazix explains but that has not helped me. I too have notied that the owner and permissions on /media/network is being changed to me as the owner with only read permissions for all others. This occurs when fusesmb is running, however started.
Any further ideas anyone?
Also another issue I have is that when I try to connect to the Xubuntu share (setup in the Shared Folders app) from my XP box I am prompted to login. Whatever username and password I give it always fails so I cannot connect to the Xubuntu shares either. The shared folder has been setup with 777 permissions. I am sure this one is something stupid that I am missing - please enlighten me.
Appreciated
Monkey
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I hate to be negative but I don't think any solution that requires a permanent mount of a windows share gives you the same network browsing ability native to both konqueror and nautilus.
Permanently mounting a share gives you fast access to that share only (you can use fuse or "mount -t smbfs"). As a sysadmin in a busy heterogeneous environment I need to do ad-hoc browsing of numerous windows shares. So I need a client that will accept a unc path, a username and a password. Yes, I am talking about a front end for smbclient, and yes, I can and often do use the terminal client. But sometimes it's nice to have the graphic file mgr so that you can see what you are doing.
I hope that in the future the thunar developers will consider building in support for smb and ssh/sftp. That would make xfce complete, imho.
Cheers, Steve
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
Not-very-wise-monkey
Also another issue I have is that when I try to connect to the Xubuntu share (setup in the Shared Folders app) from my XP box I am prompted to login. Whatever username and password I give it always fails so I cannot connect to the Xubuntu shares either. The shared folder has been setup with 777 permissions. I am sure this one is something stupid that I am missing - please enlighten me.
Well.. I can help you with that part.
If you don't want a user and password at all:
---------------------------------------------------
Open a terminal and:
sudo mousepad /etc/samba/smb.conf
change the line:
security = USER (Or whatever)
to:
security = SHARE
Then look for your share section and make sure it has these lines:
[share name]
path =/path/of/share
read only = no
guest ok = yes
That should let you in your Xubuntu's shares from Windows without needing a user and password.
------
If you want to keep a user / password thing going
---------------------------------------------------------
You need to add samba users. Samba doesn't use native linux accounts... it has it's own accounts.
So, you need to open a terminal and do:
sudo smbpasswd -a USERNAME
It will prompt you for a password.
Then from windows... you use the samba user and password you just created.
Hope that helps,
-Taz
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
foxy123
recently my Windows desktop stop appearing in the network folder. I can still access it through its ip address, but not through fusefs. I do not remember that I have changed anything eithe rin Windows nor in my Ubuntu network settings.
Actually none of my Windows shares appear in the network folder, while Linux samba shares appear all right. I wonder why it is happening...
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Just posting a big thanks to Tazix for your excellent "HOW TO" for xubuntu network browsing.
Worked a treat and was just what I was after. I'm a complete noob to Linux but am an IT specialist so it's something to get my teeth into. I wanted quick access to a Buffalo Linkstation shared network drive on my own network. It was really bugging me as I have a simple workgroup with open permissions but I just couldn't get xubuntu to connect to the shares. I now have the network folder in Thunar !!
So thats not bad in 2 days Ubuntu !! I've got my wireless USB adapter working and now network shares working !!
Next week the world .......... :lolflag:
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Just curious as to what your solution is for shares that require a specific username password. The windows boxes show up fine, but I get an access denied to my linux share due to it having to authenticate.
Anyway to have a prompt?
Should also add that I'm perfectly fine mounting password required shares with linneighborhood (which I currently am). Was just wondering if there was a way to access password shares via thunar...cause the thunar method is damn nice.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
SBFC
Just curious as to what your solution is for shares that require a specific username password. The windows boxes show up fine, but I get an access denied to my linux share due to it having to authenticate.
Anyway to have a prompt?
Should also add that I'm perfectly fine mounting password required shares with linneighborhood (which I currently am). Was just wondering if there was a way to access password shares via thunar...cause the thunar method is damn nice.
No dialogs, but you can set up passwords manually in ~/.smb/fusesmb.conf
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
More on the fuse and /network/media access denied issue...
Just did a fresh install edgy on my old laptop.
I purposely did a couple extra steps to ensure that it would work.
Step 6.5) In a terminal, type: sudo chown <username>:fuse /media/network
(Where <username> is your user account logon name)
Step 6.6) Double check that the permission to use fuse took. Applications -> System -> Users and Groups... Manage Groups... find fuse and choose properties. Make sure your user name account is in that group and check-marked.
Step 6.7) Reboot the system and triple check with step 6.6
Oh... and this is all done on a non-updated Xubuntu Edgy. I don't know if the problem has been a glitch all along, or if it's a glitch introduced with some package that is updated.
Hope that helps,
Taz
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I've got a strange problem. I have set up fusesmb on Feisty and it seems ok. But quite often when I am copying something from the network it fails and /media/network folder disappear. I have to reboot to get it back. I tried:
Code:
fusesmb /media/network
fuse: bad mount point `/media/network': Transport endpoint is not connected
and
Code:
/media$ ls -l
total 4
lrwxrwxrwx 1 root root 6 2007-03-04 14:46 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2007-03-04 14:46 cdrom0
?--------- ? ? ? ? ? network
I have no idea what is going on :(
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
foxy123
I've got a strange problem. I have set up fusesmb on Feisty and it seems ok. But quite often when I am copying something from the network it fails and /media/network folder disappear. I have to reboot to get it back. I tried:
Code:
fusesmb /media/network
fuse: bad mount point `/media/network': Transport endpoint is not connected
and
Code:
/media$ ls -l
total 4
lrwxrwxrwx 1 root root 6 2007-03-04 14:46 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2007-03-04 14:46 cdrom0
?--------- ? ? ? ? ? network
I have no idea what is going on :(
Looks sort of like what happened to me when I tried installing it on my second Edgy Machine.
Try sudo ls -l
It's like the directory gets locked up by root somehow.
Then you need to unload fusesmb, delete the /network directory (with sudo), recreate it, change permissions and ownership, then reload fusesmb. Make sure that your user account is in the fuse group. Sometimes it takes a few tries before the settings stick.
Something wonky goes on and settings don't stick on certain machines sometimes. I have no clue why. The 1st and 3rd machines I tried it on, I had no issues. But my second machine took several attempts before it worked right.
Hope that helps,
Taz
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Hi,
I have some curious problem. I tried to do this succesfully some days ago, but yesterday I reinstalled Xubuntu on my laptop and now I can't install "fusesmb", simply because it doesn't appears in the synaptic package manager. There's only a "fuse-utils"... So I can't neither use the "fusesmb" command in terminal.
Any idea how to solve this?
Thank you!
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
tabako
Hi,
I have some curious problem. I tried to do this succesfully some days ago, but yesterday I reinstalled Xubuntu on my laptop and now I can't install "fusesmb", simply because it doesn't appears in the synaptic package manager. There's only a "fuse-utils"... So I can't neither use the "fusesmb" command in terminal.
Any idea how to solve this?
Thank you!
Try enabling the universe repository.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Well, I re-installed the universe repository (it was installed yet, but some things were missing :confused: ) . I installed the fusesmb package but i can't access the network anyway. Is there some method to check the connection or something? I can't connect neither to the other computer by it's IP... I don't know what to do, it was really much easyer with Ubuntu and Nautilus :(
I reinstalled the Windows on the other computer too, it's maybe some additional config in windows that I'm forgetting to do?
I remember that the last time, after configuring samba etc... I had a samba console on settings or accesories, but there isn't now, is it possible that there is something wrong with the samba installation, or even with Xubuntu install...?
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I've got another problem. I can see shares in my /media/network/WORKGROUP/MYPC but I can access them. When I click on any share I've got:
Code:
Failed to open directory "diskl".
Connection timed out.
I can mount the shares with LinNeighborhood without any problem.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Thanks Tazix for the excellent how-to! Got my machine (Xubuntu Edgy connecting to Thecus N2100 NAS) working very quickly for the first user. The problems came when setting up other users on the same PC trying to mount the same /media/network share - maybe this sheds some light on the permissions problems seen by others....
Just using an autostart 'fusesmb /media/network' for each user I'd get problems:
1) 1st user logs in, accesses share OK, logs out.
2) 2nd user logs in. Share completely disappeared in Thunar. From console
Code:
/media$ ls -l
<entries removed>
?--------- ? ? ? ? ? network
as seen elsewhere. Also
Code:
/media$ cat /etc/mtab
<entries removed>
fusesmb /media/network fuse rw,nosuid,nodev,allow_other,max_read=32768,user=1st_user 0 0
Basically the mount is persisting after the user who created it logs out, so the directory permissions of the mount look screwed to the next user who logs in. To work around this, I tried reacocard's trick and changed the autostart for each user to 'fusesmb /media/network -o allow_other' and also created the file /etc/fuse.conf
Code:
/media$ cat /etc/fuse.conf
user_allow_other
Starting again with a re-created /media/network, everything is fine as subsequent users logging in get to reuse the first user's mount, which is OK until I want to mount shares with restricted access. As per EatMorePie I've given each user a ~/.smb/fusesmb.conf
Code:
[global]
username=YourSMBUsername
password=YourSMBPassword
So now:
1) 1st user logs in, accesses share OK (including their private directories), logs out.
2) 2nd user logs in. Inherits first user's mount including credentials!! Can access first user's private directories, but can't access their own! Oops!
As a workaround, I've changed the autostart for each user to 'fusesmb /media/network -o allow_other,nonempty'. This has the effect of forcing a new mount with the correct credentials as each user logs in. It's good enough to use at home the stop the kids accidentally deleting work I'm trying to protect on my Raid1 NAS. It is obviously not good security though, as it relies on the next user to play nice and replace the previous user's mount.....
Any ideas how to tear down the mount at logout? Do I need to add a script somewhere with 'fusesmb /media/network -o hard_remove'?
The other side effect, which may or may not be a problem, is that /etc/mtab ends up like this:
Code:
/media$ cat /etc/mtab
<entries removed>
fusesmb /media/network use rw,nosuid,nodev,allow_other,max_read=32768,user=1st_login 0 0
fusesmb /media/network fuse rw,nosuid,nodev,allow_other,max_read=32768,user=2nd_login 0 0
fusesmb /media/network fuse rw,nosuid,nodev,allow_other,max_read=32768,user=3rd_login 0 0
<...etc>
For each entry in /etc/mtab there is still a live fusesmb process, belonging to whichever user's autostart created it. Of course a reboot cleans up all the processes and associated mtab entries. So maybe the question should be, is there a better way to launch fusesmb instead of autostart, so that the process gets killed automatically at logout?
Any suggestions for a more elegant multi-user PC setup much appreciated:)
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I can partly answer my own questions:
"Bug 2382 - Request - Add ability to kill processes at xfce shutdown" at http://bugzilla.xfce.org/show_bug.cgi?id=2382 suggests there's no easy way to kill the fusesmb processes when the xfce session ends.
The author states "I know this can be done easily by editing $HOME/.xinitrc (and that works fine for now), but it would be nice to have this ability inside xfce." Any script writers out there know how to run fusesmb from inside .xinitrc instead of using xfce autostart?
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Well, I had this working, now it's acting a lil fishy.
When the 'fusesmb /media/network/ command is run, the permissions/ownership for /media/network change.
It goes from
Code:
drwxrwxrwx 2 root fuse 4096 2007-03-19 01:53 network
while fusesmb isn't running. And when it is running it changes to
Code:
drwxr-xr-x 3 oblivion oblivion 4096 2007-03-19 01:45 network
As soon as I kill the fusesmb process it goes back to the first listing.
Thing is, I didn't even restart or anything, it was working, showing shares, and then just switched. I've tried deleting it/remaking/restarting.
Anyone else seen this? As it stands I can no longer view shares with its current behavior.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
i use xsmbrowser in Dapper Xubuntu, it allows you to mount stuff and make it be owned by a certain user and group also.
you need to start xsmbrowser as root though.
gksudo xsmbrowser
and then you're off. you do need to have samba setup though.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Well, currently I'm using LinNeighborhood to browse/mount shares. Was just hoping to get the Thunar method working again since it allows me to be much lazier. Log in, shares are there. :P
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Now I'm really confused. Shares are showing up in Thunar now, didn't change anything though. Even while mounting/browsing shares with LinNeighborhood they wouldn't show up via fuse.
Any chance that fuse just takes a while to notice things?
Meh. Long as it's working.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I just started experimenting with Xubuntu. While looking for a way to easily browse network shares, I found this great HowTo.
Another way to browse network shares without mounting them is to use Midnight Commander (mc). It's kind of old school, but since it's text console based it can work no matter what version of Ubuntu is being used; and it can be used in a pinch if you can't access your shares with Thunar for some reason. mc is in the Dapper repositories and it's a fast file manager similar to the DOS app Norton Commander. Once it's installed, just type mc in a terminal to use it. To browse the network, click on either left or right, then select SMB link in the context menu that drops down. Then enter the networked computer's name, username, and password (if applicable - if you don't use a password, just leave it blank) and then you should be able to browse that computer's shared folders.
mc can also be used to work with FTP folders.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Hi all,
Is there any way of makeing this work with more than one administrative user.
i added a desktop user and added them to the fuse group and also gave permision to use use fuse under user-properties. but when i browse to the "/media/networt" it doesn't appear it seems to have dissapeared but under my account it works fine.
Puzzled, stumped, confused.
Tahnks
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Cool thread.
I haven't spent much time with Xubuntu, but how to connect to the network was corn-fusin' the crap out of me!
I've got Feisty loaded with gnome and xfce... Time to start gettin' to know that little mouse now!
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
So this seems to work if I have Windows. Unfortunately for me, I have Mac OS X (running version 10.4.9). I haven't been able to get XUBUNTU to share with it, and have been surviving with ftp all this time.
I turned on Windows sharing, and although running smbclient -L 192.168.1.x -U% lets me list the servers, it doesn't let me see the shared directory, only shared printer and the IPC shares.
You don't happen to know how to get the Mac side make its share 'more' visible to the more fully-compliant XUBUNTU machine do you? Does anybody know a solution for me?
:confused:
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Um, OS X should support NFS if I'm not mistaken.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
WOW!! I can't believe this. What a great thread & How-To!! Thanks a million. This was the one thing that has stopped me (For over a year now) using XFCE as my WM. I've always deferred back to Gnome because Nautilus just copes so much better.... UNTIL NOW!! :)
It works great on my network, accessing both Win machines & Linux as well. I'm running the Xubuntu Feisty Beta.
One thing i will also say, with regards to what someone mentioned earlier about using "Midnight Commander" with Network shares etc. If you set your Xubuntu machine up to do this anyway (As in this How-To) then fire up MC, you can just access all your shares in the same way as you would with Thunar, but with a Dual Pane FM, and it seems to be a lot faster & more responsive than Thunar. :)
Anyway, way cool, & it's totally changed the way that i use my OS. I can now use XFCE across my Network!! Fantastic. :)
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
neorou
So this seems to work if I have Windows. Unfortunately for me, I have Mac OS X (running version 10.4.9). I haven't been able to get XUBUNTU to share with it, and have been surviving with ftp all this time.
I turned on Windows sharing, and although running smbclient -L 192.168.1.x -U% lets me list the servers, it doesn't let me see the shared directory, only shared printer and the IPC shares.
You don't happen to know how to get the Mac side make its share 'more' visible to the more fully-compliant XUBUNTU machine do you? Does anybody know a solution for me?
:confused:
yes, osx has an option under system preferences, either network or sharing, you need to enable "windows sharing" which basically is going to open the ports neccessary to get netbios over tcp/ip and samba to work properly, if i remember correctly. but I also believe there is "personal file sharing", which I think is different because it doesn't open ports 445/139 which is for name resolution. I forget? Don't you also have to share a certain folder as well?
I found this also within gogle. It's about Horay but it should still apply.
This post is for those of you who are looking to connect an OS X box to your Ubuntu box set up as a file server or just share files between the two. I figured I would share my success story because there is bound to be someone else out there that would like this information. This process is rather easy and takes just a little time to get up and going. It took me about 20-25 minutes to complete.
First, make sure you have samba installed on your Ubuntu system. Then, locate a directory you would like to be the share point for the OS X box to access.
1. Right-click the directory
2. Click on "Share folder"
3. Enter your password
4. Select "SMB" (if not already) in the drop-down list box labeled, "Share with:"
5. Give a name in the text box labeled, "Name:"
6. Add comments about this share point (optional)
7. Click on the check box labeled, "Read only" if you want this folder to be read only to those who may access the folder. Otherwise, leave it unchecked so that users may write files to the directory for sharing.
8. Click on the check box labeled, "Allow browsing folder" so that the users may look inside (unless you do not want them to)
9. Click OK
Note that in the file sharing dialog above there was a button labeled something like, "Windows sharing information." Explore these options to share files with Windows boxes.
Now, we move along to the OS X box.
First, we will set up file sharing and then we will connect to Ubuntu.
1. Go to the System Preferences (usually, Apple->System Preferences...)
2. Click on the Sharing folder in the Internet & Network section
3. Check the box next to Personal File Sharing and Personal File Sharing will turn on. This may take a few seconds.
4. Go back to the main System Preferences screen (usually by clicking on the "Show All" button in the upper left corner of the window.)
5. Click on the Network icon (it should be close to the Sharing Folder)
6. Make sure "Network Status" is selected in the drop-down list box next to "Show:" at the top of the window.
7. Verify that you are connected to the same network as the Ubuntu box and have a valid IP address (usually indicated by a green light to the left of the adapter)
8. Close out of System Preferences
Now, go to the desktop and we are ready to connect to Ubuntu.
1. Click on the "Go" menu in the menu bar (if it doesn't appear, click on the desktop in empty space and it should appear.)
2. Click on "Connect to Server..."
3. In the "Server Address:" text box, type the connection string in this format: "smb://<Ubuntu box hostname>/<path to share directory>" (without quotes)****
**** <Ubuntu box hostname> should be the host name for your Ubuntu box (UBUNTU by default) and <path to share directory> should be the path to the share directory on the Ubuntu box as you would navigate to it from the root or "/" directory.
Example Server Address: smb://UBUNTU/home/sharefolder
Once you have the proper server address typed in, you can click the button with the "+" symbol on it to save the address for later use. Then, you are ready to connect. Click on the button labeled, "Connect" and OS X will attempt the connection. If everything is configured properly, you should get a window asking for "SMB/CIFS Filesystem Authentication." If you require network users to access the Ubuntu box, this is where you type in the username and password. I do not require this, since I am the only one accessing the file server. If you do not require username and password, make both of those text boxes blank. Then, click OK and OS X will mount the network volume.
Now, you can share files between your Ubuntu box and your OS X box. I hope this is of some use to someone. Thanks!
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Thanks, dannyboy79. You helped me out. The UBUNTU IS WITH YOU!:)
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Thanks a million! This has been a great help. Fuse with Thunar makes life in Xubuntu alot easier.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
GREAT work,
thank you very much
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Great how-to, thanks for the write up on this. Great job
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
This thread has been a great help. I have struggled with a Kubuntu installation previously and gave up because I was having so much trouble with network access. I switched to Xandros where networking just simply works, right out of the box, as they say.
I now have an old Celeron 433 system with 512M with a new 500G hard drive. I am trying to make it a low powered music server running SlimServer from SlimDevices and one of their SqeezeBoxes to feed my stereo. Xandros runs way too slowly on this system. Now I have installed Xubuntu Fiesty 7.04 and now have Thunar set up to browse the network. That part is working fine. When I installed Xubuntu, it wouldn't let me partition the drive beyond 130G so I ran QtParted from the Gentoo system on the System Rescue Diisk, and created another 400G partition. That partition I now have mounted in a music directory under /home. I also installed Samba and it is running. I can see my music directory shared through Samba from my networked Windows 2000 computer. The trouble is when I try to copy anything from the Windows computer to the music directory, it copies a couple files and then hangs. If I then use Thunar to try to look at the music directory, it also hangs. When I try to reboot the Xubuntu computer, it won't shutdown, I have to pull the plug on it. Then when rebooting, it says that the file system on the 400G partition is corrupt. After rebooting, I can again access the music directory and I then see that it stopped copying in the middle of the third file. If I copy the files using Thunar's network access method, the files copy fine. What could make accessing the computer from the network using Samba corrupt my directory?
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Not sure about the partitioning thing as that's never happened to me?? That's obviously not suppose to be that way!
So you're saying that you're running a Samba Server within Xubuntu, then when you're sitting at your Win2000 desk, you open "network computer" (or whatever that icon is) then you also open another Windows Explorer window, then you select some stuff (going TO windows or going FROM windows?) and you drag it and paste it into the opposite of what your answer was to the question in parenthesis, then after a certain file (does it only do it on this 1 file, or any file that the same size, or at different times?) your Xubuntu machine is completly frozen and you can't even do anything? AND the only way to shut it off is by pulling the plug? you can't even just hit the power buton or reset button? what about holding the PWR button in? Huh? I am not sure what to tell you, I have Xubuntu Feisty and a WinXP Pro machine and have transferred it's entire contents to back it up (almost 10gb) and it completes the transfer for me. Pretty decently too, it averaged out to what it should be over a 100mb network (MAX is 12.5megabytes/sec but due to overhead and other network activity, I get around 8megabytes/sec)
Take a look here: http://www.samba.org/samba/docs/man/...r-Clients.html
and see if there's any mention about Win2000 optimizations that you can do.
Well what fusesmb does is actually mount's the data within your local system (poor explaination but I don't know how else to explain it) and when you do samba browsing, you're using other stuff along with the smb protocol I believe. that's my only guess??
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
This happens when I am trying to copy files from the Windows computer to the Xubuntu system. I have been able to copy files from my Windows computer to other Linux systems just fine. The copying just stops and on Xubuntu when I try to access the directory, the Thunar window is open with the wait cursor going around and around. I can close Thunar but when I try to shutdown the computer, I get the blue splash screen and then it just sits there. This computer is an embedded system from some Xerox machine so it has no power switch or reset button, so it's just pull the plug time when this happens. I have since copied about 37G of music files onto it so I am a little hesitant to experiment with it since I don't want to corrupt the directory now. I have another system just like it, maybe I'll start over from scratch on that one and see what happens.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I am encountering problems under Xubuntu 7.04. I am able to browse and open the files shares on WIFI connection without problems, but on wired lan, I am unable to open the shares/folders. The workgroup and share names are shown but once I try to open the folder, it says "unable to open" after it times out in a few seconds.
I've followed the instruction and tried a fresh install without luck. Any help will be highly appreciated.
Albert
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I have somehow narrowed down the problem to the router. On the wired network, I used a Dlink router configured with DHCP while on the WIFI, I used a Linksys with DD-WRT firmware. These are two different and separate network.
After I replacing the Dlink router with a similar linksys router with DD-WRT firmware, fusesmb now works both on wired and wireless network. I am not sure how the Dlink router affected fusesmb function, unable to open the folders and see the files.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Quote:
Originally Posted by
atiu
I am encountering problems under Xubuntu 7.04. I am able to browse and open the files shares on WIFI connection without problems, but on wired lan, I am unable to open the shares/folders. The workgroup and share names are shown but once I try to open the folder, it says "unable to open" after it times out in a few seconds.
I've followed the instruction and tried a fresh install without luck. Any help will be highly appreciated.
Albert
viewing samba shares using Gnome-VFS and many other techniques has always been flakey. I would strongly suggest just mounting the share locally within a folder using CIFS and I gurantee you won't get the unable to open error. here's a guide for mounting windows shares with cifs:
http://ubuntuforums.org/showthread.php?t=288534
you don't need to install winbind and what not, you can always just use the IP address instead of the netbios name, if you can already ping the machine by hostname/netbios name, then you CAN use the netbios name when mounting with CIFS. good luck.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Since I got fusesmb to work with a different router, I'm fine with this solution for now. However, I am just wondering how the router affects fusesmb browsing.
Albert
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
you could always browse the settings of each of the routers and see what may be different. I know that some routers can have their MTU changed, I think that has to do with wireless though. Also, is it possible that the routers cache is larger on one than the other? I don't know just throwing out ideas.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
I'd just like to say a big thank you for this how to. I've been using Ubuntu since Hoary but I've stayed away from XFCE until now because access to samba shares on my network is essential. Anyway, just got hold of an old laptop and decided to install Xubuntu. I then followed this how to and I now have seamless access to all the shares on my network. Great work, and again, many thanks.
-
Re: How to: Xubuntu - Thunar Native Windows Network Browsing
Great thread!!!
I was having problems with this breaking and not having the shares show up after rebooting my PC's. I've found that assigning static IP's to the effected systems works great. Using DHCP seems to hose everything for me....