Updated theme

main
Samuel ORTION 1 year ago
parent 05b541f273
commit 1b8676156b

@ -1,98 +0,0 @@
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
``

@ -1,31 +0,0 @@
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)

@ -1,112 +0,0 @@
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/)

@ -1,24 +0,0 @@
Title: Send Raspberry Pi Camera Video Stream to PeerTube Live
Author: Samuel ORTION
Date: 2021-05-08 15:05
Modified: 2021-05-08 15:05
Tags: streaming, live video, peertube, raspberrypi, PiCameraTrap
Category: sysadmin
## Set Up PeerTube Live
Login into a PeerTube instance that allows live streaming.
Create a new live video.
Copy the Live RTMP Url and Live stream key.
## Install ffmpeg
```bash
sudo apt install ffmpeg
```
## Start streaming
```bash
ffmpeg -i /dev/video0 -vcodec copy -acodec copy -f flv rtmp://tube.example.com/live/YOUR STREAM KEY
```

@ -9,7 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="./theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="./theme/pygments/github.min.css">
@ -268,7 +267,7 @@ To analyse ultrasound, with a 384 kHz sampling frequency, we have to open <code>
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<a href="https://forge.chapril.org/UncleSamulus/blog" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>

@ -9,7 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="./theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="./theme/pygments/github.min.css">
@ -85,18 +84,10 @@
</header>
<div>
<dl>
<dt>Sat 08 May 2021</dt>
<dd><a href="./send-raspberry-pi-camera-video-stream-to-peertube-live.html">Send Raspberry Pi Camera Video Stream to PeerTube Live</a></dd>
<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>
</div>
</article>
@ -135,7 +126,7 @@
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<a href="https://forge.chapril.org/UncleSamulus/blog" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>

@ -9,7 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="../theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="../theme/pygments/github.min.css">
@ -80,78 +79,6 @@
<article>
<header>
<h2><a href="../send-raspberry-pi-camera-video-stream-to-peertube-live.html#send-raspberry-pi-camera-video-stream-to-peertube-live">Send Raspberry Pi Camera Video Stream to PeerTube Live</a></h2>
<p>
Posted on Sat 08 May 2021 in <a href="../category/sysadmin.html">sysadmin</a>
&#8226; Tagged with
<a href="../tag/streaming.html">streaming</a>, <a href="../tag/live-video.html">live video</a>, <a href="../tag/peertube.html">peertube</a>, <a href="../tag/raspberrypi.html">raspberrypi</a>, <a href="../tag/picameratrap.html">PiCameraTrap</a>
</p>
</header>
<div>
<h2>Set Up PeerTube Live</h2>
<p>Login into a PeerTube instance that allows live streaming.
Create a new live video.
Copy the Live RTMP Url and Live stream key.</p>
<h2>Install ffmpeg</h2>
<div class="highlight"><pre><span></span><code>sudo apt install ffmpeg
</code></pre></div>
<h2>Start streaming</h2>
<div class="highlight"><pre><span></span><code>ffmpeg -i /dev/video0 -vcodec copy -acodec copy -f flv rtmp://tube.example.com/live …</code></pre></div>
<br>
<a class="btn" href="../send-raspberry-pi-camera-video-stream-to-peertube-live.html#send-raspberry-pi-camera-video-stream-to-peertube-live">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../build-your-own-ide-install-theia-on-fedora.html#build-your-own-ide-install-theia-on-fedora">Build your Own IDE; Install Theia on Fedora</a></h2>
<p>
Posted on Fri 26 March 2021 in <a href="../category/sysadmin.html">sysadmin</a>
&#8226; Tagged with
<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>
</header>
<div>
<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 …</span></code></pre></div>
<br>
<a class="btn" href="../build-your-own-ide-install-theia-on-fedora.html#build-your-own-ide-install-theia-on-fedora">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../install-nvidia-drivers-on-fedora-34.html#install-nvidia-drivers-on-fedora-34">Install Nvidia drivers on fedora 34</a></h2>
@ -184,26 +111,6 @@ reboot
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../nocmig-recorder.html#nocmig-recorder">Building a NocMig Recorder</a></h2>
<p>
Posted on Thu 25 March 2021 in <a href="../category/audio.html">audio</a>
&#8226; Tagged with
<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>
</header>
<div>
<p>How to build a complete NocMig record setup</p>
<br>
<a class="btn" href="../nocmig-recorder.html#nocmig-recorder">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../analyse-sound-on-gnulinux-using-wine.html#analyse-sound-on-gnulinux-using-wine">Analyse Sound on GNU/Linux using Wine</a></h2>
@ -221,30 +128,6 @@ reboot
<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>
<br>
<a class="btn" href="../analyse-sound-on-gnulinux-using-wine.html#analyse-sound-on-gnulinux-using-wine">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../creer-un-site-onion-sur-le-dark-net-avec-tor.html#creer-un-site-onion-sur-le-dark-net-avec-tor">Créer un site .onion sur le Dark Net avec Tor</a></h2>
<p>
Posted on Wed 24 March 2021 in <a href="../category/sysadmin.html">sysadmin</a>
</p>
</header>
<div>
<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>
<br>
<a class="btn" href="../creer-un-site-onion-sur-le-dark-net-avec-tor.html#creer-un-site-onion-sur-le-dark-net-avec-tor">Continue reading
</a>
</div>
</article>
@ -289,7 +172,7 @@ deb https://deb.torproject.org/torproject.org buster …</code></pre></div>
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<a href="https://forge.chapril.org/UncleSamulus/blog" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>

