Re: [SLUG] removing samba

2010-03-02 Thread meryl
> Hi,
> I know I'm late for the party but I don't see anyone mentioning
> aptitude's amazing "mark for auto remove" flag (set by pressing M). By
> marking packages you know you don't care about with this flag you
> automatically get them removed when nothing you care about depends on
> them.
> Also to get this flag set automatically when you install packages just
> use aptitude instead of apt-get, e.g. Replace any mention of "apt-get
> install ..." with "aptitude install...".
> Cheers,
> -Amos

Hi Amos, 

yes iirc I saw that same orphan management tool in an "apt-get vs
aptitude" article once but I'd since forgotten all about it... thanks
for the reminder, much appreciated!

cheers,
Meryl
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] removing samba

2010-03-02 Thread Amos Shapira
Hi,
I know I'm late for the party but I don't see anyone mentioning
aptitude's amazing "mark for auto remove" flag (set by pressing M). By
marking packages you know you don't care about with this flag you
automatically get them removed when nothing you care about depends on
them.
Also to get this flag set automatically when you install packages just
use aptitude instead of apt-get, e.g. Replace any mention of "apt-get
install ..." with "aptitude install...".

Cheers,
-Amos

On 2/19/10, meryl  wrote:
> Thank you Ken, Erik, James & Mike for your replies.
> You are a wealth of information!
>
> non-dependent Samba pkgs removed, restarted and I'm very happy!
>
> thanks again & cheers,
> Meryl
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] removing samba

2010-02-18 Thread james
On Friday 19 February 2010 06:42:22 slug-requ...@slug.org.au wrote:
> > From: "meryl"
> > Sent: Friday, 19 February, 2010 8:11:53 AM
> > 
> > I needed to do some file sharing recently and now that the task is
> > finished so I want to remove the Samba service. I'm using Ubuntu 9.10.
> > 
> > in Synaptic > search: samba 
> > 
> > shows that the following items are installed;
> > 
> >   samba
> >samba-common
> >samba-common-bin
> >smbclient
> >libpam-smbpass
> >libsmbclient
> >libwbclient0
> >nautilus-share
> >python-smbc

Meryl
to quote ShazBaz you are talking a fart in a fan factory. I've spent *weeks* 
trying to reduce the distro size for an embedded video recording system. You 
are up for a Gig or two no matter what hoops you jump through.
Me, after ages in which I gor some 500M as the base distro just gave up and 
took an extra 2G of flash from video storage for the distro.
I built, from scratch, a 40M distro, if you are cynical about it it was worth 
10 or 20 K$, Cheaper to buy bigger flash :-)
James
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] removing samba

2010-02-18 Thread meryl
Thank you Ken, Erik, James & Mike for your replies. 
You are a wealth of information!

non-dependent Samba pkgs removed, restarted and I'm very happy!

thanks again & cheers,
Meryl
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] removing samba

2010-02-18 Thread Ken Foskey
On Fri, 2010-02-19 at 08:11 +1100, meryl wrote:
> I needed to do some file sharing recently and now that the task is
> finished so I want to remove the Samba service. I'm using Ubuntu 9.10.
...
> When I mark "samba" for removal no other files on this list are
> marked. So is just marking "samba" for removal sufficient to stop this
> service from starting at boot... and I don't want to keep files that
> only rely on samba alone as they'll be superfluous.

At the command line:
sudo apt-get autoremove

The clean up 'mostly' just works but sometimes dependent libraries will
be left lying around.

Also in synaptic, check for a section 'Not Installed (residual config).
If you want you can flag these for complete removal, cleaning up more
package information.


> But when I select "samba-common" to be removed, Synaptic notifies me
> of a list of other files that it will also remove with "samba-common"
> - one of them being "ubuntu-desktop".

ubuntu provides a method for connecting to Windows shares as a client,
this is part of desktop.  I would not recommend removing it because
upgrades become harder.

Ta
Ken

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] removing samba

2010-02-18 Thread Erik de Castro Lopo
meryl wrote:

> I needed to do some file sharing recently and now that the task is
> finished so I want to remove the Samba service. I'm using Ubuntu 9.10.
> 
> in Synaptic > search: samba 
> 
> shows that the following items are installed;
> 
>samba
>samba-common
>samba-common-bin
>smbclient
>libpam-smbpass
>libsmbclient
>libwbclient0
>nautilus-share
>python-smbc
> 
> When I mark "samba" for removal no other files on this list are
> marked.

Samba is the samba server. Thats the one you want to remove.

Samba-common and samba-common-bin contain files and programs used
by both the samba server and samba client programs. You probably
don't want to remove these.

> But when I select "samba-common" to be removed, Synaptic notifies me
> of a list of other files that it will also remove with "samba-common"
> - one of them being "ubuntu-desktop".
> 
> I'm not so sure that I want ubuntu-desktop removed! 

Ubuntu-desktop is a meta-package, a package that contains no files itself,
but depends on a bunch of other things that would be useful to have if
you are running an ubuntu desktop machine. However, unless you really know
what you are doing, you should probably keep ubuntu-desktop installed.

