<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cscracker</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cscracker"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Cscracker"/>
	<updated>2026-04-25T18:29:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13010</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13010"/>
		<updated>2016-10-29T12:35:27Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, replace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CAVEATS:&lt;br /&gt;
If you run your domain&#039;s PDC Emulator on Alpine, Windows members on your domain will have time sync issues. AD Domain time sync requires MS-SNTP signing support, and none of the NTP daemons available on Alpine (chrony, openntpd, busybox) currently support it, only the ntp.org &amp;quot;ntpd&amp;quot; and Windows do.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify your {{Path|/etc/hosts}} file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one at {{Path|/etc/samba/smb.conf}}. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
 &lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
 &lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your {{Path|/etc/resolv.conf}} to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your {{Path|/etc/init.d/samba}} script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         mkdir -p /var/run/samba&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run this command to start the service on boot.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
&lt;br /&gt;
Run this command to start the service right now.&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13009</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13009"/>
		<updated>2016-10-29T12:29:50Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, replace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CAVEATS:&lt;br /&gt;
If you run your domain&#039;s PDC Emulator on Alpine, Windows members on your domain will have time sync issues. AD Domain time sync requires MS-SNTP signing support, and none of the NTP daemons available on Alpine (chrony, openntpd, busybox) currently support it, only the ntp.org &amp;quot;ntpd&amp;quot; and Windows do.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify your {{Path|/etc/hosts}} file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one at {{Path|/etc/samba/smb.conf}}. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
 &lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
 &lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your {{Path|/etc/resolv.conf}} to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your {{Path|/etc/init.d/samba}} script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         mkdir -p /var/run/samba&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13008</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13008"/>
		<updated>2016-10-29T12:28:46Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, replace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
CAVEATS:&lt;br /&gt;
If you run your domain&#039;s PDC Emulator on Alpine, Windows members on your domain will have time sync issues. AD Domain time sync requires MS-SNTP signing support, and none of the NTP daemons available on Alpine (chrony, openntpd, busybox) currently support it, only the ntp.org &amp;quot;ntpd&amp;quot; and Windows do.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify your {{Path|/etc/hosts}} file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one at {{Path|/etc/samba/smb.conf}}. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
 &lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
 &lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your {{Path|/etc/resolv.conf}} to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your {{Path|/etc/init.d/samba}} script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         mkdir -p /var/run/samba&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13007</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=13007"/>
		<updated>2016-10-29T12:28:07Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Added caveats about NTP and domain time sync.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, replace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
CAVEATS:&lt;br /&gt;
If you run your domain&#039;s PDC Emulator on Alpine, your domain will have time sync issues. AD Domain time sync requires MS-SNTP signing support, and none of the NTP daemons available on Alpine (chrony, openntpd, busybox) currently support it, only the ntp.org &amp;quot;ntpd&amp;quot; and Windows do.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify your {{Path|/etc/hosts}} file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one at {{Path|/etc/samba/smb.conf}}. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
 &lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
 &lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your {{Path|/etc/resolv.conf}} to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your {{Path|/etc/init.d/samba}} script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         mkdir -p /var/run/samba&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12551</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12551"/>
		<updated>2016-04-06T17:58:09Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: /* Install new init script */ Added line to create /var/run/samba if it doesn&amp;#039;t exist.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, teplace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify your {{Path|/etc/hosts}} file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one at {{Path|/etc/samba/smb.conf}}. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
 &lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
 &lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your {{Path|/etc/resolv.conf}} to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your {{Path|/etc/init.d/samba}} script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         mkdir -p /var/run/samba&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=12544</id>
		<title>Tutorials and Howtos</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=12544"/>
		<updated>2016-04-01T00:32:35Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Added descriptions on Samba entries&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:package_edutainment.svg|right|link=]]&lt;br /&gt;
{{TOC left}}&lt;br /&gt;
&#039;&#039;&#039;Welcome to Tutorials and Howtos, a place of basic and advanced configuration tasks for your Alpine Linux.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The tutorials are hands-on and the reader is expected to try and achieve the goals described in each step, possibly with the help of a good example. The output in one step is the starting point for the following step.&lt;br /&gt;
&lt;br /&gt;
Howtos are smaller articles explaining how to perform a particular task with Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
We encourage people to send in both complete articles as well as requesting topics to be covered. If you think you have the skills and knowledge to write an Alpine Linux related article please do so on this Wiki. If you want to request a topic, please add your request in this page&#039;s [[Talk:Tutorials_and_Howtos|Discussion]].&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
== Storage ==&lt;br /&gt;
&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039; &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]] &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up disks manually]] &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
* [[Setting up a software RAID array]]&lt;br /&gt;
&amp;lt;!-- ** [[Setting up a /var partition on software IDE raid1]]  Obsolete, Installation and Storage --&amp;gt; &lt;br /&gt;
* [[Raid Administration]]&lt;br /&gt;
* [[Setting up encrypted volumes with LUKS]]&lt;br /&gt;
* [[Setting up LVM on LUKS]]&lt;br /&gt;
* [[Setting up Logical Volumes with LVM]]&lt;br /&gt;
** [[Setting up LVM on GPT-labeled disks]]&lt;br /&gt;
** [[Installing on GPT LVM]]&lt;br /&gt;
* [[Filesystems|Formatting HD/Floppy/Other]] &amp;lt;!-- just a stub --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up iSCSI]]&lt;br /&gt;
** [[iSCSI Raid and Clustered File Systems]]&lt;br /&gt;
* [[Setting up NBD]]&lt;br /&gt;
* [[High performance SCST iSCSI Target on Linux software Raid]] &#039;&#039;(deprecated)&#039;&#039; &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
* [[Linux iSCSI Target (TCM)]]&lt;br /&gt;
* [[Disk Replication with DRBD]] &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Burning ISOs]] &amp;lt;!-- just some links now --&amp;gt;&lt;br /&gt;
* [[Partitioning and Bootmanagers]]&lt;br /&gt;
* [[Migrating data]]&lt;br /&gt;
* [[Raspberry Pi|Raspberry Pi (Installation)]]&lt;br /&gt;
* [[Create a bootable SDHC from a Mac]]&lt;br /&gt;
* [[Alpine on ARM]]&lt;br /&gt;
&lt;br /&gt;
== Networking ==&lt;br /&gt;
&lt;br /&gt;
* [[Configure Networking]]&lt;br /&gt;
* [[Connecting to a wireless access point]]&lt;br /&gt;
* [[Raspberry Pi 3 - Configuring it as wireless access point -AP Mode]]&lt;br /&gt;
* [[Bonding]]&lt;br /&gt;
* [[Vlan]]&lt;br /&gt;
* [[Bridge]]&lt;br /&gt;
* [[OpenVSwitch]]&lt;br /&gt;
* [[How to configure static routes]]&lt;br /&gt;
&lt;br /&gt;
* [[Alpine Wall]] - [[How-To Alpine Wall]] - [[Alpine Wall User&#039;s Guide]] &#039;&#039;(a new firewall management framework)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[PXE boot]]&lt;br /&gt;
&lt;br /&gt;
* [[Using serial modem]]&lt;br /&gt;
* [[Using HSDPA modem]]&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi]]&lt;br /&gt;
* [[Setting up Satellite Internet Connection]]&lt;br /&gt;
* [[Using Alpine on Windows domain with IPSEC isolation]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039; &amp;lt;!-- Server and Networking --&amp;gt;&lt;br /&gt;
* [[How to setup a wireless access point]] &#039;&#039;(Setting up Secure Wireless AP w/ WPA encryption with bridge to wired network)&#039;&#039;&lt;br /&gt;
* [[Setting up a OpenVPN server with Alpine]] &#039;&#039;(Allowing single users or devices to remotely connect to your network)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- [[Using Racoon for Remote Sites]] is a different VPN tunnelling method, but that article is just a stub --&amp;gt;&lt;br /&gt;
* [[Experiences with OpenVPN-client on ALIX.2D3]]  &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Generating SSL certs with ACF]] &amp;lt;!-- Generating SSL certs with ACF 1.9 --&amp;gt;&lt;br /&gt;
* [[Setting up unbound DNS server]]&lt;br /&gt;
* [[Setting up nsd DNS server]]&lt;br /&gt;
* [[TinyDNS Format]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]] &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
* [[Freeradius Active Directory Integration]]&lt;br /&gt;
* [[Multi_ISP]] &#039;&#039;(Dual-ISP setup with load-balancing and automatic failover)&#039;&#039;&lt;br /&gt;
* [[OwnCloud]] &#039;&#039;(Installing OwnCloud)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Apache with php-fpm]]&lt;br /&gt;
* [[Seafile: setting up your own private cloud]]&lt;br /&gt;
&lt;br /&gt;
== Post-Install ==&lt;br /&gt;
&amp;lt;!-- If you edit this, please coordinate with Installation#Post-Install and Developer_Documentation#Package_management.  Note that these three sections are not exact duplicates. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Alpine Linux package management|Package Management (apk)]] &#039;&#039;(How to add/remove packages on your Alpine)&#039;&#039;&lt;br /&gt;
   &amp;lt;!-- [[Alpine Linux package management#Local_Cache|How to enable APK caching]] --&amp;gt;&lt;br /&gt;
** [[Comparison with other distros]]&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]] &amp;lt;!-- new --&amp;gt;&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
* [[Alpine Linux Init System|Init System (OpenRC)]] &#039;&#039;(Configure a service to automatically boot at next reboot)&#039;&#039;&lt;br /&gt;
** [[Multiple Instances of Services]]&lt;br /&gt;
   &amp;lt;!-- [[Writing Init Scripts]] --&amp;gt;&lt;br /&gt;
