Preskočiť na obsah

Pomôžte vyvíjať KDE Linux

Tím KDE Linux vždy ocení pomoc pri vývoji KDE Linux na operačný systém budúcnosti!

CI obrazy

Skontrolujte zostavovací protokol pre váš pipeline. Mal by uvádzať, kde boli obrazy publikované.

Obrazy si môžete prezrieť aj odtiaľto.

Zlepšenie rýchlosti lokálnej zostavy

Pre zrýchlenie lokálnych zostáv vytvorte súbor mkosi.local.conf v koreňovom adresári úložiska s nasledujúcim obsahom:

[Content]
Environment=LOCALE_GEN="en_US.UTF-8 UTF-8" # nahraďte svojím locale`
Environment=MIRRORS_COUNTRY=us # nahraďte svojím kódom krajiny`
Environment=PARALLEL_DOWNLOADS=50 # ak je vaše internetové pripojenie rýchle

Musíte používať úložný ovládač Btrfs pre docker, inak to nebude poriadne fungovať.

Ak váš hostiteľský súborový systém používa Btrfs (ako KDE Linux), pridajte do /etc/docker/daemon.json nasledovné

{
  "storage-driver": "btrfs"
}

Oficiálnu dokumentáciu docker, ktorá to vysvetľuje, nájdete tu.

Ak nepoužívate Btrfs pre váš hostiteľský počítač, môžete stále vytvoriť Btrfs zväzok podporovaný súborom takto:

systemctl stop docker.socket docker.service || true
fallocate -l 64G /store/docker.btrfs
mkfs.btrfs /store/docker.btrfs
[ -d /var/lib/docker ] || mkdir /var/lib/docker
mount /store/docker.btrfs /var/lib/docker
systemctl restart docker.socket docker.service

Potom spustite:

./build_docker.sh --incremental

Building Custom System Images

You can generate custom KDE Linux images to test package integrations or system modifications locally. The build process uses mkosi wrapped in a Docker container.

To include custom packages, add the desired package names to the relevant configuration files (such as the [Packages] section in mkosi.conf or the specific .packages files) before running the build script.

Run the build with:

./build_docker.sh

Once the build finishes successfully, the output will be a .raw image file located in mkosi.output/.

Quick Testing with Virt-Manager

The fastest way to test your changes is to boot the .raw image directly as an existing disk in a Virtual Machine, bypassing the full installation process.

  1. Open Virtual Machine Manager and start the New Virtual Machine wizard.
  2. Select Import existing disk image and choose your generated .raw file.
  3. Allocate at least 4GB of RAM and 2 CPU cores.
  4. Important: In the VM configuration, ensure the Firmware is set to UEFI and Secure Boot is disabled.

For a more permanent setup or instructions on using other virtualization tools like VirtualBox or UTM, refer to the Installing in a Virtual Machine guide.


Článok napísal , a pod licenciou CC-BY-4.0.