Comments (6)
Hello @samlnx03,
thank you for you feedback. Unfortunatelly, I'm not able to reproduce the issue.
Can you please closer describe your environment and the use case?
Are you on Windows or Linux? Are you on the cloud?
How do you start your container? Can you provide the statement?
How do you stop and start the container? Do you use docker start
or docker restart
? Does it help if you do it the other way?
Have you overriden the container user? Have you bound any external volumes?
Does it help, if you rename the folder /home/headless/.config/xfce4
to /home/headless/.config/xfce4_old
and then restart the container?
Remark: You can rename it inside the running container, but you have to use sudo
.
For the comparison, this is what I get if I create the container like this:
docker run -d -P --name testing --hostname testing accetto/ubuntu-vnc-xfce-g3
and this is after stopping and starting the conatiner again:
Regards,
accetto
from ubuntu-vnc-xfce-g3.
I've just published Release 23.03 with TigerVNC 1.13.1
bugfix release.
Please let me know if it has solved your issue.
from ubuntu-vnc-xfce-g3.
Hello @samlnx03,
while working on other issues, I was able to get sometimes similar behaviour you've described.
However, it happens only if I bind the complete directory /home/headless
to an external folder on the host.
Have you also bound the complete /home/headless
directory?
I've prepared two images that fix it on my environment.
Could you test them please and let me know, if they've helped?
Regards,
accetto
from ubuntu-vnc-xfce-g3.
Hello accetto
Yes, i use a local directory used as directory /home/headless/
That way I can check each student work out of the container
I'll test you image as soon as possible
Thanks a lot
from ubuntu-vnc-xfce-g3.
Oh, now it's all clear. According my testing, binding the complete $HOME
directory to an external folder on the host causes exactly this kind of problems. There is the discussion thread #39 about it.
The reason for the behaviour is, that the container needs to initialize the $HOME
content on its first start and that doesn't work correctly, if the complete $HOME
is bound.
You can quickly recognize that the container has not initialized correctly if you don't see the Version Sticker
icon on your desktop. Please refer to the screenshots in the discussion #39.
You have generally two possibilities.
I would recommend, that you create a separate parent directory for the workspaces of your students. You can bind that folder without problems. It can be a subfolder of the $HOME
directory.
You can also initialize the container first in some controlled environment. It can be the container itself, without any bindings, or using a named Docker volume for the $HOME
directory. After that you can copy the initialized $HOME
content to some external directory and later bind to it. This is the approach I've tried to describe in the discussion thread #39.
There is one more thing.
During my testing I've found, that if bind the whole $HOME
directory, then the container was only seemingly correctly initialized. (By closer look there was no Version Sticker
icon on the desktop.). However, after I've restarted the container, there was a black screen or only a partially initialized desktop.
I've found, that it happens because the image accetto/ubuntu-vnc-xfce-g3 doesn't include the package libgl1
. However, I don't want to include it yet, because it increases the size of the image by almost 40% and I already have the image accetto/ubuntu-vnc-xfce-opengl-g3, which includes it.
So, if you decide to bind the whole $HOME
diectory and you'll get the black screen or the problems you've described in the beginning, then you have to install that package or use the image accetto/ubuntu-vnc-xfce-opengl-g3.
from ubuntu-vnc-xfce-g3.
I'm removing the bug
label and closing the issue, because the behaviour has been caused by using bind mounts for the complete $HOME
directory, which is not a supported use case. It can work under some conditions on some environments, but you have to be sure, that your are able to configure it correctly. The only working scenario across the environments is using Docker volumes. There is already the discussion thread #39 about this use case.
from ubuntu-vnc-xfce-g3.
Related Issues (20)
- Limiting VNC to localhost HOT 2
- Unsure about the expected sequence at startup HOT 3
- PulseAudio and noVNC HOT 4
- VNC Recording HOT 1
- Blank screen HOT 18
- Can't seem to run `builder.sh` script following documentation in README HOT 10
- approach to binding a directory (from host machine) to containers `$HOME` directory HOT 5
- How/where do I add docker build args? HOT 9
- is it possiable to adding locales HOT 2
- Feature request: arm containers HOT 5
- Overriding HEADLESS_USER_NAME doesn't seem to work HOT 2
- Container exiting when extending image with packages which modify /etc/group HOT 3
- How to Change Language to other(exp. japanese) HOT 1
- [SOLVED] unusable - multiple bugs and issues HOT 2
- [way around] no screen/black screen after login - no logs (docker image on qnap NAS - container station) HOT 8
- Redirect to novnc full client HOT 4
- XFCE config adjustments HOT 3
- Is it possiable to hide cursor in tigerVNC or change tigerVNC to X11VNC HOT 1
- Fail to boot with Flatpak installed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubuntu-vnc-xfce-g3.