* [[Alpine setup scripts#setup-xorg-base|Setting up Xorg]]&lt;br /&gt;
* [[Upgrading Alpine]]&lt;br /&gt;
&amp;lt;!-- Obsolete&lt;br /&gt;
 [[Upgrading Alpine - v1.9.x]]&lt;br /&gt;
 [[Upgrading Alpine - CD v1.8.x]]&lt;br /&gt;
 [[Upgrading Alpine - HD v1.8.x]]&lt;br /&gt;
 [[Upgrade to repository main|Upgrading to signed repositories]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
* [[setup-acf]] &#039;&#039;(Configures ACF (webconfiguration) so you can manage your box through https)&#039;&#039;&lt;br /&gt;
* [[Changing passwords for ACF|Changing passwords]]&lt;br /&gt;
* [[Ansible]] &#039;&#039;(Configuration management)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Enable Serial Console on Boot]]&lt;br /&gt;
&amp;lt;!-- Obsolete?&lt;br /&gt;
* [[Error message on boot: Address space collision: host bridge window conflicts with Adaptor ROM]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* [[How to get regular stuff working]] &#039;&#039;some notes on need-to-know topics&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Virtualization==&lt;br /&gt;
&lt;br /&gt;
* [[Xen Dom0]] &#039;&#039;(Setting up Alpine as a dom0 for Xen hypervisor)&#039;&#039;&lt;br /&gt;
* [[Xen Dom0 on USB or SD]]&lt;br /&gt;
* [[Create Alpine Linux PV DomU]]&lt;br /&gt;
* [[Xen PCI Passthrough]]&lt;br /&gt;
* [[Xen LiveCD]]&lt;br /&gt;
* [[qemu]]&lt;br /&gt;
* [[LXC]] &#039;&#039;(Setting up a Linux container in Alpine Linux)&#039;&#039;&lt;br /&gt;
* [[Docker]]&lt;br /&gt;
&lt;br /&gt;
== Desktop Environment ==&lt;br /&gt;
&lt;br /&gt;
* [[Awesome(wm) Setup]]&lt;br /&gt;
* [[EyeOS]] &#039;&#039;(Cloud Computing Desktop)&#039;&#039;&lt;br /&gt;
* [[Gnome Setup]]&lt;br /&gt;
* [[MATE|MATE Setup]]&lt;br /&gt;
* [[Oneye]] &#039;&#039;(Cloud Computing Desktop - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
* [[Owncloud]] &#039;&#039;(Cloud Computing Desktop - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
** (to be merged with [[OwnCloud]] &#039;&#039;(Your personal Cloud for storing and sharing your data on-line)&#039;&#039;)&lt;br /&gt;
* [[Remote Desktop Server]]&lt;br /&gt;
* [[Suspend on LID close]]&lt;br /&gt;
* [[XFCE Setup]] and [[Xfce Desktop|Desktop Ideas]]&lt;br /&gt;
* [[Installing Adobe flash player for Firefox]]&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
=== Telephony ===&lt;br /&gt;
* [[Setting up Zaptel/Asterisk on Alpine]]&lt;br /&gt;
** [[Setting up Streaming an Asterisk Channel]]&lt;br /&gt;
* [[Freepbx on Alpine Linux]]&lt;br /&gt;
* [[FreePBX_V3]] &#039;&#039;(FreeSWITCH, Asterisk GUI web acces tool)&#039;&#039;&lt;br /&gt;
* [[2600hz]] &#039;&#039;(FreeSWITCH, Asterisk GUI web access tool)&#039;&#039;&lt;br /&gt;
* [[Kamailio]] &#039;&#039;(SIP Server, formerly OpenSER)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mail ===&lt;br /&gt;
* [[Hosting services on Alpine]] &#039;&#039;(Hosting mail, webservices and other services)&#039;&#039;&lt;br /&gt;
** [[Hosting Web/Email services on Alpine]]&lt;br /&gt;
* [[ISP Mail Server HowTo]] &amp;lt;!-- solution, Mail --&amp;gt;&lt;br /&gt;
** [[ISP Mail Server Upgrade 2.x]]&lt;br /&gt;
** [[ISP Mail Server 2.x HowTo]] &#039;&#039;(Beta, please test)&#039;&#039;&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Setting up postfix with virtual domains]]&lt;br /&gt;
* [[Protecting your email server with Alpine]]&lt;br /&gt;
* [[Setting up clamsmtp]]&lt;br /&gt;
* [[Setting up dovecot with imap and ssl]]&lt;br /&gt;
&lt;br /&gt;
=== HTTP ===&lt;br /&gt;
* [[Lighttpd]]&lt;br /&gt;
** [[Lighttpd Https access]]&lt;br /&gt;
** [[Setting Up Lighttpd with PHP]]&lt;br /&gt;
** [[Setting Up Lighttpd With FastCGI]]&lt;br /&gt;
* [[Cherokee]]&lt;br /&gt;
* [[Nginx]]&lt;br /&gt;
* [[Apache]]&lt;br /&gt;
** [[Setting Up Apache with PHP]]&lt;br /&gt;
** [[Apache authentication: NTLM Single Signon]]&lt;br /&gt;
&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039; &amp;lt;!-- solution, Server --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up Transparent Squid Proxy]] &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
** [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[Setting up Explicit Squid Proxy]]&lt;br /&gt;
&lt;br /&gt;
* [[Drupal]] &#039;&#039;(Content Management System (CMS) written in PHP)&#039;&#039;&lt;br /&gt;
* [[WordPress]] &#039;&#039;(Web software to create website or blog)&#039;&#039;&lt;br /&gt;
* [[MediaWiki]] &#039;&#039;(Free web-based wiki software application)&#039;&#039;&lt;br /&gt;
* [[DokuWiki]]&lt;br /&gt;
* [[Darkhttpd]]&lt;br /&gt;
&lt;br /&gt;
=== Other Servers ===&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a nfs-server]]&lt;br /&gt;
* [[Setting up a samba-server]] &#039;&#039;(standard file sharing)&#039;&#039;&lt;br /&gt;
* [[Setting up a samba-ad-dc]] &#039;&#039;(Active Directory compatible domain controller)&#039;&#039;&lt;br /&gt;
* [[Phpizabi]] &#039;&#039;(Social Networking Platform)&#039;&#039;&lt;br /&gt;
* [[Statusnet]] &#039;&#039;(Microblogging Platform)&#039;&#039;&lt;br /&gt;
* [[Pastebin]] &#039;&#039;(Pastebin software application)&#039;&#039;&lt;br /&gt;
* [[Setting up Transmission (bittorrent) with Clutch WebUI]]&lt;br /&gt;
&lt;br /&gt;
* [[Patchwork]] &#039;&#039;(Patch review management system)&#039;&#039;&lt;br /&gt;
* [[Redmine]] &#039;&#039;(Project management system)&#039;&#039;&lt;br /&gt;
* [[Request-Tracker]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[OsTicket]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[Setting up trac wiki|Trac]] &#039;&#039;(Enhanced wiki and issue tracking system for software development projects)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Cgit]]&lt;br /&gt;
** [[Setting up a git repository server with gitolite and cgit]] &amp;lt;!-- doesn&#039;t exist yet --&amp;gt;&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Glpi]] &#039;&#039;(Manage inventory of technical resources)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[How to setup a Alpine Linux mirror]]&lt;br /&gt;
* [[Cups]]&lt;br /&gt;
* [[NgIRCd]] &#039;&#039;(Server for Internet Relay Chat/IRC)&#039;&#039;&lt;br /&gt;
* [[OpenVCP]] &#039;&#039;(VServer Control Panel)&#039;&#039;&lt;br /&gt;
* [[Mahara]] &#039;&#039;(E-portfolio and social networking system)&#039;&#039;&lt;br /&gt;
* [[Chrony and GPSD | Using chrony, gpsd, and a garmin LVC 18 as a Stratum 1 NTP source ]]&lt;br /&gt;
* [[Sending SMS using gnokii]]&lt;br /&gt;
&lt;br /&gt;
=== Monitoring ===&lt;br /&gt;
* Setting up [[collectd]]&lt;br /&gt;
* [[Traffic monitoring]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up traffic monitoring using rrdtool (and snmp)]] &amp;lt;!-- Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up monitoring using rrdtool (and rrdcollect)]]&lt;br /&gt;
* [[Setting up Cacti|Cacti]] &#039;&#039;(Front-end for rrdtool networking monitor)&#039;&#039;&lt;br /&gt;
* [[Setting up Zabbix|Zabbix]] &#039;&#039;(Monitor and track the status of network services and hardware)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft, solution, Networking and Monitoring and Server --&amp;gt;&lt;br /&gt;
** [[Setting up NRPE daemon]] &#039;&#039;(Performs remote Nagios checks)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up Smokeping|Smokeping]] &#039;&#039;(Network latency monitoring)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
** [[Setting up MRTG and Smokeping to Monitor Bandwidth Usage and Network Latency]]&lt;br /&gt;
* [[Setting Up Fprobe And Ntop|Ntop]] &#039;&#039;(NetFlow collection and analysis using a remote fprobe instance)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Cvechecker]] &#039;&#039;(Compare installed packages for Common Vulnerabilities Exposure)&#039;&#039; &amp;lt;!-- Monitoring and Security --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[IP Accounting]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Piwik]] &#039;&#039;(A real time web analytics software program)&#039;&#039;&lt;br /&gt;
* [[Awstats]] &#039;&#039;(Free log file analyzer)&#039;&#039;&lt;br /&gt;
* [[Intrusion Detection using Snort]]&lt;br /&gt;
** [[Intrusion Detection using Snort, Sguil, Barnyard and more]]&lt;br /&gt;
* [[Dglog]] &#039;&#039;(Log analyzer for the web content filter DansGuardian)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Webmin]] &#039;&#039;(A web-based interface for Linux system)&#039;&#039;&lt;br /&gt;
* [[PhpPgAdmin]] &#039;&#039;(Web-based administration tool for PostgreSQL)&#039;&#039;&lt;br /&gt;
* [[PhpMyAdmin]] &#039;&#039;(Web-based administration tool for MYSQL)&#039;&#039;&lt;br /&gt;
* [[PhpSysInfo]] &#039;&#039;(A simple application that displays information about the host it&#039;s running on)&#039;&#039;&lt;br /&gt;
* [[Linfo]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up lm_sensors]]&lt;br /&gt;
&lt;br /&gt;
* [[ZoneMinder video camera security and surveillance]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Shell]]&lt;br /&gt;
* [[:Category:Programming]]&lt;br /&gt;
* [[Running glibc programs]]&lt;br /&gt;
* [[:Category:Drivers]]&lt;br /&gt;
* [[:Category:Multimedia]]&lt;br /&gt;
* [[Kernel Modesetting]]&lt;br /&gt;
&lt;br /&gt;
== Complete Solutions ==&lt;br /&gt;
* [[Replacing non-Alpine Linux with Alpine remotely]]&lt;br /&gt;
* [[High performance SCST iSCSI Target on Linux software Raid]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]]&lt;br /&gt;
* [[Experiences with OpenVPN-client on ALIX.2D3]]&lt;br /&gt;
* [[Building a cloud with Alpine Linux]]&lt;br /&gt;
&lt;br /&gt;
* [[ISP Mail Server HowTo]] &#039;&#039;(Postfix+PostfixAdmin+DoveCot+Roundcube+ClamAV+Spamd - A full-serivce ISP mail server)&#039;&#039;&lt;br /&gt;
** [[ISP Mail Server Upgrade 2.x]]&lt;br /&gt;
** [[ISP Mail Server 2.x HowTo]] &#039;&#039;(Beta, please test)&#039;&#039;&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
* [[Streaming Security Camera Video with VLC]]&lt;br /&gt;
* [[Dynamic Multipoint VPN (DMVPN)]] combined with [[Small_Office_Services]]&lt;br /&gt;
* [[RPI Video Receiver]] &#039;&#039;(network video decoder using Rasperry Pi and omxplayer)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This does not attempt to be complete. Is it useful to have these listed here? I find them more accessible if grouped with their topics; also, an up-to-date list of all Draft or Obsolete pages can be found at [[Project:Wiki maintenance]].&lt;br /&gt;
&lt;br /&gt;
== Drafts ==&lt;br /&gt;
Currently unfinished/works-in-progress.&lt;br /&gt;
* [[Using Racoon for Remote Sites]]&lt;br /&gt;
* [[Setting up Transparent Squid Proxy]] &#039;&#039;(Covers Squid proxy and URL Filtering system)&#039;&#039;&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using the Squark Squid authentication helper)&#039;&#039; [!-- no longer a draft --]&lt;br /&gt;
* [[Setting up Streaming an Asterisk Channel]]&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039;&lt;br /&gt;
* [[Intrusion Detection using Snort]] &#039;&#039;(Installing and configuring Snort and related applications on Alpine 2.0.x)&#039;&#039;&lt;br /&gt;
* [[IP Accounting]] &#039;&#039;(Installing and configuring pmacct for IP Accounting, Netflow/sFlow collector)&#039;&#039;&lt;br /&gt;
* [[Disk Replication with DRBD]]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12543</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12543"/>
		<updated>2016-04-01T00:27:35Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: more formatting, fixed typo, cleaned up file path names&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, teplace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify your {{Path|/etc/hosts}} file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one at {{Path|/etc/samba/smb.conf}}. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
 &lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
 &lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your {{Path|/etc/resolv.conf}} to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your {{Path|/etc/init.d/samba}} script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
        &lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12542</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12542"/>
		<updated>2016-04-01T00:22:09Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: fix formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, teplace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify the hosts file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
 &lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
 &lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your /etc/resolv.conf to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /usr/local/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your /etc/init.d/samba script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
        &lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=12541</id>
		<title>Tutorials and Howtos</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=12541"/>
		<updated>2016-04-01T00:21:15Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Adding howto for Samba Domain Controller&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:package_edutainment.svg|right|link=]]&lt;br /&gt;
{{TOC left}}&lt;br /&gt;
&#039;&#039;&#039;Welcome to Tutorials and Howtos, a place of basic and advanced configuration tasks for your Alpine Linux.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The tutorials are hands-on and the reader is expected to try and achieve the goals described in each step, possibly with the help of a good example. The output in one step is the starting point for the following step.&lt;br /&gt;
&lt;br /&gt;
Howtos are smaller articles explaining how to perform a particular task with Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
We encourage people to send in both complete articles as well as requesting topics to be covered. If you think you have the skills and knowledge to write an Alpine Linux related article please do so on this Wiki. If you want to request a topic, please add your request in this page&#039;s [[Talk:Tutorials_and_Howtos|Discussion]].&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
== Storage ==&lt;br /&gt;
&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039; &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]] &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up disks manually]] &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
* [[Setting up a software RAID array]]&lt;br /&gt;
&amp;lt;!-- ** [[Setting up a /var partition on software IDE raid1]]  Obsolete, Installation and Storage --&amp;gt; &lt;br /&gt;
* [[Raid Administration]]&lt;br /&gt;
* [[Setting up encrypted volumes with LUKS]]&lt;br /&gt;
* [[Setting up LVM on LUKS]]&lt;br /&gt;
* [[Setting up Logical Volumes with LVM]]&lt;br /&gt;
** [[Setting up LVM on GPT-labeled disks]]&lt;br /&gt;
** [[Installing on GPT LVM]]&lt;br /&gt;
* [[Filesystems|Formatting HD/Floppy/Other]] &amp;lt;!-- just a stub --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up iSCSI]]&lt;br /&gt;
** [[iSCSI Raid and Clustered File Systems]]&lt;br /&gt;
* [[Setting up NBD]]&lt;br /&gt;
* [[High performance SCST iSCSI Target on Linux software Raid]] &#039;&#039;(deprecated)&#039;&#039; &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
* [[Linux iSCSI Target (TCM)]]&lt;br /&gt;
* [[Disk Replication with DRBD]] &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Burning ISOs]] &amp;lt;!-- just some links now --&amp;gt;&lt;br /&gt;
* [[Partitioning and Bootmanagers]]&lt;br /&gt;
* [[Migrating data]]&lt;br /&gt;
* [[Raspberry Pi|Raspberry Pi (Installation)]]&lt;br /&gt;
* [[Create a bootable SDHC from a Mac]]&lt;br /&gt;
* [[Alpine on ARM]]&lt;br /&gt;
&lt;br /&gt;
== Networking ==&lt;br /&gt;
&lt;br /&gt;
* [[Configure Networking]]&lt;br /&gt;
* [[Connecting to a wireless access point]]&lt;br /&gt;
* [[Raspberry Pi 3 - Configuring it as wireless access point -AP Mode]]&lt;br /&gt;
* [[Bonding]]&lt;br /&gt;
* [[Vlan]]&lt;br /&gt;
* [[Bridge]]&lt;br /&gt;
* [[OpenVSwitch]]&lt;br /&gt;
* [[How to configure static routes]]&lt;br /&gt;
&lt;br /&gt;
* [[Alpine Wall]] - [[How-To Alpine Wall]] - [[Alpine Wall User&#039;s Guide]] &#039;&#039;(a new firewall management framework)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[PXE boot]]&lt;br /&gt;
&lt;br /&gt;
* [[Using serial modem]]&lt;br /&gt;
* [[Using HSDPA modem]]&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi]]&lt;br /&gt;
* [[Setting up Satellite Internet Connection]]&lt;br /&gt;
* [[Using Alpine on Windows domain with IPSEC isolation]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039; &amp;lt;!-- Server and Networking --&amp;gt;&lt;br /&gt;
* [[How to setup a wireless access point]] &#039;&#039;(Setting up Secure Wireless AP w/ WPA encryption with bridge to wired network)&#039;&#039;&lt;br /&gt;
* [[Setting up a OpenVPN server with Alpine]] &#039;&#039;(Allowing single users or devices to remotely connect to your network)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- [[Using Racoon for Remote Sites]] is a different VPN tunnelling method, but that article is just a stub --&amp;gt;&lt;br /&gt;
* [[Experiences with OpenVPN-client on ALIX.2D3]]  &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Generating SSL certs with ACF]] &amp;lt;!-- Generating SSL certs with ACF 1.9 --&amp;gt;&lt;br /&gt;
* [[Setting up unbound DNS server]]&lt;br /&gt;
* [[Setting up nsd DNS server]]&lt;br /&gt;
* [[TinyDNS Format]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]] &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
* [[Freeradius Active Directory Integration]]&lt;br /&gt;
* [[Multi_ISP]] &#039;&#039;(Dual-ISP setup with load-balancing and automatic failover)&#039;&#039;&lt;br /&gt;
* [[OwnCloud]] &#039;&#039;(Installing OwnCloud)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Apache with php-fpm]]&lt;br /&gt;
* [[Seafile: setting up your own private cloud]]&lt;br /&gt;
&lt;br /&gt;
== Post-Install ==&lt;br /&gt;
&amp;lt;!-- If you edit this, please coordinate with Installation#Post-Install and Developer_Documentation#Package_management.  Note that these three sections are not exact duplicates. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Alpine Linux package management|Package Management (apk)]] &#039;&#039;(How to add/remove packages on your Alpine)&#039;&#039;&lt;br /&gt;
   &amp;lt;!-- [[Alpine Linux package management#Local_Cache|How to enable APK caching]] --&amp;gt;&lt;br /&gt;
** [[Comparison with other distros]]&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]] &amp;lt;!-- new --&amp;gt;&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
* [[Alpine Linux Init System|Init System (OpenRC)]] &#039;&#039;(Configure a service to automatically boot at next reboot)&#039;&#039;&lt;br /&gt;
** [[Multiple Instances of Services]]&lt;br /&gt;
   &amp;lt;!-- [[Writing Init Scripts]] --&amp;gt;&lt;br /&gt;
* [[Alpine setup scripts#setup-xorg-base|Setting up Xorg]]&lt;br /&gt;
* [[Upgrading Alpine]]&lt;br /&gt;
&amp;lt;!-- Obsolete&lt;br /&gt;
 [[Upgrading Alpine - v1.9.x]]&lt;br /&gt;
 [[Upgrading Alpine - CD v1.8.x]]&lt;br /&gt;
 [[Upgrading Alpine - HD v1.8.x]]&lt;br /&gt;
 [[Upgrade to repository main|Upgrading to signed repositories]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
* [[setup-acf]] &#039;&#039;(Configures ACF (webconfiguration) so you can manage your box through https)&#039;&#039;&lt;br /&gt;
* [[Changing passwords for ACF|Changing passwords]]&lt;br /&gt;
* [[Ansible]] &#039;&#039;(Configuration management)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Enable Serial Console on Boot]]&lt;br /&gt;
&amp;lt;!-- Obsolete?&lt;br /&gt;
* [[Error message on boot: Address space collision: host bridge window conflicts with Adaptor ROM]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* [[How to get regular stuff working]] &#039;&#039;some notes on need-to-know topics&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Virtualization==&lt;br /&gt;
&lt;br /&gt;
* [[Xen Dom0]] &#039;&#039;(Setting up Alpine as a dom0 for Xen hypervisor)&#039;&#039;&lt;br /&gt;
* [[Xen Dom0 on USB or SD]]&lt;br /&gt;
* [[Create Alpine Linux PV DomU]]&lt;br /&gt;
* [[Xen PCI Passthrough]]&lt;br /&gt;
* [[Xen LiveCD]]&lt;br /&gt;
* [[qemu]]&lt;br /&gt;
* [[LXC]] &#039;&#039;(Setting up a Linux container in Alpine Linux)&#039;&#039;&lt;br /&gt;
* [[Docker]]&lt;br /&gt;
&lt;br /&gt;
== Desktop Environment ==&lt;br /&gt;
&lt;br /&gt;
* [[Awesome(wm) Setup]]&lt;br /&gt;
* [[EyeOS]] &#039;&#039;(Cloud Computing Desktop)&#039;&#039;&lt;br /&gt;
* [[Gnome Setup]]&lt;br /&gt;
* [[MATE|MATE Setup]]&lt;br /&gt;
* [[Oneye]] &#039;&#039;(Cloud Computing Desktop - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
* [[Owncloud]] &#039;&#039;(Cloud Computing Desktop - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
** (to be merged with [[OwnCloud]] &#039;&#039;(Your personal Cloud for storing and sharing your data on-line)&#039;&#039;)&lt;br /&gt;
* [[Remote Desktop Server]]&lt;br /&gt;
* [[Suspend on LID close]]&lt;br /&gt;
* [[XFCE Setup]] and [[Xfce Desktop|Desktop Ideas]]&lt;br /&gt;
* [[Installing Adobe flash player for Firefox]]&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
=== Telephony ===&lt;br /&gt;
* [[Setting up Zaptel/Asterisk on Alpine]]&lt;br /&gt;
** [[Setting up Streaming an Asterisk Channel]]&lt;br /&gt;
* [[Freepbx on Alpine Linux]]&lt;br /&gt;
* [[FreePBX_V3]] &#039;&#039;(FreeSWITCH, Asterisk GUI web acces tool)&#039;&#039;&lt;br /&gt;
* [[2600hz]] &#039;&#039;(FreeSWITCH, Asterisk GUI web access tool)&#039;&#039;&lt;br /&gt;
* [[Kamailio]] &#039;&#039;(SIP Server, formerly OpenSER)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mail ===&lt;br /&gt;
* [[Hosting services on Alpine]] &#039;&#039;(Hosting mail, webservices and other services)&#039;&#039;&lt;br /&gt;
** [[Hosting Web/Email services on Alpine]]&lt;br /&gt;
* [[ISP Mail Server HowTo]] &amp;lt;!-- solution, Mail --&amp;gt;&lt;br /&gt;
** [[ISP Mail Server Upgrade 2.x]]&lt;br /&gt;
** [[ISP Mail Server 2.x HowTo]] &#039;&#039;(Beta, please test)&#039;&#039;&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Setting up postfix with virtual domains]]&lt;br /&gt;
* [[Protecting your email server with Alpine]]&lt;br /&gt;
* [[Setting up clamsmtp]]&lt;br /&gt;
* [[Setting up dovecot with imap and ssl]]&lt;br /&gt;
&lt;br /&gt;
=== HTTP ===&lt;br /&gt;
* [[Lighttpd]]&lt;br /&gt;
** [[Lighttpd Https access]]&lt;br /&gt;
** [[Setting Up Lighttpd with PHP]]&lt;br /&gt;
** [[Setting Up Lighttpd With FastCGI]]&lt;br /&gt;
* [[Cherokee]]&lt;br /&gt;
* [[Nginx]]&lt;br /&gt;
* [[Apache]]&lt;br /&gt;
** [[Setting Up Apache with PHP]]&lt;br /&gt;
** [[Apache authentication: NTLM Single Signon]]&lt;br /&gt;
&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039; &amp;lt;!-- solution, Server --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up Transparent Squid Proxy]] &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
** [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[Setting up Explicit Squid Proxy]]&lt;br /&gt;
&lt;br /&gt;
* [[Drupal]] &#039;&#039;(Content Management System (CMS) written in PHP)&#039;&#039;&lt;br /&gt;
* [[WordPress]] &#039;&#039;(Web software to create website or blog)&#039;&#039;&lt;br /&gt;
* [[MediaWiki]] &#039;&#039;(Free web-based wiki software application)&#039;&#039;&lt;br /&gt;
* [[DokuWiki]]&lt;br /&gt;
* [[Darkhttpd]]&lt;br /&gt;
&lt;br /&gt;
=== Other Servers ===&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a nfs-server]]&lt;br /&gt;
* [[Setting up a samba-server]]&lt;br /&gt;
* [[Setting up a samba-ad-dc]]&lt;br /&gt;
* [[Phpizabi]] &#039;&#039;(Social Networking Platform)&#039;&#039;&lt;br /&gt;
* [[Statusnet]] &#039;&#039;(Microblogging Platform)&#039;&#039;&lt;br /&gt;
* [[Pastebin]] &#039;&#039;(Pastebin software application)&#039;&#039;&lt;br /&gt;
* [[Setting up Transmission (bittorrent) with Clutch WebUI]]&lt;br /&gt;
&lt;br /&gt;
* [[Patchwork]] &#039;&#039;(Patch review management system)&#039;&#039;&lt;br /&gt;
* [[Redmine]] &#039;&#039;(Project management system)&#039;&#039;&lt;br /&gt;
* [[Request-Tracker]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[OsTicket]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[Setting up trac wiki|Trac]] &#039;&#039;(Enhanced wiki and issue tracking system for software development projects)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Cgit]]&lt;br /&gt;
** [[Setting up a git repository server with gitolite and cgit]] &amp;lt;!-- doesn&#039;t exist yet --&amp;gt;&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Glpi]] &#039;&#039;(Manage inventory of technical resources)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[How to setup a Alpine Linux mirror]]&lt;br /&gt;
* [[Cups]]&lt;br /&gt;
* [[NgIRCd]] &#039;&#039;(Server for Internet Relay Chat/IRC)&#039;&#039;&lt;br /&gt;
* [[OpenVCP]] &#039;&#039;(VServer Control Panel)&#039;&#039;&lt;br /&gt;
* [[Mahara]] &#039;&#039;(E-portfolio and social networking system)&#039;&#039;&lt;br /&gt;
* [[Chrony and GPSD | Using chrony, gpsd, and a garmin LVC 18 as a Stratum 1 NTP source ]]&lt;br /&gt;
* [[Sending SMS using gnokii]]&lt;br /&gt;
&lt;br /&gt;
=== Monitoring ===&lt;br /&gt;
* Setting up [[collectd]]&lt;br /&gt;
* [[Traffic monitoring]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up traffic monitoring using rrdtool (and snmp)]] &amp;lt;!-- Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up monitoring using rrdtool (and rrdcollect)]]&lt;br /&gt;
* [[Setting up Cacti|Cacti]] &#039;&#039;(Front-end for rrdtool networking monitor)&#039;&#039;&lt;br /&gt;
* [[Setting up Zabbix|Zabbix]] &#039;&#039;(Monitor and track the status of network services and hardware)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft, solution, Networking and Monitoring and Server --&amp;gt;&lt;br /&gt;
** [[Setting up NRPE daemon]] &#039;&#039;(Performs remote Nagios checks)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up Smokeping|Smokeping]] &#039;&#039;(Network latency monitoring)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
** [[Setting up MRTG and Smokeping to Monitor Bandwidth Usage and Network Latency]]&lt;br /&gt;
* [[Setting Up Fprobe And Ntop|Ntop]] &#039;&#039;(NetFlow collection and analysis using a remote fprobe instance)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Cvechecker]] &#039;&#039;(Compare installed packages for Common Vulnerabilities Exposure)&#039;&#039; &amp;lt;!-- Monitoring and Security --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[IP Accounting]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Piwik]] &#039;&#039;(A real time web analytics software program)&#039;&#039;&lt;br /&gt;
* [[Awstats]] &#039;&#039;(Free log file analyzer)&#039;&#039;&lt;br /&gt;
* [[Intrusion Detection using Snort]]&lt;br /&gt;
** [[Intrusion Detection using Snort, Sguil, Barnyard and more]]&lt;br /&gt;
* [[Dglog]] &#039;&#039;(Log analyzer for the web content filter DansGuardian)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Webmin]] &#039;&#039;(A web-based interface for Linux system)&#039;&#039;&lt;br /&gt;
* [[PhpPgAdmin]] &#039;&#039;(Web-based administration tool for PostgreSQL)&#039;&#039;&lt;br /&gt;
* [[PhpMyAdmin]] &#039;&#039;(Web-based administration tool for MYSQL)&#039;&#039;&lt;br /&gt;
* [[PhpSysInfo]] &#039;&#039;(A simple application that displays information about the host it&#039;s running on)&#039;&#039;&lt;br /&gt;
* [[Linfo]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up lm_sensors]]&lt;br /&gt;
&lt;br /&gt;
* [[ZoneMinder video camera security and surveillance]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Shell]]&lt;br /&gt;
* [[:Category:Programming]]&lt;br /&gt;
* [[Running glibc programs]]&lt;br /&gt;
* [[:Category:Drivers]]&lt;br /&gt;
* [[:Category:Multimedia]]&lt;br /&gt;
* [[Kernel Modesetting]]&lt;br /&gt;
&lt;br /&gt;
== Complete Solutions ==&lt;br /&gt;
* [[Replacing non-Alpine Linux with Alpine remotely]]&lt;br /&gt;
* [[High performance SCST iSCSI Target on Linux software Raid]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]]&lt;br /&gt;
* [[Experiences with OpenVPN-client on ALIX.2D3]]&lt;br /&gt;
* [[Building a cloud with Alpine Linux]]&lt;br /&gt;
&lt;br /&gt;
* [[ISP Mail Server HowTo]] &#039;&#039;(Postfix+PostfixAdmin+DoveCot+Roundcube+ClamAV+Spamd - A full-serivce ISP mail server)&#039;&#039;&lt;br /&gt;
** [[ISP Mail Server Upgrade 2.x]]&lt;br /&gt;
** [[ISP Mail Server 2.x HowTo]] &#039;&#039;(Beta, please test)&#039;&#039;&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
* [[Streaming Security Camera Video with VLC]]&lt;br /&gt;
* [[Dynamic Multipoint VPN (DMVPN)]] combined with [[Small_Office_Services]]&lt;br /&gt;
* [[RPI Video Receiver]] &#039;&#039;(network video decoder using Rasperry Pi and omxplayer)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This does not attempt to be complete. Is it useful to have these listed here? I find them more accessible if grouped with their topics; also, an up-to-date list of all Draft or Obsolete pages can be found at [[Project:Wiki maintenance]].&lt;br /&gt;
&lt;br /&gt;
== Drafts ==&lt;br /&gt;
Currently unfinished/works-in-progress.&lt;br /&gt;
* [[Using Racoon for Remote Sites]]&lt;br /&gt;
* [[Setting up Transparent Squid Proxy]] &#039;&#039;(Covers Squid proxy and URL Filtering system)&#039;&#039;&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using the Squark Squid authentication helper)&#039;&#039; [!-- no longer a draft --]&lt;br /&gt;
* [[Setting up Streaming an Asterisk Channel]]&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039;&lt;br /&gt;
* [[Intrusion Detection using Snort]] &#039;&#039;(Installing and configuring Snort and related applications on Alpine 2.0.x)&#039;&#039;&lt;br /&gt;
* [[IP Accounting]] &#039;&#039;(Installing and configuring pmacct for IP Accounting, Netflow/sFlow collector)&#039;&#039;&lt;br /&gt;
* [[Disk Replication with DRBD]]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12540</id>
		<title>Setting up a samba-ad-dc</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_samba-ad-dc&amp;diff=12540"/>
		<updated>2016-04-01T00:21:05Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Create page, basic Samba Active Directory creation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTES: &lt;br /&gt;
