Web lists-archives.com

Re: [Samba] a quick small howto to get samba 4.7.4 on ubuntu 16.04.




This worked for me until here:

root@dtmbr0tst:~#  mkdir sources
root@dtmbr0tst:~#  cd sources
root@dtmbr0tst:~/sources#  apt-get build-dep samba
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list

Suggestions?

On Thu, Feb 1, 2018 at 7:04 AM, L.P.H. van Belle via samba <
samba@xxxxxxxxxxxxxxx> wrote:

> Hai,
>
> I've had a few min left in my lunch so ...
>
> This is a quick setup for samba 4.7.4, tested on Ubuntu 16.04 LTS, should
> work on Ubuntu 17.10 also, .. UIuntu 17.04 is unmaintaint so upgrade to
> 17.10 or stay at 16.04.
>
> Do a nUbuntu server minimal install. No dhcp ip, setup static ip.
>
>
> # Setup apt.
> echo "deb http://apt.van-belle.nl/debian unstable main contrib non-free"
> | sudo tee -a /etc/apt/sources.list.d/van-belle.list echo "deb-src
> http://apt.van-belle.nl/debian unstable main contrib non-free" | sudo tee
> -a /etc/apt/sources.list.d/van-belle.list
> wget -O - http://apt.van-belle.nl/louis-van-belle.gpg-key.asc | apt-key
> add -
> apt-get update && apt-get upgrade && apt-get dist-upgrade
>
> # enable xenial backports ,because we need dephelper 10.x
> apt-get install debhelper -t xenial-backports
>
> mkdir sources
> cd sources
>
> # Get my sources.
> apt-get build-dep samba
>
> # normaly you change things to match the system more and you change the
> changelog, in this case, not done, this was a quick test.
> apt-get source samba -b
>
>
> #Setup a file apt to install you new builded samba,  use this script.
> cat << EOF >> apt.sh
> #!/bin/bash
>
> set -e
>
> PWD=`pwd`
>
> BUILDARCH=$(dpkg-architecture -q DEB_BUILD_ARCH)
> echo "Processing for Arch: ${BUILDARCH}"
>
> if [ ! -e /etc/apt/sources.list.d/file-repo.list ]; then
>     echo "deb [trusted=yes] file:${PWD} ${BUILDARCH}/" >
> /etc/apt/sources.list.d/file-repo.list
> fi
>
> if [ ! -d ${BUILDARCH} ]; then
>     mkdir ${BUILDARCH}
> fi
>
> if [ $(ls *.deb| grep "_${BUILDARCH}.deb" | wc -l) -ge 1 ]; then
>     echo "Copy ${BUILDARCH}.deb to ${BUILDARCH}/"
>     cp *${BUILDARCH}.deb  ${BUILDARCH}/
> else
>     echo "No files detected in $1"
> fi
>
> if [ $(ls *.deb| grep "_all.deb" | wc -l) -ge 1 ]; then
>     echo "Copy _all.deb to ${BUILDARCH}/"
>     cp *_all.deb  ${BUILDARCH}/
> else
>     echo "no *_all.deb detected in $1"
> fi
>
> dpkg-scanpackages ${BUILDARCH} /dev/null > ${BUILDARCH}/Packages
> echo "Running: apt-get update -qq  ... Please wait..."
> apt-get -qq update
>
>
> bash apt.sh
>
>
> apt-get remove --purge apparmor
> # i did not look at apparmor, so remove it or set it up correctly. info on
> the wiki and google ;-)
>
> apt-get install samba winbind acl xattr
>
> systemctl disable smbd nmbd winbind
> systemctl unmask samba-ad-dc
> systemctl enable samba-ad-dc
> rm /etc/samba/smb.conf
> samba-tool domain provision --server-role=dc --use-rfc2307
> --dns-backend=SAMBA_INTERNAL --realm=SAMDOM.EXAMPLE.COM --domain=SAMDOM
> systemctl start samba-ad-dc
>
> resulted in :
>  4322 ?        Ss     0:00 /usr/sbin/samba --foreground --no-process-group
>  4324 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4326 ?        S      0:00  |   \_ /usr/sbin/samba --foreground
> --no-process-group
>  4328 ?        Ss     0:00  |       \_ /usr/sbin/smbd -D --option=server
> role check:inhibit=yes --foreground
>  4349 ?        S      0:00  |           \_ /usr/sbin/smbd -D
> --option=server role check:inhibit=yes --foreground
>  4350 ?        S      0:00  |           \_ /usr/sbin/smbd -D
> --option=server role check:inhibit=yes --foreground
>  4351 ?        S      0:00  |           \_ /usr/sbin/smbd -D
> --option=server role check:inhibit=yes --foreground
>  4325 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4327 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4329 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4330 ?        S      0:02  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4331 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4332 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4333 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4334 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4336 ?        S      0:00  |   \_ /usr/sbin/samba --foreground
> --no-process-group
>  4338 ?        Ss     0:00  |       \_ /usr/sbin/winbindd -D
> --option=server role check:inhibit=yes --foreground
>  4353 ?        S      0:00  |           \_ /usr/sbin/winbindd -D
> --option=server role check:inhibit=yes --foreground
>  4335 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4337 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4339 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>  4340 ?        S      0:00  \_ /usr/sbin/samba --foreground
> --no-process-group
>
>
> uname -a
> Linux ubuntu1604 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC
> 2018 x86_64 x86_64 x86_64 GNU/Linux
> root@ubuntu1604:~/sources# smbd -V
> Version 4.7.4-Debian
>
> root@ubuntu1604:~/sources/samba-4.7.4+nmu/debian# apt-cache policy samba
> winbind
> samba:
>   Installed: 2:4.7.4+nmu-0.1~deb9
>   Candidate: 2:4.7.4+nmu-0.1~deb9
>   Version table:
>  *** 2:4.7.4+nmu-0.1~deb9 500
>         500 file:/root/sources amd64/ Packages
>         100 /var/lib/dpkg/status
>      2:4.7.4+nmu-0.1~deb9 500
>         500 http://apt.van-belle.nl/debian stretch-unstable/main amd64
> Packages
>      2:4.3.11+dfsg-0ubuntu0.16.04.12 500
>         500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/main amd64
> Packages
>         500 http://security.ubuntu.com/ubuntu xenial-security/main amd64
> Packages
>      2:4.3.8+dfsg-0ubuntu1 500
>         500 http://nl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
> winbind:
>   Installed: 2:4.7.4+nmu-0.1~deb9
>   Candidate: 2:4.7.4+nmu-0.1~deb9
>   Version table:
>  *** 2:4.7.4+nmu-0.1~deb9 500
>         500 file:/root/sources amd64/ Packages
>         100 /var/lib/dpkg/status
>      2:4.7.4+nmu-0.1~deb9 500
>         500 http://apt.van-belle.nl/debian stretch-unstable/main amd64
> Packages
>      2:4.3.11+dfsg-0ubuntu0.16.04.12 500
>         500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/main amd64
> Packages
>         500 http://security.ubuntu.com/ubuntu xenial-security/main amd64
> Packages
>      2:4.3.8+dfsg-0ubuntu1 500
>         500 http://nl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
>
> reboot !
>
> but please test your samba, i did not test it fully, it installs and it
> starts and it provisions, thats what i've tested.
>
> Good luck with these..
>
>
> Greetz,
>
> Louis
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>



-- 

Thank you.

Bob Wooden
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba