LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-29-2006, 09:32 AM   #1
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Rep: Reputation: 0
How to configure Samba on SuSE Linux 10?


Hi,

I want to connect via Samba my Windows XP computer and my SuSE Linux 10 computer. The SuSE Linux computer has a REALTEK 8139 card. I know that it works because before installed the Linux on this computer I used Windows and it worked. I think that YaST has configured the card but I am not sure. Anyway. I am a newbie in Linux. Give me if you can as many directions as you can. Give me also the common problems that occur and how they solved.

Thank you in advance.

mitsulas
 
Old 05-29-2006, 09:35 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can't expect people to just reel off everything that can ever go wrong... if you have specific problems, please ask specific questions, otherwise the standard documentation and google are your best friends
 
Old 05-29-2006, 10:22 AM   #3
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
you can't expect people to just reel off everything that can ever go wrong... if you have specific problems, please ask specific questions, otherwise the standard documentation and google are your best friends
OK. I followed the instructions that are in the following adress:w w w . tweakhound.com /linux / samba / page_1.htm

Then from the Konqueror I wrote in the adress bar: smb:/......

in ..... I put the hostname of the WinXP computer. The answer of Konqueror is that there is an internal error and that the connection timed out. I tried smb:/ without hostname and the Konqueror answered that there are no computers in my workgroup.

If you want me to give you some of my log files or configuration files tell me where to find them and I will send them.

thank you.
 
Old 05-29-2006, 11:02 AM   #4
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
First of all -
1) Do u have proper NIC drivers installed?
2) Are you able to ping computers in both directions?
3) Are you using same range of ipaddress/subnet masks?
4) Are you having same WORKGROUP for both these computers?
5) Is samba-server/samba-client running on the linux machine?
6) Is file sharing enabled on one or both of them?
 
Old 05-29-2006, 11:12 AM   #5
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by manishsingh4u
First of all -
1) Do u have proper NIC drivers installed?
2) Are you able to ping computers in both directions?
3) Are you using same range of ipaddress/subnet masks?
4) Are you having same WORKGROUP for both these computers?
5) Is samba-server/samba-client running on the linux machine?
6) Is file sharing enabled on one or both of them?
I can answer these questions if you can tell me how to retrieve the appropriate information.

For example how can I see if I have installed the NIC drivers properly? I just use YaST. I do not know if YaST is enough for my case. I do not know if YaST does the job properly. How can I test that my NIC is properly configured?

In the second question I try to ping giving the IP adresses of the machines but the ping failed. When I made ping on 127.0.0.1 it worked. But as fas as I know this is not enough.

Third question: What means same range of ipaddress? The subnet mask is 255.255.255.0.

Fourth question: I think that I have put the same WORKGRPOUP. How can I check it?

Fifth question: In YaST I have selected the option that samba must run on boot. But I don't know if works?

Sixth question: In WinXP FileSharing is enabled. I don't know if this is enabled in Linux. How can I retrieve this information?

thank you again.

Last edited by mitsulas; 05-29-2006 at 11:17 AM.
 
Old 05-29-2006, 11:31 AM   #6
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
1) To check if NIC cards are recognized and drivers are installed
Code:
dmesg | grep eth
2) To ping the other computer (Replace X.X.X.X with other computer's ipaddress
Code:
ping X.X.X.X
3) To check the ipaddress of the NICs (Replace X with the device number. eg (eth0)
Code:
ifconfig ethX
Same range of ipaddress means - If ur linux machine has an ipaddress like 192.168.0.1, then, other machine (say WinXP) has an ipaddress like 192.168.0.X.
4) To check the workgroup (samba)
Code:
cat /etc/samba/smb.conf | grep workgroup
or open /etc/samba/smb.conf and find a line which has a line similar to
Code:
workgroup = WORKGROUPNAME
5) To check if samba is runnig (with nmbd)
Code:
ps -A | grep smbd
ps -A | grep nmbd
And to check if samba is installed or not?
Code:
rpm -qa | grep samba
rpm -qa | grep smbclient
6) To check which computers on the network have which their filesharing enabled with share names
Code:
smbtree

