User Launch Script - TuxML/ProjetIrma GitHub Wiki

USER LAUNCH SCRIPT

To run the tutorial's script, do the following step

We need 2 script that you can found on the GitHub (crash-test branch)

  • scriptBootKernel.sh
  • init

You need to clear all the docker container, to do that run : "docker container ps"

docker_container_ls

This command will show you all the docker container which is running on your computer, to stop them: "docker stop CONTAINER_ID"

docker_stop

We are going to need 2 terminal :

  • One on your machine in the repository where you have scriptBootKernel.sh and init (A)
  • And one on the docker container (B), to start the docker container, do: "docker run -it tuxml/tuxml:dev"

Now we are in the docker container, but as you can see, there aren't scriptBootKernel.sh and init, it's totally normal, we didn't put them in the container, so we need to add them manually, do with (A) "docker cp scriptBootKernel.sh CONTAINER_ID:/" "docker cp init CONTAINER_ID:/"

You can find the CONTAINER_ID with "docker container ps", it's the first column

Normally, if on (B) you run "ls" you must see scriptBootKernel.sh and init

docker_ls

You also need to authorize the execution of scriptBootKernel.sh, so run "chmod u+x scriptBootKernel.sh"

Now you can start the script with: "./scriptBootKernel.sh"

Twice, you will need to write "Y" in the terminal to download the libraries. Let the script continue !

At one moment, a window will open, you need to configurate busybox

busybox

Press Enter

busybox

Use arrow and go into Build Options

busyboxbuild

Press 'y' to activate the option "Build Busybox as a static binary (no shared libs) Now you need to have

busyboxopt

Exit three time and save your new configuration

Let the script continue, you don't have to do anything, the script is going to do the rest.

⚠️ **GitHub.com Fallback** ⚠️