Erik (who always uses the command line dpkg and apt-* tools)
-- 
--
Erik de Castro Lopo
http://www.mega-nerd.com/
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] removing samba

2010-02-18 Thread James Gray
> - Original Message -
> From: "meryl"
> Sent: Friday, 19 February, 2010 8:11:53 AM
> 
> I needed to do some file sharing recently and now that the task is
> finished so I want to remove the Samba service. I'm using Ubuntu 9.10.
> 
> in Synaptic > search: samba 
> 
> shows that the following items are installed;
> 
>   samba
>samba-common
>samba-common-bin
>smbclient
>libpam-smbpass
>libsmbclient
>libwbclient0
>nautilus-share
>python-smbc

Hi Meryl,

If you jump on the command line and type "apt-cache show samba" then scroll 
down you'll see this (this was on a Ubuntu 8.04 system - YMMV):

 Currently, the Samba Debian packages consist of the following:
 .
  samba - LanManager-like file and printer server for Unix.
  samba-common - Samba common files used by both the server and the client.
  smbclient - LanManager-like simple client for Unix.
  swat - Samba Web Administration Tool
  samba-doc - Samba documentation.
  samba-doc-pdf - Samba documentation in PDF format.
  smbfs - Mount and umount commands for the smbfs (kernels 2.2.x and above).
  libpam-smbpass - pluggable authentication module for SMB/CIFS password
   database
  libsmbclient - Shared library that allows applications to talk to SMB/CIFS
 servers
  libsmbclient-dev - libsmbclient shared libraries
  winbind - Service to resolve user and group information from Windows NT
servers
 .
 It is possible to install a subset of these packages depending on
 your particular needs. For example, to access other SMB/CIFS servers you
 should only need the smbclient and samba-common packages.
 

So with the exception of the nautilus/python bindings Synaptic seems to 
correspond to the list.  Notice that last line? ;)  Read on...

> When I mark "samba" for removal no other files on this list are
> marked. So is just marking "samba" for removal sufficient to stop this
> service from starting at boot... and I don't want to keep files that
> only rely on samba alone as they'll be superfluous.

Keep in mind there are 2 halves to the Samaba packages: server components and 
client components (see the description next to "samba-common"?) with some 
common bits they both share.  You probably only want to get rid of the server 
components.

> But when I select "samba-common" to be removed, Synaptic notifies me
> of a list of other files that it will also remove with "samba-common"
> - one of them being "ubuntu-desktop".
> 
> I'm not so sure that I want ubuntu-desktop removed! 

Don't sweat the "ubuntu-desktop" package.  It's not a "real" package, it's a 
meta-package which depends on all the components for an interactive desktop 
etc.  If you go to the command line (again...sorry) and type "apt-cache show 
ubunut-desktop" you'll notice in the "Depends" section it relies on 
"smbclient".  So if you remove the smbclient package the package manager must 
remove the ubuntu-desktop meta-package to maintain dependancies.  HOWEVER, 
removing a meta-package DOES NOT remove the packages it depends on :)  So it's 
safe.

Getting back to your original query, you should be able to remove:
samba
swat
samba-doc
samba-doc-pdf
libpam-smbpass
winbind

Just leave the "smbclient" package and "ubuntu-desktop" should be fine.  Worst 
case scenario, hose ALL the samba stuff (which will take out "ubuntu-desktop as 
colateral) then simply re-install "ubuntu-desktop".  This will ensure you only 
get the bits of samba required to satisfy "ubuntu-desktop" when you re-install 
it.  Not perfect, but it is simple.

Have fun!

-- 
James
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] removing samba

2010-02-18 Thread Mike
If baffles me as to why it's so difficult to stop a service on boot in  
ubuntu but read this post:


http://ubuntuforums.org/showthread.php?t=1341947

I also don't see why it's been made hard to pull samba out, maybe  
someone more ubuntu friendly can explain how to remove the program  
it's self but for now if the service is off it shouldn't bother you.


You could also just try removing entries in /etc/samba/smb.conf if u  
can't stop the service


On 19/02/2010, at 8:11, meryl  wrote:


I needed to do some file sharing recently and now that the task is
finished so I want to remove the Samba service. I'm using Ubuntu 9.10.

in Synaptic > search: samba

shows that the following items are installed;

  samba
  samba-common
  samba-common-bin
  smbclient
  libpam-smbpass
  libsmbclient
  libwbclient0
  nautilus-share
  python-smbc

When I mark "samba" for removal no other files on this list are
marked. So is just marking "samba" for removal sufficient to stop this
service from starting at boot... and I don't want to keep files that
only rely on samba alone as they'll be superfluous.

But when I select "samba-common" to be removed, Synaptic notifies me
of a list of other files that it will also remove with "samba-common"
- one of them being "ubuntu-desktop".

I'm not so sure that I want ubuntu-desktop removed!

advice/suggestions/help are welcome :)
thanks...

Meryl
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html