Use templates with CLDX

Hello people,

For a new project I have in a company for which I want to deploy CLDX
I need some information in order to replace aging versions of other

I need to deploy specific applications such as Firefox or OpenOffice
and Thunberbird ESR: I have no problems with adding or removing
application version CLDX base.

I also need to put a specific graphic environment as a new theme
window and new icons.

Where I have problems is that the Live version is functional with the
parameters I set in against the first launch of the application I’m
left with the standard desktop with themes CLDX “Calculate”

Similarly, I can not properly manage the removable panel at the bottom
of the screen by attaching the launcher I want.

I worked a lot of time in the directories :


Unfortunately I can not find the configuration files that the system
parameters on the first launch after the game Live and installation.

If you could give me a brief description of the setup files especially
so after the first start ?


XKomodor | Julien

Hi Julien,

User templates are located in the directory /var/calculate/templates or /var/calculate/remote/templates. The second path is used in the case of centralized storage configuration templates on the server.

As an example, you can use templates from the Calculate overlay, which are used to configure Calculate Linux.

In the Overlay existing directory templates, which can be found in the profile settings. The paths can be changed, as there is tight binding names of directories and files in templates.

Now all profile settings are in the directory:


Templates are performed constantly: when installing the system, installing or removing the package, setting up a user profile, etc. It is therefore important to establish similar checks in their templates.

Templates are both files and directories. Properties directory templates stored in the file “.calculate_directory”.

1. You can create a directory to configure a user profile:

mkdir /var/calculate/templates/Profile

Then create all the checks. To do this, look at the contents of the template directory:

cat /var/lib/layman/calculate/profiles/templates/3.1/.calculate_directory
 # Calculate append=skip cl_name==calculate-core&&cl_ver>=3.1.1

cat /var/lib/layman/calculate/profiles/templates/3.1/6_ac_desktop_profile/.calculate_directory
 # Calculate env=desktop path=~ name= chmod=0700 chown=#-main.ur_login-#:#-main.ur_group-# 

cat /var/lib/layman/calculate/profiles/templates/3.1/6_ac_desktop_profile/2-user/.calculate_directory
 # Calculate append=skip ur_login!=root&&ini(main.update)!=off

2. Create a file “.calculate_directory” with all the checks:

vi /var/calculate/templates/Profile/.calculate_directory
 # Calculate env=desktop path=~ name= chmod=0700 chown=#-main.ur_login-#:#-main.ur_group-# 

Half way passed. Any files in this directory will be copied to the user profile with the profile configuration.

You can create an empty file in the Profile/, then run:

cl-desktop --templates=local --verbose=on UserName

Where ‘UserName’ is user login.

Profile is set when you try to login into lxdm the first time, or when the user has no home directory, or it is empty. In this case, the directory will be created and configured. If CLD entered the domain CDS, the profile will be configured at each login session. Therefore, the template provides a mechanism for checking reconfigure the package and check the existence of the package.

Try to do this example. For sure there will be questions. Then we take a concrete example.