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 06-13-2003, 08:36 AM   #1
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Rep: Reputation: 15
More Samba probs...


Hi! I'm trying to install a samba network between my new RH9 linux and my old win98 boxes.
I've followed like 20 different setups step by step, but nothing works...
RIght now, I'm doing the O'Reilly book, for setuping samba...

I have the newest version (3.0) because my efforts with the old one failed too.
Anyway, when I try to connect to my Linux box from windows, the Network finds only one share (or what do you call them?), which is the Windows computer, It says so in the description I had written 10 min earlier, WIN98 - the win computer.

O'Reilly says I should use som e IP addresses and server names to modify some TCP/IP servers or to connect to the network manually, but how the heck do I know what my server name / IP address is???

//ZZ
 
Old 06-13-2003, 10:38 AM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
if you mean the server running Samba:

# ifconfig -a will give you the ipaddress

#uname will give you the host name

i think uname requires a flag, certain flags display certain
information (like uname -r ) do a man uname to get
a list of the flags and what each does. I'd do it but im on a windows machine at work.
 
Old 06-13-2003, 10:57 AM   #3
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
ok...
well, all I could fet from that was that my IP was 127.0.0.1 and servername was localhost.localdomain

Are those values I can call from Win?
 
Old 06-13-2003, 11:14 AM   #4
fmertus
LQ Newbie
 
Registered: Apr 2003
Location: Southern Oregon
Distribution: redhat, mandrake
Posts: 17

Rep: Reputation: 0
Just a little FYI...
Samba 3.0 is very much in the alpha stage. I played with it for about a month thinking it would do the trick.. No go. I would recommend sticking to the stable release of Samba. IF it doesn't work, it's probably due to something other than samba itself.
 
Old 06-13-2003, 12:32 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
127.0.0.1 is a local loop IP address on every TCP/IP network capable PC. Same goes for localhost hostname.

Edit the /etc/sysconfig/network file to change the localhost.localdomain to something more meaningfull. Need to be root to edit file.

ifconfig -a should of displayed info on eth0 which is the setup of your network card. Use netconfig to setup your network card. Without networking the samba deamon will not start.
 
Old 06-13-2003, 12:41 PM   #6
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
adding to that, if you did ifconfig -a and didnt see an eth0, then
you have netorking issues that need to be worked out.

if that is the case, try this:

ifconfig eth0 up also, just go ahead and post what
the ifconfig -a command gave you.
 
Old 06-14-2003, 07:43 AM   #7
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
This is what it posts right now... however, I'm online, on ADSL, and that's what the network card is busy doing...
Do you think there will be a differennt output if I had the network card connected to the other computer's ? In that case I'll post the otherone

eth0 Link encap:Ethernet HWaddr 00:A0:C9:79:80:15
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:640 errors:0 dropped:0 overruns:0 frame:0
TX packets:708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:268983 (262.6 Kb) TX bytes:97684 (95.3 Kb)
Interrupt:3 Base address:0x300
 
Old 06-14-2003, 02:47 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I assume that your ADSL connection is using pppoe? And the output of ifconfig will show some for pppoe.

I will assume that you only have one ethernet card. So since you don't have eth0 configured for pppoe sama will not start. I am for from a network guru but the DSL connection is using your eth0. You can use a single network card for multiple IP's.

So try this (as root):
ifconfig eth0:1 xxx:xxx:xxx:xxx netmask yyy:yyy:yyy:yyy up

Where x is your IP address and y is your netmask. Now try to start samba i.e.
smbd -D
nmbd -D
 
Old 06-15-2003, 06:47 AM   #9
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
I think you've misunderstood me... I can start samba without any problems... The problem is that I don't think my two computers find each other...

and my eth0 IS configured for ADSL, but does that stop it from working with samba when ADSL is off??? I don't really know what pppoe is because I'm a n00b, but since internet works fine, it has to be configured...

and thirdly - I don't know my IP or netmask addresses...
 
Old 06-16-2003, 04:44 AM   #10
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
What IP addresses have you configured on your machines? You can't use the IP you get from your ISP as, judging from the output you posted, it doesn't appear to be applied to the eth0 when you are using it.

You will need to manually select and configure IP addresses, in the same subnet, on each machine before they will even talk IP to each other, let alone SMB.

Configure 192.168.0.1 255.255.255.0 on the Linux box and 192.168.0.2 on the 1st win98 machine, 192.168.0.3 on the next etc, you get the idea.

Make sure you can ping from each machine to the others. Then start messing around with samba.

I would also get a second nic if I were you, so you have public and private networks, then setup firewall and NAT, makes things nice and secure.
 
Old 06-16-2003, 07:06 AM   #11
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
ok.. thanks for the advice... but how do I configure IP's???

remember, I'm a total HOWTO-follower...
about firewalls and stuff - I don't think I'll be needing those, since both computers are mine, and I'm the only person in this home that is capable to connect a network...

also, what is a nic, and a NAT? subnets? sorry for being such an idiot...
 
Old 06-17-2003, 03:00 PM   #12
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
anyone???


and also... I've just reinstalled samba 2.2.7a with SWAT and everything...

but my NMBD won't start!!! It doesn't output any error messages or anything, it looks like it has started, but when I check, it hasn't...
can anybody plz help???
 
Old 06-17-2003, 03:45 PM   #13
Da_Quest
Member
 
Registered: Feb 2003
Posts: 49

Rep: Reputation: 15
http://www.bnro.de/~schmidjo/download

With LinNeighborhood I'm able to see all of my shared files under Win2k. This has been the easiest way for me so far. I hope this helped.

Here is a step by step way to set it up..... I wish we could all ways get the steps like this.... for us noobies......

http://www.tweakhound.com/mdk9/mdk9net.htm

It will show that it is for 9.0, but the same info works in 9.1. Except for when you get to the point it ask you to open the program by going to Networking and then others. It will be in Remote Access for 9.1.

I installed the RPM...

The only problem I ran into is getting XP to connect to . I can't get the user I created during the installation or the root to work.... PLEASE.... Looking for help...

Quest
 
Old 06-17-2003, 04:06 PM   #14
ziggamon
Member
 
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123

Original Poster
Rep: Reputation: 15
öhum... first of all, I have Redhat, and not MDK...
second of all - my NMBD isn't working...

?
 
Old 06-17-2003, 07:00 PM   #15
Da_Quest
Member
 
Registered: Feb 2003
Posts: 49

Rep: Reputation: 15
Sorry for trying to help... I am new to linux and not trying to be a know it all... Because when it comes to Linux I don't know $#(! ...
 
  


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
hosts probs on Samba, K_smolka Linux - Newbie 3 05-09-2005 06:56 PM
probs with samba bolbort Linux - Networking 1 01-29-2004 12:12 PM
Samba 2.28+W2K Probs Klaus69 Linux - Networking 2 08-20-2003 06:12 AM
RedHat 9.0 and Samba mount probs.............. Mike_Toth Linux - General 7 08-12-2003 10:52 AM
Samba probs Nerd2 Linux - Networking 6 04-17-2003 04:57 PM

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

All times are GMT -5. The time now is 07:20 AM.

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