Please see the attached photos of the service area, which includes multiple meters and panels, including one labeled “Basement Apt. I connected here the solar system.
The disconnects and fuses are old system that does not work, how should I do the grounding here if I have a collective bar.
Even if it were, it doesn’t appear to be the type of installation one would want to guide online.
My recommendation would be to get a good electrician in there to clean things up and get rid of unused stuff. The picture is what no inspector wants to see when they arrive, lol.
As others have said, call an electrician. Electricity kills. I can’t speak for others, but I am not into helping people commit suicide. Save the DIY projects for building bird houses and picnic tables.