Ubuntu Sharing Issue

Discussion in 'Software' started by linuxpowers, Dec 1, 2012.

  1. linuxpowers

    linuxpowers Corporal

    I recently installed Ubuntu on one of my computers and I am having some issues with sharing, printer/files from my windows 7 computer.

    My setup is as such:

    I have a HP printer connected to my windows 7 computer. Both my windows 7 computer and my Ubuntu computer are connected to a router which is connected to a dsl modem.

    Until this new Ubuntu install, I was using another computer with windows xp installed on it. I was already sharing files back and forth and had the ability to print from either computer. I disconnected my old xp computer and connected this one up and installed ubuntu. Now that I've got ubuntu up and running, even connected to the internet, I'm having problems figuring out how to get each computer to see each other. I look at my win7 and I see no ubuntu, I look at my ubuntu and see in "network places" my win7 workgroup. But, when I click on that icon, ubuntu tells me, "Unable to mount location...Failed to retrieve share list from server".

    Need Help!
     
  2. hitest

    hitest Staff Sergeant

  3. linuxpowers

    linuxpowers Corporal

    Ubuntu 12.10 came with samba installed by default. I've already been through the smb.conf file to verify the workgroup name is the same as the win7 one!
     
  4. Hedon James

    Hedon James Sergeant

    I'm using 12.04 and had similar experiences browsing network devices. I can't find the links to the helpful solutions, but I printed out those suggestions for future reference.

    So that SOME credit can be properly attributed, both suggestions were found on the Ubuntu forums. Re-typed for your use, these were the suggestions that helped me:

    In terminal, type sudo gedit /etc/samba/smb.conf
    This will open the file smb.conf in the gedit text editor. IMMEDIATELY, save the file as smb.conf.bak or smb.conf.old in order to create a restore file if things go horribly wrong with your system!

    Upon saving the file, re-type the sudo gedit /etc/samba/smb.conf command in the terminal. This time, add the following lines at the end of the [global] section of the /etc/samba/smb.conf file

    netbios name = <hostname>
    name resolve order = bcast host
    client lanman auth = yes
    client ntlmv2 auth = no

    please note that the netbios name = <hostname> will be modified to replace <hostname> with the name of your computer, which will be readily available from within your terminal. For example, if your terminal indicates Bob@HPdesktop, then YOU are user Bob, and HPdesktop is the hostname of your computer. In this instance, the first line would read as

    netbios name = HPdesktop

    It is VERY important that upper and/or lower case letters match exactly!

    With above 4 lines added to file, save file. Restart computer. You should be able to browse network shares upon restart. If anyone else locates my referenced solution(s) (I have combined two separate solutions into one, as they were both related) please feel free to link them here, as I don't want to take credit for someone else's expertise.

    Good luck!
     
    Last edited: Dec 1, 2012
  5. linuxpowers

    linuxpowers Corporal

    Well hitest, I finally got the unbuntu computer to print out a test page on the shared printer from the win7 computer but, the files are still an issue.
     
  6. onegoodman

    onegoodman Private First Class

    You may need to download a package for wins support. then edit the lines in the smb.conf file.
     
  7. onegoodman

    onegoodman Private First Class

  8. onegoodman

    onegoodman Private First Class

    Here is my 'smb.conf"file from my Ubuntu computer that I use as a file server.
    Number one thing is make sure you have wins support.
    Use Synaptic Package manager and check for the this file. "libwbclient0" if it's not installed install it.
    I changed the "work group name", and "guest account = your account name" for security reasons.
    When you click on your windows machine you will get a prompt for your windows network password.
     
  9. BoredOutOfMyMind

    BoredOutOfMyMind Picabo, ICU

    Did you share them with your homegroup?

    I opened Music and Photos to Read/Write Access. It goes without saying NEVER do this on a laptop that will be in a public place.
     
  10. brownizs

    brownizs MajorGeek

  11. linuxpowers

    linuxpowers Corporal

    OK, first of all I apologize for taking so long to respond back. In the process, I have found that samba was not installed with this new version of ubuntu, just the config file! Once I installed and configured it, I was able to view and my entire hard windows 7 machines hard drive. Big shout-out goes to "onegoodman" for that one because I never would have known without that link you posted!

    The only thing I don't understand at this point is why I can't see the ubuntu machine while on my windows 7 machine! I'll keep reading your posts and work on ubuntu some more. Many thanks to all for their response!!!
     
  12. brownizs

    brownizs MajorGeek

  13. onegoodman

    onegoodman Private First Class

    If you are still having trouble, sharing files from your Ubuntu computer this is something you should try. I don't recommend doing this on a laptop that will be on any kind of public network.

    1. Open your samba sever configuration.
    2. Click on a share.
    3. Next click on edit properties of selected directory
    4. Next select the access tab.
    5. Select Allow access to everyone.

    You will have access to your shared directories, from almost any device on your network.
     

    Attached Files:


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds