Use templates with CLDX

Added by Julien DAL over 4 years ago

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
distributions.

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 :

/var/lib/layman/calculate/profiles/templates/3.1/
1_ac_install_disk
2_ac_install_merge
3_ac_install_live
4_ac_desktop_merge
5_ac_client_domain
5_ac_client_undomain
6_ac_assemble_prepare
6_ac_assemble_setup
6_ac_builder_iso
6_ac_builder_squash
6_ac_desktop_profile
6_ac_install_configure
6_ac_install_flash
6_ac_install_patch
6_ac_install_pxe
6_ac_install_unmerge
6_ac_update_sync
======================================================================

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 ?

Thanks

XKomodor | Julien


Replies (1)

RE: Use templates with CLDX - Added by Alexander Tratsevskiy over 4 years ago

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:

/var/lib/layman/calculate/profiles/templates/3.1/6_ac_desktop_profile/2-user/

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-# \
ac_desktop_profile==on

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-# \
ac_desktop_profile==on&&ur_login!=root

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.

(1-1/1)

Thank you!