cloonix icon indicating copy to clipboard operation
cloonix copied to clipboard

Instruction for building from source

Open bastien-roucaries opened this issue 1 year ago • 5 comments

Hi,

I want to package this under debian if you want

Can you give me instruction for building from source

Bastien

bastien-roucaries avatar Mar 26 '24 08:03 bastien-roucaries

First you have to go to cloonix_xx/quickstart/kvm_create/ and call the bookworm script to create bookworm.qcow2 (or download it). This creates the "/var/lib/cloonix/bulk/bookworm.qcow2".

Then you have to go to cloonix_xx/build_tools/vmbuild/ put a goot REPO in vmbuild_create and call vmbuild_create to get the debian machine in which the compile is done. The vmbuild_create copies the bookworm.qcow2 and does some apt-gets to create the "/var/lib/cloonix/bulk/debian_builder.qcow2".

Then your main cloonix tree repo must be called sources: "mv cloonix_xx/ sources".

Then go to sources/build_tools/vmbuild/ and call ./doitall.

The doitall tars the sources directory, transfers it into the debian_builder and builds the bundle in the debian_builder. Then you finally get the bundle in sources/build_tools/.

I would be very happy if you can create a debian package:) Thanks for that and if you need changes I am at your service:)

clownix avatar Mar 28 '24 03:03 clownix

Hi

For debian packaging the cloonix_xx/quickstart/kvm_create/ will not be needed we are on bare metal...

So it is a list of depends we need

bastien-roucaries avatar May 03 '24 22:05 bastien-roucaries

Inside the script that constructs the vm used for the building there is the apt-get that pulls all necessary packages to build. see in cloonix_xx/ build_tools/vmbuild/vmbuild_create for the packages. But cloonix is not a simple thing to packages, wireshark is pre-built so as to avoid problems. Also, there are sources compiled that come from git and stored inside the targz_store... Not a simple task to create a package!

clownix avatar May 04 '24 18:05 clownix

Can we get piece per piece the stuff ?

I will like to package some easy stuff first, thus we could do the work.

Why do you need prebuilt wireshark ?

bastien-roucaries avatar May 04 '24 19:05 bastien-roucaries

I wanted a wireshark ready within cloonix and it is long to compile, so I do it once separately and it stays in targz_store. To get a usable package with cloonix, there is work to do. For example I would have to call the official wireshark, but as I have put patches in this software, it is not so simple. See in targz_store/shark_qt/wireshark.patch for the patch. And also I compile ovs and qemu-kvm and spice, this should be avoided for a packaged cloonix... I think that next year would be the right time for this work, I will try to work towards this goal little by little...

clownix avatar May 05 '24 09:05 clownix

@clownix I could help here if needed.

bastien-roucaries avatar Jun 02 '24 19:06 bastien-roucaries

For the moment the effort is on the standalone product, perhaps next year the integration into a distribution will be started...

clownix avatar Jun 02 '24 19:06 clownix

@clownix may be your patch are interesting for debian... So just documenting I can maybe merge

bastien-roucaries avatar Jun 02 '24 19:06 bastien-roucaries