Last edited by manishsingh4u; 05-29-2006 at 11:35 AM.
 
Old 05-29-2006, 12:23 PM   #7
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by manishsingh4u
1) To check if NIC cards are recognized and drivers are installed
Code:
dmesg | grep eth
2) To ping the other computer (Replace X.X.X.X with other computer's ipaddress
Code:
ping X.X.X.X
3) To check the ipaddress of the NICs (Replace X with the device number. eg (eth0)
Code:
ifconfig ethX
Same range of ipaddress means - If ur linux machine has an ipaddress like 192.168.0.1, then, other machine (say WinXP) has an ipaddress like 192.168.0.X.
4) To check the workgroup (samba)
Code:
cat /etc/samba/smb.conf | grep workgroup
or open /etc/samba/smb.conf and find a line which has a line similar to
Code:
workgroup = WORKGROUPNAME
5) To check if samba is runnig (with nmbd)
Code:
ps -A | grep smbd
ps -A | grep nmbd
And to check if samba is installed or not?
Code:
rpm -qa | grep samba
rpm -qa | grep smbclient
6) To check which computers on the network have which their filesharing enabled with share names
Code:
smbtree
I will give the answer of every command:
1)eth0: RealTek RTL8139 at 0xd1192000, 00:0e:2e:4f:a9:e6, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
eth0: no IPv6 routers present
2) The ping command to 169.254.244.246(WinXP machine) gave as answer : "connect: Network is unreachable"
3) The command ifconfig eth0 gave as answer:
"bash: ifconfig: command not found"
4)The workgroup is the same.
5)The command ps -A | grep smbd gave the following answer:
5297 ? 00:00:00 smbd
5379 ? 00:00:00 smbd

The command ps -A |grep nmbd gave the answer:
5151 ? 00:00:00 nmbd
5)The command rpm -qa | grep samba gave the answer:
yast2-samba-client-2.12.4-2
kdebase3-samba-3.4.2-26
samba-client-3.0.20-4
samba-3.0.20-4
yast2-samba-server-2.12.8-2

The command rpm -qa |grep smbclient gave the answer:
libsmbclient-3.0.20-4
6)The command smbtree asked me for password I gave the root password but it did'nt return any answer.

I cannot specify the IP adress of the Linux machine.

Last edited by mitsulas; 05-29-2006 at 12:24 PM.
 
Old 05-29-2006, 01:06 PM   #8
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
Okay, your NIC has been identified as eth0. I guess now that u have only one NIC. But, if u have 2, then second one is not recognized by ur linux.

Now,
1) Change ur eth0 ipaddress/subnet to any static ipaddress/subnet (say 192.168.0.1/255.255.255.0). I don't remember exactly which buttons to click for this as I haven't used SuSE since months. But. yes u can do it with Yast (GUI).
2) Change ur winxp ipaddress/subnet to any other static ipaddress/subnet (say 192.168.0.2/255.255.255.0).
3) Workgroups are same, so need to change it.
4) Open /etc/samba/smb.conf as root and add shares like this. (The paths, users may differ as per ur system configuration).
Code:
[songs]
    path = /media/hda5
    comment = Songs
    public = yes
    writable = no

[myfiles]
    path = /media/hda6
    comment = personal
    public = no
    writable = yes
    create mask = 0755
    valid users = myusername
NOTE :- for the "myfiles" share, u need a local user on the linux machine by the name "myusername". And to allow him to access the share he must be recognized by the samba. This can be done by (as root)
Code:
smbpasswd -a myusername
You can check if u haven't made any errors in smb.conf by
Code:
testparm
If everything seems fine
Code:
/etc/init.d/smb restart
NOTE- If u want internet connection sharing between these computers, some more configuration is needed to be done.

Last edited by manishsingh4u; 05-29-2006 at 01:09 PM.
 
Old 05-29-2006, 02:13 PM   #9
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by manishsingh4u
Okay, your NIC has been identified as eth0. I guess now that u have only one NIC. But, if u have 2, then second one is not recognized by ur linux.

