After fighting with trying to rebuiled my src.rpm file. I decided to use a plain old fashion compile from the tar files. which worked ok, no settings changed. at about 11pm last night I finished and noticed a few things that made me a bit uneasy. 1) all the Samba bin files were installed in /usr/local/samba/.. 2) no smb.conf file was created. I used ./configure, make , make install when I think I should have used a one of the scripts./ If I create an smb.conf file should I be ok. and also should I use swat to create it ? regarding building the rpm the path /usr/src/SuSE/RPMS does not exist I used the find and whereis command to locate the new rpm to no avail. would the fact that specific path affect the rebuild, and would creating the path alleviate the problem. also how do you change the list function from digest to normmal ?? On Thu, 16 Dec 1999 00:26:17 +1100, hai scritto:>I have been having some problems recompiling the src.rpm for samba 2.0.5a >samba-2.0.5a-0.src.rpm >I used the command rpm --recompile samba-2.0.5a-0.src.rpm. But nothing >apparent happens. Any one >have any ideas ?rpm --rebuild filename.src.rpm then look into /usr/src/<your-dist>/RPMS/i386/ for the binary rpm. Rowan [TSS] Gerber Scientific Products http://www.gspinc.com
On Fri, 17 Dec 1999 00:16:00 +1100, hai scritto:>1) all the Samba bin files were installed in /usr/local/samba/..Those are the defaults. You need to do something like: ./configure --prefix=/usr --libdir=/etc/samba.d --with-lockdir=/var/lock/samba --with-privatedir=/etc/samba.d/private --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-pam --with-smbmount to tell samba where you want things to go (note that I used a non-conventional place for libdir).>2) no smb.conf file was created.Do it yourself; however if you look in the tarball you'll see many examples of smb.conf.>a one of the scripts./ If I create an smb.conf file should I be ok. and >also >should I use swat to create it ?You can. Before using swat just create an empty smb.conf (remember that maybe you are used to /etc/smb.conf, but the samba you compiled may think it is in a different place).>regarding building the rpm the path /usr/src/SuSE/RPMS does not existOk, I know Caldera that uses /usr/src/col, and redhat /usr/src/redhat. You can find where the rpm stuff is by looking at the output of $ grep topdir /usr/lib/rpm/macros %_builddir %{_topdir}/BUILD %_rpmdir %{_topdir}/RPMS %_sourcedir %{_topdir}/SOURCES %_specdir %{_topdir}/SPECS %_srcrpmdir %{_topdir}/SRPMS %_topdir %{_usrsrc}/redhat <=====I hope the rpm config files are in /usr/lib/rpm on suse too :-)>also how do you change the list function from digest to normmal ??Go here: http://samba.anu.edu.au/listproc -- giulioo@pobox.com
Great thanks, just to clarify a few things. /configure --prefix=/usr --libdir=/etc/samba.d --with-lockdir=/var/lock/samba --with-privatedir=/etc/samba.d/private --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-pam --with-smbmount This is when you run the ./configure command amd thats all in one line ? second, with the deault set up as it is, can I use the log file to locate where it is looking for smb.conf? and last, if I did goof, how do I get rid of the version I compiled. I am assuming by deleteing the /usr/local/samba dir Rowan [TSS] Gerber Scientific Products http://www.gspinc.com -----Original Message----- From: Giulio Orsero [mailto:giulioo@pobox.com] Sent: Thursday, December 16, 1999 8:54 AM To: Multiple recipients of list SAMBA Subject: Re: Samba2.0.6 tgz compile questions. On Fri, 17 Dec 1999 00:16:00 +1100, hai scritto:>1) all the Samba bin files were installed in /usr/local/samba/..Those are the defaults. You need to do something like: /configure --prefix=/usr --libdir=/etc/samba.d --with-lockdir=/var/lock/samba --with-privatedir=/etc/samba.d/private --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-pam --with-smbmount to tell samba where you want things to go (note that I used a non-conventional place for libdir).>2) no smb.conf file was created.Do it yourself; however if you look in the tarball you'll see many examples of smb.conf.>a one of the scripts./ If I create an smb.conf file should I be ok. and >also >should I use swat to create it ?You can. Before using swat just create an empty smb.conf (remember that maybe you are used to /etc/smb.conf, but the samba you compiled may think it is in a different place).>regarding building the rpm the path /usr/src/SuSE/RPMS does not existOk, I know Caldera that uses /usr/src/col, and redhat /usr/src/redhat. You can find where the rpm stuff is by looking at the output of $ grep topdir /usr/lib/rpm/macros %_builddir %{_topdir}/BUILD %_rpmdir %{_topdir}/RPMS %_sourcedir %{_topdir}/SOURCES %_specdir %{_topdir}/SPECS %_srcrpmdir %{_topdir}/SRPMS %_topdir %{_usrsrc}/redhat <=====I hope the rpm config files are in /usr/lib/rpm on suse too :-)>also how do you change the list function from digest to normmal ??Go here: http://samba.anu.edu.au/listproc -- giulioo@pobox.com
The /usr/local/samba encapsulated tree is an acquired taste. As a Red Hat guy the first time I saw it I felt sick. But then I started to like it. I have 2.0.5a, 2.0.6 and 2.1 all hanging off /usr/local, and I switch versions with a script that reassigns symlink samba to one of the above. When I install Samba, I know I'm not messing with any Red Hat stuff. As far as the no smb.conf, I like it. Too many people start their setup using one of those behamoth example smb.conf files, and then wonder why they have so much trouble with fault isolation. Testparm tells you to put in smb.conf, and then the next time tells you to create the locks file, and then everything works (after you add encrypted passwords). So take a few days to get used to the /usr/local/samba setup, and see if you like it. Steve Litt At 12:15 AM 12/17/1999 +1100, Reid, Rowan (GSP) wrote:> > > >After fighting with trying to rebuiled my src.rpm file. I decided to use a >plain old >fashion compile from the tar files. which worked ok, no settings changed. >at about 11pm last night I finished and noticed a few things that made me a >bit >uneasy. > >1) all the Samba bin files were installed in /usr/local/samba/.. >2) no smb.conf file was created. > >I used ./configure, make , make install when I think I should have used >a one of the scripts./ If I create an smb.conf file should I be ok. and >also >should I use swat to create it ? > >regarding building the rpm the path /usr/src/SuSE/RPMS does not exist >I used the find and whereis command to locate the new rpm to no avail. >would the fact that specific path affect the rebuild, and would creating >the path alleviate the problem. > >also how do you change the list function from digest to normmal ?? > > > > > >On Thu, 16 Dec 1999 00:26:17 +1100, hai scritto: > >>I have been having some problems recompiling the src.rpm for samba 2.0.5a >>samba-2.0.5a-0.src.rpm >>I used the command rpm --recompile samba-2.0.5a-0.src.rpm. But nothing >>apparent happens. Any one >>have any ideas ? > >rpm --rebuild filename.src.rpm >then look into /usr/src/<your-dist>/RPMS/i386/ >for the binary rpm. > >Rowan [TSS] >Gerber Scientific Products >http://www.gspinc.com > > >