[N.eko] Un navigateur virtuel dans votre navigateur

Je viens de trouver une app intéressante pour YunoHost. Elle s’appelle N.eko. C’est un navigateur virtuel contenu dans un conteneur Docker qu’on peut utliliser à plusieurs dans plusieurs autres navigateurs (à l’instar d’Invited ou de rabb.it.
Je vais prochainement la packager si je peux. Toute annonce quand au développement d l’app sera ici.

Voici aussi le site web : https://n.eko.moe/.

Je me permets de déplacer ton fil dans une catégorie plus adaptée. Les fils dans la section Announcements suivent un canevas bien précis pour présenter les apps déjà disponibles. :wink:

Voici les premiers logs que j’ai obtenu en installant neko via docker et en tentant de le mettre en up via docker compose (j’ai aussi fais une app redirect vers le port custom 2006 et ouvert ce même port via le pare-feu)

admin@stylix-vps:~/neko $ sudo ufw allow 80/tcp # if you have ufw installed/enabled
sudo: ufw: command not found
admin@stylix-vps:~/neko $ sudo ufw allow 59000:59100/udp
sudo: ufw: command not found
admin@stylix-vps:~/neko $ wget https://raw.githubusercontent.com/nurdism/neko/master/.examples/simple/docker-compose.yaml
--2021-04-28 08:02:30--  https://raw.githubusercontent.com/nurdism/neko/master/.examples/simple/docker-compose.yaml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 319 [text/plain]
Saving to: ‘docker-compose.yaml.1’

docker-compose.yaml.1                     100%[=====================================================================================>]     319  --.-KB/s    in 0s

2021-04-28 08:02:30 (4.95 MB/s) - ‘docker-compose.yaml.1’ saved [319/319]

admin@stylix-vps:~/neko $ sudo docker-compose up -d
Creating network "neko_default" with the default driver
Pulling neko (nurdism/neko:firefox)...
firefox: Pulling from nurdism/neko
804555ee0376: Pull complete
f3b26a078a5f: Pull complete
c7e3e1771f69: Pull complete
01b5d8f1086c: Pull complete
61bf5b264b09: Pull complete
95369768d555: Pull complete
7bfe74d8b679: Pull complete
68ce98038604: Pull complete
10efbff0f24f: Pull complete
d899a33175af: Pull complete
2ab7756db6a1: Pull complete
1019839afc2b: Pull complete
6bff0ee4124c: Pull complete
1703d7743579: Pull complete
71e3127fa99a: Pull complete
050a3eb4e0d5: Pull complete
Digest: sha256:a191ca218b72f19da9e111c16312c6209bbd8e5e744dee657920214dca665354
Status: Downloaded newer image for nurdism/neko:firefox
Creating neko_neko_1 ...
Creating neko_neko_1 ... error

ERROR: for neko_neko_1  Cannot start service neko: driver failed programming external connectivity on endpoint neko_neko_1 (673d7c18a52f1d37757595f3765046462a6e3ee3d94927fc5fd0190fa1e6ebee): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

ERROR: for neko  Cannot start service neko: driver failed programming external connectivity on endpoint neko_neko_1 (673d7c18a52f1d37757595f3765046462a6e3ee3d94927fc5fd0190fa1e6ebee): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use
ERROR: Encountered errors while bringing up the project.
admin@stylix-vps:~/neko $ sudo nano docker-compose.yaml
admin@stylix-vps:~/neko $ nano docker-compose.yaml
admin@stylix-vps:~/neko $ sudo docker-compose up -d
Recreating neko_neko_1 ...
Recreating neko_neko_1 ... error

ERROR: for neko_neko_1  Cannot start service neko: driver failed programming external connectivity on endpoint neko_neko_1 (3814670dd2cb873000d72c8466144db7d652251bc18ec40e1b3a35198efaabd1): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

ERROR: for neko  Cannot start service neko: driver failed programming external connectivity on endpoint neko_neko_1 (3814670dd2cb873000d72c8466144db7d652251bc18ec40e1b3a35198efaabd1): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use
ERROR: Encountered errors while bringing up the project.
admin@stylix-vps:~/neko $ nano docker-compose.yaml
admin@stylix-vps:~/neko $ sudo docker-compose up -d
Removing neko_neko_1
Recreating 4f2525bde2c9_neko_neko_1 ... done
admin@stylix-vps:~/neko $ ping localhost:2006
ping: socket: Operation not permitted
admin@stylix-vps:~/neko $ sudo ping localhost:2006
ping: localhost:2006: Name or service not known
admin@stylix-vps:~/neko $ sudo ping 127.0.0.1:2006
ping: 127.0.0.1:2006: Name or service not known

Les commandes ufw ne sont pas nécessaires, car il faut changer les ports utilisés par le conteneur. Le port 80 est utilisé par NGINX du côté de Yunohost par exemple. C’est ensuite l’app Redirect qui fait le lien entre le localhost:PORT et le navigateur.

D’ailleurs, tu ne peux pas ping un port précis. Le mieux c’est de faire un curl avec l’adresse en local.

Quand j’essaye de lance la commande de création du conteneur, il émet 2 erreurs :

Removing neko_neko_1
Recreating 2b1fa8ad1b47_neko_neko_1 ...
Recreating 2b1fa8ad1b47_neko_neko_1 ... error

ERROR: for 2b1fa8ad1b47_neko_neko_1  Cannot start service neko: driver failed programming external connectivity on endpoint neko_neko_1 (a73ef02a91994395d5ce5707367948ddb786ff7e2b9b9d937e2f5a43d00f1ef8): Error starting userland proxy: listen udp4 0.0.0.0:59033: bind: address already in use

ERROR: for neko  Cannot start service neko: driver failed programming external connectivity on endpoint neko_neko_1 (a73ef02a91994395d5ce5707367948ddb786ff7e2b9b9d937e2f5a43d00f1ef8): Error starting userland proxy: listen udp4 0.0.0.0:59033: bind: address already in use
ERROR: Encountered errors while bringing up the project.

Bon, maintenant, ça semblerait marcher mais le port choisi lors de la config dit que la connexion est refusée :

admin@stylix-vps:~/neko $ sudo docker-compose up -d
Removing neko_neko_1
Recreating 2b1fa8ad1b47_neko_neko_1 ... done
admin@stylix-vps:~/neko $ sudo nano docker-compose.yaml
admin@stylix-vps:~/neko $ curl localhost:64
curl: (56) Recv failure: Connection reset by peer
admin@stylix-vps:~/neko $ curl localhost:64
curl: (56) Recv failure: Connection reset by peer
admin@stylix-vps:~/neko $ curl localhost:64
curl: (56) Recv failure: Connection reset by peer
admin@stylix-vps:~/neko $ curl localhost:64
curl: (56) Recv failure: Connection reset by peer
admin@stylix-vps:~/neko $ curl localhost:64
curl: (56) Recv failure: Connection reset by peer
admin@stylix-vps:~/neko $ curl localhost:64
curl: (52) Empty reply from server
admin@stylix-vps:~/neko $ curl localhost:64
curl: (7) Failed to connect to localhost port 64: Connection refused

Même après avoir ouvert le port sur le pare-feu (TCP et UDP) :

admin@stylix-vps:~/neko $ curl localhost:64
curl: (7) Failed to connect to localhost port 64: Connection refused