Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:nas:netatalk_configuration [2018/03/03 20:15] – ↷ Links adapted because of a move operation | docs:guide-user:services:nas:netatalk_configuration [2020/08/26 18:32] – [Avahi-daemon Configuration] nwm | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| In order for this guide to work you will need to meet the following prerequisites: | In order for this guide to work you will need to meet the following prerequisites: | ||
| - | * [[docs:user-guide: | + | * [[docs: |
| - | * [[docs:user-guide: | + | * [[docs: |
| ==== Package Installation ==== | ==== Package Installation ==== | ||
| Line 15: | Line 15: | ||
| opkg update && opkg install nano shadow-groupadd shadow-groupmod shadow-useradd shadow-usermod | opkg update && opkg install nano shadow-groupadd shadow-groupmod shadow-useradd shadow-usermod | ||
| + | |||
| ==== Available Netatalk Features ==== | ==== Available Netatalk Features ==== | ||
| Many of the Netatalk goodies such as Spotlight search, Zeroconfig, ACL and LDAP support have been disabled. That was probably a wise decision to save space and provide a broader range of hardware support. The good news Time Machine support is available. With a simple command '' | Many of the Netatalk goodies such as Spotlight search, Zeroconfig, ACL and LDAP support have been disabled. That was probably a wise decision to save space and provide a broader range of hardware support. The good news Time Machine support is available. With a simple command '' | ||
| Line 51: | Line 52: | ||
| Server messages path: | Server messages path: | ||
| </ | </ | ||
| + | |||
| ==== Basic File Share Configuration (Time Machine Server) ==== | ==== Basic File Share Configuration (Time Machine Server) ==== | ||
| < | < | ||
| Line 61: | Line 63: | ||
| The afp.conf file contains all AFP specific configurations and AFP volume definitions. Let's edit ours with '' | The afp.conf file contains all AFP specific configurations and AFP volume definitions. Let's edit ours with '' | ||
| + | |||
| + | log file = / | ||
| + | For initial configuration, | ||
| + | |||
| + | afp interfaces = br-lan | ||
| + | In case you have multiple interfaces. Select the one, which you want to use for listening. | ||
| + | |||
| + | vol size limit = size in MiB (V) | ||
| + | Useful for Time Machine: limits the reported volume size, thus preventing Time Machine from using the whole real disk space for backup. Example: "vol size limit = 1000" would limit the reported disk space to 1 GB. IMPORTANT: This is an approximated calculation taking into account the contents of Time Machine sparsebundle images. Therefor you MUST NOT use this volume to store other content when using this option, because it would NOT be accounted. The calculation works by reading the band size from the Info.plist XML file of the sparsebundle, | ||
| + | |||
| + | |||
| < | < | ||
| ; | ; | ||
| ; Netatalk 3.x configuration file | ; Netatalk 3.x configuration file | ||
| - | ; | + | ; |
| + | |||
| + | [Global] | ||
| + | ; Global server settings | ||
| + | log file = / | ||
| + | afp interfaces = br-lan | ||
| [Backups] | [Backups] | ||
| - | path = / | + | path = / |
| - | | + | time machine = yes |
| - | | + | vol size limit = 250000 |
| - | | + | valid users = @users |
| </ | </ | ||
| + | |||
| + | Don't forget to restart the daemon with ''/ | ||
| + | |||
| ==== Avahi-daemon Configuration ==== | ==== Avahi-daemon Configuration ==== | ||
| The default avahi-daemon configuration ''/ | The default avahi-daemon configuration ''/ | ||
| Line 106: | Line 127: | ||
| rlimit-nproc=3 | rlimit-nproc=3 | ||
| </ | </ | ||
| + | |||
| + | By default Avahi daemon requires running dbus. Start the dbus with command ''/ | ||
| + | Start the Avahi daemon with command ''/ | ||
| :!: Learn about other configuration options here [[https:// | :!: Learn about other configuration options here [[https:// | ||
| + | |||
| ==== Zeroconf Advertising ==== | ==== Zeroconf Advertising ==== | ||
| The LEDE implementation of Netatalk was not compiled with Zeroconf support; so we must advertise the required afpovertcp, device-info, | The LEDE implementation of Netatalk was not compiled with Zeroconf support; so we must advertise the required afpovertcp, device-info, | ||
| Line 139: | Line 164: | ||
| :!: '' | :!: '' | ||
| + | |||
| + | Don't forget to restart the daemons after changing the configuration. | ||
| **Some helpful links** | **Some helpful links** | ||
| - | [[https:// | + | * [[https:// |
| - | [[http:// | + | |
| - | [[http:// | + | |
| ==== User and Group Management ==== | ==== User and Group Management ==== | ||
| In this section we'll create two (2) new users on the LEDE system for file sharing purposes. Create as many or as little as you like, the principles are the same. We'll also accomplish the following: | In this section we'll create two (2) new users on the LEDE system for file sharing purposes. Create as many or as little as you like, the principles are the same. We'll also accomplish the following: | ||
| Line 178: | Line 206: | ||
| root@LEDE: | root@LEDE: | ||
| users: | users: | ||
| + | |||
| ==== Preserving Configuration on Firmware Upgrade ==== | ==== Preserving Configuration on Firmware Upgrade ==== | ||
| Line 205: | Line 234: | ||
| For more information, | For more information, | ||
| + | |||
| ==== Setup Time Machine on macOS ==== | ==== Setup Time Machine on macOS ==== | ||
| Settting up Time Machine on the Mac is a very simple process: | Settting up Time Machine on the Mac is a very simple process: | ||
| Line 216: | Line 246: | ||
| ==== Final Thoughts ==== | ==== Final Thoughts ==== | ||
| - | If you have questions, post them in the LEDE Project | + | If you have questions, post them in the OpenWrt |
| Please update this user guide if you have a better way of doing things or notice typos and errors. :-) | Please update this user guide if you have a better way of doing things or notice typos and errors. :-) | ||