How to mount a shared folder between Linux KVM Host and Guests

Posted on Tue 21 June 2022 in linux • Tagged with qemu, kvm, linux

Sharing folder between KVM virtual machines and host, may be useful. Here is a way found in fedora forum.


Change vm to your vm hostname.

sudo mkdir -p /mnt/shared
sudo chmod -R a+rwX /mnt/shared
sudo semanage fcontext -a -t svirt_home_t "/mnt/shared(/.*)?"
sudo restorecon …

Continue reading

Install Gephi on Linux

Posted on Sun 19 June 2022 in linux • Tagged with graph, visualization, linux

Gephi is a software package for graph visualization. Let's install it on Linux.

Install Gephi

su - # Switch to root
cd /opt/
wget -o
tar -xzf gephi-0.9.5-linux-x64.tar.gz
rm gephi-0.9.5-linux-x64.tar …

Continue reading

How to use virtual environments

Posted on Sun 19 June 2022 in code • Tagged with python, R, julia

To not interfere with your os configuration and keep your project reproducible, you should use a virtual environment as long as possible.

Virtual environment are a way to isolate your project from the rest of the system, and to avoid dependencies conflicts.

Python Virtualenv

Lets start by installing the virtualenv …

Continue reading

How to make automatic documentation using Doxygen, breathe and Sphinx

Posted on Wed 15 June 2022 in documentation • Tagged with C++, Doxygen, Sphinx

Doing documentation is required, to allow people to use your project. Here I present a rather easy solution.

Continue reading

How to render LaTeX formula in Pelican

Posted on Tue 14 June 2022 in math • Tagged with math, latex, pelican

Rendering $\LaTeX$ formulas in Pelican is easy.

Firstly import the pelican plugin in the proper python environment:

pip install pelican-render-math

Then type formula in your blog post markdown documents:


$$ \frac{1}{2} $$

And that's it !

Continue reading

Compute the inverse of a matrix

Posted on Tue 14 June 2022 in math • Tagged with math, python

I faced recently the issue of computing the inverse of a matrix, when I wrote the Algae library code. I finally found a solution, and here it is.

Continue reading

Draw a Plot in C with GNU plotutils

Posted on Sun 12 June 2022 in math • Tagged with c

Install plotutils


$ sudo apt-get install plotutils-dev


$ sudo dnf install plotutils-devel

Use PlotUtils to plot a graph

Let us draw the $sin(x)$ function using math library.

#include <stdio.h>
#include <math.h>

#define RANGE 100

// Export data to stdout
void plot(double *x, double *y, size_t len …

Continue reading

Analyse Sound on GNU/Linux using Wine

Posted on Thu 25 March 2021 in audio • Tagged with bat, bird, ultrasound, syrinx, batsound

After recording bats, orthoptera or birds, it is often necesserary to see the spectrograms of the sounds, for instance while analysing Vigie-Chiro Program bat records

The software needed to do so are often only for Windows, in the present article, we will learn how to install these softwares (i.e …

Continue reading