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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2005, 08:56 PM   #1
troycus
Member
 
Registered: Sep 2003
Posts: 84

Rep: Reputation: 15
Recompile Samba


How do I recompile samba? I uninstalled it by mistake and now samba doesn't work anymore. I think if I recompile it, it will work correctly.
 
Old 05-24-2005, 01:47 PM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Well you need the samba source archive of course. Once you got it (try getting the samba.latest.tar.gz from the Samba site) copy it to your home folder and do

tar zxvf samba.latest.tar.gz

or, if you have a .bz:

bunzip2 samba.latest.tar.gz
tar xvf samba.latest.tar

Then, change into the samba/src directory and do

./configure --with-smbmount

make

su
(password here)

make install

exit

Assuming your config files are still there and in order (usually /etc/samba/smb.conf)

your should now be able to do

/usr/sbin/smbd -D
/usr/sbin/nmbd -D

and have Samba back.

If you have any trouble ask - I just reinstalled / recompiled samba myself today.

Regards,
 
Old 05-25-2005, 06:21 AM   #3
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
cool! thanks. I will try that and let you know what happened.
 
Old 05-26-2005, 06:08 AM   #4
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
Rylan76, I have a question. I can't seem to get the ./configre command to work. It keeps telling me that the command doesn't exist. I downloaded the latest version of Samba. It extracted and everything. Then I ran into that problem. What am I doing wrong? I forgot to tell you I'm using redhat 9.
 
Old 05-27-2005, 12:31 PM   #5
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
Anyone?
 
Old 05-27-2005, 04:48 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I presume it was a typo when you entered "configre".

In fact, it is "configure" and you need to be in the root directory of the samba source when you run it.

When you prefix a command with the ./, you are saying specifically: "execute the command with this name that is LOCATED IN THIS DIRECTORY, do not follow the path to find a copy someplace else.

The specific configure command for samba is provided with the samba source and you must execute it from the root of the samba source directory.
 
Old 05-29-2005, 01:01 PM   #7
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
When you say samba source directory, is that the directory that's located etc/samba or is it some where else? where would samba/src locate? I think that's where I'm confused.
 
Old 05-30-2005, 06:44 AM   #8
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
Okay! I finally installed the latest version of Samba. I still have a problem. Everytime I try to go to Network Services to make adjustments for the server. I keep getting this error message:

Can't Display Location

Counldn't display "smb:///", because Nautilus cannot contact the SMB master browser.
Check that an SMB server is running in the local network.

What does that mean? When I checked, it showed that the smb is running. What am I doing wrong?
 
Old 05-30-2005, 07:24 AM   #9
bramhastra
Member
 
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
What is ur samba configuration
 
Old 05-30-2005, 08:27 AM   #10
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
The only thing I changed in my smb.conf file is the workgroup name. I made it match my xp box workgroup.
 
Old 05-30-2005, 08:32 AM   #11
bramhastra
Member
 
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
have u mrked master browser as yes
 
Old 05-30-2005, 08:51 AM   #12
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
where do you do that?
 
Old 05-30-2005, 08:53 AM   #13
bramhastra
Member
 
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
in the smb.conf file there is an option for it and if u dont find it in your smb file look for a default one u will see it there
 
Old 05-30-2005, 09:02 AM   #14
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
That didn't work.
 
Old 05-30-2005, 09:33 AM   #15
bramhastra
Member
 
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
Add these lines to the global section of your /etc/samba/smb.conf file and restart samba:

preferred master = True
domain master = True
wins support = Yes
local master = Yes

or do this


Run `redhat-config-securitylevel` and see that eth0 is checked as a trusted device.

Last edited by bramhastra; 05-30-2005 at 09:36 AM.
 
  


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
recompile 2.4 in 9.2 alaios SUSE / openSUSE 4 02-10-2005 04:51 AM
Do you need to recompile? whishkah Slackware 1 08-13-2004 03:10 AM
Can't recompile...Please help!!!!! Viking Linux - General 7 04-08-2004 10:33 PM
Recompile samba u4113072 Linux - Software 1 09-24-2002 05:18 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 - Software

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