mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Update 'manual install' instructions with bash<(wget)
This commit is contained in:
parent
d36fc474b0
commit
f966bbfac8
2 changed files with 17 additions and 68 deletions
|
@ -1,44 +1,18 @@
|
|||
# Install YunoHost manually
|
||||
# Installing YunoHost manually
|
||||
|
||||
Once you have access to your server, either directly or by SSH, you can install YunoHost using the install script.
|
||||
Once you have access to a command line on your server (either directly or through SSH), you can install yunohost by running command as root :
|
||||
|
||||
<div class="alert alert-info">
|
||||
<b>Note:</b> The configuration of your services will be overridden, it is thus recommended to install YunoHost on a newly installed Debian system.
|
||||
</div>
|
||||
|
||||
1. Install git
|
||||
```bash
|
||||
sudo apt-get update
|
||||
sudo apt-get install ca-certificates dialog git
|
||||
bash <(wget -q -O- https://install.yunohost.org/)
|
||||
```
|
||||
|
||||
2. Clone the Yunohost install script repository
|
||||
```bash
|
||||
git clone https://github.com/YunoHost/install_script /tmp/install_script
|
||||
```
|
||||
<small>*(If `wget` is not installed on your system, you might need to install it with `apt-get install wget`)*</small>
|
||||
|
||||
3. The root user must have a password set, if it isn't the case, set it (otherwise, the install script fails):
|
||||
```bash
|
||||
sudo passwd root
|
||||
```
|
||||
|
||||
4. Execute the installation script
|
||||
```bash
|
||||
cd /tmp/install_script && sudo ./install_yunohost
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
<p class="text-center">
|
||||
<img src="/images/install_script.png">
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<b>Warning:</b> Apache could already be installed by default on your dedicated server. If it's the case the installation script will fail since YunoHost is using Nginx. You will have to remove *apache2.2* package with the command: ``sudo apt-get autoremove apache2.2`` and execute the script again.
|
||||
</div>
|
||||
Once the installation is finished, you may want to [**proceed to post-installation**](/postinstall)
|
||||
|
||||
---
|
||||
|
||||
*Once the installation is finished, you may want to proceed to post-installation: **[yunohost.org/postinstall](/postinstall)** *
|
||||
**Note for advanced users concerned with the `curl|bash` approach**
|
||||
|
||||
If you strongly object to the `curl|bash` way (and similar commands) of installing software, consider reading ["Is curl|bash insecure?"](https://sandstorm.io/news/2015-09-24-is-curl-bash-insecure-pgp-verified-install) on Sandstom's blog, and possibly [this discussion on Hacker News](https://news.ycombinator.com/item?id=12766350).
|
||||
|
||||
|
|
|
@ -1,43 +1,18 @@
|
|||
# Installer YunoHost manuellement
|
||||
|
||||
Une fois que vous avez accès à votre serveur, directement ou par SSH, vous pouvez installer YunoHost avec le script d’installation.
|
||||
Une fois que vous avez accès à votre serveur (directement ou par SSH), vous pouvez installer YunoHost en executant cette commande en tant que root :
|
||||
|
||||
<div class="alert alert-info">
|
||||
<b>Note :</b> La configuration des services sera écrasée, il est donc recommandé d’installer YunoHost sur un système Debian nouvellement installé.
|
||||
</div>
|
||||
|
||||
1. Installez git
|
||||
```bash
|
||||
sudo apt-get install git dialog
|
||||
bash <(wget -q -O- https://install.yunohost.org/)
|
||||
```
|
||||
|
||||
2. Clonez le dépôt du script d’installation de YunoHost
|
||||
```bash
|
||||
git clone https://github.com/YunoHost/install_script /tmp/install_script
|
||||
```
|
||||
<small>*(Si `wget` n'est pas installé sur votre système, il vous faudra peut-être l'installer avec `apt install wget`)*</small>
|
||||
|
||||
3. L’utilisateur root doit avoir un mot de passe, si ce n’est pas le cas, créez-en un (sinon le script d’installation échoue) :
|
||||
```bash
|
||||
sudo passwd root
|
||||
```
|
||||
|
||||
4. Lancez le script d’installation
|
||||
```bash
|
||||
cd /tmp/install_script && sudo ./install_yunohost
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
<p class="text-center">
|
||||
<img src="/images/install_script.png">
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<b>Attention :</b> il se peut qu’Apache soit déjà installé par défaut sur votre serveur dédié. Si c’est le cas, le script d’installation échouera vu que YunoHost utilise Nginx. Vous aurez à désinstaller le paquet *apache2.2* avec la commande : ``sudo apt-get autoremove apache2.2`` et relancer le script.
|
||||
</div>
|
||||
Une fois l'installation terminée, il vous faudra [**procéder à la post-installation**](/postinstall)
|
||||
|
||||
---
|
||||
|
||||
*Une fois l’installation terminée, vous pouvez procéder à la post-installation : **[yunohost.org/postinstall](/postinstall_fr)** *
|
||||
**Note pour les utilisateurs avancés inquiets à propos de l'approche `curl|bash`**
|
||||
|
||||
Si vous êtes suspicieux de la tendance à utiliser `curl|bash` (ou commandes similaires) pour déployer des logiciels, prenez le temps de lire ["Is curl|bash insecure?"](https://sandstorm.io/news/2015-09-24-is-curl-bash-insecure-pgp-verified-install) sur le blog de Sandstom, et possiblement [cette discussion sur Hacker News](https://news.ycombinator.com/item?id=12766350).
|
||||
|
||||
|
|
Loading…
Reference in a new issue