Outils pour utilisateurs

Outils du site


yunohost_dans_lxc

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
yunohost_dans_lxc [2020/01/08 21:22] – [Reverse Proxy Nginx] simonyunohost_dans_lxc [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1
Ligne 1: Ligne 1:
-====== Un conteneur LXC pour Yunohost ====== 
  
-__Objectif :__ Migrer le serveur (VPS) de duniter.be vers un conteneur LXC sur un serveur plus costaud. 
- 
-(Attention, Yunohost n'est actuellement disponible que pour Debian Stretch et pas encore pour Debian Buster!) 
-<code bash> 
-# lxc-create -t download -n yunohost -- --dist debian --release stretch --arch amd64 
- 
- 
-# cat /var/lib/lxc/yunohost/config  
-lxc.start.auto = 1 
- 
-# Distribution configuration 
-lxc.include = /usr/share/lxc/config/common.conf 
-lxc.arch = linux64 
- 
-# Container specific configuration 
-lxc.rootfs.path = dir:/var/lib/lxc/yunohost/rootfs 
-lxc.uts.name = yunohost 
- 
-# Network configuration 
-lxc.net.0.type = veth 
-lxc.net.0.link = lxcbr0 
-lxc.net.0.flags = up 
-lxc.net.0.hwaddr = 00:16:3e:9e:94:00 
- 
-# cat /etc/lxc/dnsmasq.conf  
-(...) 
-dhcp-host=yunohost,10.0.3.6 
- 
-# systemctl restart lxc-net 
- 
-# lxc-start yunohost 
- 
-# lxc-ls -f 
-NAME       STATE   AUTOSTART GROUPS IPV4     IPV6 UNPRIVILEGED  
-yunohost   RUNNING 1              10.0.3.6 -    false         
-</code> 
- 
-===== Installation de Yunohost ===== 
-[[https://yunohost.org/#/install_manually|Documentation : Installing YunoHost manually]] 
- 
-<code bash> 
-# lxc-attach yunohost 
- 
-root@yunohost:/# apt install curl 
- 
-root@yunohost:/# curl https://install.yunohost.org | bash 
-(...) 
-[ OK ] YunoHost installation completed ! 
-=============================================================================== 
-You should now proceed with Yunohost post-installation. This is where you will 
-be asked for : 
-  - the main domain of your server ; 
-  - the administration password. 
-(...) 
-</code> 
- 
-On lance la "[[https://yunohost.org/#/postinstall|post-installation]]" 
-<code bash> 
-root@yunohost:/# yunohost tools postinstall 
-Domaine principal : artanux.be 
-Vous êtes maintenant sur le point de définir un nouveau mot de passe d’administration. Le mot de passe doit comporter au moins 8 caractères – bien qu’il soit recommandé d’utiliser un mot de passe plus long (c’est-à-dire une phrase secrète) et/ou d’utiliser différents types de caractères (majuscules, minuscules, chiffres et caractères spéciaux). 
-Nouveau mot de passe d’administration :  
-Confirmez : nouveau mot de passe d’administration :  
-Info : L'installation de YunoHost est en cours … 
-</code> 
- 
- 
-===== Reverse Proxy Nginx ===== 
-Sur le serveur sur lequel tourne les conteneurs [[LXC]] que j'utilise, j'ai installé [[nginx]] comme reverse proxy. 
-J'utilise le nom de domaine artanux.be pour cet usage. 
- 
-<code bash> 
-# vim /etc/nginx/sites-available/artanux.be 
- 
-# ln -s /etc/nginx/sites-available/artanux.be /etc/nginx/sites-enabled/ 
-</code> 
yunohost_dans_lxc.1578518526.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)