accetto / ubuntu-vnc-xfce-g3

Headless Ubuntu/Xfce containers with VNC/noVNC (G3v6).
MIT License
213 stars 61 forks source link

XFCE config adjustments #61

Closed kulmann closed 4 days ago

kulmann commented 5 months ago

Is it possible to override certain XFCE settings e.g. via a config override file via bind mount? Examples of what I'd like to achieve:

Thank you!

accetto commented 5 months ago

Hello @kulmann ,

thank you for your feedback.

You can achieve that at least two ways:

  1. You can modify the Dockerfile and build your own images.
  2. You can override the configuration in running containers using volumes or bindings.

Actually, I'm doing some XFCE pre-configuration in the project already. Check the following part:

xfce-config

I usually create a container, configure what I need and then replicate the configuration modifcations.

Regards, accetto

kulmann commented 5 months ago

Hey @accetto thank you for taking the time to look into my question! Is there any documentation available for how to achieve the overrides (option 2)? Or to phrase it differently: do I need to mount the full config files into the container or could I also just override only the variables that I want to change?

accetto commented 5 months ago

It depends on that, what exactly do you need to configure. There is some support for overriding environment variables and VNC/noVNC parameters. Check the following pages in the User Guide - Overriding environment and Overriding VNC.

However, by configuring Xfce4 itself you will probably need to override also some whole files. In that case you can use all standard Docker techniques. Check the part about keeping data in the User guide and also the Docker documentation.