Calculate Linux: Forums- Templateshttp://old.calculate-linux.org/welcome2013-02-28T19:12:23+04:00Calculate Projects/themes/calculate/images/feed_logo.png
Redmine Templates: RE: Use templates with CLDXhttp://old.calculate-linux.org/boards/48/topics/20922?r=20932#message-209322013-02-28T19:12:23+04:00Alexander Tratsevskiy
<p>Hi Julien,</p>
<p>User templates are located in the directory <code>/var/calculate/templates</code> or <code>/var/calculate/remote/templates</code>. The second path is used in the case of centralized storage configuration templates on the server.</p>
<p>As an example, you can use templates from the Calculate overlay, which are used to configure Calculate Linux.</p>
<p>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.</p>
<p>Now all profile settings are in the directory:<br /><pre>
/var/lib/layman/calculate/profiles/templates/3.1/6_ac_desktop_profile/2-user/
</pre></p>
<p>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.</p>
<p>Templates are both files and directories. Properties directory templates stored in the file ".calculate_directory".</p>
<p>1. You can create a directory to configure a user profile:<br /><pre>
mkdir /var/calculate/templates/Profile
</pre></p>
<p>Then create all the checks. To do this, look at the contents of the template directory:<br /><pre>
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
</pre></p>
<p>2. Create a file ".calculate_directory" with all the checks:<br /><pre>
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
</pre></p>
<p>Half way passed. Any files in this directory will be copied to the user profile with the profile configuration.</p>
<p>You can create an empty file in the Profile/, then run:<br /><pre>
cl-desktop --templates=local --verbose=on UserName
</pre></p>
<p>Where 'UserName' is user login.</p>
<p>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.</p>
<p>Try to do this example. For sure there will be questions. Then we take a concrete example.</p> Templates: Use templates with CLDXhttp://old.calculate-linux.org/boards/48/topics/209222013-02-27T22:57:24+04:00Julien DAL
<p>Hello people,</p>
<p>For a new project I have in a company for which I want to deploy CLDX<br />I need some information in order to replace aging versions of other<br />distributions.</p>
<p>I need to deploy specific applications such as Firefox or OpenOffice<br />and Thunberbird ESR: I have no problems with adding or removing<br />application version CLDX base.</p>
<p>I also need to put a specific graphic environment as a new theme<br />window and new icons.</p>
<p>Where I have problems is that the Live version is functional with the<br />parameters I set in against the first launch of the application I'm<br />left with the standard desktop with themes CLDX "Calculate"</p>
<p>Similarly, I can not properly manage the removable panel at the bottom<br />of the screen by attaching the launcher I want.</p>
<p><ins>======================================================================</ins><br />I worked a lot of time in the directories :</p>
<p>/var/lib/layman/calculate/profiles/templates/3.1/<br />1_ac_install_disk<br />2_ac_install_merge<br />3_ac_install_live<br />4_ac_desktop_merge<br />5_ac_client_domain<br />5_ac_client_undomain<br />6_ac_assemble_prepare<br />6_ac_assemble_setup<br />6_ac_builder_iso<br />6_ac_builder_squash<br />6_ac_desktop_profile<br />6_ac_install_configure<br />6_ac_install_flash<br />6_ac_install_patch<br />6_ac_install_pxe<br />6_ac_install_unmerge<br />6_ac_update_sync<br /><ins>======================================================================</ins></p>
<p>Unfortunately I can not find the configuration files that the system<br />parameters on the first launch after the game Live and installation.</p>
<p>If you could give me a brief description of the setup files especially<br />so after the first start ?</p>
<p>Thanks</p>
<p>XKomodor | Julien</p>