Initial Commit

main
Samuel ORTION 2 years ago
commit c11e6c8ffd

@ -0,0 +1,72 @@
PY?=python3
PELICAN?=pelican
PELICANOPTS=
BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/output
CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py
DEBUG ?= 0
ifeq ($(DEBUG), 1)
PELICANOPTS += -D
endif
RELATIVE ?= 0
ifeq ($(RELATIVE), 1)
PELICANOPTS += --relative-urls
endif
SERVER ?= "0.0.0.0"
PORT ?= 0
ifneq ($(PORT), 0)
PELICANOPTS += -p $(PORT)
endif
help:
@echo 'Makefile for a pelican Web site '
@echo ' '
@echo 'Usage: '
@echo ' make html (re)generate the web site '
@echo ' make clean remove the generated files '
@echo ' make regenerate regenerate files upon modification '
@echo ' make publish generate using production settings '
@echo ' make serve [PORT=8000] serve site at http://localhost:8000'
@echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 '
@echo ' make devserver [PORT=8000] serve and regenerate together '
@echo ' make devserver-global regenerate and serve on 0.0.0.0 '
@echo ' '
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
@echo 'Set the RELATIVE variable to 1 to enable relative urls '
@echo ' '
html:
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)
clean:
[ ! -d "$(OUTPUTDIR)" ] || rm -rf "$(OUTPUTDIR)"
regenerate:
"$(PELICAN)" -r "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)
serve:
"$(PELICAN)" -l "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)
serve-global:
"$(PELICAN)" -l "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS) -b $(SERVER)
devserver:
"$(PELICAN)" -lr "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)
devserver-global:
$(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -b 0.0.0.0
publish:
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS)
.PHONY: html help clean regenerate serve serve-global devserver publish

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

