michaelzenz / MICHAEL-ZENZ.github.io

0 stars 0 forks source link

linux GUI application on windows docker | Zenz #5

Open michaelzenz opened 5 years ago

michaelzenz commented 5 years ago

https://michael-zengzf.github.io/2019/02/13/linux-GUI-application-on-windows-docker/

greenlizard4 commented 5 years ago

I cannot edit the file C:\Program Files (x86)\Xming\X0.hosts

michaelzenz commented 5 years ago

@greenlizard4 I cannot edit the file C:\Program Files (x86)\Xming\X0.hosts

Actually, just copy it somewhere else, edit it there, and then copy it back

greenlizard4 commented 5 years ago

after running this line docker run -it --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu it pulled the ubuntu library then it stops with root@4c1d59cc3107:/#

michaelzenz commented 5 years ago

@greenlizard4 after running this line docker run -it --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu it pulled the ubuntu library then it stops with root@4c1d59cc3107:/#

that means you are already in the virtual machine

greenlizard4 commented 5 years ago

when i do the line gedit it says unable to init server:could not connect:connection refused (gedit:6904: Gtk-warning **: 02:45:12.952:cannot open display: 192.168.56.1:0.0