Admin, please restore samba server

You can report problems, make suggestions, about the new BETA versions in this forum. For stuff related to final releases, please post a message in other forums
Post Reply
wesmar
Posts: 2
Joined: 03 Jun 2010, 01:10

Admin, please restore samba server

Post by wesmar » 03 Jun 2010, 01:13

This is very important package. E.g sharing infected partition NTFS and scanning from other win32 comp. Please restore...

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Admin, please restore samba server

Post by admin » 05 Jun 2010, 16:22

The problem with samba server is that this package is really huge, the ISO grows by more than 10 MB, and I am quite sure 99% of the users only use the client. Configuring a samba server is not straight forward so most people won't run Samba from a LiveCd. They will use a permanent system for that. You can do a customized sysresccd if you need the Samba server package.

TiCPU
Posts: 26
Joined: 27 Jan 2008, 20:55
Location: Québec, Canada
Contact:

Re: Admin, please restore samba server

Post by TiCPU » 18 Jun 2010, 01:05

I must confirm, when you need to share some files with/from Windows, you need samba. I needed to do a test NAS in RAID5 with the Sysresccd and found out the samba package was missing.
10 MB when a CD is 700MB is not that big...

TiCPU
Posts: 26
Joined: 27 Jan 2008, 20:55
Location: Québec, Canada
Contact:

Re: Admin, please restore samba server

Post by TiCPU » 18 Jun 2010, 21:06

After verifying, samba takes about 5mb compressed, if you want to cut the junk out of it, you can remove:
smbcquotas
smbcacls
smbclient
smbget
smbtar
smbtorture
smbmount
smbmnt
smbumount
smbspool
smbcontrol
profiles
pdbedit
tdbbackup
tdbdump
tdbtool
eventlogadm
libsmbclient.so

You remove 10MB uncompressed, which is 3.9MB to 2.8MB compressed with LZMA. This is much smaller than stuff like NetworkManager which has tons of dependencies.
Did you think about uncompressing all man pages so they get compressed inside the SquashFS with a bigger dictionnary size than just multiple bz2?
Compressing twice often means bigger.

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Admin, please restore samba server

Post by admin » 19 Jun 2010, 15:19

Thanks for your suggestions. The new version of samba in gentoo provides new USE flags which allow to remove all client programs which are not used to run samba in server mode. It's better than removing files by hand with a risk of errors, but we may have to remove other files by hand anyway to make more space.

Code: Select all

-rw-r--r-- 1 root root 261M 2010-06-19 15:48 systemrescuecd-x86-1.5.7-20100619-15h48-with-samba.iso
-rw-r--r-- 1 root root 254M 2010-06-19 16:10 systemrescuecd-x86-1.5.7-20100619-16h09-no-samba.iso

-rw-r--r-- 1 root root 266522 2010-06-19 15:48 systemrescuecd-x86-1.5.7-20100619-15h48-with-samba.iso
-rw-r--r-- 1 root root 260070 2010-06-19 16:10 systemrescuecd-x86-1.5.7-20100619-16h09-no-samba.iso
It makes the ISO 6.5 MiB bigger, so it's probably worth re-adding that package. Can you please try sysresccd-1.5.7-beta1 and tell me if it works as expected ? Let me know if there are other files that can be removed.

I will try what you suggest with the man pages. BTW, I added the network manager because it only grows the ISO by 2 MiB which is not too much. It comes with many dependencies but many dependencies were already there because used by another package.

gernot
Posts: 1130
Joined: 07 Apr 2010, 16:19

Re: Admin, please restore samba server

Post by gernot » 20 Jun 2010, 19:52

i tested unpacking gz and bz2 files:

Orginal:
[email protected] /mnt/custom/customcd % l isoroot/*.dat
627262 -rw-rw-rw- 1 root root 220856320 2010-06-21 08:16 isoroot/sysrcd.dat

Unpacking the .bz2 manpages. There are softlinks which need manual (scripted) adjustment.
[email protected] /mnt/custom/customcd % l isoroot/*.dat
627258 -rw-rw-rw- 1 root root 218996736 2010-06-21 08:31 isoroot/sysrcd.dat

after additional unpacking .gz which are fonts and keytables
[email protected] /mnt/custom/customcd % l isoroot/*.dat
621604 -rw-rw-rw- 1 root root 216702976 2010-06-21 08:43 isoroot/sysrcd.dat

The created disk is working without additional modifications in first tests.

Gernot

p.s. How to add an samba-user after removing pdbedit ?

TiCPU
Posts: 26
Joined: 27 Jan 2008, 20:55
Location: Québec, Canada
Contact:

Re: Admin, please restore samba server

Post by TiCPU » 21 Jun 2010, 01:31

I tried Samba in the beta and it seems to work OK.
To add user I normally use smbpasswd -a <user> but in the beta it has been removed, however pdbedit is there.
I was sure you would have better gain than that from unpacking all that stuff.

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Admin, please restore samba server

Post by admin » 24 Jun 2010, 08:43

I have added smbpasswd in SystemRescueCd-1.5.7-beta6 but it takes quite a lot of space (5MB for just that binary, which makes the ISO 2MiB bigger). Unfortunately it sounds there is no way to make the samba binaries smaller. It's not just a matter of stripping the binaries. Maybe downgrading to an older version (samba-3.0) with smaller binaries could be a solution, but it's not ideal.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474543
https://bugzilla.samba.org/show_bug.cgi?id=5995

gernot
Posts: 1130
Joined: 07 Apr 2010, 16:19

Re: Admin, please restore samba server

Post by gernot » 24 Jun 2010, 15:04

So what. Thats realy big.
smbpasswd is nearly 3 times bigger then tbbedit.

Maybe there are options to exclude things like passwordsetting about Network. Al least till the size-bug is solved.

Or we live this time with tbbedit to create new accounts with new password.

Gernot

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Admin, please restore samba server

Post by admin » 24 Jun 2010, 20:01

I have attempted a downgrade to 3.0.37 in sysresccd-1.5.7-beta7 (ISO available soon)
I don't think there are essential features missing from 3.0.37 so it should not be a problem

The binaries are smaller, it saves 2 MiB after compression (size of the ISO image)
I have also removed several samba programs manually (quite large and not essential):
/usr/bin/{net,rpcclient,smbget,smbcacls,smbcquotas,smbclient,smbtree,smbmount,smbumount,smbspool}

I guess it's enough to just run a standard SMB file server on sysresccd.
Let me know if something important is missing, or if something has to be changed.

Thanks

Tuipveus
Posts: 103
Joined: 18 Nov 2006, 13:09
Contact:

Re: Admin, please restore samba server

Post by Tuipveus » 04 Sep 2010, 19:30

offtopic:
Why you can't use ftp-client from windows? Windows has built-in ftp-client, just enter ftp-address to your explorer.

Post Reply