# YunoHost on USB stick / Rasp. Pi 3 / OpenVPN / DNS / Firewall / Android

**URL:** <https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301>\
**Category:** Advanced use case\
**Tags:** raspberrypi, nextcloud, install, french, english\
**Created:** [November 20, 2018, 3:18pm UTC](https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301 "2018-11-20T15:18:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![i-sam-ten](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/76d3ee/32.png) [@i-sam-ten](https://forum.yunohost.org/u/i-sam-ten)\
**Post date:** [November 20, 2018, 3:18pm UTC](https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301/1 "2018-11-20T15:18:44Z")

</div>

Bonjour,

Voulant me passer de Google pour LineageOS sans Gapps, je voudrais installer YunoHost avec Nextcloud et sans doute 2/3 apps sur un Raspberry Pi 3B.

Ayant conscience que la durée de vie d’une carte (mic)SD peut être raccourci lors de l’utilisation de cette dernière en tant que support d’installation du système, je voulais suivre ce [tuto](http://www.planet-libre.org/?post_id=21555) pour déplacer toutes les partitions excepté /boot sur une clé USB. Le tuto est t’il toujours d’actualité ?

Le Rapsberry Pi sera au cul d’une box RED by SFR (NB6V-MAIN-R3.5.8) fibrée  
Ma principale question c’est que j’aimerai que ‘par défaut’ je ne puisse me connecter au YunoHost que par un VPN depuis l’extérieur (ce qui m’éviterai d’ouvrir des ports sur la box, et apporte une sécurité supplémentaire en quelque sorte) et sur le LAN (ça doit se setup entre autre avec la configuration du pare-feu, DNS, j’imagine) sans VPN.  
Pour ce point, est ce que ce ‘tuto’ est adéquat ? :

> [@Installation tips for installation of OpenVpn on YunoHost](https://forum.yunohost.org/t/installation-tips-for-installation-of-openvpn-on-yunohost/3704/2):
>
> Hi, I don’t have time to do a real tutorial but here are some tips slight_smile Uninstall OpenVPN and remove any subdomain certificate if any. You have to start from scratch ! Create a subdomain on your registar : e.g. vpn.domain.tld with CNAME redirection to Yunohost Create this domain on the admin interface of your Yunohost instance DO NOT INSTALL Let’s Encrypt certificate yet Copy all files in /etc/yunohost/certs/vpn.domain.tld to a new folder, e.g. /etc/yunohost/certs/vpn.d…

J’ai d’autres questions, mais j’ai vu que c’était mieux de se limiter, dans les règles de publication du forum 🙂  
Et j’hésitais à post en catégorie la brique internet, vu que c’est un peu ce qu’elle propose, d’ailleurs j’aimerais à l’avenir connecter le YunoHost à un VPN d’un CHATON de mon agglomération. Mais peut être qu’un double VPN sur un Pi ça va commencer à ce voir. Un pfSense dédié serait plus judicieux.

Merci

* * *

[English]

Hello,

I want to live without Google on my new phone (and other devices), I would like to install YunoHost with Nextcloud and probably 2/3 apps on a Raspberry Pi 3B.

Being aware that the lifetime of a (mic)SD card can be shortened when using it as a system installation support, I wanted to follow this [tuto [FR]](http://www.planet-libre.org/?post_id=21555) to move all partitions except /boot on a USB stick. Is the tutorial still relevant?

The Rapsberry Pi will be connect on the router (Fiber RED SFR ISP).  
My main question is that I would like “by default” I always connect to YunoHost through a VPN from the outside (which would avoid me to open ports on the box, and provide additional security in some way) and from inside LAN without VPN (it must be set up with the firewall, DNS… configuration among other things I imagine).  
For this point, is this tutorial seems ok? :

> [@Installation tips for installation of OpenVpn on YunoHost](https://forum.yunohost.org/t/installation-tips-for-installation-of-openvpn-on-yunohost/3704/2):
>
> Hi, I don’t have time to do a real tutorial but here are some tips slight_smile Uninstall OpenVPN and remove any subdomain certificate if any. You have to start from scratch ! Create a subdomain on your registar : e.g. vpn.domain.tld with CNAME redirection to Yunohost Create this domain on the admin interface of your Yunohost instance DO NOT INSTALL Let’s Encrypt certificate yet Copy all files in /etc/yunohost/certs/vpn.domain.tld to a new folder, e.g. /etc/yunohost/certs/vpn.d…

I have other questions, but I saw that it was better to limit for one topic, in the forum publication rules 🙂

Thank you.

---

<div class="post-metadata">

**Author:** ![arnauld](https://forum.yunohost.org/user_avatar/forum.yunohost.org/arnauld/32/12085_2.png) [@arnauld](https://forum.yunohost.org/u/arnauld)\
**Post date:** [November 21, 2018, 2:20pm UTC](https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301/2 "2018-11-21T14:20:04Z")

</div>

Bonjour,

> Ayant conscience que la durée de vie d’une carte (mic)SD peut être raccourci lors de l’utilisation de cette dernière en tant que support d’installation du système, je voulais suivre ce tuto 4 pour déplacer toutes les partitions excepté /boot sur une clé USB. Le tuto est t’il toujours d’actualité ?

C’est ce que j’ai fait avec Yunohost 3, ça marche bien. Mais je te conseille de faire une installation propre de yunohost, puis déplacer les partitions, puis enfin installer les applications. Car, j’ai eu des problèmes avec des applications déjà installées quand j’ai tout mis sur un disque dur externe.

---

<div class="post-metadata">

**Author:** ![i-sam-ten](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/76d3ee/32.png) [@i-sam-ten](https://forum.yunohost.org/u/i-sam-ten)\
**Post date:** [November 21, 2018, 4:44pm UTC](https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301/3 "2018-11-21T16:44:03Z")

</div>

Oui, j’ai pas encore installer YunoHost en fait, j’attends d’en savoir plus sur comment passer par le VPN, et donc savoir si je dois configurer YunoHost avec un sous domaine genre [vpn.pouet.com](http://vpn.pouet.com)

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [November 22, 2018, 11:46am UTC](https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301/4 "2018-11-22T11:46:34Z")

</div>

> [@i-sam-ten](#):
>
> déplacer toutes les partitions excepté /boot sur une clé USB

Si ta crainte est la durée de vie des cartes SD, alors je ne partirais pas sur une clef USB … Elles aussi ont des durée de vie - même si je ne sais pas à quel point c’est comparable. En tout cas si tu veux faire les choses bien, je partirais plutot sur une “vrai” disque HDD ou SSD.

---

<div class="post-metadata">

**Author:** ![i-sam-ten](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/76d3ee/32.png) [@i-sam-ten](https://forum.yunohost.org/u/i-sam-ten)\
**Post date:** [November 23, 2018, 1:15am UTC](https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301/5 "2018-11-23T01:15:24Z")

</div>

J’avais vu ce post a propos d’install sur clé USB : [ici](https://forum.manjaro.org/t/install-manjaro-onto-a-16-gb-usb-stick/15761/20)  
Mais j’imagine que Nilfs2 ou Btrfs c’est pas possible avec YunoHost ?  
Et on peut modifier les flags de partitions Ext4 pour les options noatime et journal=writeback ? Et serait-ce sans danger ?

Sinon [ce genre de disque dur](https://fr.aliexpress.com/item/KingDian-Date-point-Portable-SSD-USB-3-0-120-gb-240-gb-500-gb-Lecteur-tat/32843026641.html?spm=a2g0w.search0104.3.2.71b81955WZ2uaW&ws_ab_test=searchweb0_0%2Csearchweb201602_2_10065_10068_319_10892_317_5734611_5734811_10696_5734711_10924_453_10084_454_10083_10618_10920_10921_10304_10922_10307_10820_10821_537_10302_536_10843_5730111_10059_10884_10887_100031_321_322_10103_5734511_5729111_10930-5729111%2Csearchweb201603_51%2CppcSwitch_0&algo_pvid=043ed8d6-a32c-40dc-b3fd-ff0450b65a22&algo_expid=043ed8d6-a32c-40dc-b3fd-ff0450b65a22-0) doit être une meilleur solution je suppose. Même si USB 2.0 sur le Rasp. Pi

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [January 18, 2023, 8:20pm UTC](https://forum.yunohost.org/t/yunohost-on-usb-stick-rasp-pi-3-openvpn-dns-firewall-android/6301/6 "2023-01-18T20:20:50Z")

</div>

Closed on January 18, 2023, 8:20pm UTC