@ -9,7 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="./theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="./theme/pygments/github.min.css">
@ -85,7 +84,7 @@
</header>
<div>
<ul class="list">
<li><a href="./author/samuel-ortion.html">Samuel ORTION</a> (6)</li>
<li><a href="./author/samuel-ortion.html">Samuel ORTION</a> (2)</li>
</ul>
</div>
</article>
@ -124,7 +123,7 @@
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<a href="https://forge.chapril.org/UncleSamulus/blog" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>

@ -1,309 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="./theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="./theme/pygments/github.min.css">
<link rel="stylesheet" type="text/css" href="./theme/font-awesome/css/font-awesome.min.css">
<link href="https://blog.ortion.xyz/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="The Blog of a juvenile Geekus biologicus Atom">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta name="author" content="Samuel ORTION" />
<meta name="description" content="Install dependencies sudo dnf install gcc-g++ source ~/.bashrc sudo nvm install v12.16.2 -g Install nodejs and yarn https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash Create a new directory mkdir theia cd theia Create package.json vim package.json { &#34;private&#34;: true, &#34;dependencies&#34;: { &#34;@theia/callhierarchy&#34;: &#34;next&#34;, &#34;@theia …" />
<meta name="keywords" content="IDE, vscode, yarn, nodejs">
<meta property="og:site_name" content="The Blog of a juvenile Geekus biologicus"/>
<meta property="og:title" content="Build your Own IDE; Install Theia on Fedora"/>
<meta property="og:description" content="Install dependencies sudo dnf install gcc-g++ source ~/.bashrc sudo nvm install v12.16.2 -g Install nodejs and yarn https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash Create a new directory mkdir theia cd theia Create package.json vim package.json { &#34;private&#34;: true, &#34;dependencies&#34;: { &#34;@theia/callhierarchy&#34;: &#34;next&#34;, &#34;@theia …"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="./build-your-own-ide-install-theia-on-fedora.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2021-03-26 19:00:00+01:00"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="./author/samuel-ortion.html">
<meta property="article:section" content="sysadmin"/>
<meta property="article:tag" content="IDE"/>
<meta property="article:tag" content="vscode"/>
<meta property="article:tag" content="yarn"/>
<meta property="article:tag" content="nodejs"/>
<meta property="og:image" content="">
<title>The Blog of a juvenile Geekus biologicus &ndash; Build your Own IDE; Install Theia on Fedora</title>
</head>
<body>
<aside>
<div>
<a href=".">
<img src="./theme/img/profile.png" alt="" title="">
</a>
<h1><a href="."></a></h1>
<nav>
<ul class="list">
<li><a href="./pages/about.html#about">About</a></li>
<li><a href="./pages/contact.html#contact">Contact</a></li>
<li><a href="https://samuel.ortion.xyz" target="_blank">website</a></li>
<li><a href="https://forge.ortion.xyz" target="_blank">forge</a></li>
</ul>
</nav>
<ul class="social">
<li><a class="sc-mastodon" href="https://toot.ortion.xyz" target="_blank"><img src="/theme/img/social/mastodon.png"></a></li>
<li><a class="sc-twitter" href="https://twitter.com/SAmULuUus" target="_blank"><img src="/theme/img/social/twitter.png"></a></li>
<li><a class="sc-peertube" href="https://tube.ortion.xyz" target="_blank"><img src="/theme/img/social/peertube.png"></a></li>
</ul>
</div>
</aside>
<main>
<nav>
<a href=".">Home
</a>
<a href="https://blog.ortion.xyz/feeds/all.atom.xml">Atom
</a>
</nav>
<article class="single">
<header>
<h1 id="build-your-own-ide-install-theia-on-fedora">Build your Own IDE; Install Theia on Fedora</h1>
<p>
Posted on Fri 26 March 2021 in <a href="./category/sysadmin.html">sysadmin</a>
</p>
</header>
<div>
<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>
<div class="tag-cloud">
<p>
<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>
</div>
</article>
<footer>
<p>
&copy; Samuel ORTION 2021 - This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Attribution-NonCommercial-ShareAlike 4.0 International License</a>
</p>
<p>Powered by <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a>
</p><p>
<a rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/4.0/"
target="_blank">
<img alt="Creative Commons License"
title="Creative Commons License"
style="border-width:0"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png"
width="80"
height="15"/>
</a>
</p> </footer>
</main>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " The Blog of a juvenile Geekus biologicus ",
"url" : ".",
"image": "",
"description": "This is the informal Blog of Samuel ORTION, a juvenil Geekus biologicus enjoying computer science, machine learning, bird watching, taking photographs and more ;-)."
}
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs id="defs1478" />
<sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="1011" id="namedview1476" showgrid="false" inkscape:zoom="5.31875" inkscape:cx="120.52189" inkscape:cy="1.8161983" inkscape:window-x="0" inkscape:window-y="32" inkscape:window-maximized="1" inkscape:current-layer="svg1474" />
<path d="M 0,0 C 85.37539,81.415499 171.40214,170.44093 250,250 V 0 Z" id="path1468" style="fill:#27a722;fill-opacity:1" sodipodi:nodetypes="cccc" />
<g id="g2265" transform="matrix(0.69313465,0.67537894,-0.67537894,0.69313465,155.71733,-10.938791)">
<g inkscape:label="Layer 1" id="layer1" transform="translate(0,-161.53334)" style="display:inline;fill:#ffffff">
<path style="fill:#ffffff;fill-opacity:1;stroke:#428f29;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 27.709937,195.15095 c -9.546573,-0.0272 -22.3392732,6.79805 -21.6317552,23.90397 1.105534,26.72889 25.4565952,29.20839 35.1916502,29.42301 1.068023,5.01357 12.521798,22.30563 21.001818,23.21667 h 37.15277 c 22.27763,-1.66785 38.9607,-75.75671 26.59321,-76.03825 -46.781583,2.47691 -49.995146,2.13838 -88.599758,0 -2.495053,-0.0266 -5.972321,-0.49474 -9.707935,-0.5054 z m 2.491319,9.45886 c 1.351378,13.69267 3.555849,21.70359 8.018216,33.94345 -11.382872,-1.50473 -21.069822,-5.22443 -22.851515,-19.10984 -0.950962,-7.4112 2.390428,-15.16769 14.833299,-14.83361 z" id="path3722" inkscape:connector-curvature="0" sodipodi:nodetypes="sscccccsccsc" />
</g>
<rect style="display:inline;fill:#27a722;fill-opacity:1;stroke:none;stroke-width:0.247573;stroke-opacity:1" id="rect4599" width="34.762054" height="34.762054" x="87.508659" y="18.291576" transform="rotate(25.914715)" ry="5.4825778" />
<path style="display:inline;fill:#27a722;fill-opacity:1;stroke:none;stroke-width:0.266448px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 79.804947,57.359056 3.241146,1.609954 V 35.255731 h -3.262698 z" id="path4525" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccc" />
<g id="layer3" inkscape:label="Layer 3" style="display:inline">
<g style="display:inline" id="g4539">
<circle transform="rotate(-19.796137)" r="3.4745038" cy="90.077766" cx="49.064713" id="path4606" style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1" />
<circle transform="rotate(-19.796137)" r="3.4745038" cy="102.1049" cx="36.810425" id="path4606-3" style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1" />
<circle transform="rotate(-19.796137)" r="3.4745038" cy="111.43928" cx="46.484283" id="path4606-1" style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1" />
<rect transform="rotate(26.024158)" y="18.061695" x="97.333458" height="27.261492" width="2.6726954" id="rect4629-8" style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.274447;stroke-opacity:1" />
<path sodipodi:nodetypes="cc" inkscape:connector-curvature="0" id="path4514" d="m 76.558096,68.116343 c 12.97589,6.395378 13.012989,4.101862 4.890858,20.907244" style="fill:none;stroke:#ffffff;stroke-width:2.68;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</g>
<g id="steam">
<path style="fill:none;stroke:#ffffff;stroke-width:3.125px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 214.48028,23.6314 c 1.317,20.007164 -28.72477,12.742419 -28.08363,27.254313" id="path2287" sodipodi:nodetypes="cc" />
<path style="fill:none;stroke:#ffffff;stroke-width:3.54871px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 222.67793,32.58836 c -0.62421,20.715424 -24.70978,14.100738 -23.90648,27.110411" id="path2289" sodipodi:nodetypes="cc" />
</g>
</svg>
</a>
<style>
.gitea-corner:hover #steam {
animation: octocat-wave 560ms ease-in-out
}
@keyframes steam {
0%,
100% {
transform: rotate(0)
}
20%,
60% {
transform: rotate(-25deg)
}
40%,
80% {
transform: rotate(10deg)
}
}
@media (max-width:500px) {
.gitea-corner:hover #steam {
animation: none
}
.gitea-corner #steam {
animation: steam 560ms ease-in-out
}
}
</style>
</body>
</html>

