doc/pages/01.administrate/02.install/04.rpi/install_on_raspberry.md

61 lines
3.1 KiB
Markdown
Raw Normal View History

2014-05-14 19:33:28 +02:00
# Install YunoHost on a Raspberry Pi
2017-01-29 17:30:54 +01:00
*Find all the ways to install YunoHost **[here](/install)**.*
2014-05-14 19:33:28 +02:00
2017-01-29 17:30:54 +01:00
<center>
<img src="/images/raspberrypi.jpg" width=300 style="padding-bottom:20px">
<img src="/images/micro-sd-card.jpg">
2017-01-29 17:30:54 +01:00
</center>
2014-06-04 22:12:46 +02:00
2017-01-29 17:30:54 +01:00
<div class="alert alert-info" markdown="1">
Before setting up a server at home, it is recommended that you know the [possible limitations imposed by your ISP](/isp). If they are too restrictive, you might consider using a VPN to bypass them.
2017-01-29 17:30:54 +01:00
</div>
## Pre-requisites
2020-09-22 22:27:52 +02:00
- A Raspberry Pi 2, 3 or 4 (RPi 0 and 1 may work but require some tweaking... see [this issue](https://github.com/YunoHost/issues/issues/1423)) ;
- An microSD card: **8GB** capacity (at least) and **Class 10** speed rate are highly recommended (like the [Transcend 300x](http://www.amazon.fr/Transcend-microSDHC-adaptateur-TS32GUSDU1E-Emballage/dp/B00CES44EO)) ;
- A power supply (either an adapter or a MicroUSB cable)i ;
- An ethernet cable (RJ-45) to connect your Raspberry Pi to your router. (Raspberry Pi Zero users can connect the Pi using an OTG cable, [Wifi dongle](https://core-electronics.com.au/tutorials/raspberry-pi-zerow-headless-wifi-setup.html).) ;
- A [reasonable ISP](/isp), preferably with a good and unlimited upload bandwidth.
2014-05-14 19:33:28 +02:00
2014-06-05 01:21:09 +02:00
---
2014-05-14 19:33:28 +02:00
## Install with the pre-installed image (recommended)
2017-03-06 21:41:16 +01:00
<a class="btn btn-lg btn-default" href="/images">0. Download the pre-installed image for Raspberry Pi</a>
2014-05-15 09:56:02 +02:00
<a class="btn btn-lg btn-default" href="/burn_or_copy_iso">1. Flash the SD card with the image</a>
2014-05-15 09:56:02 +02:00
2019-09-06 17:42:21 +02:00
<a class="btn btn-lg btn-default" href="/plug_and_boot">2. Power up the board and let it boot</a>
2014-05-15 09:56:02 +02:00
<a class="btn btn-lg btn-default" href="/ssh">3. Connect to your server with your web browser</a>
2014-05-14 19:33:28 +02:00
2019-09-06 17:42:21 +02:00
<a class="btn btn-lg btn-default" href="/postinstall">4. Proceed with the initial configuration (post-installation)</a>
2016-11-04 11:27:45 +01:00
2017-01-29 17:30:54 +01:00
---
2016-11-04 11:27:45 +01:00
2017-03-06 21:41:16 +01:00
## Manual installation (advanced users)
<div class="alert alert-warning" markdown="1">
2017-03-06 21:41:16 +01:00
We do not recommend the manual installation because it is more technical and longer than using the pre-installed image. This documentation is only intended for advanced users.
</div>
2016-11-04 11:27:45 +01:00
<div class="alert alert-warning" markdown="1">
2020-09-22 22:27:52 +02:00
The latest Raspberry Pi OS images requires a screen and a keyboard, as it is no longer possible to connect directly to the Raspberry through SSH. Nevertheless it is possible to re-enable SSH at boot: before starting your Raspberry, put in the boot partition of the SD card an empty file named `ssh` (without extension).
</div>
2016-11-04 11:27:45 +01:00
2020-09-22 22:27:52 +02:00
0. Install Raspberry Pi OS Lite on the SD card ([instructions](https://www.raspberrypi.org/downloads/raspberry-pi-os/)). The Raspberry Pi OS Lite can be found here: https://downloads.raspberrypi.org/raspbian_lite/images/
2017-01-29 17:30:54 +01:00
2017-03-06 21:41:16 +01:00
1. Connect to your Raspberry Pi with the user `pi`. Set the root password with
2016-11-04 11:27:45 +01:00
```bash
sudo passwd root
```
2020-09-22 22:27:52 +02:00
2. Edit `/etc/ssh/sshd_config` to allow SSH login for root, by replacing `PermitRootLogin without-password` with `PermitRootLogin yes`. Reload the SSH daemon with `service ssh reload`.
2016-11-04 11:27:45 +01:00
2017-03-06 21:41:16 +01:00
3. Disconnect and reconnect, this time as root.
2016-11-04 11:27:45 +01:00
2017-03-06 21:41:16 +01:00
4. Then follow the <a href="/install_manually">generic manual install procedure</a>.
2014-07-02 22:36:06 +02:00