Creating your own Calculate Linux ISO

With Calculate Builder, you can create your custom ISO image based on any Calculate flavour, providing the software and the settings you need.

Go to the directory where the ISO you need is located and display available files:

# cd /var/calculate/linux
# ls
cld-15.17-x86_64.iso

Assembly preparation

# cl-builder-prepare --iso cld-15.17-x86_64.iso
Подготовить новую сборку                                                   
 * Исходный образ: Calculate Linux Desktop KDE 15.17 x86_64 20160519       
 * Профиль системы: distros:CLD/amd64                                      
 * Местонахождение сборки: /var/calculate/builder/distros_CLD_amd64        
 * Идентификатор сборки: distros:CLD/amd64                                 
 * Использовать слои для сборки: да                                        
 * Свободное место на диске: 12.5G                                         
Запустить процесс? (Yes/No): yes                                           
 * Распаковка образа системы ...                                     [ ok ]
 * Подключение ресурсов ...                                          [ ok ]
 * Настройка сборки ...                                              [ ok ]
 * Сборка подготовлена успешно

Update to the current state

# cl-builder-update -f

Set up your assembly

Chrooting

chroot is an operation for changing the root directory in Unix-like operating systems. A program running in chroot will only have access to the files contained in the chroot directory.

# chroot /run/calculate/mount/distros_CLD_amd64

Deleting applications

Imagine that you want to remove Firefox from your system:

# emerge -C firefox

Installing software without intervention

Now install the Qupzilla web browser:

# emerge -av qupzilla

...and InkScape, a free and open-source vector graphics editor:

# emerge -av inkscape

... WINE, free software that allows users of UNIX-like systems to run applications that were created for Microsoft Windows:

# emerge -av wine

..and Thunderbird to manage your emails:

# emerge -av thunderbird

Installing software with intervention

Installing some applications may require manual intervention from the user.

Install, for example, an Owncloud front-end for cloud storage, synchronization and data exchange.

# emerge -av net-misc/owncloud-client
...
The following keyword changes are necessary to proceed:
(see "package.accept_keywords" in the portage(5) man page for more details)
required by net-misc/owncloud-client (argument)
----
=net-misc/owncloud-client-2.2.4 ~amd64
----
Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
ying special attention to mask or keyword changes that may expose
experimental or unstable packages.

As you can see from the message about, you need to edit /etc/portage/package.keywords/custom.

Add the necessary string by typing the following in the command line:

# echo "=net-misc/owncloud-client-2.2.4 ~amd64" >> /etc/portage/package.keywords/custom

Warning: To add a parameter, be sure to type two >> symbols!

Now, if you restart, the installation process will go ahead without any further modification.

Quit the chroot environment.

# exit

Removal of redundant dependencies after installation

# cl-builder-update

Assembly

# cl-builder-image
Создать образ
 * Идентификатор сборки: distros:CLD/amd64
 * Система: Calculate Linux Desktop 15.17 KDE x86_64 20161001
 * Короткое название сборки: CLD
 * Дополнительное название: KDE
 * Тип системы: desktop
 * Версия сборки: 15.17
 * Build версия: 20161001
 * Путь до образа: /var/calculate/linux/cld-20161001-x86_64.iso
 * Включить проприетарные видео драйвера: нет
 * Сжатие: xz
 * ISO hybrid свойство: да
 * Сохранить дерево портежей: да
 * Выполнить prelink: нет
 * Свободное место для сборки ISO: 4G
 * Свободное место для ISO образа: 4G
 * Использовать только стабильные обновления: да
 * Метод обновления конфигурационных файлов: Использовать новые конфигурационные файлы
Запустить процесс? (Yes/No): y
 * Настройка сборки ...                                              [ ok ]
 * Удаление истории репозитория Distros ...                          [ ok ]
 * Удаление истории репозитория Calculate ...                        [ ok ]
 * Удаление истории репозитория Gentoo ...                           [ ok ]
Создание загрузочного образа
 * Отключение системных ресурсов от сборки ...                       [ ok ]
 * Настройка образа сжатой файловой системы ...                      [ ok ]
 * Запаковка образа сжатой файловой системы ...                      [ ok ]
 * Подготовка ISO данных ...                                         [ ok ]
 * Запаковка ISO образа ...                                          [ ok ]
 * Добавление isohybrid свойства к образу ...                        [ ok ]
 * Создание списка пакетов ...                                       [ ok ]
 * Восстановление системных ресурсов сборки ...                      [ ok ]
 * Создние образа выполнено успешно

Custom ISO target directory

The resulting system image will be stored in the /var/calculate/linux/.

The name of the ISO file will include the build date.

Break the assembly process

Warning: Do not exit if you intend to make changes to your build later.

# cl-builder-break

Access to a previously created build

Warning: After rebooting, you cannot access the build you created earlier. You need to reconnect manually.

To do this, go to the image directory and run the following command:

# cl-builder-restore

Own profile in an ISO

If you want to have your settings when booting from an image over PXE, you can configure the system you are working in in the same way and copy the /home/guest directory into the prepared build at /var/calculate/builder/distros-CLD-amd64 before actually completing the build.

Warning: These settings will not be used when installing the system. To apply your settings to the system you install from a custom image, you need to edit the templates.

Here are some videos to learn more (RU):

Как заменить браузер в ISO-образе дистрибутива Calculate Linux Desktop

Экспиремент сборка по Wiki Тема Очеловечивание OpenBox