Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
So I'm fixing a co-workers windows box. I figured while I have it at my house, let's try to get a small network up. Easy in the Windows world, but kicking my ass in the Linux world.
I installed Samba. No problem. I edited my smb.conf file to change my workgroup name and computer description.
Then I went into the command line and
samba start
Then I went to the Win2k rig and looked for the Linux box in network neighborhood. No good. I hear Samba uses TCP-IP, and that's installed, along with Net-Bui on the Win2k. The internet connection works fine for both systems. So the potential to see each other is there.
What am I missing? Also, How would I see the Win computer in Linux? There is no Network Neighborhood in Linux, so how do I browse files on another computer?
I'm still kind of new at this, bus since no one else has posted I will give it my best shot.
First, you don't need the NetBEUI protocol.
Second, please post your smb.conf file.
Third, before you change anything, leave your samba server the way it is and try to go straight to it's IP address in Windows. Enter '\\192.168.1.105' or whatever the samba server's IP is in Explorer and see if Windows will connect to it.
If it does connect this way but you can't find the machine in Network Neighborhood, then there is something wrong with NetBIOS and/or DNS (I think) and I can't help too much there. It sounds like you already have the 'netbios name = ' and 'workgroup = ' parameters under your [global] section in your smb.conf file. You might also want to make sure you have a 'browseable = yes' parameter under all of your shares. I had trouble with this at one point that I couldn't fix, but I was able to get to my samba server via IP and then mapped a drive to it.
If it doesn't connect this way, then there is obviously something else wrong with the way samba (and/or your network) is set up. By the way, please also indicate how your home network is set up (static IPs/DHCP, etc.).
In terms of how to connect to a Windows machine, you will have to mount a network drive. Once you have your Windows share up, the best way to do it is via IP. You can mount your Windows share in the following way:
mount -t smbfs //192.168.1.101/share /mnt/winshare
Of course, substitute the IP address and share name with the Windows machine's IP address and share name, and the mount directory (/mnt/winshare) with whatever you want on your Linux machine. If your Windows machine needs a username and password to access the share, use:
mount -t smbfs -o username=user,password=pass //192.168.1.101/share /mnt/winshare
Once you've successfully mounted the drive you can just go to /mnt/winshare to access the files on the Windows share. If you want this to be done automatically every time you start your Linux machine (otherwise you'll have to remount it every time), you can put it in your /etc/fstab file. Search the forums or Google for 'fstab' and you will find all the info you need.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.