@ -9,7 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="./theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="./theme/pygments/github.min.css">
@ -85,8 +84,8 @@
</header>
<div>
<ul class="list">
<li><a href="./category/audio.html">audio</a> (2)</li>
<li><a href="./category/sysadmin.html">sysadmin</a> (4)</li>
<li><a href="./category/audio.html">audio</a> (1)</li>
<li><a href="./category/sysadmin.html">sysadmin</a> (1)</li>
</ul>
</div>
</article>
@ -125,7 +124,7 @@
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<a href="https://forge.chapril.org/UncleSamulus/blog" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>

@ -9,7 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="../theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="../theme/pygments/github.min.css">
@ -80,26 +79,6 @@
<article>
<header>
<h2><a href="../nocmig-recorder.html#nocmig-recorder">Building a NocMig Recorder</a></h2>
<p>
Posted on Thu 25 March 2021 in <a href="../category/audio.html">audio</a>
&#8226; Tagged with
<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>
</header>
<div>
<p>How to build a complete NocMig record setup</p>
<br>
<a class="btn" href="../nocmig-recorder.html#nocmig-recorder">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../analyse-sound-on-gnulinux-using-wine.html#analyse-sound-on-gnulinux-using-wine">Analyse Sound on GNU/Linux using Wine</a></h2>
@ -161,7 +140,7 @@
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<a href="https://forge.chapril.org/UncleSamulus/blog" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>

