Skip to content

Rebuild the debian createstructure locally

DavideC03 edited this page Nov 23, 2021 · 1 revision

:octocat: Rebuild the debian-createstructure locally :octocat:

Install the manager-create locally permits you to do some debug and try new configurations.

Steps:

1. Install VirtualBox on the PC

For installation we suggest VirtualBox, a tool that allows you to create one or more virtual machines 💻. If any of these crashes, in any case, your PC will not lose data, at most you will have to restart it 😄.

To install VirtualBox on your PC you need to:

  • Get in into the UEFI
  • Enable the function which name is like "Virtualization" (for each UEFI this step is different but similar)
  • Save the configuration and restart the PC
  • Go to the VirtualBox website
  • Press "Download"
  • Run the downloaded file
  • Follow the installation steps

2. Install Ubuntu

As the OS we suggest to use Ubuntu, because it is lightweight (for RAM and CPU) and it's free.

To install Ubuntu on VirtualBox you need to:

Now you can continue with the other steps during the download

  • Open VirtualBox
  • Press "New"
  • Compile the form
    • As name put "rest-createstructure"
    • As Type: "Linux"
    • As version: "Ubuntu (64-bit)" or "Ubuntu (32-bit)"
    • Press "Next >"
  • Set the RAM to use for the VirtualMachine, at most half of local RAM and press "Next >"
  • Leave "Create a virtual hard disk now" and press "Create"
  • Leave "VDI ..." and press "Next >"
  • Leave "Dynamically allocated" and press "Next >"
  • Change the hard disk memory, we suggest 16GB and press "Create"

Make sure that Ubuntu download is finished before to continue

  • On the VirtualBox console, selecting the created VM, press "Start"
  • Select as start-up disk Ubuntu, already downloaded
    • Press the folder icon
    • Press "Add", in the top menu
    • Select the Ubuntu iso, the file will have a structure like "ubuntu-version-other_info.iso"
    • Press "Choose" and "Start"
  • Follow the install steps (the installation needs some minutes)

3. Install dependencies

Now you have to install building dependencies. To install Dependes on the Virtual Machine you need to:

  • On the VM (Virtual Machine) open the terminal (Ctrl + Alt + T)
  • On the terminal paste sudo apt update; sudo add-apt-repository ppa:jyrki-pulliainen/dh-virtualenv -y; sudo apt-get install git build-essential debhelper devscripts equivs dh-virtualenv python3.8 gnupg gnupg2 libcurl4-openssl-dev libssl-dev -y; git clone https://github.com/createstructure/debian-createstructure; cd debian-createstructure; echo "3.0 (native)" > ./debian/source/format and insert password

4. Compile

To compile type: dpkg-buildpackage -us -uc Now the .deb file is in the .. folder, you can install it with apt.

Clone this wiki locally