Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SMB & AFP Avahi name change

Featured Replies

Can we have the ability to change the names for SMB & AFP? Either that, or allow us to disable it for either service.

When AFP is enabled/disabled on the Settings/Network Services/AFP page, AVAHI is also enabled/disabled.  The 'name' given to the AFP service is the hostname of the unRaid server, and the name given to the SMB service is the hostname with a "-SMB" suffix tacked on.

 

So AVAHI is tied to AFP, but if you want AVAHI without AFP you can enable AFP but just not export any shares using AFP.

 

I think what you are asking for is to enable or disable the SMB service, and if enabled, have ability to change the suffix from "-SMB", correct?

 

As you know AVAHI is actually pretty powerful and perhaps should have it's own "Network Service" page.  For example, some enhancements might be to set up other services, such as FTP.  Another enhancement would be ability to change the icon that shows up in finder for a particular service (right now it uses the "Xserve" icon).

 

Another question though: is there any use for AVAHI outside an Apple/OSX environment?

What I interpreted him as asking for was the ability to change it so the "names" for AFP and SMB are not the hostname. The ability to name them whatever you want. So for instance the hostname of the server would be "Tower" but you could name AFP and SMB so they show up as "Media Server" or something like that when browsing your network.

  • Author

When AFP is enabled/disabled on the Settings/Network Services/AFP page, AVAHI is also enabled/disabled.  The 'name' given to the AFP service is the hostname of the unRaid server, and the name given to the SMB service is the hostname with a "-SMB" suffix tacked on.

 

So AVAHI is tied to AFP, but if you want AVAHI without AFP you can enable AFP but just not export any shares using AFP.

 

I think what you are asking for is to enable or disable the SMB service, and if enabled, have ability to change the suffix from "-SMB", correct?

 

As you know AVAHI is actually pretty powerful and perhaps should have it's own "Network Service" page.  For example, some enhancements might be to set up other services, such as FTP.  Another enhancement would be ability to change the icon that shows up in finder for a particular service (right now it uses the "Xserve" icon).

 

Another question though: is there any use for AVAHI outside an Apple/OSX environment?

 

You're absolutely right - essentially just want to rid my sidebar of the SMB service  ;)  Would be nice to rename, but that's not too important.

 

AVAHI does work in the windows environment if you have Bonjour installed, but generally it's just for 'pretty' service discovery in the Apple world. You could easily tie in a checkbox in each service to enable/disable AVAHI? Also when you enable/disable AFP you could tie in a dropdown for icon change.

 

Cheers for the quick reply  :)

BTW, if SMB is disabled, or if there are no SMB shares, then the AVAHI smb service is also not started.

 

I can see the desire to not have the SMB service show up in finder's sidebar, so what would be easy/low-risk (i.e., a change to get in before 'final') would be to have a form field on the AFP network service page called "SMB service suffix", that would default to "-SMB".  You could then change it to whatever you wanted, or if you set blank, it would disable the smb service altogether.  What do you think?

 

Note that the flash share can only be exported via SMB (because I don't want netatalk writing a bunch of cnid databases and AppleDouble files on the flash).

 

Speaking of .AppleDouble files - the upcoming "3.0" release of netatalk gets rid of these files and instead stores metadata in extended attributes - yay!

  • Author

BTW, if SMB is disabled, or if there are no SMB shares, then the AVAHI smb service is also not started.

 

I can see the desire to not have the SMB service show up in finder's sidebar, so what would be easy/low-risk (i.e., a change to get in before 'final') would be to have a form field on the AFP network service page called "SMB service suffix", that would default to "-SMB".  You could then change it to whatever you wanted, or if you set blank, it would disable the smb service altogether.  What do you think?

 

Note that the flash share can only be exported via SMB (because I don't want netatalk writing a bunch of cnid databases and AppleDouble files on the flash).

 

Speaking of .AppleDouble files - the upcoming "3.0" release of netatalk gets rid of these files and instead stores metadata in extended attributes - yay!

 

I'd be more inclined to set that in the SMB service page - make sure it has (Leave blank to disable AVAHI discovery) or something like that.

 

...

 

Speaking of .AppleDouble files - the upcoming "3.0" release of netatalk gets rid of these files and instead stores metadata in extended attributes - yay!

 

Thank god!

Another question though: is there any use for AVAHI outside an Apple/OSX environment?

Yes (sort of). 

 

The mt-daapd media server uses it (both the original Firefly and forked-daapd versions) and that may be used with non-Apple clients such as software based daap players and hardware devices, the Roku SoundBridge family specifically.  Quite a few of us run one version or the other of mt-daapd for audio streaming.

Another question though: is there any use for AVAHI outside an Apple/OSX environment?

Yes (sort of). 

 

The mt-daapd media server uses it (both the original Firefly and forked-daapd versions) and that may be used with non-Apple clients such as software based daap players and hardware devices, the Roku SoundBridge family specifically.  Quite a few of us run one version or the other of mt-daapd for audio streaming.

 

For these servers, are they using avahi to discover servers exporting via afp or smb (or both)?

  • Author

No, forked-daapd uses Avahi to setup its own services. I've had to modify my iTunes plugin rc script to ensure that it starts up Avahi before running.

 

Perhaps that could be a change? Enable Avahi by default, instead of linking it with AFP?

Ok, so you're saying forked-daapd (and maybe others), create their own service file to advertise themselves on the network?

  • Author

Ok, so you're saying forked-daapd (and maybe others), create their own service file to advertise themselves on the network?

 

Yes! In my roundabout way of explaining things  :)

One more avahi question... Is there any reason, if you are using AFP protocol, to not also enable avahai?  That is, if AFP is enabled then this alone should also enable avahi, correct?

  • Author

Correct - I guess if you don't want AFP to be broadcasted to the entire network (say, the server happens to be on the same subnet as other computers and you don't want them to know it's there), then you'd want AVAHI turned off.

Correct - I guess if you don't want AFP to be broadcasted to the entire network (say, the server happens to be on the same subnet as other computers and you don't want them to know it's there), then you'd want AVAHI turned off.

Then how would you access the server since it would not show up in finder correct?

  • Author

You should still be able to access the server via "Connect to server" panel (command -k, or Finder -> Go menu -> Connect to server). Just type in afp://IPADDRESS/share

 

Not too many situations would require this, but I suppose a setting like the SMB page to turn off AVAHI service would be useful - if it's as easy as copying what's in the SMB page :)

You should still be able to access the server via "Connect to server" panel (command -k, or Finder -> Go menu -> Connect to server). Just type in afp://IPADDRESS/share

Right, of course.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.