Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-02-2012, 10:25 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12
Rep: 
|
Samba Shares
I have recently moved to Ubuntu - see my introduction in the new members section 'Hello from Yorkshire'.
I am hoping to use Ubuntu as a file server for our home office, as Mandriva was before, but I am having some trouble getting Linux and the Windows machines to talk to each other.
pyNeighbourhoud finds the four PCs turned on at present, including the Linux but only finds the shares on two of them, including the Linux. Windows finds all shares.
The 'Home' window finds Windows Network/Workgroup but then reports 'Unable to Mount Location, Failed to Retrieve Share List from Server'.
On Personal File Sharing Preference the 'Share Files Over the Network' option reports: 'This function cannot be enabled because the required packages are not installed on your system'. It does not tell me what the required packages are.
The router (BT HomeHub 3) lists all computers and correctly reports which are connected or not. The IP address given by the router is confirmed by ifconfig as 192.168.1.66 which is in the correct range.
BT Desktop Help, which of course will only run on Windows machines, finds everything connected except the Unbuntu.
Windows Explorer finds connected computers and shares, but not the Ubuntu.
So that is it then in a rather large nutshell. There are many features of Linux which I prefer over Windows so I really do not want give it up and anyway it is a challenge.
Malcolm
|
|
|
|
01-02-2012, 11:46 AM
|
#2
|
|
Member
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562
Rep: 
|
Well the good news it definitely can be made to work.
What version of Ubuntu are you running? With what desktop environment?
Do you have the packages samba and smbclient installed?
It's unlikely to be a problem with your pure IP connectivity, but just in case, make sure that the server can ping all the other machines.
The solution will most likely be somewhere in your /etc/samba/smb.conf file.
What workgroup do all the windows machines belong to?
|
|
|
1 members found this post helpful.
|
01-02-2012, 01:14 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12
Original Poster
Rep: 
|
Thank you SecretCode for your reply.
I have this nasty feeling that the problem is going to be something perfectly obvious and simple and I am going to feel extremely silly.
It is Ubuntu 11.10 with Gnome.
Samba and SMBclient are installed.
The Linux can ping all other machines by IP address, but only the Windows machines can resolve the name.
The workgroup is workgroup.
Malcolm
|
|
|
|
01-02-2012, 11:46 PM
|
#4
|
|
Member
Registered: Dec 2011
Posts: 30
Rep: 
|
Hello oakridge,
if your linux system could not resolve the name give that entry in /etc/hosts file
Example:
192.168.1.66 station66.example.com station66
Thanks
|
|
|
1 members found this post helpful.
|
01-03-2012, 05:49 AM
|
#5
|
|
LQ Newbie
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12
Original Poster
Rep: 
|
Thank you Rockstar05 for your reply.
I had forgotten about the hosts file. Oakridge-ubuntu had been assigned 127.0.0.1 along with localhost so that was not helping. I corrected that and entered the other machines on the network and now all can be pinged by name.
We are getting there.
Malcolm
|
|
|
|
01-03-2012, 08:36 AM
|
#7
|
|
LQ Newbie
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12
Original Poster
Rep: 
|
Thank you for your post michaelk.
As I say in my first post pyNeighbourhood can view all four MS machines, but only 'sees' the sub-directories on two. This is not a problem between the MS machines.
The 'Home' icon, which I presume is Nautilus, lists the Windows Network but will not drill down to the actual PCs.
None of the MS machines can connect to the Ubuntu.
Malcolm
|
|
|
|
01-03-2012, 09:41 AM
|
#8
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
If the Ubuntu PC is running a firewall make sure it allows smb traffic.
Is samba server actually running? The samba processes are smbd and nmbd. You will also need to add a samba password for your users (smbpasswd)
Some samba console commands to see shares are findsmb, smbtree and smbclient.
Smbclient -L netbios_name (just press the enter key when asked for a password)
|
|
|
2 members found this post helpful.
|
01-03-2012, 01:41 PM
|
#9
|
|
LQ Newbie
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12
Original Poster
Rep: 
|
Thank you again for your reply michaelk.
Ubuntu does not load a firewall as default and so far I have not installed one.
Samba is running.
findsmb just finds the local machine - ubuntu.
smbtree finds all machines actually running and their shared folders including those which pyNeighbourhood does not list. However, for the ubuntu it reports: cli_start_connection: failed to connect to <20> (0.0.0.0): error NT_STATUS_UNSUCCESSFUL
I hope this helps.
Malcolm
|
|
|
|
01-04-2012, 10:19 AM
|
#10
|
|
LQ Newbie
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12
Original Poster
Rep: 
|
Bingo, yippeee, it works. Thank you all for your help.
Malcolm
|
|
|
|
01-04-2012, 02:48 PM
|
#11
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
Well done.
Please mark this thread as solved. BTW what was the solution so others may benefit.
|
|
|
1 members found this post helpful.
|
01-04-2012, 03:24 PM
|
#12
|
|
LQ Newbie
Registered: Jan 2012
Location: Rotherham, England
Distribution: Mandrake/Mandriva for about 8 years and Ubuntu, 2012 onwards
Posts: 12
Original Poster
Rep: 
|
The solution was that I had started editing smb.conf directly as a text file which went fine but then I tried the Ubuntu Samba configuration program which did not work too well. Unfortunately between the twe I managed to delete all text from smb.conf which did not help sharing at all. Fortunately there is a copy so once that was properly edited everything was fine.
I am sorry but my eyesight is extremely poor and I cannot find the 'solved' button. If you could point me at it I will gladly comply.
Thanks to you all again.
Malcolm
P.S. Ah, found the 'solved' link.
Last edited by oakridge; 01-04-2012 at 03:25 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|