Arduino Camera Trap
Some years ago, I had the opportunity to create a camera trap based on an Arduino board. The goal of this project was to capture photos of wild animals, and to have fun with electronics and programming.
At the time, I created a website in html, to present the project; but I can’t find the source code anymore… That’s a shame.
I will try to present this old project again, hoping that it may interest someone.
…How to mount a shared folder between Linux KVM Host and Guests
Sharing folder between KVM virtual machines and host, may be useful. Here is a way found in fedora forum.
Quickstart
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 -R /mnt/shared
tee fs.xml << EOF > /dev/null
<filesystem type='mount' accessmode='mapped'>
<source dir='/mnt/shared'/>
<target dir='shared'/>
</filesystem>
EOF
virsh shutdown vm
virsh attach-device vm fs.xml --config
virsh start vm
ssh vm
sudo mkdir -p /mnt/shared
sudo tee -a /etc/fstab << EOF > /dev/null
shared /mnt/shared 9p trans=virtio 0 0
EOF
sudo mount -a
References
…How to use virtual environments
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 package.
sudo apt install python3-venv
And now you can create venvs for your project:
python3 -m venv .venv/myproject
It is a good practice not to create a virtualenv with name “venv”, but to use a name that reflects the project you are working on, in order to see directly in which venv you are working.
…How to make automatic documentation using Doxygen, breathe and Sphinx
Analyze Ultrasound on GNU/Linux using Wine
After recording bats, orthoptera or birds sounds, it is often necessary to have a look at the spectrograms of the sounds, for instance while analyzing Vigie-Chiro Program bat records.
The software needed to do so are often developed only for Windows. In this article, we will learn how to install these softwares (e.g., Kaleidoscope, Syrinx, Batsound 4, 7-zip and Lupas-Rename).
Install Wine
Wine is a software that enable .exe software to run on UNIX systems such as Linux or Mac OS.
…