Git Product home page Git Product logo

Comments (6)

MarvAmBass avatar MarvAmBass commented on August 17, 2024

Is Avahi installed on your host? Do you see the samba config on your host? Maybe you just need to restart avahi on your host

You know that you explicitly disabled the container avahi by mounting the avahi volume from the outside.

Please check if anything from above might be the problem

Thanks and have fun with the container

Maybe you can also post the contents of your avahi samba service

from samba.

MarvAmBass avatar MarvAmBass commented on August 17, 2024

The interesting thing is, I also need to click twice on my Mac

Sometimes it seems to no connect
But after manual connect it also works via the detected server

Maybe this really is an issue I need to look into - I think I got blind and got used to this workaround

Also sometimes my server icon changes

Do you see your raspberry pi on your network as samba/network share server? Or is it missing completely

You could also check using some zeroconf inspector if and what is announced

from samba.

bpoetzschke avatar bpoetzschke commented on August 17, 2024

I think I figured it out now. I removed the mount of the host avahi and removed the file on the pi's /etc/avahi/service/samba.conf location to make use of the avahi instance from the docker container. Furthermore, I have to have a time machine share to have the "complete" setup.

Here is the samba.service without timemachine:

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
 <name replace-wildcards="yes">StorageServer</name>
 <service>
   <type>_smb._tcp</type>
   <port>445</port>
 </service>

And here with:

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
 <name replace-wildcards="yes">StorageServer</name>
 <service>
   <type>_smb._tcp</type>
   <port>445</port>
 </service>

 <service>
  <type>_device-info._tcp</type>
  <port>0</port>
  <txt-record>model=MacPro7,1@ECOLOR=226,226,224</txt-record>
 </service>

 <service>
  <type>_adisk._tcp</type>
  <txt-record>sys=waMa=0,adVF=0x100</txt-record>
  <txt-record>dk0=adVN=TimeMachine,adVF=0x82</txt-record>
 </service>
</service-group>

from samba.

MarvAmBass avatar MarvAmBass commented on August 17, 2024

So is everything working as expected? Or did you have to add the samba config manually?

from samba.

bpoetzschke avatar bpoetzschke commented on August 17, 2024

Now everything is working as expected, and the samba config is created automatically. However, it seems to generate a correct samba service config only if I have a time machine share configured. Without that, the samba config file is still generated but not working.

from samba.

MarvAmBass avatar MarvAmBass commented on August 17, 2024

As far as I know, it doesn't overwrite, so maybe your raspberry pi default samba config is conflicting with my container. there could also be an issue with some kind of avahi version conflict between host and container

from samba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.