Skip to content
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

VNC page coming without CSS #85

Open
DineshGuptaa opened this issue Oct 10, 2018 · 11 comments
Open

VNC page coming without CSS #85

DineshGuptaa opened this issue Oct 10, 2018 · 11 comments

Comments

@DineshGuptaa
Copy link

Hi All,

I have installed the system on Ubuntu 18.04 and create docker build and that I ran make run, but page is coming without CSS. I am unable to see the proper desktop.

image

Thanks,

@fcwu
Copy link
Owner

fcwu commented Oct 10, 2018 via email

@DineshGuptaa
Copy link
Author

DineshGuptaa commented Oct 10, 2018

Hi Fcwu,
Thanks for quick reply.

My Ubuntu 18.04 server on VMware. That's why I am using IP. I am using ldxe-vnc as image tag. When starting Image using run command then bash is not coming instead of log coming. I how may I debug.
Below output I am getting when running the docker images

dinesh@ubuntu3:~$ docker run -p 6080:80 -p 5900:5900 dorowu/ubuntu-desktop-lxde-vnc
ln: failed to create symbolic link '/usr/local/lib/web/frontend/static/novnc/utils/websockify': No such file or directory
chmod: cannot access '/usr/local/lib/web/frontend/static/websockify/run': No such file or directory
2018-10-11 06:14:18,439 CRIT Supervisor running as root (no user in config file)
2018-10-11 06:14:18,441 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2018-10-11 06:14:18,495 INFO RPC interface 'supervisor' initialized
2018-10-11 06:14:18,495 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2018-10-11 06:14:18,496 INFO supervisord started with pid 14
2018-10-11 06:14:19,503 INFO spawned: 'nginx' with pid 17
2018-10-11 06:14:19,540 INFO spawned: 'web' with pid 18
2018-10-11 06:14:19,557 INFO spawned: 'novnc' with pid 19
2018-10-11 06:14:19,603 INFO spawned: 'wm' with pid 20
2018-10-11 06:14:19,609 INFO spawned: 'pcmanfm' with pid 21
2018-10-11 06:14:19,626 INFO spawned: 'lxpanel' with pid 22
2018-10-11 06:14:19,637 INFO spawned: 'xvfb' with pid 23
2018-10-11 06:14:19,659 INFO spawned: 'x11vnc' with pid 24
2018-10-11 06:14:19,664 INFO exited: novnc (exit status 127; not expected)
2018-10-11 06:14:21,199 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-11 06:14:21,201 INFO success: web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-11 06:14:21,216 INFO spawned: 'novnc' with pid 25
2018-10-11 06:14:21,237 INFO success: wm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-11 06:14:21,241 INFO success: pcmanfm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-11 06:14:21,242 INFO success: lxpanel entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-11 06:14:21,243 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-11 06:14:21,243 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-10-11 06:14:21,263 INFO exited: novnc (exit status 127; not expected)
2018-10-11 06:14:22,984 INFO  Listening on http://localhost:6079 (run.py:87)
2018-10-11 06:14:23,899 INFO spawned: 'novnc' with pid 31
2018-10-11 06:14:23,920 INFO exited: novnc (exit status 127; not expected)
2018-10-11 06:14:27,546 INFO spawned: 'novnc' with pid 47
2018-10-11 06:14:27,564 INFO exited: novnc (exit status 127; not expected)
2018-10-11 06:14:28,568 INFO gave up: novnc entered FATAL state, too many start retries too quickly
127.0.0.1 - - [2018-10-11 06:14:44] "GET /api/health HTTP/1.1" 503 260 0.311097 

Thanks

@fcwu
Copy link
Owner

fcwu commented Oct 12, 2018

Do you build by yourself? If not,
do docker pull dorowu/ubuntu-desktop-lxde-vnc again

here is my docker image ID

docker images|grep dorowu/ubuntu-desktop-lxde-vnc   
dorowu/ubuntu-desktop-lxde-vnc                       latest                7f8aba5a9711        3 weeks ago         1.19GB

@DineshGuptaa
Copy link
Author

Hi fcwu,

I pulled the the image and run, it working fine. Then what is the wrong with building image. Please guide me. I provided logs previously.

second thing docker is not running in background. So that after executing startup script it not leaving command prompt for us.

Please guide me .

Thanks,

@fcwu
Copy link
Owner

fcwu commented Oct 14, 2018

first question: git clone --recursive .... You have to clone submodule too.

Update this line, https://github.com/fcwu/docker-ubuntu-vnc-desktop/blob/master/image/etc/supervisor/conf.d/supervisord.conf#L30
to
command=/usr/bin/openbox --startup /etc/xdg/openbox/autostart

You may append firefox & to /etc/xdg/openbox/autostart

@fcwu
Copy link
Owner

fcwu commented Feb 24, 2019

Support OPENBOX_ARGS for appending "--startup /etc/..." without modifying image

@Menziess
Copy link

Menziess commented Jul 5, 2020

I've found that when running the container using the new OPENBOX_ARGS environment variable, the supervisord.conf file is modified each time the container restarts, thus resulting in accumulating lines, such as:

[program:wm]
priority=15
command=/usr/bin/openbox --startup firefox --startup firefox --startup firefox command=/usr/bin/openbox --startup firefox --startup firefox --startup firefox command=/usr/bin/openbox --startup firefox --startup firefox --startup firefox command=/usr/bin/openbox --startup firefox --startup firefox
environment=DISPLAY=":1",HOME="/root",USER="root"

.. after restarting the container 4 times.

In addition, I have not had any luck on actually running firefox on container startup.

@fcwu fcwu reopened this Jul 6, 2020
@SystemDiagnosticss
Copy link

SystemDiagnosticss commented Jul 16, 2020

Hello @fcwu. Can I add bash script to /etc/xdg/openbox/autostart or some command? Need to run some GUI app with command roslaunch package some.launch. Need to run it automatically when user connects to 127.0.0.1:6080. Thanks

@fcwu
Copy link
Owner

fcwu commented Jul 23, 2020

@Menziess fixed in latest version

@Menziess
Copy link

Menziess commented Sep 10, 2020

Just responding for whoever else wants to open a particular webpage on startup:

docker run -d --rm --name gui \
  -e OPENBOX_ARGS='--startup "/usr/bin/firefox http://menziess.github.io"' \
  -p 6080:80 -p 5900:5900 \
  dorowu/ubuntu-desktop-lxde-vnc:bionic

And potentially for my own reference at some point. Thanks @fcwu

@bushev
Copy link

bushev commented Nov 1, 2022

Hey @fcwu,

As I understand that feature correctly, it starts a command when the user logins with a web VNC client. Is that possible to start the GUI app when a container starts?

Use case: I need to automate a UI app, and I don't have any users to interact with a web GUI.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants