Networking Forums

Networking Forums > Computer Networking > Linux Networking > Do all Linux distros have Samba built-in? Detect if Samba installed?

Reply
Thread Tools Display Modes

Do all Linux distros have Samba built-in? Detect if Samba installed?

 
 
Matthew Lincoln
Guest
Posts: n/a

 
      11-16-2008, 07:17 AM
Sorry for this question but do meanwhile all Linux distributions have Samba built-in?
If not: Which distro have Samba built-in?

How do I find out if a current Linux distro have Samba installed and which version?

Matthew
 
Reply With Quote
 
 
 
 
Wolfgang Draxinger
Guest
Posts: n/a

 
      11-16-2008, 12:21 PM
Matthew Lincoln wrote:

> Sorry for this question but do meanwhile all Linux
> distributions have Samba built-in? If not: Which distro have
> Samba built-in?
>
> How do I find out if a current Linux distro have Samba
> installed and which version?


If Samba is installed or not solely relies on the
user/administrator of the installation. Some distributions
install it by default, but it can be deinstalled as easily.

Way to check it Samba is avaliable: Well, test if it's libraries
and or pkgconfig-files are there, preferrably the pkgconfig
files.

Wolfgang Draxinger
--
E-Mail address works, Jabber: (E-Mail Removed), ICQ: 134682867

 
Reply With Quote
 
Cacadril
Guest
Posts: n/a

 
      11-16-2008, 12:54 PM
On Nov 16, 2:21*pm, Wolfgang Draxinger <wdraxin...@darkstargames.de>
wrote:
> Matthew Lincoln wrote:
> > Sorry for this question but do meanwhile all Linux
> > distributions have Samba built-in? If not: Which distro have
> > Samba built-in?

>
> > How do I find out if a current Linux distro have Samba
> > installed and which version?

>
> If Samba is installed or not solely relies on the
> user/administrator of the installation. Some distributions
> install it by default, but it can be deinstalled as easily.
>
> Way to check it Samba is avaliable: Well, test if it's libraries
> and or pkgconfig-files are there, preferrably the pkgconfig
> files.
>
> Wolfgang Draxinger
> --
> E-Mail address works, Jabber: hexar...@jabber.org, ICQ: 134682867


To make this more specific: Try the following commands

ls -d /usr/share/samba*

each directory listed is likely a samba-related package.

ls /usr/lib/libsmb*.so.*

The libraries listed are likely part of samba-related packages.

ls /etc/init.d/samba

If this file is present, samba is likely installed.

ps -ef | grep smbd | grep -v grep

If there is any output, samba is not only installed, but also running.

The reason all these hints are so approximate, with "likely" results,
is that different linux distributions do things differently, and
hardly anyone knows for sure if he/she knows them all. The hints above
should cover most, if not all distros. To get definitive results, find
out what distro you are using, and what tools that distro uses to
install/update/uninstall packages. If you tell when you post your
questions what distro you are using, you also get more specific
answers.

Regards
 
Reply With Quote
 
General Schvantzkoph
Guest
Posts: n/a

 
      11-16-2008, 02:35 PM
On Sun, 16 Nov 2008 08:17:59 +0000, Matthew Lincoln wrote:

> Sorry for this question but do meanwhile all Linux distributions have
> Samba built-in? If not: Which distro have Samba built-in?
>
> How do I find out if a current Linux distro have Samba installed and
> which version?
>
> Matthew


Every major distro includes Samba.
 
Reply With Quote
 
Lew Pitcher
Guest
Posts: n/a

 
      11-16-2008, 02:46 PM
On November 16, 2008 10:35, in comp.os.linux.networking, General
Schvantzkoph ((E-Mail Removed)) wrote:

> On Sun, 16 Nov 2008 08:17:59 +0000, Matthew Lincoln wrote:
>
>> Sorry for this question but do meanwhile all Linux distributions have
>> Samba built-in? If not: Which distro have Samba built-in?
>>
>> How do I find out if a current Linux distro have Samba installed and
>> which version?
>>
>> Matthew

>
> Every major distro includes Samba.


But, not /all/ distros include Samba.
Additionally, even "major" distros permit whether or not you will /install/
Samba.

Consequently, the answer to the OP's question of whether or not Samba
is "built in" to all distributions is still "No".

--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------


 
Reply With Quote
 
General Schvantzkoph
Guest
Posts: n/a

 
      11-16-2008, 06:12 PM
On Sun, 16 Nov 2008 10:46:08 -0500, Lew Pitcher wrote:

> On November 16, 2008 10:35, in comp.os.linux.networking, General
> Schvantzkoph ((E-Mail Removed)) wrote:
>
>> On Sun, 16 Nov 2008 08:17:59 +0000, Matthew Lincoln wrote:
>>
>>> Sorry for this question but do meanwhile all Linux distributions have
>>> Samba built-in? If not: Which distro have Samba built-in?
>>>
>>> How do I find out if a current Linux distro have Samba installed and
>>> which version?
>>>
>>> Matthew

