-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to vnc with unity3d in docker? #190
Comments
Overall I am less experienced with remote setups, but it is possible. I recommend to use xpra instead of VNC. An example for remote access with xpra is given in the wiki: SSH with xpra Server setup:
Replace the x11docker command in the brackets with your own command. The example uses an invisible software accelerated Xvfb X server. You probably want a visible X server with GPU acceleration. On the client run:
Please try out if you get a working setup with this example. Note that it helps to specify a display number with e.g. |
You are trying something completely different than I suggested. You are running xpra in container, but my example runs xpra on the host/the server. Please try first the example as given in the wiki without changing it. Once you got that working, we can carefully adjust the command to fit your needs. EDIT: github is somehow disordering the comments yet. |
can't seem to ssh into container tried:
but doesn't run - and can't use --net=host with namespaces enabled... any ideas? |
Please try first to get my example running. We need a working point to start from. |
ok - I tried this:
but just hangs after a few warnings and notes |
I am trying this:
build:
run:
|
ok - I used a lxde image to launch pcmanfm
which returns: Entering daemon mode;
but this returns:
|
if I launch pcfman normally no problems:
|
You are using different display number. Here it is
But in the error message it is
Please be precise in the report when describing the steps you did. The command you show does not match the output of the error message. If you connect through a firewall, e.g. through one in a router, you probably need to allow access, some sort of passthrough. Unfortunately I am not familar with this, and different firewalls or routers might have different configurations. To exclude firewall issues, try on a single local machine for now.
It is correct that you does not see pcmanfm immediately. It runs on an invisible Xvfb X server (option Try on one computer:
(I've added In a different terminal window on the same computer try:
(Variable |
I specified display 30 it returns 22:
|
also - in the first terminal I get the message:
|
it might be worth noting that if I run xpra in the terminal to launch its GUI I can get a xterm running but cannot connect to it on the same machine or remote. if I type in a terminal: "$ xpra --start -start=xterm" I do not get a xterm at all... anyway, I need to sleep now - its very late - thank you for your help - I will check again in the morning |
It's odd. Let's try this, now with display number 40.
In a second terminal window I execute:
This is what I get in the first terminal window:
This is what I get in the second terminal window:
(In the second terminal window I am prompted for the user password) Please run exactly the same commands and show me the full output like I did. |
ok - here is my output:
second terminal window:
|
ok - some small success host machine:
remote/local machine:
this worked for both the lxde/pcfman and my unity3D game compile(example above), but the graphics is very slow how to optimise to get a better frame rate? |
great! You have changed:
to:
Why? What is the content of variable
At this point it becomes a bit special. You have an NVIDIA GPU. With NVIDIA only options The x11docker command needs to be adjusted:
Instead of
On a second machine, try to attach to the X server:
|
ok - I got this to work - but with a few problems:
is there any way to make xorg run in a shell window? ie overcome some of these problems? also, I can only connect to the host machine inside the company firewall |
Great!
xpra normally shows the window content on the client only. But you can optionally show it on the server, too, at the cost of some performance. From
Try in the
Please add
:-D Should be fixed with the hints above.
With NVIDIA x11docker only can provide accelerated
Use
There is not much I can do. The firewall must allow some sort of access from the outside. You could ask your company admin. xpra allows a lot of configurations, be it ssh or tcp, and which ports and which encryption methods it uses and so on. A default |
excellent! |
Did you succeed meanwhile to access from outside? There is a success with
Replace |
I don't have permission to access my adhoc server from outside the firewall. I will have to wait until I migrate to an external server... |
Since I have a Unity3D level running nicely in docker using nVidia to accelerate the graphics, now I want to access it from a remote device using vnc viewer. How to add vnc to container and make run for remote viewing?
The text was updated successfully, but these errors were encountered: