README : sous-section d'installation pour first-free-port

This commit is contained in:
Hippolyte Chauvin 2023-12-04 22:43:37 +01:00
parent 42c2e24bb6
commit 528b702a88

View file

@ -75,6 +75,15 @@ Use your preferred way to add the `qemush` script to a folder of `PATH`.
Recommended : copy the script in `/usr/local/bin` to make it effortlessly
system wide.
### Extra: add `first-free-port` in `PATH`
`first-free-port` is a small C program designed accordingly to the Unix
philosophy to show in `stdout` the first free (not listening) TCP port
after `argv[1]`, or `argv[1]` if it is free. You can compile it and add
it to your `PATH` if you need to allocate ports to protocols like SPICE in
your launching scripts (example in `qemu/bin/*-spice`). Its source is in
`src` folder of this repository.
## Usage
### Writing a launching script