@ -0,0 +1,21 @@
Title: Install Nvidia drivers on fedora 34
Author: Samuel ORTION
Date: 2021-03-26 18:25
Modified: 2021-03-26 18:25
Tags: Nvidia, drivers, gpu, fedora
Category: sysadmin
## Update package manager and reboot
```bash
dnf update
reboot
```
## Enable Nvidia driver repository
```bash
sudo dnf config-manager --set-enabled rpmfusion-nonfree-nvidia-driver
```
## Sources
* [fedora magazine](https://fedoramagazine.org/install-nvidia-gpu/)

@ -0,0 +1,98 @@
Title: Build your Own IDE; Install Theia on Fedora
Author: Samuel ORTION
Date: 2021-03-26 19:00
Category: sysadmin
Tags: IDE, vscode, yarn, nodejs
## Install dependencies
```bash
sudo dnf install gcc-g++
source ~/.bashrc
sudo nvm install v12.16.2 -g
```
### Install nodejs and yarn
```bash
https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
```
## Create a new directory
```bash
mkdir theia
cd theia
```
## Create `package.json`
```bash
vim package.json
```
```textile
{
"private": true,
"dependencies": {
"@theia/callhierarchy": "next",
"@theia/file-search": "next",
"@theia/git": "next",
"@theia/markers": "next",
"@theia/messages": "next",
"@theia/mini-browser": "next",
"@theia/navigator": "next",
"@theia/outline-view": "next",
"@theia/plugin-ext-vscode": "next",
"@theia/preferences": "next",
"@theia/preview": "next",
"@theia/search-in-workspace": "next",
"@theia/terminal": "next"
},
"devDependencies": {
"@theia/cli": "next"
},
"scripts": {
"prepare": "yarn run clean && yarn build && yarn run download:plugins",
"clean": "theia clean",
"build": "theia build --mode development",
"start": "theia start --plugins=local-dir:plugins",
"download:plugins": "theia download:plugins"
},
"theiaPluginsDir": "plugins",
"theiaPlugins": {
"vscode-builtin-css": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/css-1.39.1-prel.vsix",
"vscode-builtin-html": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/html-1.39.1-prel.vsix",
"vscode-builtin-javascript": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/javascript-1.39.1-prel.vsix",
"vscode-builtin-json": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/json-1.39.1-prel.vsix",
"vscode-builtin-markdown": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/markdown-1.39.1-prel.vsix",
"vscode-builtin-npm": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/npm-1.39.1-prel.vsix",
"vscode-builtin-scss": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/scss-1.39.1-prel.vsix",
"vscode-builtin-typescript": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/typescript-1.39.1-prel.vsix",
"vscode-builtin-typescript-language-features": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/typescript-language-features-1.39.1-prel.vsix"
}
}
```
## Building
```bash
yarn
```
```bash
yarn theia build
```
## Start theia
```bash
yarn start --hostname 0.0.0.0 --port 8080
```
## Create a app launcher
Create `/home/<USER>/.local/share/applications/theia.desktop`:
```textile
[Desktop Entry]
Version=1.0
Name=Theia IDE
Comment=Code editor
Type=Application
Exec=bash -c 'cd /opt/theia && yarn start --hostname 0.0.0.0 --port 8080 && firefox localhost:8080'
Icon=/opt/theia/img/icon.png
``

@ -0,0 +1,31 @@
Title: Building a NocMig Recorder
Date: 2021-03-25 14:00
Modified: 2021-03-25 14:00
Category: audio
Tags: audio, wildlife, nocmig, bird
Slug: nocmig-recorder
Authors: Samuel ORTION
Summary: How to build a complete NocMig record setup
Furnitures
----------
* Olympus LS-P1 - 105 €
* Olympus WJ-2 Wind Screen - 36 €
* 64 GB SD Card - 11 €
* Micbooster Primo EM272 Capsule (x2) - 28 €
* Jack cable - 3.85 €
* Audubon baffle bird feeder (aka parabole) - 15.37 €
This project costs me a total of 164.12 €.
Assembly
--------
Ressources
----------
* [Christian KERIHUEL NogMig parabole setup and records](http://christian.kerihuel.free.fr/print20/parab/parab.htm)
* [soundbirding.org](http://soundbirding.org)
* [nocmig.com](https://nocmig.com)
* [oldbird tutorial to build your own microphone](http://www.oldbird.org/mike_home.htm)

@ -0,0 +1,14 @@
Title: About
Date: 2021-03-24 15:40
Modified: 2021-03-25 14:00
Category: me
Tags: about, me, blog
Slug: about
Authors: Samuel ORTION
Summary: About me.
I am Samuel ORTION, a juvenile *Geekus biologicus*.
I enjoy computer science, machine learning, bird watching, photography, etc.
I am currently a student at Université d'Évry val d'Essonne in *licence double Sciences de la Vie - Informatique*.

@ -0,0 +1,9 @@
Title: Contact
Date: 2021-03-25 14:00
Modified: 2021-03-25 14:00
Category: blog
Tags: contact
Slug: contact
Authors: Samuel ORTION
Summary: Contact

@ -0,0 +1,112 @@
Title: Créer un site .onion sur le Dark Net avec Tor
Date: 2021-03-24 14:15
Category: sysadmin
## Prérequis
Pour créer un site sur le darknet en .onion, il vous faut un serveur avec accès en ssh. Je prendrais l'exemple d'une machine tournant sur debian buster.
## Installation de Tor
### Ajout du dépôt
```bash
vim /etc/apt/sources.list.d/tor.list
deb https://deb.torproject.org/torproject.org buster main
deb-src https://deb.torproject.org/torproject.org buster main
```
### Import des clés
```bash
wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add
```
### Mise à jour des dépôts
```bash
apt update
```
### Installation
```bash
apt install tor
```
## Configuration de Tor
### Ouverture des ports
```bash
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 666/tcp
ufw allow 9050/tcp
ufw enable
```
### Edition de `torrc`
```bash
vim /etc/tor/torrc
```
```textile
HiddenServiceDir /var/lib/tor/soupe-a-l.onion
HiddenServicePort 80 unix:/var/run/tor-soupe-a-l.onion.sock
```
Changez `soupe-a-l.onion` par le nom de votre dossier racine.
### Démarrer Tor
```bash
systemctl enable --now tor
```
## Configuration de Nginx
### Installation
```bash
apt install nginx php-fpm
```
```bash
vim /etc/nginx/nginx.conf
```
Dans `http {`
```textile
server_names_hash_bucket_size 125;
server_tokens off;
```
`}`
### Editer le serveur virtuel nginx
```bash
vim /etc/nginx/sites-available/soupe-a-l.onion
```
### Copier l'addresse .onion
```bash
cat /var/lib/tor/soupe-a-l.onion/hostname
```
```textile
bctk5kfctuc33vueakomhe5ohdu2lkvglmnnbtjrc6hyfjkg47oaduid.onion
```
```textile
server {
listen unix:/var/run/tor-soupe-a-l.onion.sock;
root /var/lib/tor/soupe-a-l.onion bctk5kfctuc33vueakomhe5ohdu2lkvglmnnbtjrc6hyfjkg47oaduid.onion;
server_name soupe-a-l.onion;
allow all;
index index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
}
```
## Ajouter des fichiers à la racine de soupe-a-l.onion
### Changer le propriétaire de cette racine
```bash
chown -R root:www-data /var/lib/tor/soupe-a-l.onion/
```
## Lancer Tor
```
tor --runasdaemon 0 2>&1
```
## Accéder au site via Tor Browser
Voilà tout !
## Sources
* [Tor Documentation to set up a onion service](https://community.torproject.org/onion-services/setup/)

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

@ -0,0 +1,156 @@
Title: Analyse Sound on GNU/Linux using Wine
Author: Samuel ORTION
Date: 2021-03-25 10:40
Category: audio
Tags: 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](http://www.vigienature.fr/fr/chauves-souris) 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. Kaleidoscope, Syrinx, Batsound 4, 7-zip, Lupas-Rename).
Install Wine
------------
Wine is a software that enable .exe software to run on UNIX systems such as Linux or Mac OS.
### On Debian and derivatives (Ubuntu...)
Enable 32 bit packages (if you haven't already):
```bash
sudo dpkg --add-architecture i386
```
Download and install the repository key:
```bash
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
```
Add the repository to /etc/apt/sources.list or create a wine.list under /etc/apt/sources.list.d/ with the following content:
```textile
deb https://dl.winehq.org/wine-builds/debian/ buster main
```
Update packages
```bash
sudo apt update
```
Install Wine stable
```bash
sudo apt install --install-recommends winehq-stable
```
### On Fedora, RHEL, and derivatives
Add repository :
```bash
dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo
```
Install stable package :
```bash
dnf install winehq-stable
```
Install Kaleidoscope
--------------------
Kaleidoscope is available on both fedora and debian based distros at [wildlife acoustics](https://www.wildlifeacoustics.com/).
Install Syrinx
--------------
As all following softwares, Syrinx is not available for GNU/Linux, we need Wine to execute the `.exe`.
Syrinx-PC is available at [Google Drive](https://drive.google.com/file/d/0B5ZM90wrDzUOM0ZfYlpDR2l1cU0/view).
You will also need the config files available at [Google Drive](https://drive.google.com/file/d/0B5ZM90wrDzUOQnBhRjNVRFM1Rkk/view).
You have almost two options :
You can either right click on the `.exe` installer and select `Open with other application` and `Wine Windows Program Loader`, or either run `wine syrinxalphainst.exe` in Terminal.
### Set up app launcher
You have to create a new file `.local/share/applications/syrinx.desktop`:
```textile
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Syrinx
Comment=Acoustic analysis
Exec=/usr/bin/wine /home/<USER>/.wine/drive_c/Program\ Files\ (x86)/syrinx/Syrinx.exe
Icon=/home/<USER>/.wine/drive_c/Program Files (x86)/syrinx/img/vigie-chiro.png
Terminal=false
```
Change `<USER>` by your username. To have the icon, you can download [`vigie-chiro.png`](images/vigie-chiro.png).
To analyse ultrasound, with a 384 kHz sampling frequency, we have to open `Configs_syrinx/exp384.dsp`; and next Load sound file (`Ctrl+L`). To switch to other sound file in same folder, we can use `alt+arrows`. For more tips, you can view [the video of Charlotte ROEMER (Fr)](https://www.youtube.com/watch?v=BPPSw2FSLxs).
Install and Configure Batsound 4
--------------------------------
The procedure is quite similar with Syrinx-PC installation.
### Set up app launcher
Create a new file `.local/share/applications/batsound.desktop`:
```textile
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Batsound
Comment=Acoustic analysis
Exec=/usr/bin/wine /home/<USER>/.wine/drive_c/Program\ Files\ (x86)/Pettersson/Batsound4/BatSound.exe
Icon=/home/<USER>/.wine/drive_c/Program Files (x86)/Pettersson/Batsound4/img/batsound.png
Terminal=false
```
(Do not forget to change `<USER>` to your username.)
To have the icon, you can download [`batsound.png`](images/batsound.png).
### Configure Batsound to analyse ultrasounds
* Enter the `Sound/Sound Format` menu.
![Entering `Sound/Sound Forma` menu](images/batsound/enter-sound-format-menu.png)
* Change `Time expansion` value to 10 (according to your recorder settings)
* Keep 44 100 as `Samples per second` value.
* Enter the `Analysis/Spectrogram Settings - Defaults` menu.
![Entering `Spectrogram Setting - Defaults` menu](images/batsound/spectrogram-settings-default-values.png)
* Change `Max frequency` to `150000`;
* Set `Amplitude color mapping` to `Yellow, Red & Blue`;
* Adapt `Threshold` to sound intensity.
* You can zoom in.
With a *Pipistrellus kuhlii* record, I obtain the following spectrogram with the above settings :
![pipkuh spectro](images/batsound/pipkuh-spectro-batsound.png)
Install 7-zip
-------------
7-zip is useful in Vigie-Chiro process to compress audio files for faster upload to [https://vigiechiro.herokuapp.com](https://vigiechiro.herokuapp.com).
1. Download `.exe` installer at [https://www.7-zip.org/](https://www.7-zip.org/)
2. Execute `7z1900.exe` with wine.
Install Lupas-Rename
--------------------
Lupas-Rename is used in Vigie-Chiro protocole to batch rename audio file to add protocoles informations such as pass and square.
1. Dowload `.exe` installer at [https://rename.lupasfreeware.org/download.php](https://rename.lupasfreeware.org/download.php)
2. Execute installer with wine
3. Batch rename audio files...
Conclusion
----------
With all these functionnal softwares, you are able to perform Vigie-Chiro protocole and sound analysis on GNU/Linux. I look forward to see your participation at [https://vigiechiro.herokuapp.com](https://vigiechiro.herokuapp.com) !

@ -0,0 +1,186 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<title>Analyse Sound on GNU/Linux using Wine</title>
<link rel="stylesheet" href="./theme/css/main.css" />
<meta name="description" content="After recording bats, orthoptera or birds, it is often necesserary to see the spectrograms of the sounds, for instance while analysing Vigie-Chiro..." />
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="./">The Blog of a juvenile Geekus biologicus</a></h1>
<nav><ul>
<li><a href="./pages/about.html">About</a></li>
<li><a href="./pages/contact.html">Contact</a></li>
<li class="active"><a href="./category/audio.html">audio</a></li>
<li><a href="./category/sysadmin.html">sysadmin</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<article>
<header>
<h1 class="entry-title">
<a href="./analyse-sound-on-gnulinux-using-wine.html" rel="bookmark"
title="Permalink to Analyse Sound on GNU/Linux using Wine">Analyse Sound on GNU/Linux using Wine</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-03-25T10:40:00+01:00">
Published: Thu 25 March 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/samuel-ortion.html">Samuel ORTION</a>
</address>
<p>In <a href="./category/audio.html">audio</a>.</p>
<p>tags: <a href="./tag/bat.html">bat</a> <a href="./tag/bird.html">bird</a> <a href="./tag/ultrasound.html">ultrasound</a> <a href="./tag/syrinx.html">syrinx</a> <a href="./tag/batsound.html">batsound</a> </p>
</footer><!-- /.post-info --> <p>After recording bats, orthoptera or birds, it is often necesserary to see the spectrograms of the sounds, for instance while analysing <a href="http://www.vigienature.fr/fr/chauves-souris">Vigie-Chiro Program</a> bat records</p>
<p>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. Kaleidoscope, Syrinx, Batsound 4, 7-zip, Lupas-Rename).</p>
<h2>Install Wine</h2>
<p>Wine is a software that enable .exe software to run on UNIX systems such as Linux or Mac OS.</p>
<h3>On Debian and derivatives (Ubuntu...)</h3>
<p>Enable 32 bit packages (if you haven't already):</p>
<div class="highlight"><pre><span></span><code>sudo dpkg --add-architecture i386
</code></pre></div>
<p>Download and install the repository key:</p>
<div class="highlight"><pre><span></span><code>wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
</code></pre></div>
<p>Add the repository to /etc/apt/sources.list or create a wine.list under /etc/apt/sources.list.d/ with the following content:</p>
<div class="highlight"><pre><span></span><code><span class="k">deb</span> <span class="s">https://dl.winehq.org/wine-builds/debian/</span> <span class="kp">buster</span> <span class="kp">main</span>
</code></pre></div>
<p>Update packages</p>
<div class="highlight"><pre><span></span><code>sudo apt update
</code></pre></div>
<p>Install Wine stable</p>
<div class="highlight"><pre><span></span><code>sudo apt install --install-recommends winehq-stable
</code></pre></div>
<h3>On Fedora, RHEL, and derivatives</h3>
<p>Add repository :</p>
<div class="highlight"><pre><span></span><code>dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo
</code></pre></div>
<p>Install stable package :</p>
<div class="highlight"><pre><span></span><code>dnf install winehq-stable
</code></pre></div>
<h2>Install Kaleidoscope</h2>
<p>Kaleidoscope is available on both fedora and debian based distros at <a href="https://www.wildlifeacoustics.com/">wildlife acoustics</a>.</p>
<h2>Install Syrinx</h2>
<p>As all following softwares, Syrinx is not available for GNU/Linux, we need Wine to execute the <code>.exe</code>.
Syrinx-PC is available at <a href="https://drive.google.com/file/d/0B5ZM90wrDzUOM0ZfYlpDR2l1cU0/view">Google Drive</a>.
You will also need the config files available at <a href="https://drive.google.com/file/d/0B5ZM90wrDzUOQnBhRjNVRFM1Rkk/view">Google Drive</a>.</p>
<p>You have almost two options :
You can either right click on the <code>.exe</code> installer and select <code>Open with other application</code> and <code>Wine Windows Program Loader</code>, or either run <code>wine syrinxalphainst.exe</code> in Terminal.</p>
<h3>Set up app launcher</h3>
<p>You have to create a new file <code>.local/share/applications/syrinx.desktop</code>:</p>
<div class="highlight"><pre><span></span><code><span class="k">[Desktop Entry]</span>
<span class="na">Type</span><span class="o">=</span><span class="s">Application</span>
<span class="na">Encoding</span><span class="o">=</span><span class="s">UTF-8</span>
<span class="na">Name</span><span class="o">=</span><span class="s">Syrinx</span>
<span class="na">Comment</span><span class="o">=</span><span class="s">Acoustic analysis</span>
<span class="na">Exec</span><span class="o">=</span><span class="s">/usr/bin/wine /home/&lt;USER&gt;/.wine/drive_c/Program\ Files\ (x86)/syrinx/Syrinx.exe</span>
<span class="na">Icon</span><span class="o">=</span><span class="s">/home/&lt;USER&gt;/.wine/drive_c/Program Files (x86)/syrinx/img/vigie-chiro.png</span>
<span class="na">Terminal</span><span class="o">=</span><span class="s">false</span>
</code></pre></div>
<p>Change <code>&lt;USER&gt;</code> by your username. To have the icon, you can download <a href="images/vigie-chiro.png"><code>vigie-chiro.png</code></a>.
To analyse ultrasound, with a 384 kHz sampling frequency, we have to open <code>Configs_syrinx/exp384.dsp</code>; and next Load sound file (<code>Ctrl+L</code>). To switch to other sound file in same folder, we can use <code>alt+arrows</code>. For more tips, you can view <a href="https://www.youtube.com/watch?v=BPPSw2FSLxs">the video of Charlotte ROEMER (Fr)</a>.</p>
<h2>Install and Configure Batsound 4</h2>
<p>The procedure is quite similar with Syrinx-PC installation.</p>
<h3>Set up app launcher</h3>
<p>Create a new file <code>.local/share/applications/batsound.desktop</code>:</p>
<div class="highlight"><pre><span></span><code><span class="k">[Desktop Entry]</span>
<span class="na">Type</span><span class="o">=</span><span class="s">Application</span>
<span class="na">Encoding</span><span class="o">=</span><span class="s">UTF-8</span>
<span class="na">Name</span><span class="o">=</span><span class="s">Batsound</span>
<span class="na">Comment</span><span class="o">=</span><span class="s">Acoustic analysis</span>
<span class="na">Exec</span><span class="o">=</span><span class="s">/usr/bin/wine /home/&lt;USER&gt;/.wine/drive_c/Program\ Files\ (x86)/Pettersson/Batsound4/BatSound.exe</span>
<span class="na">Icon</span><span class="o">=</span><span class="s">/home/&lt;USER&gt;/.wine/drive_c/Program Files (x86)/Pettersson/Batsound4/img/batsound.png</span>
<span class="na">Terminal</span><span class="o">=</span><span class="s">false</span>
</code></pre></div>
<p>(Do not forget to change <code>&lt;USER&gt;</code> to your username.)</p>
<p>To have the icon, you can download <a href="images/batsound.png"><code>batsound.png</code></a>.</p>
<h3>Configure Batsound to analyse ultrasounds</h3>
<ul>
<li>Enter the <code>Sound/Sound Format</code> menu.</li>
</ul>
<p><img alt="Entering Sound/Sound Forma menu" src="images/batsound/enter-sound-format-menu.png"></p>
<ul>
<li>Change <code>Time expansion</code> value to 10 (according to your recorder settings)</li>
<li>
<p>Keep 44 100 as <code>Samples per second</code> value.</p>
</li>
<li>
<p>Enter the <code>Analysis/Spectrogram Settings - Defaults</code> menu.</p>
</li>
</ul>
<p><img alt="Entering Spectrogram Setting - Defaults menu" src="images/batsound/spectrogram-settings-default-values.png"></p>
<ul>
<li>Change <code>Max frequency</code> to <code>150000</code>;</li>
<li>Set <code>Amplitude color mapping</code> to <code>Yellow, Red &amp; Blue</code>;</li>
<li>
<p>Adapt <code>Threshold</code> to sound intensity.</p>
</li>
<li>
<p>You can zoom in.</p>
</li>
</ul>
<p>With a <em>Pipistrellus kuhlii</em> record, I obtain the following spectrogram with the above settings :
<img alt="pipkuh spectro" src="images/batsound/pipkuh-spectro-batsound.png"></p>
<h2>Install 7-zip</h2>
<p>7-zip is useful in Vigie-Chiro process to compress audio files for faster upload to <a href="https://vigiechiro.herokuapp.com">https://vigiechiro.herokuapp.com</a>.</p>
<ol>
<li>Download <code>.exe</code> installer at <a href="https://www.7-zip.org/">https://www.7-zip.org/</a></li>
<li>Execute <code>7z1900.exe</code> with wine.</li>
</ol>
<h2>Install Lupas-Rename</h2>
<p>Lupas-Rename is used in Vigie-Chiro protocole to batch rename audio file to add protocoles informations such as pass and square.</p>
<ol>
<li>Dowload <code>.exe</code> installer at <a href="https://rename.lupasfreeware.org/download.php">https://rename.lupasfreeware.org/download.php</a></li>
<li>Execute installer with wine</li>
<li>Batch rename audio files...</li>
</ol>
<h2>Conclusion</h2>
<p>With all these functionnal softwares, you are able to perform Vigie-Chiro protocole and sound analysis on GNU/Linux. I look forward to see your participation at <a href="https://vigiechiro.herokuapp.com">https://vigiechiro.herokuapp.com</a> !</p>
</div><!-- /.entry-content -->
</article>
</section>
<section id="extras" class="body">
<div class="blogroll">
<h2>links</h2>
<ul>
<li><a href="https://samuel.ortion.xyz">website</a></li>
<li><a href="https://forge.ortion.xyz">forge</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="https://toot.ortion.xyz">mastodon</a></li>
<li><a href="https://twitter.com/SAmULuUus">twitter</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="https://www.smashingmagazine.com/2009/08/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
</body>
</html>

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<title>The Blog of a juvenile Geekus biologicus</title>
<link rel="stylesheet" href="./theme/css/main.css" />
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="./">The Blog of a juvenile Geekus biologicus</a></h1>
<nav><ul>
<li><a href="./pages/about.html">About</a></li>
<li><a href="./pages/contact.html">Contact</a></li>
<li><a href="./category/audio.html">audio</a></li>
<li><a href="./category/sysadmin.html">sysadmin</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<h1>Archives for The Blog of a juvenile Geekus biologicus</h1>
<dl>
<dt>Fri 26 March 2021</dt>
<dd><a href="./build-your-own-ide-install-theia-on-fedora.html">Build your Own IDE; Install Theia on Fedora</a></dd>
<dt>Fri 26 March 2021</dt>
<dd><a href="./install-nvidia-drivers-on-fedora-34.html">Install Nvidia drivers on fedora 34</a></dd>
<dt>Thu 25 March 2021</dt>
<dd><a href="./nocmig-recorder.html">Building a NocMig Recorder</a></dd>
<dt>Thu 25 March 2021</dt>
<dd><a href="./analyse-sound-on-gnulinux-using-wine.html">Analyse Sound on GNU/Linux using Wine</a></dd>
<dt>Wed 24 March 2021</dt>
<dd><a href="./creer-un-site-onion-sur-le-dark-net-avec-tor.html">Créer un site .onion sur le Dark Net avec Tor</a></dd>
</dl>
</section>
<section id="extras" class="body">
<div class="blogroll">
<h2>links</h2>
<ul>
<li><a href="https://samuel.ortion.xyz">website</a></li>
<li><a href="https://forge.ortion.xyz">forge</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="https://toot.ortion.xyz">mastodon</a></li>
<li><a href="https://twitter.com/SAmULuUus">twitter</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="https://www.smashingmagazine.com/2009/08/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
</body>
</html>

@ -0,0 +1,265 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<title>The Blog of a juvenile Geekus biologicus - Samuel ORTION</title>
<link rel="stylesheet" href="../theme/css/main.css" />
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="../">The Blog of a juvenile Geekus biologicus</a></h1>
<nav><ul>
<li><a href="../pages/about.html">About</a></li>
<li><a href="../pages/contact.html">Contact</a></li>
<li><a href="../category/audio.html">audio</a></li>
<li><a href="../category/sysadmin.html">sysadmin</a></li>
</ul></nav>
</header><!-- /#banner -->
<aside id="featured" class="body">
<article>
<h1 class="entry-title"><a href="../build-your-own-ide-install-theia-on-fedora.html">Build your Own IDE; Install Theia on Fedora</a></h1>
<footer class="post-info">
<abbr class="published" title="2021-03-26T19:00:00+01:00">
Published: Fri 26 March 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="../author/samuel-ortion.html">Samuel ORTION</a>
</address>
<p>In <a href="../category/sysadmin.html">sysadmin</a>.</p>
<p>tags: <a href="../tag/ide.html">IDE</a> <a href="../tag/vscode.html">vscode</a> <a href="../tag/yarn.html">yarn</a> <a href="../tag/nodejs.html">nodejs</a> </p>
</footer><!-- /.post-info --><h2>Install dependencies</h2>
<div class="highlight"><pre><span></span><code>sudo dnf install gcc-g++
<span class="nb">source</span> ~/.bashrc
sudo nvm install v12.16.2 -g
</code></pre></div>
<h3>Install nodejs and yarn</h3>
<div class="highlight"><pre><span></span><code> https://raw.githubusercontent.com/creationix/nvm/master/install.sh <span class="p">|</span> bash
</code></pre></div>
<h2>Create a new directory</h2>
<div class="highlight"><pre><span></span><code>mkdir theia
<span class="nb">cd</span> theia
</code></pre></div>
<h2>Create <code>package.json</code></h2>
<div class="highlight"><pre><span></span><code>vim package.json
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="s2">&quot;private&quot;</span><span class="p">:</span> <span class="bp">true</span><span class="p">,</span>
<span class="s2">&quot;dependencies&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;@theia/callhierarchy&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/file-search&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/git&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/markers&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/messages&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/mini-browser&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/navigator&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/outline-view&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/plugin-ext-vscode&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/preferences&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/preview&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/search-in-workspace&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/terminal&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span>
<span class="p">},</span>
<span class="s2">&quot;devDependencies&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;@theia/cli&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span>
<span class="p">},</span>
<span class="s2">&quot;scripts&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;prepare&quot;</span><span class="p">:</span> <span class="s2">&quot;yarn run clean &amp;&amp; yarn build &amp;&amp; yarn run download:plugins&quot;</span><span class="p">,</span>
<span class="s2">&quot;clean&quot;</span><span class="p">:</span> <span class="s2">&quot;theia clean&quot;</span><span class="p">,</span>
<span class="s2">&quot;build&quot;</span><span class="p">:</span> <span class="s2">&quot;theia build --mode development&quot;</span><span class="p">,</span>
<span class="s2">&quot;start&quot;</span><span class="p">:</span> <span class="s2">&quot;theia start --plugins=local-dir:plugins&quot;</span><span class="p">,</span>
<span class="s2">&quot;download:plugins&quot;</span><span class="p">:</span> <span class="s2">&quot;theia download:plugins&quot;</span>
<span class="p">},</span>
<span class="s2">&quot;theiaPluginsDir&quot;</span><span class="p">:</span> <span class="s2">&quot;plugins&quot;</span><span class="p">,</span>
<span class="s2">&quot;theiaPlugins&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;vscode-builtin-css&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/css-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-html&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/html-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-javascript&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/javascript-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-json&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/json-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-markdown&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/markdown-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-npm&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/npm-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-scss&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/scss-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-typescript&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/typescript-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-typescript-language-features&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/typescript-language-features-1.39.1-prel.vsix&quot;</span>
<span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<h2>Building</h2>
<div class="highlight"><pre><span></span><code>yarn
</code></pre></div>
<div class="highlight"><pre><span></span><code>yarn theia build
</code></pre></div>
<h2>Start theia</h2>
<div class="highlight"><pre><span></span><code>yarn start --hostname <span class="m">0</span>.0.0.0 --port <span class="m">8080</span>
</code></pre></div>
<h2>Create a app launcher</h2>
<p>Create <code>/home/&lt;USER&gt;/.local/share/applications/theia.desktop</code>:
<code>`textile
[Desktop Entry]
Version=1.0
Name=Theia IDE
Comment=Code editor
Type=Application
Exec=bash -c 'cd /opt/theia &amp;&amp; yarn start --hostname 0.0.0.0 --port 8080 &amp;&amp; firefox localhost:8080'
Icon=/opt/theia/img/icon.png</code></p> </article>
</aside><!-- /#featured -->
<section id="content" class="body">
<h1>Other articles</h1>
<hr />
<ol id="posts-list" class="hfeed">
<li><article class="hentry">
<header>
<h1><a href="../install-nvidia-drivers-on-fedora-34.html" rel="bookmark"
title="Permalink to Install Nvidia drivers on fedora 34">Install Nvidia drivers on fedora 34</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-03-26T18:25:00+01:00">
Published: Fri 26 March 2021
</abbr>
<br />
<abbr class="modified" title="2021-03-26T18:25:00+01:00">
Updated: Fri 26 March 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="../author/samuel-ortion.html">Samuel ORTION</a>
</address>
<p>In <a href="../category/sysadmin.html">sysadmin</a>.</p>
<p>tags: <a href="../tag/nvidia.html">Nvidia</a> <a href="../tag/drivers.html">drivers</a> <a href="../tag/gpu.html">gpu</a> <a href="../tag/fedora.html">fedora</a> </p>
</footer><!-- /.post-info --> <h2>Update package manager and reboot</h2>
<div class="highlight"><pre><span></span><code>dnf update
reboot
</code></pre></div>
<h2>Enable Nvidia driver repository</h2>
<div class="highlight"><pre><span></span><code>sudo dnf config-manager --set-enabled rpmfusion-nonfree-nvidia-driver
</code></pre></div>
<h2>Sources</h2>
<ul>
<li><a href="https://fedoramagazine.org/install-nvidia-gpu/">fedora magazine</a></li>
</ul>
<a class="readmore" href="../install-nvidia-drivers-on-fedora-34.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="../nocmig-recorder.html" rel="bookmark"
title="Permalink to Building a NocMig Recorder">Building a NocMig Recorder</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-03-25T14:00:00+01:00">
Published: Thu 25 March 2021
</abbr>
<br />
<abbr class="modified" title="2021-03-25T14:00:00+01:00">
Updated: Thu 25 March 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="../author/samuel-ortion.html">Samuel ORTION</a>
</address>
<p>In <a href="../category/audio.html">audio</a>.</p>
<p>tags: <a href="../tag/audio.html">audio</a> <a href="../tag/wildlife.html">wildlife</a> <a href="../tag/nocmig.html">nocmig</a> <a href="../tag/bird.html">bird</a> </p>
</footer><!-- /.post-info --> <p>How to build a complete NocMig record setup</p>
<a class="readmore" href="../nocmig-recorder.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="../analyse-sound-on-gnulinux-using-wine.html" rel="bookmark"
title="Permalink to Analyse Sound on GNU/Linux using Wine">Analyse Sound on GNU/Linux using Wine</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-03-25T10:40:00+01:00">
Published: Thu 25 March 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="../author/samuel-ortion.html">Samuel ORTION</a>
</address>
<p>In <a href="../category/audio.html">audio</a>.</p>
<p>tags: <a href="../tag/bat.html">bat</a> <a href="../tag/bird.html">bird</a> <a href="../tag/ultrasound.html">ultrasound</a> <a href="../tag/syrinx.html">syrinx</a> <a href="../tag/batsound.html">batsound</a> </p>
</footer><!-- /.post-info --> <p>After recording bats, orthoptera or birds, it is often necesserary to see the spectrograms of the sounds, for instance while analysing <a href="http://www.vigienature.fr/fr/chauves-souris">Vigie-Chiro Program</a> bat records</p>
<p>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 …</p>
<a class="readmore" href="../analyse-sound-on-gnulinux-using-wine.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="../creer-un-site-onion-sur-le-dark-net-avec-tor.html" rel="bookmark"
title="Permalink to Créer un site .onion sur le Dark Net avec Tor">Créer un site .onion sur le Dark Net avec Tor</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-03-24T14:15:00+01:00">
Published: Wed 24 March 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="../author/samuel-ortion.html">Samuel ORTION</a>
</address>
<p>In <a href="../category/sysadmin.html">sysadmin</a>.</p>
</footer><!-- /.post-info --> <h2>Prérequis</h2>
<p>Pour créer un site sur le darknet en .onion, il vous faut un serveur avec accès en ssh. Je prendrais l'exemple d'une machine tournant sur debian buster.</p>
<h2>Installation de Tor</h2>
<h3>Ajout du dépôt</h3>
<div class="highlight"><pre><span></span><code>vim /etc/apt/sources.list.d/tor.list
deb https://deb.torproject.org/torproject.org buster …</code></pre></div>
<a class="readmore" href="../creer-un-site-onion-sur-le-dark-net-avec-tor.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
<div class="blogroll">
<h2>links</h2>
<ul>
<li><a href="https://samuel.ortion.xyz">website</a></li>
<li><a href="https://forge.ortion.xyz">forge</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="https://toot.ortion.xyz">mastodon</a></li>
<li><a href="https://twitter.com/SAmULuUus">twitter</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="https://www.smashingmagazine.com/2009/08/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
</body>
</html>

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<title>The Blog of a juvenile Geekus biologicus - Authors</title>
<link rel="stylesheet" href="./theme/css/main.css" />
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="./">The Blog of a juvenile Geekus biologicus</a></h1>
<nav><ul>
<li><a href="./pages/about.html">About</a></li>
<li><a href="./pages/contact.html">Contact</a></li>
<li><a href="./category/audio.html">audio</a></li>
<li><a href="./category/sysadmin.html">sysadmin</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<h1>Authors on The Blog of a juvenile Geekus biologicus</h1>
<ul>
<li><a href="./author/samuel-ortion.html">Samuel ORTION</a> (5)</li>
</ul>
</section>
<section id="extras" class="body">
<div class="blogroll">
<h2>links</h2>
<ul>
<li><a href="https://samuel.ortion.xyz">website</a></li>
<li><a href="https://forge.ortion.xyz">forge</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="https://toot.ortion.xyz">mastodon</a></li>
<li><a href="https://twitter.com/SAmULuUus">twitter</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="https://www.smashingmagazine.com/2009/08/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
</body>
</html>

@ -0,0 +1,153 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<title>Build your Own IDE; Install Theia on Fedora</title>
<link rel="stylesheet" href="./theme/css/main.css" />
<meta name="description" content="Install dependencies sudo dnf install gcc-g++ source ~/.bashrc sudo nvm install v12.16.2 -g Install nodejs and yarn..." />
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="./">The Blog of a juvenile Geekus biologicus</a></h1>
<nav><ul>
<li><a href="./pages/about.html">About</a></li>
<li><a href="./pages/contact.html">Contact</a></li>
<li><a href="./category/audio.html">audio</a></li>
<li class="active"><a href="./category/sysadmin.html">sysadmin</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<article>
<header>
<h1 class="entry-title">
<a href="./build-your-own-ide-install-theia-on-fedora.html" rel="bookmark"
title="Permalink to Build your Own IDE; Install Theia on Fedora">Build your Own IDE; Install Theia on Fedora</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2021-03-26T19:00:00+01:00">
Published: Fri 26 March 2021
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/samuel-ortion.html">Samuel ORTION</a>
</address>
<p>In <a href="./category/sysadmin.html">sysadmin</a>.</p>
<p>tags: <a href="./tag/ide.html">IDE</a> <a href="./tag/vscode.html">vscode</a> <a href="./tag/yarn.html">yarn</a> <a href="./tag/nodejs.html">nodejs</a> </p>
</footer><!-- /.post-info --> <h2>Install dependencies</h2>
<div class="highlight"><pre><span></span><code>sudo dnf install gcc-g++
<span class="nb">source</span> ~/.bashrc
sudo nvm install v12.16.2 -g
</code></pre></div>
<h3>Install nodejs and yarn</h3>
<div class="highlight"><pre><span></span><code> https://raw.githubusercontent.com/creationix/nvm/master/install.sh <span class="p">|</span> bash
</code></pre></div>
<h2>Create a new directory</h2>
<div class="highlight"><pre><span></span><code>mkdir theia
<span class="nb">cd</span> theia
</code></pre></div>
<h2>Create <code>package.json</code></h2>
<div class="highlight"><pre><span></span><code>vim package.json
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="p">{</span>
<span class="s2">&quot;private&quot;</span><span class="p">:</span> <span class="bp">true</span><span class="p">,</span>
<span class="s2">&quot;dependencies&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;@theia/callhierarchy&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/file-search&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/git&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/markers&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/messages&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/mini-browser&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/navigator&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/outline-view&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/plugin-ext-vscode&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/preferences&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/preview&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/search-in-workspace&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span><span class="p">,</span>
<span class="s2">&quot;@theia/terminal&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span>
<span class="p">},</span>
<span class="s2">&quot;devDependencies&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;@theia/cli&quot;</span><span class="p">:</span> <span class="s2">&quot;next&quot;</span>
<span class="p">},</span>
<span class="s2">&quot;scripts&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;prepare&quot;</span><span class="p">:</span> <span class="s2">&quot;yarn run clean &amp;&amp; yarn build &amp;&amp; yarn run download:plugins&quot;</span><span class="p">,</span>
<span class="s2">&quot;clean&quot;</span><span class="p">:</span> <span class="s2">&quot;theia clean&quot;</span><span class="p">,</span>
<span class="s2">&quot;build&quot;</span><span class="p">:</span> <span class="s2">&quot;theia build --mode development&quot;</span><span class="p">,</span>
<span class="s2">&quot;start&quot;</span><span class="p">:</span> <span class="s2">&quot;theia start --plugins=local-dir:plugins&quot;</span><span class="p">,</span>
<span class="s2">&quot;download:plugins&quot;</span><span class="p">:</span> <span class="s2">&quot;theia download:plugins&quot;</span>
<span class="p">},</span>
<span class="s2">&quot;theiaPluginsDir&quot;</span><span class="p">:</span> <span class="s2">&quot;plugins&quot;</span><span class="p">,</span>
<span class="s2">&quot;theiaPlugins&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="s2">&quot;vscode-builtin-css&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/css-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-html&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/html-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-javascript&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/javascript-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-json&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/json-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-markdown&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/markdown-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-npm&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/npm-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-scss&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/scss-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-typescript&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/typescript-1.39.1-prel.vsix&quot;</span><span class="p">,</span>
<span class="s2">&quot;vscode-builtin-typescript-language-features&quot;</span><span class="p">:</span> <span class="s2">&quot;https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/typescript-language-features-1.39.1-prel.vsix&quot;</span>
<span class="p">}</span>
<span class="p">}</span>
</code></pre></div>
<h2>Building</h2>
<div class="highlight"><pre><span></span><code>yarn
</code></pre></div>
<div class="highlight"><pre><span></span><code>yarn theia build
</code></pre></div>
<h2>Start theia</h2>
<div class="highlight"><pre><span></span><code>yarn start --hostname <span class="m">0</span>.0.0.0 --port <span class="m">8080</span>
</code></pre></div>
<h2>Create a app launcher</h2>
<p>Create <code>/home/&lt;USER&gt;/.local/share/applications/theia.desktop</code>:
<code>`textile
[Desktop Entry]
Version=1.0
Name=Theia IDE
Comment=Code editor
Type=Application
Exec=bash -c 'cd /opt/theia &amp;&amp; yarn start --hostname 0.0.0.0 --port 8080 &amp;&amp; firefox localhost:8080'
Icon=/opt/theia/img/icon.png</code></p>
</div><!-- /.entry-content -->
</article>
</section>
<section id="extras" class="body">
<div class="blogroll">
<h2>links</h2>
<ul>