Now,
1) Change ur eth0 ipaddress/subnet to any static ipaddress/subnet (say 192.168.0.1/255.255.255.0). I don't remember exactly which buttons to click for this as I haven't used SuSE since months. But. yes u can do it with Yast (GUI).
2) Change ur winxp ipaddress/subnet to any other static ipaddress/subnet (say 192.168.0.2/255.255.255.0).
3) Workgroups are same, so need to change it.
4) Open /etc/samba/smb.conf as root and add shares like this. (The paths, users may differ as per ur system configuration).
Code:
[songs]
    path = /media/hda5
    comment = Songs
    public = yes
    writable = no

[myfiles]
    path = /media/hda6
    comment = personal
    public = no
    writable = yes
    create mask = 0755
    valid users = myusername
NOTE :- for the "myfiles" share, u need a local user on the linux machine by the name "myusername". And to allow him to access the share he must be recognized by the samba. This can be done by (as root)
Code:
smbpasswd -a myusername
You can check if u haven't made any errors in smb.conf by
Code:
testparm
If everything seems fine
Code:
/etc/init.d/smb restart
NOTE- If u want internet connection sharing between these computers, some more configuration is needed to be done.
When I completed the second step of the process that you describe the users folder of my linux machine appeared in Windows. So I think that I do not have to continue with the process. I WOULD LIKE TO THANK YOU BECAUSE YOU GAVE YOUR PRECIOUS TIME FOR ME. THANK YOU.
 
Old 05-29-2006, 02:19 PM   #10
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
I am glad to know that u have got it to work. Enjoy
 
Old 05-29-2006, 10:55 PM   #11
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Bravo!

manishsingh4u, just want to say that I like how you answered his questions and gave the solutions in a succinct manner. I wish everyone could respond to posts the way you did!
 
Old 05-30-2006, 04:46 AM   #12
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
I think this thread shoudl set me well on my way with the issues I had in my thread. Will test tonight.
 
Old 05-30-2006, 04:57 AM   #13
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
Quote:
Originally Posted by Micro420
Bravo!

manishsingh4u, just want to say that I like how you answered his questions and gave the solutions in a succinct manner. I wish everyone could respond to posts the way you did!
Thanks Micro420.
 
Old 05-30-2006, 10:47 AM   #14
Tje
Member
 
Registered: Dec 2005
Posts: 75

Rep: Reputation: 15
A great post..but one question

Quote:
Originally Posted by manishsingh4u
NOTE- If u want internet connection sharing between these computers, some more configuration is needed to be done.
actually I never had a problem in samba..
but...
a configuration for internet connection sharing between linux and windows has never been done by me...
I want to try..
so.

could you please tell how to be done..I am interested to try with that..

Thank you..
 
Old 05-30-2006, 11:32 AM   #15
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
Quote:
Originally Posted by Tje
a configuration for internet connection sharing between linux and windows has never been done by me...
I want to try..
so. could you please tell how to be done..I am interested to try with that..
Alright, I need some information from ur side first
1) Which type of internet connection do u have? eg. dialup modem, broadband modem, etc.

2) Which will be the server and which will be client for the internet connection sharing?

3) Are you using static ip address or u have a dhcp to allocate ip addresses. Give exmaple if possible.

Last edited by manishsingh4u; 05-30-2006 at 12:01 PM.
 
  


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
Cannot Configure Ethernet Adapter With SUSE Linux databox Linux - Hardware 7 05-18-2006 01:03 AM
DVD recorder won't configure in Suse linux 10 bthacker Linux - Software 1 04-18-2006 05:23 PM
Please .....How to configure ??DSL 502T with Suse linux gigglie SUSE / openSUSE 1 03-09-2006 06:38 AM
Configure Linksys HPN200 w/SUSE LINUX oldkemist Linux - Hardware 1 03-19-2005 10:59 PM
HP NX5000 with Suse linux 9.1: not able to configure and run wireless mireia Linux - Laptop and Netbook 1 01-14-2005 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:32 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