m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.95k stars 449 forks source link

How can I connect linux container using neko.? #325

Closed simon0210 closed 10 months ago

simon0210 commented 10 months ago

I build up neko on my Ubuntu machine without containers. (native)

and make xfce docker container and run it.

For streaming, how can I connect running xfce container using neko.?

m1k1o commented 10 months ago

Sorry i don't know what you want to acheive. If you decided to not use containers, you should as well install xfce natively without container. It would be quite difficult to connect native neko installion with container environment.

simon0210 commented 10 months ago

@m1k1o The reason I configured neko as a natively is to debug using the IDE. (i.e goland, vscode)

I used go delve to debug in the container environment, but it doesn't work.

m1k1o commented 10 months ago

Oh okay. Got you. I personally do it inside VM (ubuntu gnome) and connect to the X server that i have there to debug.

Because xfce neko container already contains neko instance, you cannot use that if you want to use your own local. If you have already running (development) X server you can just natively start xfce with defined DISPLAY=:99.0 startxfce4 env vrariable. Make sure to pass this env to neko when starting as well.

simon0210 commented 10 months ago

thanks for the answer.