How to share network files on a Windows network with Ubuntu
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I type in 192.168.1.101 (the other pc's address), it says "Cannot display location "smb://192.168.1.101/" No application is registered as handling this file."
What did I do wrong?
I also typed in "MSHOME" as the server, as that is the name of the network. I get the same box as with the IP.
I also typed in "MAINPC" as the server, as that is the name of the other pc. Once again, same response.
Is the Firewall on on your Windows PC's ? That is a common issue when trying to share files with a Windows PC.. certainly something to check before you try more complicated troubleshooting. and then of course you have to have a folder shared on your windows pc...
Acid Kewpie I feel your pain.. I can't tell you how many times I've posted a link to the solution for what was requested, but people seem to skim over them and never follow the links and read.. I just don't get it.
When I type in 192.168.1.101 (the other pc's address), it says "Cannot display location "smb://192.168.1.101/" No application is registered as handling this file."
What did I do wrong?
I also typed in "MSHOME" as the server, as that is the name of the network. I get the same box as with the IP.
I also typed in "MAINPC" as the server, as that is the name of the other pc. Once again, same response.
Add the share in. I think you've hit a bug of sorts. This isn't something I ever play with really, but did see this behaviour with just the server name. Add the share name too and it'll hopefully pop right up. did for me.
(you can the click that "notepad" button in the menu bar to change to url mode and you'll see what some other people were trying to refer to)
Add the share in. I think you've hit a bug of sorts. This isn't something I ever play with really, but did see this behaviour with just the server name. Add the share name too and it'll hopefully pop right up. did for me.
(you can the click that "notepad" button in the menu bar to change to url mode and you'll see what some other people were trying to refer to)
Hmmm...I entered MSHOME for the server and MAINPC for the share, and it said, "Failed to mount Windows share"
The firewall is off on the windows machine. That got me to thinking, so I also disabled ZoneAlarm and put that machine in the DMZ in the router, but I got the same failure.
This is frustrating. Much as I hate to say it, it seems that networking is much simpler on windows.
Thank you for the links, but they both did nothing for me. The first one has commands to type, and I have no idea where to type commands. The second one was a bunch of posts, one of which seemed to match my problem, but apparently it corrected itself for the user, so I gleaned no useful information from it. Please remember, I have NO IDEA what I'm doing in Linux, so I need very detailed step-by-step help.
I bought a book today on Ubuntu Linux...Ubuntu Linux For Dummies. I'm hoping that it, along with you nice people, will help me solve this problem, and (I'm sure) many more in the future.
Just go to Application > Accessories > Terminal
And then type sudo smbtree. It will ask for your password. Provide it and it will list all the windows shares for you.
Just go to Application > Accessories > Terminal
And then type sudo smbtree. It will ask for your password. Provide it and it will list all the windows shares for you.
I typed that (NOW I know where to type commands...thanks for that info!), and it says "sudo: smbtree: command not found"
Well I still want you to check if smbclient is installed. It could be other issue but no harm in checking it. Go to System > Administration > Synaptic. just search for smbclient. I hope its there but just check.
Hmmm...I entered MSHOME for the server and MAINPC for the share, and it said, "Failed to mount Windows share"
The firewall is off on the windows machine. That got me to thinking, so I also disabled ZoneAlarm and put that machine in the DMZ in the router, but I got the same failure.
it's probably worth stepping back slightly and confirming you can, say, ping the other computer in the first place. try by IP address. I don't think you'd be able to ping by machine name at all, but *should* be able to map the share by name. I'd suggest trying the drive map by IP address again too.
Quote:
Originally Posted by mollydoggy1971
This is frustrating. Much as I hate to say it, it seems that networking is much simpler on windows.
Well this isn't networking at all. this is using a Microsoft proprietary application (which just happens to involve the use of a network) which has been painstakingly reverse engineered to work on a different operating system. Doing what you want might feel trivial but it's really really not in terms of the vast amount of work that's been put in to make it work.
Well I still want you to check if smbclient is installed. It could be other issue but no harm in checking it. Go to System > Administration > Synaptic. just search for smbclient. I hope its there but just check.
It was not installed, but I just installed it. I hope that assumption doesn't mess things up any further.
it's probably worth stepping back slightly and confirming you can, say, ping the other computer in the first place. try by IP address. I don't think you'd be able to ping by machine name at all, but *should* be able to map the share by name. I'd suggest trying the drive map by IP address again too.
I'll happily try pinging the other machine, if you would kindly tell me how to do that.
Ah, never mind, I figured that one out. Hopefully it's what you were looking for. I typed "ping 192.168.1.100" (address of the other pc) and i got the following:
mollydog@ubuntu:~$ ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=128 time=4.69 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=128 time=0.182 ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=128 time=0.182 ms
64 bytes from 192.168.1.100: icmp_seq=4 ttl=128 time=0.157 ms
and it went on until i hit CTRL+C
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.