Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-05-2011, 06:26 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Location: Tuscaloosa, Alabama
Distribution: Ubuntu 10.10
Posts: 26
Rep:
|
Samba installation path on Ubuntu 10.10
I am trying to compile samba 3.5.6 in ubuntu 10.10 but I don't know how to get all the binaries to install in the right place. Default path for 3.5.6 is /usr/local/samba but in the ubuntu samba package, some binaries are in /usr/bin and some are in /usr/sbin. How can I get the install to put everything where it needs to go or will I have to manually move or link all the binaries?
Thanks!
|
|
|
01-05-2011, 08:46 PM
|
#2
|
LQ Newbie
Registered: Dec 2008
Location: Yukon, Canada
Distribution: Debian/Ubuntu
Posts: 20
Rep:
|
I can't speak directly to compiling samba on 10.10, but in general, when you compile a program, you run a ./configure script or some such. If you run ./configure --help, you will find that you can set the installation path for various parts of the program, along with other options that you can pass to the configure script. If samba doesn't have such a configure script, then often you can adjust that stuff in the make file.
Perhaps someone with some more direct experience can give you more accurate pointers...
|
|
|
01-06-2011, 03:10 PM
|
#3
|
LQ Newbie
Registered: Sep 2004
Location: Tuscaloosa, Alabama
Distribution: Ubuntu 10.10
Posts: 26
Original Poster
Rep:
|
Thanks for the tip. I looked at ./configure --help and the relevant portion is:
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local/samba]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/samba/bin', `/usr/local/samba/lib' etc. You can specify
an installation prefix other than `/usr/local/samba' using `--prefix',
for instance `--prefix=$HOME'.
This is followed by some specific commands for changing directories manually for each type of file.
Now if I only knew what paths to specify. . . Does anyone with knowledge of samba and ubuntu have any suggestions? Thanks.
|
|
|
01-07-2011, 12:41 AM
|
#4
|
LQ Newbie
Registered: Dec 2008
Location: Yukon, Canada
Distribution: Debian/Ubuntu
Posts: 20
Rep:
|
Well, you can use the defaults. It's not like they wont' work, you just might find something you would expect to be in /etc/ in /usr/local/etc/ or something instead.
Otherwise, you can put things where you like. if you don't like it you can make uninstall or some such, re./configure, and install again...
|
|
|
01-11-2011, 01:57 PM
|
#5
|
LQ Newbie
Registered: Sep 2004
Location: Tuscaloosa, Alabama
Distribution: Ubuntu 10.10
Posts: 26
Original Poster
Rep:
|
I suppose so, but the ubuntu programs that depend on samba (gadmin, smb4k, etc.) will expect it to be in the default ubuntu locations, won't they?
|
|
|
01-12-2011, 12:14 AM
|
#6
|
LQ Newbie
Registered: Dec 2008
Location: Yukon, Canada
Distribution: Debian/Ubuntu
Posts: 20
Rep:
|
hmm.. maybe, but I don't think so.
I expect that when you install samba, it will put the binaries somewhere in your path, so that when other programs call them, they will just be there.
I suppose if you put all your paths to completely non-sensible locations, you could create that problem though
|
|
|
01-12-2011, 03:18 PM
|
#7
|
LQ Newbie
Registered: Sep 2004
Location: Tuscaloosa, Alabama
Distribution: Ubuntu 10.10
Posts: 26
Original Poster
Rep:
|
I am beginning to think I should've uninstalled the old ubuntu samba package before compiling and installing the new samba from source. If the old samba scripts were still there when the new binaries were placed in the path (residing in different default directories from the old), it may still be calling the old ones.
Does that make any sense?
|
|
|
01-13-2011, 05:24 AM
|
#8
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
A while back, I had to recompile Apache from source to make use of SNI. I too had problem getting the layout correct. See this link. Specifically, look at the part on configuring Apache (compiling) where it says:
Code:
. Run: "sudo ./configure --enable-layout=Debian -enable-ssl=shared --enable-mods-shared=all --enable-deflate --with-program-name=apache2"
The --enable-layout=Debian should get you the proper file locations, but it was not one of the standard layouts that I recalled seeing in the configure help or documentation.
|
|
|
01-13-2011, 11:01 AM
|
#9
|
LQ Newbie
Registered: Sep 2004
Location: Tuscaloosa, Alabama
Distribution: Ubuntu 10.10
Posts: 26
Original Poster
Rep:
|
Thanks to both of you for the input. I may just have to wait for an ubuntu package rather than risk screwing things up even more. I have a working server now. I just can't access any Windows 7 computers on the network and the updated samba was supposed to fix that.
|
|
|
01-14-2011, 12:09 PM
|
#10
|
LQ Newbie
Registered: Dec 2009
Posts: 27
Rep:
|
you might look in the natty repos or the debian unstable repos.....they might have the new package already for you.
also check the ubuntu forum since I bet its a pretty hot topic if they cant access win7 yet
oh one last thought sometimes linux mint has things like this figured out so they may already have the new .deb for you in their repos or check their forum
Last edited by markie83; 01-14-2011 at 12:10 PM.
|
|
|
01-14-2011, 12:39 PM
|
#11
|
LQ Newbie
Registered: Sep 2004
Location: Tuscaloosa, Alabama
Distribution: Ubuntu 10.10
Posts: 26
Original Poster
Rep:
|
Thanks for the tip! Here is something I found:
https://launchpad.net/~polslinux/+ar...+build/2024025
Does this look safe to use? Looks like it's for Lucid but I guess it would work on Maverick.
Would I have to download each of the .deb files and install them separately or is there some easier way to do it?
Thanks.
|
|
|
01-14-2011, 12:43 PM
|
#12
|
LQ Newbie
Registered: Sep 2004
Location: Tuscaloosa, Alabama
Distribution: Ubuntu 10.10
Posts: 26
Original Poster
Rep:
|
Also just found this:
https://launchpad.net/ubuntu/+source...~dfsg-1ubuntu1
I've never used launchpad before, so I'd be grateful if someone could explain it to me.
|
|
|
01-15-2011, 09:16 AM
|
#13
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
Ubuntu is backed and supported by a company called Canonical and launchpad is the software repository and bug tracking system / mail list and archive tool. The code uploaded to Launchpad has been signed by the Ubuntu developers and should be about as safe as you can get in terms of malware. However, as you can see from the links you have found, it is where the work is being done on the integration of the latest application updates, such as Samba 2.3.5.6.
In this case, it shows that they were able to successfully compile the latest samba edition for Ubuntu. It also required updates to various other packages, the .deb files you were asking about. In order to run the samba you will probably need those upgrades too, assuming you don't already have them. The risk you face is that these other libraries may break other functions. This risk is reduced, but not eliminated, when you wait for the official distribution upgrade.
Theoretically, if you run into trouble you can downgrade a package in Synaptic, but I have never seen this as being an option when even I have looked for it.
|
|
|
01-21-2011, 06:25 PM
|
#14
|
LQ Newbie
Registered: Jan 2011
Posts: 1
Rep:
|
The following worked for me:
./configure --exec-prefix=/usr/ --with-configdir=/etc/samba/
|
|
|
All times are GMT -5. The time now is 04:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|