@ -9,7 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="../theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="../theme/pygments/github.min.css">
@ -80,78 +79,6 @@
<article>
<header>
<h2><a href="../send-raspberry-pi-camera-video-stream-to-peertube-live.html#send-raspberry-pi-camera-video-stream-to-peertube-live">Send Raspberry Pi Camera Video Stream to PeerTube Live</a></h2>
<p>
Posted on Sat 08 May 2021 in <a href="../category/sysadmin.html">sysadmin</a>
&#8226; Tagged with
<a href="../tag/streaming.html">streaming</a>, <a href="../tag/live-video.html">live video</a>, <a href="../tag/peertube.html">peertube</a>, <a href="../tag/raspberrypi.html">raspberrypi</a>, <a href="../tag/picameratrap.html">PiCameraTrap</a>
</p>
</header>
<div>
<h2>Set Up PeerTube Live</h2>
<p>Login into a PeerTube instance that allows live streaming.
Create a new live video.
Copy the Live RTMP Url and Live stream key.</p>
<h2>Install ffmpeg</h2>
<div class="highlight"><pre><span></span><code>sudo apt install ffmpeg
</code></pre></div>
<h2>Start streaming</h2>
<div class="highlight"><pre><span></span><code>ffmpeg -i /dev/video0 -vcodec copy -acodec copy -f flv rtmp://tube.example.com/live …</code></pre></div>
<br>
<a class="btn" href="../send-raspberry-pi-camera-video-stream-to-peertube-live.html#send-raspberry-pi-camera-video-stream-to-peertube-live">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../build-your-own-ide-install-theia-on-fedora.html#build-your-own-ide-install-theia-on-fedora">Build your Own IDE; Install Theia on Fedora</a></h2>
<p>
Posted on Fri 26 March 2021 in <a href="../category/sysadmin.html">sysadmin</a>
&#8226; Tagged with
<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>
</header>
<div>
<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 …</span></code></pre></div>
<br>
<a class="btn" href="../build-your-own-ide-install-theia-on-fedora.html#build-your-own-ide-install-theia-on-fedora">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../install-nvidia-drivers-on-fedora-34.html#install-nvidia-drivers-on-fedora-34">Install Nvidia drivers on fedora 34</a></h2>
@ -180,30 +107,6 @@ reboot
</ul>
<br>
<a class="btn" href="../install-nvidia-drivers-on-fedora-34.html#install-nvidia-drivers-on-fedora-34">Continue reading
</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="../creer-un-site-onion-sur-le-dark-net-avec-tor.html#creer-un-site-onion-sur-le-dark-net-avec-tor">Créer un site .onion sur le Dark Net avec Tor</a></h2>
<p>
Posted on Wed 24 March 2021 in <a href="../category/sysadmin.html">sysadmin</a>
</p>
</header>
<div>
<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>
<br>
<a class="btn" href="../creer-un-site-onion-sur-le-dark-net-avec-tor.html#creer-un-site-onion-sur-le-dark-net-avec-tor">Continue reading
</a>
</div>
</article>
@ -248,7 +151,7 @@ deb https://deb.torproject.org/torproject.org buster …</code></pre></div>
</script>
<a href="https://forge.ortion.xyz/UncleSamulus/blog.ortion.xyz" class="gitea-corner" aria-label="View source on Gitea">
<a href="https://forge.chapril.org/UncleSamulus/blog" class="gitea-corner" aria-label="View source on Gitea">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true" version="1.1" id="svg1474" sodipodi:docname="gitea.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata id="metadata1480">
<rdf:RDF>

