LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-19-2003, 09:03 AM   #1
Lostman
Member
 
Registered: Nov 2003
Location: Chicago, IL
Posts: 239

Rep: Reputation: 30
Samba. Hmmmmmmmmm


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?
 
Old 11-19-2003, 01:48 PM   #2
GetCool
LQ Newbie
 
Registered: Nov 2003
Location: Madison, WI
Distribution: Debian & Slackware
Posts: 11

Rep: Reputation: 0
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.

Hope that helps.

Last edited by GetCool; 11-19-2003 at 02:53 PM.
 
Old 11-19-2003, 04:13 PM   #3
Lostman
Member
 
Registered: Nov 2003
Location: Chicago, IL
Posts: 239

Original Poster
Rep: Reputation: 30
How do I find out what my IP is on my linux box?
 
Old 11-19-2003, 04:17 PM   #4
GetCool
LQ Newbie
 
Registered: Nov 2003
Location: Madison, WI
Distribution: Debian & Slackware
Posts: 11

Rep: Reputation: 0
Quote:
Originally posted by Lostman
How do I find out what my IP is on my linux box?
The ifconfig command. You'll probably have to use:

ifconfig eth0

But how is your network set up? You must not use static IPs if you don't know your IP address. Are you behind a router? This info helps.
 
Old 11-19-2003, 04:19 PM   #5
Lostman
Member
 
Registered: Nov 2003
Location: Chicago, IL
Posts: 239

Original Poster
Rep: Reputation: 30
I have cable internet that does not have a static IP. I have that going into a little hub. I disabled my firewall (software, in Linux) to do this.

The hub has worked before, so I know it's not that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration