NetAtalk setup: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Jawadmin
No edit summary
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<hr>
<p style="text align:left;">Previous [[OpenSSL Certificate Authority]]
<span style="float:right;">Next [[Poudriere setup]]</span></p>
<hr>
The actions required to setup NetAtalk 3.1 on FreeBSD 10.2
The actions required to setup NetAtalk 3.1 on FreeBSD 10.2


Line 4: Line 9:


Create user(s) and group(s) for AFP and Time Machine shares
Create user(s) and group(s) for AFP and Time Machine shares
# pw groupadd afp
# pw groupadd tm
# pw groupmod afp -m user1, user12
# pw groupmod tm -m user1


When using zfs
When using zfs
  # zfs create zroot/usr/home/shares
  # zfs create -o compress=lz4 -o mountpoint=/var/shares zshares/var/shares
# zfs set compression=lz4 zroot/usr/home/shares
  # zfs set refquota=800G zshares/var/shares
  # zfs set refquota=800G zroot/usr/home/shares


Create share points for AFP and Time Machine shares
Create share points for AFP and Time Machine shares
  # mkdir /usr/home/shares/afp
  # mkdir /var/shares/{afp,tm}
# mkdir /usr/home/shares/tm


Adjust access
Adjust access
  # chmod 770 /usr/home/shares/afp
  # chmod 770 /var/shares/{afp,tm}
# chmod 770 /usr/home/shares/tm


Modify share point ownership
Modify share point ownership
  # chgrp afp /usr/home/shares/afp
  # chgrp afp /var/shares/afp
  # chgrp tm /usr/home/shares/tm
  # chgrp tm /var/shares/tm


Install netltalk
Install netltalk
Line 35: Line 42:
Modify /etc/rc.conf
Modify /etc/rc.conf
  # Add :  
  # Add :  
dbus_enable="YES"
avahi_daemon_enable="YES"
  netatalk_enabled="YES"
  netatalk_enabled="YES"
  avahi_daemon_enable="YES"
 
Start the services
  # service dbus start
# service avahi-daemon start
# service netatalk start
 
 
<hr>
<p style="text align:left;">Return [[OpenSSL Certificate Authority]]
<span style="float:right;">Next [[Poudriere setup]]</span></p>
<center> Up [[Freebsd Knowledge Base]]</center>
<hr>

Latest revision as of 09:21, 20 March 2021


Previous OpenSSL Certificate Authority Next Poudriere setup


The actions required to setup NetAtalk 3.1 on FreeBSD 10.2

Preparations:

Create user(s) and group(s) for AFP and Time Machine shares

# pw groupadd afp
# pw groupadd tm
# pw groupmod afp -m user1, user12
# pw groupmod tm -m user1


When using zfs

# zfs create -o compress=lz4 -o mountpoint=/var/shares zshares/var/shares
# zfs set refquota=800G zshares/var/shares

Create share points for AFP and Time Machine shares

# mkdir /var/shares/{afp,tm}

Adjust access

# chmod 770 /var/shares/{afp,tm}

Modify share point ownership

# chgrp afp /var/shares/afp
# chgrp tm /var/shares/tm

Install netltalk

# pkg install netatalk3

Configure

Create /usr/local/etc/afp.conf

Example file

Modify /etc/nssswitch.conf

Change: 'hosts: files dns', to: 'hosts: files dns mdns'

Modify /etc/rc.conf

# Add : 
dbus_enable="YES"
avahi_daemon_enable="YES"
netatalk_enabled="YES"

Start the services

# service dbus start 
# service avahi-daemon start 
# service netatalk start 



Return OpenSSL Certificate Authority Next Poudriere setup

Up Freebsd Knowledge Base