Install samba4 from source code on CentOS8

How to install samba v4.13.0 from source code on CentOS 8

1. First, introduce the epel repository

$ sudo dnf -y install epel-release

2. Install the required libraries

$ sudo dnf install python36 python36-devel zlib-devel lmdb-devel gnutls-devel perl-Parse-Yapp jansson-devel libacl-devel openldap-devel pam-devel dbus-devel
$ sudo dnf install --enablerepo=PowerTools gpgme-devel libarchive-devel rpcgen

3. Build

$ sudo ./configure --prefix=/usr/local/samba-4.13.0/
$ sudo make -j2
$ sudo make -j2 install

4. systemd settings

$ sudo cp -a bin/default/packaging/systemd/smb.service /lib/systemd/system/
$ sudo cp -a bin/default/packaging/systemd/nmb.service /lib/systemd/system/
$ sudo systemctl daemon-reload

5. Enable samba startup and automatic startup

$ sudo systemctl start smb
$ sudo systemctl start nmb
$ sudo systemctl enable smb
$ sudo systemctl enable nmb

Recommended Posts

Install samba4 from source code on CentOS8
Install apache 2.4.46 from source on CentOS7
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
Install Vertica 10.0 on CentOS 6.10
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Install the latest hardware drivers from ELRepo on CentOS
Install OpenFOAM v2006 on CentOS
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Install Ruby 2.7 on CentOS 7 (SCL)
Note: Install nginx from official repositories with dnf on CentOS 8
Try DPDK20 SDK on CentOS7 â‘ Install
Install Ruby 2.5 on CentOS 7 using SCL
Install Java Open JDK 8 on CentOS 7
Upgrade from MYSQL5.7 to 8.0 on CentOS 6.7
How to install MariaDB 10.4 on CentOS 8
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Install Java 9 on windows 10 and CentOS 7
Install the webmail client Rainloop on CentOS 8
How to install beta php8.0 on CentOS8
[Java] Flow from source code to execution
Install CentOS 7 on Raspberry pi 4 Model B
Install NextCloud on CentOS 7 with Alibaba Cloud ECS
Command to install nginx / PHP7 / php-fpm on CentOS7
Install MariaDB (CentOS 8)
Build openssl, apache2.4, php7.4 from source on Ubuntu-server20.04.
[CentOS] Install apache-loggen
Install SonarQube on Mac and challenge source analysis
OpenVPN on CentOS 8
Install GitLab on CentOS 8 with no internet connection
Install CMS Made Simple v2.2.2 on LAMP on CentOS 7.3
Clean up findViewById from source code with DataBindingLibrary
Install BookStack Documentation Wiki on Elastic Compute Service on CentOS 7
Measures to prevent MySQL/MariaDB process from crashing on CentOS7
Install MySQL 5.6 on CentOS6 [How to specify the version]
Install ag (the silver searcher) [on CentOS / Ubuntu / Mac]
Install gradle on mac
Maven on CentOS 7 tutorial
Install OpenJDK on macOS
Install Java on Mac
Docker installation on CentOS 6
Use perltidy on CentOS 8
Install pyqt5 on ubuntu
Try OpenLiteSpeed on CentOS8
Tomcat v8 on CentOS7
Eval Java source from Java
[CentOS7] Install aws cli
Install Docker on Manjaro
Zabbix 5 installation on CentOS 8