In all examples below, teplace EXAMPLE with your NetBIOS domain name in caps, example.com with your DNS domain name, HOSTNAME with your system&#039;s host name in caps, and hostname with your system&#039;s host name.&lt;br /&gt;
&lt;br /&gt;
Refer to the [https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ Active Directory naming FAQ] before choosing your domain name. &lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|apk add samba-dc krb5 }}&lt;br /&gt;
&lt;br /&gt;
= Edit hosts file =&lt;br /&gt;
You need to modify the hosts file to look similar to this.&lt;br /&gt;
&lt;br /&gt;
 127.0.0.1       localhost.localdomain localhost&lt;br /&gt;
 10.1.1.10       hostname.example.com hostname&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine doesn&#039;t provide an example configuration file in the package so you&#039;ll need to create one. &lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
         server role = domain controller&lt;br /&gt;
         workgroup = EXAMPLE&lt;br /&gt;
         realm = example.com&lt;br /&gt;
         netbios name = HOSTNAME&lt;br /&gt;
         passdb backend = samba4&lt;br /&gt;
         idmap_ldb:use rfc2307 = yes&lt;br /&gt;
&lt;br /&gt;
 [netlogon]&lt;br /&gt;
         path = /var/lib/samba/sysvol/example.com/scripts&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
 [sysvol]&lt;br /&gt;
         path = /var/lib/samba/sysvol&lt;br /&gt;
         read only = No&lt;br /&gt;
