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.

Capital letters in avahi service name

Featured Replies

The SMB and AFP avahi services are showing in capital letters, and I've verified this is not a Finder issue (searched bonjour services and confirmed same thing). The unRAID server identifier name, and the hostname of the server, isn't capitalised.

 

Example: Storage -> STORAGE

 

I've had this problem for as long as I can remember, on multiple macOS client machines over multiple OS versions. Anyone else experience this? I see it's just taking the %h var in the avahi service config, that may be the culprit.

 

Just my OCD, but it occasionally annoys me  ;D

Screen_Shot_2017-01-27_at_10_15.44_PM.png.47a848ecbdc63b52ae3c95a66084d385.png

I see the same thing on all my machines.

The SMB and AFP avahi services are showing in capital letters, and I've verified this is not a Finder issue (searched bonjour services and confirmed same thing). The unRAID server identifier name, and the hostname of the server, isn't capitalised.

 

Example: Storage -> STORAGE

 

I've had this problem for as long as I can remember, on multiple macOS client machines over multiple OS versions. Anyone else experience this? I see it's just taking the %h var in the avahi service config, that may be the culprit.

 

Just my OCD, but it occasionally annoys me  ;D

 

See if this works: edit the one of the /etc/avahi/services files, eg, /etc/avahi/services/smb.service and change:

 

 <name replace-wildcards='yes'>%h</name>

 

to

 

 <name>Tower</name>

 

(of course use your server name instead of "Tower")

 

I think avahi should see the file change and restart itself.  Then check if name shows up like you want.

  • Author

Doesn't seem to make a difference - unfortunately a restart of the service re-generates a new config file.

Looking into this a bit, I don't think it's an avahi issue; changing the %h to the actual server name does not affect the string shown in Finder.  I've noticed the server name shows up in all caps under windows 10 Network as well.

 

If you look at /etc/samba/smb-names.conf the server name is set to mixed case, but if you use the 'testparm -sv' command it looks like Samba is internally setting the string to upper case.  ???

  • Author

Strange, but it's now working. Avahi services must cache, even after a reload. Changing the hostname manually fixed the issue.

 

cat /etc/avahi/avahi-daemon.conf

.....

host-name=Storage

 

Screen_Shot_2017-02-02_at_7_54.50_AM.png.bca7c06acefa293bcdf378458b666c3e.png

Strange, but it's now working. Avahi services must cache, even after a reload. Changing the hostname manually fixed the issue.

 

cat /etc/avahi/avahi-daemon.conf

.....

host-name=Storage

You're think it's ahahi?  That package has not changed in almost a year.

Hey I should tell you about a little 'undocumented' feature  :o

 

If you look in /boot/config/share.cfg file you should see these lines:

 

shareAvahiEnabled="yes"
shareAvahiSMBName="%h"
shareAvahiSMBModel="Xserve"
shareAvahiAFPName="%h-AFP"
shareAvahiAFPModel="Xserve"

 

Those strings are what get put into the /etc/avahi/services/smb.service and afp.service files.  Never got around to creating a webGui control for those, but you should be able to edit the file and change the "%h" to "Storage" or anything you want.

 

I don't know if this is relevant to the issue at hand.

  • Author

Strange, but it's now working. Avahi services must cache, even after a reload. Changing the hostname manually fixed the issue.

 

cat /etc/avahi/avahi-daemon.conf

.....

host-name=Storage

You're think it's ahahi?  That package has not changed in almost a year.

 

Not sure - would need to do some testing. I doubt it's Avahi...  would be interesting to see what you see if you use

avahi-browse -a

at your end. Use

dns-sd -B

if you have a Mac to test with as well.

 

 

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.