[Samba] Compile samba github code and flash the build binary to embedded device

Hock Leong Ang anghockleong501 at gmail.com
Wed Oct 2 10:03:31 UTC 2019


Hi Rowland and All,
Can you answer 2 question below?
1. Does the host still able to share file to Windows, IOS and Android
devices?
2. Does 74 kB of samba files is the typical file size be implemented in
embedded device?

On Mon, 30 Sep 2019 at 14:37, Hock Leong Ang <anghockleong501 at gmail.com>
wrote:

> Hi Rowland,
> The above files are built with AD DC.
> Without AD DC, the files size reduce from 186 kB to 74 kB.
> Without AD DC, the embedded device will act as a host.
>
> Questions:
> 1. Does the host still able to share file to Windows, IOS and Android
> devices?
> 2. Does 74 kB of samba files is the typical file size be implemented in
> embedded device?
>
> Thank you.
>
>
>
> On Mon, 30 Sep 2019 at 09:36, Hock Leong Ang <anghockleong501 at gmail.com>
> wrote:
>
>> Hi Rowland,
>> Yes, the files I want should be in that folder : /usr/local/samba
>> It is 186 kB, a very huge files.
>> *Which is the compulsory files need for file sharing?*
>> *Which files or sub-folder can I ignore?*
>>
>> Thank you.
>>
>> ubuntu at ubuntu-AngHL:/usr/local$ sudo du samba/
>>> [sudo] password for ubuntu:
>>> Sorry, try again.
>>> [sudo] password for ubuntu:
>>> 56 samba/lib/security
>>> 284 samba/lib/bind9
>>> 22604 samba/lib/private
>>> 56 samba/lib/process_model
>>> 144 samba/lib/python3.4/site-packages/samba/provision/__pycache__
>>> 344 samba/lib/python3.4/site-packages/samba/provision
>>> 252 samba/lib/python3.4/site-packages/samba/netcmd/__pycache__
>>> 1088 samba/lib/python3.4/site-packages/samba/netcmd
>>> 120 samba/lib/python3.4/site-packages/samba/emulate
>>> 8 samba/lib/python3.4/site-packages/samba/dcerpc/__pycache__
>>> 16660 samba/lib/python3.4/site-packages/samba/dcerpc
>>> 176 samba/lib/python3.4/site-packages/samba/kcc/__pycache__
>>> 448 samba/lib/python3.4/site-packages/samba/kcc
>>> 24 samba/lib/python3.4/site-packages/samba/samba3/__pycache__
>>> 268 samba/lib/python3.4/site-packages/samba/samba3
>>> 16 samba/lib/python3.4/site-packages/samba/tests/dns_forwarder_helpers
>>> 60 samba/lib/python3.4/site-packages/samba/tests/blackbox
>>> 48 samba/lib/python3.4/site-packages/samba/tests/emulate
>>> 352 samba/lib/python3.4/site-packages/samba/tests/samba_tool
>>> 492 samba/lib/python3.4/site-packages/samba/tests/dcerpc
>>> 48 samba/lib/python3.4/site-packages/samba/tests/kcc
>>> 2096 samba/lib/python3.4/site-packages/samba/tests
>>> 420 samba/lib/python3.4/site-packages/samba/__pycache__
>>> 8 samba/lib/python3.4/site-packages/samba/web_server
>>> 36 samba/lib/python3.4/site-packages/samba/subunit
>>> 24 samba/lib/python3.4/site-packages/samba/third_party/iso8601
>>> 28 samba/lib/python3.4/site-packages/samba/third_party
>>> 52 samba/lib/python3.4/site-packages/samba/gp_parse
>>> 23252 samba/lib/python3.4/site-packages/samba
>>> 23440 samba/lib/python3.4/site-packages
>>> 23444 samba/lib/python3.4
>>> 280 samba/lib/idmap
>>> 1472 samba/lib/vfs
>>> 196 samba/lib/python2.7/site-packages/samba/provision
>>> 632 samba/lib/python2.7/site-packages/samba/netcmd
>>> 108 samba/lib/python2.7/site-packages/samba/emulate
>>> 12736 samba/lib/python2.7/site-packages/samba/dcerpc
>>> 268 samba/lib/python2.7/site-packages/samba/kcc
>>> 220 samba/lib/python2.7/site-packages/samba/samba3
>>> 8 samba/lib/python2.7/site-packages/samba/tests/dns_forwarder_helpers
>>> 36 samba/lib/python2.7/site-packages/samba/tests/blackbox
>>> 48 samba/lib/python2.7/site-packages/samba/tests/emulate
>>> 228 samba/lib/python2.7/site-packages/samba/tests/samba_tool
>>> 388 samba/lib/python2.7/site-packages/samba/tests/dcerpc
>>> 36 samba/lib/python2.7/site-packages/samba/tests/kcc
>>> 1436 samba/lib/python2.7/site-packages/samba/tests
>>> 8 samba/lib/python2.7/site-packages/samba/web_server
>>> 36 samba/lib/python2.7/site-packages/samba/subunit
>>> 24 samba/lib/python2.7/site-packages/samba/third_party/iso8601
>>> 28 samba/lib/python2.7/site-packages/samba/third_party
>>> 17248 samba/lib/python2.7/site-packages/samba
>>> 17436 samba/lib/python2.7/site-packages
>>> 17440 samba/lib/python2.7
>>> 16 samba/lib/krb5
>>> 204 samba/lib/python3.5/site-packages/samba/provision
>>> 884 samba/lib/python3.5/site-packages/samba/netcmd
>>> 120 samba/lib/python3.5/site-packages/samba/emulate
>>> 16728 samba/lib/python3.5/site-packages/samba/dcerpc
>>> 272 samba/lib/python3.5/site-packages/samba/kcc
>>> 248 samba/lib/python3.5/site-packages/samba/samba3
>>> 8 samba/lib/python3.5/site-packages/samba/tests/dns_forwarder_helpers
>>> 68 samba/lib/python3.5/site-packages/samba/tests/blackbox
>>> 48 samba/lib/python3.5/site-packages/samba/tests/emulate
>>> 416 samba/lib/python3.5/site-packages/samba/tests/samba_tool
>>> 492 samba/lib/python3.5/site-packages/samba/tests/dcerpc
>>> 48 samba/lib/python3.5/site-packages/samba/tests/kcc
>>> 2204 samba/lib/python3.5/site-packages/samba/tests
>>> 36 samba/lib/python3.5/site-packages/samba/subunit
>>> 4 samba/lib/python3.5/site-packages/samba/third_party
>>> 52 samba/lib/python3.5/site-packages/samba/gp_parse
>>> 22396 samba/lib/python3.5/site-packages/samba
>>> 22592 samba/lib/python3.5/site-packages
>>> 22596 samba/lib/python3.5
>>> 16 samba/lib/auth
>>> 896 samba/lib/service
>>> 72 samba/lib/pkgconfig
>>> 44 samba/lib/gensec
>>> 144 samba/lib/nss_info
>>> 1696 samba/lib/ldb
>>> 103644 samba/lib
>>> 4 samba/private/smbd.tmp
>>> 29104 samba/private/sam.ldb.d
>>> 4 samba/private/ldap_priv
>>> 16 samba/private/tls
>>> 4 samba/private/msg.sock
>>> 40344 samba/private
>>> 340 samba/share/man/man1
>>> 448 samba/share/man/man5
>>> 588 samba/share/man/man8
>>> 52 samba/share/man/man7
>>> 80 samba/share/man/man3
>>> 1512 samba/share/man
>>> 24 samba/share/perl5/Parse/Pidl/Samba3
>>> 64 samba/share/perl5/Parse/Pidl/Wireshark
>>> 132 samba/share/perl5/Parse/Pidl/Samba4/NDR
>>> 28 samba/share/perl5/Parse/Pidl/Samba4/COM
>>> 268 samba/share/perl5/Parse/Pidl/Samba4
>>> 492 samba/share/perl5/Parse/Pidl
>>> 500 samba/share/perl5/Parse
>>> 504 samba/share/perl5
>>> 5760 samba/share/setup/ad-schema
>>> 7488 samba/share/setup/display-specifiers
>>> 220 samba/share/setup/adprep/WindowsServerDocs
>>> 228 samba/share/setup/adprep
>>> 13932 samba/share/setup
>>> 15952 samba/share
>>> 4 samba/var/lib/ntp_signd
>>> 8 samba/var/lib
>>> 4 samba/var/locks/winbindd_privileged
>>> 8 samba/var/locks/sysvol/samdom.example.com/scripts
>>> 8 samba/var/locks/sysvol/
>>> samdom.example.com/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/USER
>>> <http://samdom.example.com/Policies/%7B6AC1786C-016F-11D2-945F-00C04FB984F9%7D/USER>
>>> 8 samba/var/locks/sysvol/
>>> samdom.example.com/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/MACHINE
>>> <http://samdom.example.com/Policies/%7B6AC1786C-016F-11D2-945F-00C04FB984F9%7D/MACHINE>
>>> 32 samba/var/locks/sysvol/
>>> samdom.example.com/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}
>>> <http://samdom.example.com/Policies/%7B6AC1786C-016F-11D2-945F-00C04FB984F9%7D>
>>> 8 samba/var/locks/sysvol/
>>> samdom.example.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/USER
>>> <http://samdom.example.com/Policies/%7B31B2F340-016D-11D2-945F-00C04FB984F9%7D/USER>
>>> 8 samba/var/locks/sysvol/
>>> samdom.example.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/MACHINE
>>> <http://samdom.example.com/Policies/%7B31B2F340-016D-11D2-945F-00C04FB984F9%7D/MACHINE>
>>> 32 samba/var/locks/sysvol/
>>> samdom.example.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
>>> <http://samdom.example.com/Policies/%7B31B2F340-016D-11D2-945F-00C04FB984F9%7D>
>>> 72 samba/var/locks/sysvol/samdom.example.com/Policies
>>> 88 samba/var/locks/sysvol/samdom.example.com
>>> 96 samba/var/locks/sysvol
>>> 1476 samba/var/locks
>>> 4 samba/var/cache/printing
>>> 12 samba/var/cache
>>> 4 samba/var/cores/smbd
>>> 4 samba/var/cores/winbindd
>>> 12 samba/var/cores
>>> 4 samba/var/run/ncalrpc/np
>>> 8 samba/var/run/ncalrpc
>>> 4 samba/var/run/winbindd
>>> 28 samba/var/run
>>> 92 samba/var/lock/msg.lock
>>> 1088 samba/var/lock
>>> 8420 samba/var
>>> 1980 samba/sbin
>>> 8 samba/etc
>>> 14312 samba/bin
>>> 8 samba/bind-dns
>>> 12 samba/include/samba
>>> 664 samba/include/gen_ndr
>>> 28 samba/include/ndr
>>> 112 samba/include/util
>>> 472 samba/include/core
>>> 1840 samba/include
>>> 186512 samba/
>>> ubuntu at ubuntu-AngHL:/usr/local$
>>>
>>
>>
>> On Sat, 28 Sep 2019 at 22:56, Rowland penny via samba <
>> samba at lists.samba.org> wrote:
>>
>>> On 28/09/2019 15:39, Hock Leong Ang via samba wrote:
>>> > Hi All,
>>> > May I have some advise on this issue?
>>> > Thank you.
>>> >
>>> > On Fri, 27 Sep 2019 at 10:55, Hock Leong Ang <
>>> anghockleong501 at gmail.com>
>>> > wrote:
>>> >
>>> >> Hi Sir/Madam/Miss,
>>> >>
>>> >> I am a firmware engineer. I would like to implement file sharing
>>> between
>>> >> embedded device and android phone/ios phone/windows.
>>> >>
>>> >> I download the samba source code from
>>> >> https://github.com/samba-team/samba/tree/v4-11-stable with version
>>> >> v4-11-stable.
>>> >>
>>> >> I follow the instruction from link :
>>> >> https://wiki.samba.org/index.php/Build_Samba_from_Source to compile.
>>> >>
>>> >> I expected the compilation will produce binary files or equivalent
>>> file.
>>> >> But I fail to find it.
>>> >>
>>> >> Question:
>>> >> 1. How to build the binary files or equivalent file that can flash in
>>> the
>>> >> embedded device?
>>> >>
>>> >> 2. How to flash in the binary files or equivalent file into the
>>> embedded
>>> >> device? Can I do the normal flashing through JTAG tool?
>>> >>
>>> >> 3. How to configure /etc/samba/smb.conf at embedded device? FYI,
>>> there is
>>> >> many of embedded devices need to produce.
>>> >>
>>> >> Hope can hear from you soon.
>>> >>
>>> >> Thank you.
>>> >>
>>> >> Regards,
>>> >> Ang Hock Leong
>>> >>
>>> >>
>>> >>
>>> If you ran './configure' and got something like this: 'configure'
>>> finished successfully (1m2.432s)
>>>
>>> Then ran 'make' and got something like this: 'build' finished
>>> successfully (9m3.667s)
>>>
>>> Then ran 'make install' and got something like this: 'install' finished
>>> successfully (18.243s)
>>>
>>> I would expect to find Samba in /usr/local/samba
>>>
>>> Problem for you, you will find all of Samba in /usr/local/samba and this
>>> means the code to produce anything Samba can produce (AD DC, NT4-style
>>> PDC, domain member etc) and it is huge, is this what you are looking for
>>> ?
>>>
>>> Rowland
>>>
>>>
>>>
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/options/samba
>>>
>>


More information about the samba mailing list