>>
>> Every major distro includes Samba.

>
> But, not /all/ distros include Samba. Additionally, even "major" distros
> permit whether or not you will /install/ Samba.
>
> Consequently, the answer to the OP's question of whether or not Samba is
> "built in" to all distributions is still "No".


If the OP had asked if all golf courses had grass would you have told him
no because someone in Saudi Arabia had rolled out a green carpet in the
desert and called it a golf course? I'll grant you that there are
hundreds of distros out there, assuming that you accept the proposition
that something is a distro just because someone says it's a distro, and
as such you can't make any blanket statement that includes all of them.
However there are only a small number of distros that matter and all of
them include Samba in their repositories. Of the hundreds of minor
distros that are out there, 99% of them are just collections of Debian
packages which means that they have Samba available in them also. I
suppose that someone might have decided to build a distro call Uselessux
which had no easy way of installing Samba, but the OP is less likely to
encounter that distro then he is to find a golf course that had no grass.
 
Reply With Quote
 
Jerry Peters
Guest
Posts: n/a

 
      11-16-2008, 08:41 PM
General Schvantzkoph <(E-Mail Removed)> wrote:
> On Sun, 16 Nov 2008 08:17:59 +0000, Matthew Lincoln wrote:
>
>> Sorry for this question but do meanwhile all Linux distributions have
>> Samba built-in? If not: Which distro have Samba built-in?
>>
>> How do I find out if a current Linux distro have Samba installed and
>> which version?
>>
>> Matthew

>
> Every major distro includes Samba.


The problem is what exactly the OP means by "built-in". I take it to
mean is Samba installed by default. You apparently think it means
"part of the distribution". Both could be correct; the OP really needs
to use more precise language, or explain what he's after.

Jerry
 
Reply With Quote
 
General Schvantzkoph
Guest
Posts: n/a

 
      11-16-2008, 09:30 PM
On Sun, 16 Nov 2008 21:41:55 +0000, Jerry Peters wrote:

> General Schvantzkoph <(E-Mail Removed)> wrote:
>> On Sun, 16 Nov 2008 08:17:59 +0000, Matthew Lincoln wrote:
>>
>>> Sorry for this question but do meanwhile all Linux distributions have
>>> Samba built-in? If not: Which distro have Samba built-in?
>>>
>>> How do I find out if a current Linux distro have Samba installed and
>>> which version?
>>>
>>> Matthew

>>
>> Every major distro includes Samba.

>
> The problem is what exactly the OP means by "built-in". I take it to
> mean is Samba installed by default. You apparently think it means "part
> of the distribution". Both could be correct; the OP really needs to use
> more precise language, or explain what he's after.
>
> Jerry


I don't think that defaults matter as long as it's trivial to install
something. Installing something from Yumex, Synaptic, YAST or any of the
other package installers is so mind numbingly easy that there is
virtually no difference between installing a package during the system
install or later. This is one of the ways that Linux is vastly easier to
manage than Windows. With Windows things are either installed when you
bought the system or it's not, there is no equivalent to the Linux
package managers. The closest thing that they have is Windows Update
which only works for drivers and for bug fixes to the already installed
MS products, it doesn't install additional software and it doesn't handle
any non-MS software except drivers. With virtually any Linux distro all
you have to do to add additional software to your system is to click a
check box and hit the install button. 99% of the software on any Linux
box is handled this way, the only things that aren't are the few
commercial programs that you might be using, but nobody has more than a
handful of those.
 
Reply With Quote
 
Wolfgang Draxinger
Guest
Posts: n/a

 
      11-17-2008, 12:11 AM
Cacadril wrote:

> ls /usr/lib/libsmb*.so.*
>
> The libraries listed are likely part of samba-related packages.
>
> ls /etc/init.d/samba
>
> (...)
>
> The reason all these hints are so approximate, with "likely" results,
> is that different linux distributions do things differently (...)


If you want to cover all possiblities, then instead of just /usr/lib test
all the directories listed in '/etc/ld.so.conf' for libsmb*.so.*

However this will just tell you, if Samba is installed, not if it's
working/properly configured.

That can be tested by looking at the running processes. Instead of using

> ps -ef | grep smbd | grep -v grep


I'd suggest to use the 'pgrep' program, doing the same, with a simpler
interface:

pgrep smbd

will return the PID of all running Samba instances.

Wolfgang

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Access windows server 2008 shared folder(samba is installed)from Ubuntu pincustomer@gmail.com Windows Networking 3 01-28-2009 01:23 PM
Dancing the Samba with DD-WRT (Samba FS Automount) Louis Ohland Wireless Internet 2 12-01-2006 12:55 PM
XP --> Linux with Samba Mike T. Linux Networking 4 11-07-2005 08:33 AM
A few questions regarding samba from a samba and windows rookie Madhusudan Singh Linux Networking 0 03-30-2005 05:54 PM
[Samba] WINS on Samba server and Routing jbob Linux Networking 0 08-13-2003 01:31 AM



1 2 3 4 5 6 7 8 9 10 11