Build the latest Samba 4 on Ubuntu 20.04

Preparation

$ sudo apt update
$ sudo apt upgrade

Latest Samba download

$ curl -LO https://download.samba.org/pub/samba/samba-latest.tar.gz
$ tar xzvf samba-latest.tar.gz
$ cd samba-x.y.z/    # x.y.z is the Samba version

Dependent library installation

Reference: https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba#Debian_.2F_Ubuntu

$ sudo apt-get install acl attr autoconf bind9utils bison build-essential \
  debhelper dnsutils docbook-xml docbook-xsl flex gdb libjansson-dev krb5-user \
  libacl1-dev libaio-dev libarchive-dev libattr1-dev libblkid-dev libbsd-dev \
  libcap-dev libcups2-dev libgnutls28-dev libgpgme-dev libjson-perl \
  libldap2-dev libncurses5-dev libpam0g-dev libparse-yapp-perl \
  libpopt-dev libreadline-dev nettle-dev perl perl-modules pkg-config \
  python-all-dev python-crypto python3-dbg python-dev python-dnspython \
  python3-dnspython python3-gpg python-markdown python3-markdown \
  python3-dev xsltproc zlib1g-dev liblmdb-dev lmdb-utils libdbus-1-dev

make install

$ ./configure --sysconfdir=/etc/samba/  
$ make -j 2
$ sudo make install
$ sudo cp ./examples/smb.conf.default /etc/samba/smb.conf

Pass through

$ sudo su -
# echo "PATH=/usr/local/samba/bin:/usr/local/samba/sbin:\$PATH" > /etc/profile.d/samba4.sh

Recommended Posts

Build the latest Samba 4 on Ubuntu 20.04
Install OpenJDK (Java) on the latest Ubuntu
Build Zabbix on Ubuntu 20.04
Install the latest version of Jenkins on Ubuntu 16
Build VNC Server on Ubuntu 20.04
Ubuntu on Windows build speed
Build a XAMPP environment on Ubuntu
How to build vim on Ubuntu 20.04
Build ffmpeg 4.3.1 on Ubuntu for Windows
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
How to change the timezone on Ubuntu
Build OpenCV with Java Wrapper on Ubuntu 18.04
tmux on Ubuntu
Build and install Wireshark Development Release (3.3.1) on Ubuntu
Using JUnit from the command line on Ubuntu
Display the System Monitor applet on the Ubuntu 20.04 taskbar
[Java] Build Java development environment on Ubuntu & check execution
Build a DHCP and NAT router on Ubuntu 16.04
Tips for using the Spotify app on Ubuntu
How to build a Pytorch environment on Ubuntu
Screen recording on Ubuntu 20.04
Web Bluetooth on Ubuntu20.04
[Ubuntu 20.04] Display the day of the week on the date / clock
Build Ubuntu 20.04 LTS desktop environment on Raspberry Pi 4 (+ Japanese)
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Use Flutter on Ubuntu
Setting up the FreeBSD desktop environment on Ubuntu + qemu
Install Ruby on Ubuntu 20.04
Install the latest hardware drivers from ELRepo on CentOS
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
Use mkdir on ubuntu
Notes on updating Ubuntu from the command line (16.04 → 18.04, 18.04 → 20.04 both)
Apache2 on Ubuntu20.04 LTS
Use cpplapack on ubuntu
ubuntu on wsl part 10
Install Homebrew on Ubuntu 20.04
Run tiscamera on Ubuntu 18.04
Install ag (the silver searcher) [on CentOS / Ubuntu / Mac]
# Vagrant + VirtualBOx can't mount on the latest CentOS7 vbox (centos/7 2004.01)
How to change the timezone on Ubuntu
The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)
I want to use screen sharing on the login screen on Ubuntu 18
Install docker and docker-compose on ubuntu in the shortest process
Use the high-performance SQL development tool "A5: SQL Mk-2" on Ubuntu
Build mate desktop environment on ec2 with terraform (Ubuntu 20.04LTS)
Using Flutter on Ubuntu (Part 2)
Building WebGIS on Ubuntu20.04 LTS
Install OpenJDK7 (JAVA) on ubuntu 14.04
Put Ubuntu 20.04.1 on Raspberry Pi 4
Install Cybozu Office 10 on Ubuntu 20.4
Extend swap area on Ubuntu 18.04
Install Docker on Ubuntu Server 20.04
Japanese input on Ubuntu20.04 Desktop
Latest docker installation (Ubuntu 20.04 and Ubuntu 20.10)
Oracle Java 8 on Docker Ubuntu
Install zabbix agent (5.0) on Ubuntu 18.04
Scala runs on the JVM
Install MAV Proxy on Ubuntu 18.04