&lt;br /&gt;
= Provision your Samba domain =&lt;br /&gt;
Answer the questions with your domain information:&lt;br /&gt;
{{Cmd|samba-tool domain provision --use-rfc2307 --interactive}}&lt;br /&gt;
Use the SAMBA_INTERNAL DNS option.&lt;br /&gt;
When asked for a forwarder IP, choose your internet DNS server. You can use your ISP or other public services (like Google) here.&lt;br /&gt;
&lt;br /&gt;
= Configure resolv.conf =&lt;br /&gt;
Modify your /etc/resolv.conf to include your new domain as a search domain and point to itself as the first nameserver.&lt;br /&gt;
&lt;br /&gt;
 search example.com&lt;br /&gt;
 nameserver 10.1.1.10&lt;br /&gt;
&lt;br /&gt;
= Configure Kerberos =&lt;br /&gt;
You need to replace krb5.conf with a link to the one generated by samba.&lt;br /&gt;
{{Cmd|ln -sf /usr/local/samba/private/krb5.conf /etc/krb5.conf}}&lt;br /&gt;
&lt;br /&gt;
= Install new init script =&lt;br /&gt;
As of 3/31/2016 and Alpine 3.3.3, the included samba init script doesn&#039;t support starting it as a domain controller. Modify your /etc/init.d/samba script like the one below.&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 extra_started_commands=&amp;quot;reload&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DAEMON=${SVCNAME#samba.}&lt;br /&gt;
 SERVER_ROLE=`samba-tool testparm --parameter-name=&amp;quot;server role&amp;quot;  2&amp;gt;/dev/null | tail -1`&lt;br /&gt;
 if [ &amp;quot;$SERVER_ROLE&amp;quot; = &amp;quot;active directory domain controller&amp;quot; ]; then&lt;br /&gt;
         daemon_list=&amp;quot;samba&amp;quot;&lt;br /&gt;
 elif [ &amp;quot;$DAEMON&amp;quot; != &amp;quot;samba&amp;quot; ]; then&lt;br /&gt;
         daemon_list=$DAEMON&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
         need net&lt;br /&gt;
         after firewall&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_samba() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/samba --&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_samba() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/samba.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 start_smbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- \&lt;br /&gt;
                 ${smbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_smbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_nmbd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- \&lt;br /&gt;
                 ${nmbd_options:-&amp;quot;-D&amp;quot;}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_nmbd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start_winbindd() {&lt;br /&gt;
         start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- \&lt;br /&gt;
                 $winbindd_options&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop_winbindd() {&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/samba/winbindd.pid&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Starting $i&amp;quot;&lt;br /&gt;
                 start_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 stop() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Stopping $i&amp;quot;&lt;br /&gt;
                 stop_$i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 reload() {&lt;br /&gt;
         for i in $daemon_list; do&lt;br /&gt;
                 ebegin &amp;quot;Reloading $i&amp;quot;&lt;br /&gt;
                 killall -HUP $i&lt;br /&gt;
                 eend $?&lt;br /&gt;
         done&lt;br /&gt;
 }&lt;br /&gt;
        &lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|rc-update add samba}}&lt;br /&gt;
{{Cmd|rc-service samba start}}&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11519</id>
		<title>ZoneMinder video camera security and surveillance</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11519"/>
		<updated>2015-12-06T22:48:53Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Added rc-update commands to start on boot&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ZoneMinder usually runs with apache, but in this short howto we use lighttpd.&lt;br /&gt;
&lt;br /&gt;
First add the needed packages to our system&lt;br /&gt;
&lt;br /&gt;
 apk add zoneminder mysql mysql-client lighttpd php-fpm php-pdo php-pdo_mysql&lt;br /&gt;
&lt;br /&gt;
Initialize mysql database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/mariadb setup&lt;br /&gt;
&lt;br /&gt;
set root password for mysql as instructed by mysql setup&lt;br /&gt;
&lt;br /&gt;
 /usr/bin/mysqladmin -u root password &#039;your_secure_root_mysql_password&#039;&lt;br /&gt;
&lt;br /&gt;
Create a zoneminder MySQL database and user&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; CREATE USER zm@localhost IDENTIFIED BY &#039;your_zm_password_as_set_in_config&#039;;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP on zm.* to zm@localhost;&lt;br /&gt;
&lt;br /&gt;
We are running lighttpd so lets run php-fpm as lighttpd user/group&lt;br /&gt;
&lt;br /&gt;
 vim /etc/php/php-fpm.conf&lt;br /&gt;
&lt;br /&gt;
Which should look like:&lt;br /&gt;
&lt;br /&gt;
 ; Unix user/group of processes&lt;br /&gt;
 ; Note: The user is mandatory. If the group is not set, the default user&#039;s group&lt;br /&gt;
 ;       will be used.&lt;br /&gt;
 ;user = nobody&lt;br /&gt;
 ;group = nobody&lt;br /&gt;
 user = lighttpd&lt;br /&gt;
 group = lighttpd&lt;br /&gt;
&lt;br /&gt;
Enable the php cgi fpm config in lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
Go down to the includes section, it should look like:&lt;br /&gt;
 # {{{ includes&lt;br /&gt;
 include &amp;quot;mime-types.conf&amp;quot;&lt;br /&gt;
 # uncomment for cgi support&lt;br /&gt;
    include &amp;quot;mod_cgi.conf&amp;quot;&lt;br /&gt;
 # uncomment for php/fastcgi support&lt;br /&gt;
 #   include &amp;quot;mod_fastcgi.conf&amp;quot;&lt;br /&gt;
 # uncomment for php/fastcgi fpm support&lt;br /&gt;
    include &amp;quot;mod_fastcgi_fpm.conf&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # }}}&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd cgi config and add old style cgi support by adding to cgi.assign&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
which should look like&lt;br /&gt;
&lt;br /&gt;
 cgi.assign = (&lt;br /&gt;
     &amp;quot;&amp;quot;      =&amp;gt;      &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;.pl&amp;quot;   =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;,&lt;br /&gt;
     &amp;quot;.cgi&amp;quot;  =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
start php-fpm&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/php-fpm start&lt;br /&gt;
&lt;br /&gt;
start lighttpd&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/lighttpd start&lt;br /&gt;
&lt;br /&gt;
Set the MySQL hostname, username, password.&lt;br /&gt;
&lt;br /&gt;
Change the ZoneMinder user (ZM_WEB_USER) and group (ZM_WEB_GROUP) to lighttpd&lt;br /&gt;
&lt;br /&gt;
And set ZM_SERVER_HOST to your zoneMinder hostname/ipaddress&lt;br /&gt;
&lt;br /&gt;
 vim /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Which should look like:&lt;br /&gt;
&lt;br /&gt;
 # Username and group that web daemon (httpd/apache) runs as&lt;br /&gt;
 ZM_WEB_USER=lighttpd&lt;br /&gt;
 ZM_WEB_GROUP=lighttpd&lt;br /&gt;
&lt;br /&gt;
 # ZoneMinder database type: so far only mysql is supported&lt;br /&gt;
 ZM_DB_TYPE=mysql&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database hostname or ip address&lt;br /&gt;
 ZM_DB_HOST=localhost&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database name&lt;br /&gt;
 ZM_DB_NAME=zm&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database user&lt;br /&gt;
 ZM_DB_USER=zm&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database password&lt;br /&gt;
 ZM_DB_PASS=your_zm_password_as_set_in_config&lt;br /&gt;
 &lt;br /&gt;
 # Host of this machine&lt;br /&gt;
 ZM_SERVER_HOST=yourserver&lt;br /&gt;
&lt;br /&gt;
Change ownership of zm.conf to lighttpd&lt;br /&gt;
&lt;br /&gt;
 chown lighttpd.lighttpd /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Initialize the zoneminder database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder setup&lt;br /&gt;
&lt;br /&gt;
Start zoneminder&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder start&lt;br /&gt;
&lt;br /&gt;
Profit!&lt;br /&gt;
&lt;br /&gt;
To access zoneminder, browse to http://yourserver/zm/&lt;br /&gt;
&lt;br /&gt;
To make it start automatically on boot:&lt;br /&gt;
&lt;br /&gt;
 rc-update add lighttpd default&lt;br /&gt;
 rc-update add mariadb default&lt;br /&gt;
 rc-update add php-fpm default&lt;br /&gt;
 rc-update add zoneminder default&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11514</id>
		<title>ZoneMinder video camera security and surveillance</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11514"/>
		<updated>2015-11-27T23:08:11Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Added more details, consolidated lighttpd configuration steps&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ZoneMinder usually runs with apache, but in this short howto we use lighttpd.&lt;br /&gt;
&lt;br /&gt;
First add the needed packages to our system&lt;br /&gt;
&lt;br /&gt;
 apk add zoneminder mysql mysql-client lighttpd php-fpm php-pdo php-pdo_mysql&lt;br /&gt;
&lt;br /&gt;
Initialize mysql database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/mariadb setup&lt;br /&gt;
&lt;br /&gt;
set root password for mysql as instructed by mysql setup&lt;br /&gt;
&lt;br /&gt;
 /usr/bin/mysqladmin -u root password &#039;your_secure_root_mysql_password&#039;&lt;br /&gt;
&lt;br /&gt;
Create a zoneminder MySQL database and user&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; CREATE USER zm@localhost IDENTIFIED BY &#039;your_zm_password_as_set_in_config&#039;;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP on zm.* to zm@localhost;&lt;br /&gt;
&lt;br /&gt;
We are running lighttpd so lets run php-fpm as lighttpd user/group&lt;br /&gt;
&lt;br /&gt;
 vim /etc/php/php-fpm.conf&lt;br /&gt;
&lt;br /&gt;
Which should look like:&lt;br /&gt;
&lt;br /&gt;
 ; Unix user/group of processes&lt;br /&gt;
 ; Note: The user is mandatory. If the group is not set, the default user&#039;s group&lt;br /&gt;
 ;       will be used.&lt;br /&gt;
 ;user = nobody&lt;br /&gt;
 ;group = nobody&lt;br /&gt;
 user = lighttpd&lt;br /&gt;
 group = lighttpd&lt;br /&gt;
&lt;br /&gt;
Enable the php cgi fpm config in lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
Go down to the includes section, it should look like:&lt;br /&gt;
 # {{{ includes&lt;br /&gt;
 include &amp;quot;mime-types.conf&amp;quot;&lt;br /&gt;
 # uncomment for cgi support&lt;br /&gt;
    include &amp;quot;mod_cgi.conf&amp;quot;&lt;br /&gt;
 # uncomment for php/fastcgi support&lt;br /&gt;
 #   include &amp;quot;mod_fastcgi.conf&amp;quot;&lt;br /&gt;
 # uncomment for php/fastcgi fpm support&lt;br /&gt;
    include &amp;quot;mod_fastcgi_fpm.conf&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # }}}&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd cgi config and add old style cgi support by adding to cgi.assign&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
which should look like&lt;br /&gt;
&lt;br /&gt;
 cgi.assign = (&lt;br /&gt;
     &amp;quot;&amp;quot;      =&amp;gt;      &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;.pl&amp;quot;   =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;,&lt;br /&gt;
     &amp;quot;.cgi&amp;quot;  =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
start php-fpm&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/php-fpm start&lt;br /&gt;
&lt;br /&gt;
start lighttpd&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/lighttpd start&lt;br /&gt;
&lt;br /&gt;
Set the MySQL hostname, username, password.&lt;br /&gt;
&lt;br /&gt;
Change the ZoneMinder user (ZM_WEB_USER) and group (ZM_WEB_GROUP) to lighttpd&lt;br /&gt;
&lt;br /&gt;
And set ZM_SERVER_HOST to your zoneMinder hostname/ipaddress&lt;br /&gt;
&lt;br /&gt;
 vim /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Which should look like:&lt;br /&gt;
&lt;br /&gt;
 # Username and group that web daemon (httpd/apache) runs as&lt;br /&gt;
 ZM_WEB_USER=lighttpd&lt;br /&gt;
 ZM_WEB_GROUP=lighttpd&lt;br /&gt;
&lt;br /&gt;
 # ZoneMinder database type: so far only mysql is supported&lt;br /&gt;
 ZM_DB_TYPE=mysql&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database hostname or ip address&lt;br /&gt;
 ZM_DB_HOST=localhost&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database name&lt;br /&gt;
 ZM_DB_NAME=zm&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database user&lt;br /&gt;
 ZM_DB_USER=zm&lt;br /&gt;
 &lt;br /&gt;
 # ZoneMinder database password&lt;br /&gt;
 ZM_DB_PASS=your_zm_password_as_set_in_config&lt;br /&gt;
 &lt;br /&gt;
 # Host of this machine&lt;br /&gt;
 ZM_SERVER_HOST=yourserver&lt;br /&gt;
&lt;br /&gt;
Change ownership of zm.conf to lighttpd&lt;br /&gt;
&lt;br /&gt;
 chown lighttpd.lighttpd /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Initialize the zoneminder database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder setup&lt;br /&gt;
&lt;br /&gt;
Start zoneminder&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder start&lt;br /&gt;
&lt;br /&gt;
Profit!&lt;br /&gt;
&lt;br /&gt;
To access zoneminder, browse to http://yourserver/zm/&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11181</id>
		<title>ZoneMinder video camera security and surveillance</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11181"/>
		<updated>2015-08-22T02:45:06Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: No longer requires edge; Added missing required packages; Replaced mysql with mariadb as requred; Added DROP privilege as required by setup step; Added required permission change to use lighttpd; Added missing setup step&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ZoneMinder usually runs with apache, but in this short howto we use lighttpd.&lt;br /&gt;
&lt;br /&gt;
First add the needed packages to our system&lt;br /&gt;
&lt;br /&gt;
 apk add zoneminder mysql mysql-client lighttpd php-fpm php-pdo php-pdo_mysql&lt;br /&gt;
&lt;br /&gt;
Initialize mysql database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/mariadb setup&lt;br /&gt;
&lt;br /&gt;
set root password for mysql as instructed by mysql setup&lt;br /&gt;
&lt;br /&gt;
Create a zoneminder MySQL database and user&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; CREATE USER zm@localhost IDENTIFIED BY &#039;your_zm_password_as_set_in_config&#039;;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP on zm.* to zm@localhost;&lt;br /&gt;
&lt;br /&gt;
We are running lighttpd so lets run php-fpm as lighttpd user/group&lt;br /&gt;
&lt;br /&gt;
 vim /etc/php/php-fpm.conf&lt;br /&gt;
&lt;br /&gt;
uncomment the php cgi fpm config in lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
start php-fpm&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/php-fpm start&lt;br /&gt;
&lt;br /&gt;
start lighttpd&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/lighttpd start&lt;br /&gt;
&lt;br /&gt;
Set the MySQL hostname, username, password.&lt;br /&gt;
&lt;br /&gt;
Change the ZoneMinder user (ZM_WEB_USER) and group (ZM_WEB_GROUP) to lighttpd&lt;br /&gt;
&lt;br /&gt;
And set ZM_SERVER_HOST to your zoneMinder hostname/ipaddress&lt;br /&gt;
&lt;br /&gt;
 vim /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Change ownership of zm.conf to lighttpd&lt;br /&gt;
&lt;br /&gt;
 chown lighttpd.lighttpd /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd cgi config and add old style cgi support by adding to cgi.assign&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
which should look like&lt;br /&gt;
&lt;br /&gt;
 cgi.assign = (&lt;br /&gt;
     &amp;quot;&amp;quot;      =&amp;gt;      &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;.pl&amp;quot;   =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;,&lt;br /&gt;
     &amp;quot;.cgi&amp;quot;  =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd.conf and uncomment mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
Initialize the zoneminder database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder setup&lt;br /&gt;
&lt;br /&gt;
Start zoneminder&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder start&lt;br /&gt;
&lt;br /&gt;
Profit!&lt;br /&gt;
&lt;br /&gt;
To access zoneminder, browse to http://yourserver/zm/&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11180</id>
		<title>ZoneMinder video camera security and surveillance</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11180"/>
		<updated>2015-08-22T02:34:24Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Added missing required packages&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Currently zoneminder has to be installed from edge, make sure you have edge as pinned repo when you use stable.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder usually runs with apache, but in this short howto we use lighttpd.&lt;br /&gt;
&lt;br /&gt;
First add the needed packages to our system&lt;br /&gt;
&lt;br /&gt;
 apk add zoneminder@edge mysql mysql-client lighttpd php-fpm php-pdo php-pdo_mysql&lt;br /&gt;
&lt;br /&gt;
Initialize mysql database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/mysql setup&lt;br /&gt;
&lt;br /&gt;
set root password for mysql as instructed by mysql setup&lt;br /&gt;
&lt;br /&gt;
Create a zoneminder MySQL database and user&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; CREATE USER zm@localhost IDENTIFIED BY &#039;your_zm_password_as_set_in_config&#039;;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to zm@localhost;&lt;br /&gt;
&lt;br /&gt;
We are running lighttpd so lets run php-fpm as lighttpd user/group&lt;br /&gt;
&lt;br /&gt;
 vim /etc/php/php-fpm.conf&lt;br /&gt;
&lt;br /&gt;
uncomment the php cgi fpm config in lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
start php-fpm&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/php-fpm start&lt;br /&gt;
&lt;br /&gt;
start lighttpd&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/lighttpd start&lt;br /&gt;
&lt;br /&gt;
Set the MySQL hostname, username, password.&lt;br /&gt;
&lt;br /&gt;
Change the ZoneMinder user (ZM_WEB_USER) and group (ZM_WEB_GROUP) to lighttpd&lt;br /&gt;
&lt;br /&gt;
And set ZM_SERVER_HOST to your zoneMinder hostname/ipaddress&lt;br /&gt;
&lt;br /&gt;
 vim /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd cgi config and add old style cgi support by adding to cgi.assign&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
which should look like&lt;br /&gt;
&lt;br /&gt;
 cgi.assign = (&lt;br /&gt;
     &amp;quot;&amp;quot;      =&amp;gt;      &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;.pl&amp;quot;   =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;,&lt;br /&gt;
     &amp;quot;.cgi&amp;quot;  =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd.conf and uncomment mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
Start zoneminder&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder start&lt;br /&gt;
&lt;br /&gt;
Profit!&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11179</id>
		<title>ZoneMinder video camera security and surveillance</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11179"/>
		<updated>2015-08-22T02:27:37Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: Added required permission change to use lighttpd&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Currently zoneminder has to be installed from edge, make sure you have edge as pinned repo when you use stable.&lt;br /&gt;
&lt;br /&gt;
ZoneMinder usually runs with apache, but in this short howto we use lighttpd.&lt;br /&gt;
&lt;br /&gt;
First add the needed packages to our system&lt;br /&gt;
&lt;br /&gt;
 apk add zoneminder@edge mysql mysql-client lighttpd php-fpm&lt;br /&gt;
&lt;br /&gt;
Initialize mysql database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/mysql setup&lt;br /&gt;
&lt;br /&gt;
set root password for mysql as instructed by mysql setup&lt;br /&gt;
&lt;br /&gt;
Create a zoneminder MySQL database and user&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; CREATE USER zm@localhost IDENTIFIED BY &#039;your_zm_password_as_set_in_config&#039;;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to zm@localhost;&lt;br /&gt;
&lt;br /&gt;
We are running lighttpd so lets run php-fpm as lighttpd user/group&lt;br /&gt;
&lt;br /&gt;
 vim /etc/php/php-fpm.conf&lt;br /&gt;
&lt;br /&gt;
uncomment the php cgi fpm config in lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
start php-fpm&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/php-fpm start&lt;br /&gt;
&lt;br /&gt;
start lighttpd&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/lighttpd start&lt;br /&gt;
&lt;br /&gt;
Set the MySQL hostname, username, password.&lt;br /&gt;
&lt;br /&gt;
Change the ZoneMinder user (ZM_WEB_USER) and group (ZM_WEB_GROUP) to lighttpd&lt;br /&gt;
&lt;br /&gt;
And set ZM_SERVER_HOST to your zoneMinder hostname/ipaddress&lt;br /&gt;
&lt;br /&gt;
 vim /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Change owner and group-owner of zm.conf to lighttpd&lt;br /&gt;
&lt;br /&gt;
 chown lighttpd.lighttpd /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd cgi config and add old style cgi support by adding to cgi.assign&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
which should look like&lt;br /&gt;
&lt;br /&gt;
 cgi.assign = (&lt;br /&gt;
     &amp;quot;&amp;quot;      =&amp;gt;      &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;.pl&amp;quot;   =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;,&lt;br /&gt;
     &amp;quot;.cgi&amp;quot;  =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd.conf and uncomment mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
Start zoneminder&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder start&lt;br /&gt;
&lt;br /&gt;
Profit!&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11178</id>
		<title>ZoneMinder video camera security and surveillance</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=ZoneMinder_video_camera_security_and_surveillance&amp;diff=11178"/>
		<updated>2015-08-22T02:25:01Z</updated>

		<summary type="html">&lt;p&gt;Cscracker: No longer requires edge; Replaced mysql with mariadb as requred; Added DROP privilege as required by setup step; Added missing setup step&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ZoneMinder usually runs with apache, but in this short howto we use lighttpd.&lt;br /&gt;
&lt;br /&gt;
First add the needed packages to our system&lt;br /&gt;
&lt;br /&gt;
 apk add zoneminder mysql mysql-client lighttpd php-fpm&lt;br /&gt;
&lt;br /&gt;
Initialize mysql database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/mariadb setup&lt;br /&gt;
&lt;br /&gt;
set root password for mysql as instructed by mysql setup&lt;br /&gt;
&lt;br /&gt;
Create a zoneminder MySQL database and user&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; create database zm;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; CREATE USER zm@localhost IDENTIFIED BY &#039;your_zm_password_as_set_in_config&#039;;&lt;br /&gt;
&lt;br /&gt;
 mysql&amp;gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP on zm.* to zm@localhost;&lt;br /&gt;
&lt;br /&gt;
We are running lighttpd so lets run php-fpm as lighttpd user/group&lt;br /&gt;
&lt;br /&gt;
 vim /etc/php/php-fpm.conf&lt;br /&gt;
&lt;br /&gt;
uncomment the php cgi fpm config in lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
start php-fpm&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/php-fpm start&lt;br /&gt;
&lt;br /&gt;
start lighttpd&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/lighttpd start&lt;br /&gt;
&lt;br /&gt;
Set the MySQL hostname, username, password.&lt;br /&gt;
&lt;br /&gt;
Change the ZoneMinder user (ZM_WEB_USER) and group (ZM_WEB_GROUP) to lighttpd&lt;br /&gt;
&lt;br /&gt;
And set ZM_SERVER_HOST to your zoneMinder hostname/ipaddress&lt;br /&gt;
&lt;br /&gt;
 vim /etc/zm.conf&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd cgi config and add old style cgi support by adding to cgi.assign&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
which should look like&lt;br /&gt;
&lt;br /&gt;
 cgi.assign = (&lt;br /&gt;
     &amp;quot;&amp;quot;      =&amp;gt;      &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;.pl&amp;quot;   =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;,&lt;br /&gt;
     &amp;quot;.cgi&amp;quot;  =&amp;gt;      &amp;quot;/usr/bin/perl&amp;quot;&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
Edit lighttpd.conf and uncomment mod_cgi.conf&lt;br /&gt;
&lt;br /&gt;
 vim /etc/lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
Initialize the zoneminder database&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder setup&lt;br /&gt;
&lt;br /&gt;
Start zoneminder&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/zoneminder start&lt;br /&gt;
&lt;br /&gt;
Profit!&lt;/div&gt;</summary>
		<author><name>Cscracker</name></author>
	</entry>
</feed>