@ -1,318 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link rel="stylesheet" type="text/css" href="./theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="./theme/pygments/github.min.css">
<link rel="stylesheet" type="text/css" href="./theme/font-awesome/css/font-awesome.min.css">
<link href="https://blog.ortion.xyz/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="The Blog of a juvenile Geekus biologicus Atom">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta name="author" content="Samuel ORTION" />
<meta name="description" content="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&#39;exemple d&#39;une machine tournant sur debian buster. Installation de Tor Ajout du dépôt vim /etc/apt/sources.list.d/tor.list deb https://deb.torproject.org/torproject.org buster …" />
<meta name="keywords" content="">
<meta property="og:site_name" content="The Blog of a juvenile Geekus biologicus"/>
<meta property="og:title" content="Créer un site .onion sur le Dark Net avec Tor"/>
<meta property="og:description" content="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&#39;exemple d&#39;une machine tournant sur debian buster. Installation de Tor Ajout du dépôt vim /etc/apt/sources.list.d/tor.list deb https://deb.torproject.org/torproject.org buster …"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="./creer-un-site-onion-sur-le-dark-net-avec-tor.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2021-03-24 14:15:00+01:00"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="./author/samuel-ortion.html">
<meta property="article:section" content="sysadmin"/>
<meta property="og:image" content="">
<title>The Blog of a juvenile Geekus biologicus &ndash; Créer un site .onion sur le Dark Net avec Tor</title>
</head>
<body>
<aside>
<div>
<a href=".">
<img src="./theme/img/profile.png" alt="" title="">
</a>
<h1><a href="."></a></h1>
<nav>
<ul class="list">
<li><a href="./pages/about.html#about">About</a></li>
<li><a href="./pages/contact.html#contact">Contact</a></li>
<li><a href="https://samuel.ortion.xyz" target="_blank">website</a></li>
<li><a href="https://forge.ortion.xyz" target="_blank">forge</a></li>
</ul>
</nav>
<ul class="social">
<li><a class="sc-mastodon" href="https://toot.ortion.xyz" target="_blank"><img src="/theme/img/social/mastodon.png"></a></li>
<li><a class="sc-twitter" href="https://twitter.com/SAmULuUus" target="_blank"><img src="/theme/img/social/twitter.png"></a></li>
<li><a class="sc-peertube" href="https://tube.ortion.xyz" target="_blank"><img src="/theme/img/social/peertube.png"></a></li>
</ul>
</div>
</aside>
<main>
<nav>
<a href=".">Home
</a>
<a href="https://blog.ortion.xyz/feeds/all.atom.xml">Atom
</a>
</nav>
<article class="single">
<header>
<h1 id="creer-un-site-onion-sur-le-dark-net-avec-tor">Créer un site .onion sur le Dark Net avec Tor</h1>
<p>
Posted on Wed 24 March 2021 in <a href="./category/sysadmin.html">sysadmin</a>
</p>
</header>
<div>
<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 main
deb-src https://deb.torproject.org/torproject.org buster main
</code></pre></div>
<h3>Import des clés</h3>
<div class="highlight"><pre><span></span><code>wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc <span class="p">|</span> gpg --import
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 <span class="p">|</span> apt-key add
</code></pre></div>
<h3>Mise à jour des dépôts</h3>
<div class="highlight"><pre><span></span><code>apt update
</code></pre></div>
<h3>Installation</h3>
<div class="highlight"><pre><span></span><code>apt install tor
</code></pre></div>
<h2>Configuration de Tor</h2>
<h3>Ouverture des ports</h3>
<div class="highlight"><pre><span></span><code>ufw allow <span class="m">80</span>/tcp
ufw allow <span class="m">443</span>/tcp
ufw allow <span class="m">666</span>/tcp
ufw allow <span class="m">9050</span>/tcp
ufw <span class="nb">enable</span>
</code></pre></div>
<h3>Edition de <code>torrc</code></h3>
<div class="highlight"><pre><span></span><code>vim /etc/tor/torrc
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="n">HiddenServiceDir</span> <span class="o">/</span><span class="k">var</span><span class="o">/</span><span class="n">lib</span><span class="o">/</span><span class="n">tor</span><span class="o">/</span><span class="n">soupe</span><span class="o">-</span><span class="n">a</span><span class="o">-</span><span class="n">l</span><span class="o">.</span><span class="n">onion</span>
<span class="n">HiddenServicePort</span> <span class="mi">80</span> <span class="n">unix</span><span class="p">:</span><span class="o">/</span><span class="k">var</span><span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">tor</span><span class="o">-</span><span class="n">soupe</span><span class="o">-</span><span class="n">a</span><span class="o">-</span><span class="n">l</span><span class="o">.</span><span class="n">onion</span><span class="o">.</span><span class="n">sock</span>
</code></pre></div>
<p>Changez <code>soupe-a-l.onion</code> par le nom de votre dossier racine.</p>
<h3>Démarrer Tor</h3>
<div class="highlight"><pre><span></span><code>systemctl <span class="nb">enable</span> --now tor
</code></pre></div>
<h2>Configuration de Nginx</h2>
<h3>Installation</h3>
<div class="highlight"><pre><span></span><code>apt install nginx php-fpm
</code></pre></div>
<div class="highlight"><pre><span></span><code>vim /etc/nginx/nginx.conf
</code></pre></div>
<p>Dans <code>http {</code></p>
<div class="highlight"><pre><span></span><code><span class="err">server_names_hash_bucket_size 125;</span>
<span class="err">server_tokens off;</span>
</code></pre></div>
<p><code>}</code></p>
<h3>Editer le serveur virtuel nginx</h3>
<div class="highlight"><pre><span></span><code>vim /etc/nginx/sites-available/soupe-a-l.onion
</code></pre></div>
<h3>Copier l'addresse .onion</h3>
<div class="highlight"><pre><span></span><code>cat /var/lib/tor/soupe-a-l.onion/hostname
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="err">bctk5kfctuc33vueakomhe5ohdu2lkvglmnnbtjrc6hyfjkg47oaduid.onion</span>
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="n">server</span> <span class="p">{</span>
<span class="n">listen</span> <span class="n">unix</span><span class="p">:</span><span class="o">/</span><span class="k">var</span><span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">tor</span><span class="o">-</span><span class="n">soupe</span><span class="o">-</span><span class="n">a</span><span class="o">-</span><span class="n">l</span><span class="o">.</span><span class="n">onion</span><span class="o">.</span><span class="n">sock</span><span class="p">;</span>
<span class="n">root</span> <span class="o">/</span><span class="k">var</span><span class="o">/</span><span class="n">lib</span><span class="o">/</span><span class="n">tor</span><span class="o">/</span><span class="n">soupe</span><span class="o">-</span><span class="n">a</span><span class="o">-</span><span class="n">l</span><span class="o">.</span><span class="n">onion</span> <span class="n">bctk5kfctuc33vueakomhe5ohdu2lkvglmnnbtjrc6hyfjkg47oaduid</span><span class="o">.</span><span class="n">onion</span><span class="p">;</span>
<span class="n">server_name</span> <span class="n">soupe</span><span class="o">-</span><span class="n">a</span><span class="o">-</span><span class="n">l</span><span class="o">.</span><span class="n">onion</span><span class="p">;</span>
<span class="n">allow</span> <span class="n">all</span><span class="p">;</span>
<span class="n">index</span> <span class="n">index</span><span class="o">.</span><span class="n">php</span><span class="p">;</span>
<span class="n">location</span> <span class="o">~</span> \<span class="o">.</span><span class="n">php</span><span class="o">$</span> <span class="p">{</span>
<span class="n">include</span> <span class="n">snippets</span><span class="o">/</span><span class="n">fastcgi</span><span class="o">-</span><span class="n">php</span><span class="o">.</span><span class="n">conf</span><span class="p">;</span>
<span class="n">fastcgi_pass</span> <span class="n">unix</span><span class="p">:</span><span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">php</span><span class="o">/</span><span class="n">php7</span><span class="o">.</span><span class="mi">3</span><span class="o"