doc/install_on_raspberry.md

93 lines
2.8 KiB
Markdown
Raw Normal View History

2014-05-14 19:33:28 +02:00
# Install YunoHost on a Raspberry Pi
*Find other ways to install YunoHost **[here](/install)**.*
2016-11-04 11:27:45 +01:00
## Pre-requisite
<img src="/images/Raspberry_Pi_2_Model_B_v1.1_front_angle_new.jpg" width=350>
<img src="/images/micro-sd-card.jpg">
2014-06-04 22:12:46 +02:00
- A Raspberry Pi model 1, 2 or 3
2017-01-15 23:20:49 +01:00
- An SD card: **4GB** capacity (or more) and **class10** speed rate is highly recommended
2016-11-04 11:27:45 +01:00
- An other computer to read this guide and access to your Raspberry Pi
- A screen and a keyboard are recommended to control your Raspberry Pi if a problem occurs.
- A [reasonable ISP](/isp), preferably with a good and unlimited upstream bandwidth
- **YunoHost Raspberry Pi images**, available here:
2016-11-04 11:27:45 +01:00
build.yunohost.org
2016-11-04 11:27:45 +01:00
There are two ways of installing, depending on if you can start your server from scratch or not.
2014-05-14 19:33:28 +02:00
2014-06-05 01:21:09 +02:00
---
2014-05-14 19:33:28 +02:00
2016-11-04 11:27:45 +01:00
## Installation using an image
2014-05-15 09:56:02 +02:00
2014-06-05 01:33:27 +02:00
<a class="btn btn-lg btn-default" href="/copy_image">1. Copy image to the SD card</a>
2014-05-15 09:56:02 +02:00
2014-06-05 01:33:27 +02:00
<a class="btn btn-lg btn-default" href="/plug_and_boot">2. Plug & boot</a>
2014-05-15 09:56:02 +02:00
2014-06-05 01:33:27 +02:00
<a class="btn btn-lg btn-default" href="/postinstall">3. Post-install</a>
2014-05-14 19:33:28 +02:00
2016-11-04 11:27:45 +01:00
## Manual installation
Follow these steps if you can't start from scratch and simply use an image. Note - Yunohost installation is different if you have a Raspberry Pi Zero, be careful!
1. Install git
```bash
sudo apt-get install git
```
2. Clone the Yunohost install script repository
```bash
git clone https://github.com/YunoHost/install_script /tmp/install_script
```
3. The root user must have a password set, if it isn't the case, set it (whithout the install script failed):
```bash
sudo passwd root
```
4. Update the Pi:
```bash
apt-get update ; apt-get dist-upgrade -y ; apt-get install rpi-update ; rpi-update ; reboot`
```
This will upgrade the Pi, then reboot.
<div class="alert alert-info">
<b>Raspberry Pi Zero users:</b> follow these specific steps for a successfull installation.
</div>
0.1 Install metronome manually:
```bash
apt-get install -y ssl-cert lua-event lua-expat lua-socket lua-sec lua-filesystem
wget https://github.com/YunoHost/metronome/archive/debian/3.7.9+33b7572-1.zip
unzip 3.7.9+33b7572-1.zip
cd metronome-debian-3.7.9-33b7572-1
dpkg-buildpackage -rfakeroot -uc -b -d
cd ..
dpkg -i metronome_3.7.9+33b7572-1_armhf.deb
apt-mark hold metronome
```
4. Execute the installation script
```bash
cd /tmp/install_script && sudo ./install_yunohost
```
2014-05-14 19:33:28 +02:00
---
2016-11-04 11:27:45 +01:00
### Recommended after post-installation
2014-06-21 22:54:10 +02:00
2015-03-15 21:13:50 +01:00
* Connect via SSH: **root@IP.OF.RPI** (password: **yunohost**)
* Change root password: `passwd root`
2014-09-25 11:43:31 +02:00
* Upgrade system: `apt-get update && apt-get dist-upgrade && rpi-update`
2016-11-04 11:27:45 +01:00
* Configure the language, keyboard layout and timezone with the **raspi-config** tool
2014-07-02 22:36:06 +02:00
2014-06-21 22:54:10 +02:00
---
2015-12-13 12:50:53 +01:00
#### Build image
* [Create a Raspberry Pi image](/build_arm_image_en)
2016-11-04 11:27:45 +01:00
***If you need help during one of these steps, do not hesitate to use [our support tools](/support).***