34 KiB
title | template | taxonomy | never_cache_twig | twig_first | process | page-toc | routes | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Install YunoHost | docs |
|
true | true |
|
|
|
{% set image_type = 'YunoHost' %} {% set arm, at_home, regular, rpi34, rpi012, show_legacy_arm_menu, arm_sup, arm_unsup, vps, vps_debian, vps_ynh, virtualbox, wsl, internetcube = false, false, false, false, false, false, false, false, false, false, false, false, false, false %} {% set hardware = uri.param('hardware') %}
{% if hardware == 'regular' %} {% set regular = true %} {% elseif hardware == 'internetcube' %} {% set arm, arm_sup, internetcube = true, true, true %} {% set image_type = 'Internet Cube' %} {% set show_legacy_arm_menu = true %} {% elseif hardware == 'rpi34' %} {% set arm, rpi34 = true, true %} {% elseif hardware == 'rpi012' %} {% set arm, arm_unsup, rpi012 = true, true, true %} {% set image_type = 'Raspberry Pi OS Lite (32-bit, Bullseye)' %} {% elseif hardware == 'arm_sup' %} {% set arm, arm_sup = true, true %} {% set show_legacy_arm_menu = true %} {% elseif hardware == 'arm' %} {% set arm, arm_unsup = true, true %} {% set image_type = 'Armbian' %} {% elseif hardware == 'arm_unsup' %} {% set arm, arm_unsup = true, true %} {% set show_legacy_arm_menu = true %} {% set image_type = 'Armbian' %} {% elseif hardware == 'vps_debian' %} {% set vps, vps_debian = true, true %} {% elseif hardware == 'vps_ynh' %} {% set vps, vps_ynh = true, true %} {% elseif hardware == 'virtualbox' %} {% set at_home, virtualbox = true, true %} {% elseif hardware == 'wsl' %} {% set wsl = true %} {% endif %}
{% if arm or regular %} {% set at_home = true %} {% endif %}
Select the hardware on which you want install YunoHost : [div class="flex-container"]
[div class="flex-child hardware{%if virtualbox %} active{% endif %}"] [figure caption="VirtualBox"][/figure] [/div]
[div class="flex-child hardware{%if rpi012 or rpi34 %} active{% endif %}"] [figure caption="Raspberry Pi"][/figure] [/div]
[div class="flex-child hardware{%if arm_sup or (arm_unsup and not rpi012) or internetcube %} active{% endif %}"] [figure caption="ARM board"][/figure] [/div]
[div class="flex-child hardware{%if regular %} active{% endif %}"] [figure caption="Regular computer"][/figure] [/div]
[div class="flex-child hardware{%if wsl %} active{% endif %}"] [figure caption="WSL"][/figure] [/div]
[div class="flex-child hardware{%if vps_debian or vps_ynh %} active{% endif %}"] [figure caption="Remote server"][/figure] [/div]
[/div] [div class="flex-container pt-2"]
{% if rpi012 or rpi34 %} [div class="flex-child hardware{%if rpi34 %} active{% endif %}"] [figure caption="Raspberry Pi 3 or 4"][/figure] [/div]
[div class="flex-child hardware{%if rpi012 %} active{% endif %}"] [figure caption="Raspberry Pi 0, 1 or 2"][/figure] [/div]
{% elseif show_legacy_arm_menu %}
[div class="flex-child hardware{%if internetcube %} active{% endif %}"] [figure caption="Internet cube With VPN"][/figure] [/div]
[div class="flex-child hardware{%if arm_sup and not internetcube %} active{% endif %}"] [figure caption="Olinuxino lime1&2 or Orange Pi PC+"][/figure] [/div]
[div class="flex-child hardware{%if arm_unsup %} active{% endif %}"] [figure caption="Others boards"][/figure] [/div] {% elseif vps_debian or vps_ynh %}
[div class="flex-child hardware{%if vps_debian %} active{% endif %}"] [figure caption="VPS or dedicated server with Debian 11"][/figure] [/div]
[div class="flex-child hardware{%if vps_ynh %} active{% endif %}"] [figure caption="VPS or dedicated server with YunoHost pre-installed"][/figure] [/div]
{% endif %}
[/div]
{% if hardware != '' %}
{% if wsl %} !! This setup is mainly meant for local testing by advanced users. Due to limitations on WSL's side (changing IP address, notably), selfhosting from it can be tricky and will not be described here. {% endif %}
[fa=list-alt /] Pre-requisites
{% if regular %}
- A x86-compatible hardware dedicated to YunoHost: laptop, nettop, netbook, desktop with 512MB RAM and 16GB capacity (at least) {% elseif rpi34 %}
- A Raspberry Pi 3 or 4 {% elseif rpi012 %}
- A Raspberry Pi 0, 1 or 2 with at least 512MB RAM {% elseif internetcube %}
- An Orange Pi PC+ or an Olinuxino Lime 1 or 2
- A VPN with a dedicated public IP and a
.cube
file {% elseif arm_sup %} - An Orange Pi PC+ or an Olinuxino Lime 1 or 2 {% elseif arm_unsup %}
- An ARM board with at least 512MB RAM {% elseif vps_debian %}
- A dedicated or virtual private server with Debian 11 (Bullseye) (with kernel >= 3.12) preinstalled, 512MB RAM and 16GB capacity (at least) {% elseif vps_ynh %}
- A dedicated or virtual private server with YunoHost preinstalled, 512MB RAM and 16GB capacity (at least) {% elseif virtualbox %}
- An x86 computer with VirtualBox installed and enough RAM capacity to be able to run a small virtual machine with 1024MB RAM and 8GB capacity (at least) {% endif %} {% if arm %}
- A power supply (either an adapter or a MicroUSB cable) for your board;
- A microSD card: 16GB capacity (at least), class "A1" highly recommended (such as this SanDisk A1 card); {% endif %} {% if regular %}
- A USB stick with at least 1GB capacity OR a standard blank CD {% endif %} {% if wsl %}
- Windows 10 and above
- Administration rights
- Windows Subsystem for Linux, installed from the Optional Features menu of Windows
- Recommended: Windows Terminal (Preview) app, installed from the Microsoft Store. Much better than the standard Terminal, as it offers shortcuts to the WSL distros. {% endif %} {% if at_home %}
- A reasonable ISP, preferably with a good and unlimited upstream bandwidth {% if not virtualbox %}
- An ethernet cable (RJ-45) to connect your server to your router. {% if rpi012 %} (Or, for Raspberry Pi Zero : and USB OTG or a wifi Dongle) {% endif %} {% endif %}
- A computer to read this guide, flash the image and access your server. {% else %}
- A computer or a smartphone to read this guide and access your server. {% endif %}
{% if virtualbox %} ! N.B. : Installing YunoHost in a VirtualBox is usually intended for testing or development. It is not convenient to run an actual server on the long-term, because the machine it's installed on probably won't be up 24/7, and because Virtualbox adds an additional layer of complexity in exposing the machine to the Internet. {% endif %}
{% if wsl %}
Introduction
WSL is a nice feature of Windows 10, making Linux pseudo-distributions available through command line. Let's say pseudo, because even though they are not really like virtual machines, they rely on virtualization capacities that make their integration with Windows almost seamless. Docker for Windows can now rely on WSL instead of Hyper-V, for example.
! Bear in mind, this setup itself is not a container of any kind. If something breaks, there is no rollback capability. ! You may need to delete the Debian distro altogether and restore it whole.
Install Debian 11
Let's install YunoHost into its own distro, not altering the default one. In a PowerShell terminal:
# Let's go in your home directory and prepare the working directories
cd ~
mkdir -p WSL\YunoHost
# Download the Debian appx package and unzip it
curl.exe -L -o debian.zip https://aka.ms/wsl-debian-gnulinux
Expand-Archive .\debian.zip -DestinationPath .\debian
# Import the Debian base into a new distro
wsl --import YunoHost ~\WSL\YunoHost ~\debian\install.tar.gz --version 2
# Cleanup
rmdir .\debian -R
You can now access it: run wsl.exe -d YunoHost
It is under Debian 9 Stretch, so let's upgrade it:
# In WSL
sudo sed -i 's/stretch/bullseye/g' /etc/apt/sources.list`
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
Prevent WSL from tweaking configuration files
Edit /etc/wsl.conf
and put the following code in it:
[network]
generateHosts = false
generateResolvConf = false
Force the use of iptables-legacy
Somehow the YunoHost post-installation does not like nf_tables
, the new software replacing iptables
.
We can still explicitely use the good ol' iptables
though:
# In WSL
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
Install Systemd
Debian on WSL does not have systemd
, a service configuration software.
This is a key element for YunoHost, and for any decent Debian distro (seriously MS, what the heck). Let's install it:
- Install dotNET runtime:
# In WSL
wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt update
sudo apt install -y apt-transport-https
sudo apt update
sudo apt install -y dotnet-sdk-3.1
- Install Genie:
# In WSL
# Add their repository
echo "deb [trusted=yes] https://wsl-translinux.arkane-systems.net/apt/ /" > /etc/apt/sources.list.d/wsl-translinux.list
# Install Genie
sudo apt update
sudo apt install -y systemd-genie
Install YunoHost
# In WSL
# Let's switch to the root user, if you were not already
sudo su
# Initialize the Genie bottle to have systemd running
genie -s
# Your hostname should have been appended with "-wsl"
# Install YunoHost
curl https://install.yunohost.org | bash -s -- -a
Access the command line
Always call genie -s
while starting your distro.
wsl -d YunoHost -e genie -s
Backup and restore the distro
Make your first distro backup
As said before, there is no rollback capability. So let's export your fresh distro. In PowerShell:
cd ~
wsl --export YunoHost .\WSL\YunoHost.tar.gz
In case of crash, delete and restore the whole distro
cd ~
wsl --unregister YunoHost
wsl --import YunoHost .\WSL\YunoHost .\WSL\YunoHost.tar.gz --version 2
{% endif %}
{% if vps_ynh %}
YunoHost VPS providers
Here are some VPS providers supporting YunoHost natively :
[div class="flex-container"]
[div class="flex-child"] [figure caption="Alsace Réseau Neutre - FR"][/figure] [/div] [div class="flex-child"] [figure caption="FAImaison - FR"][/figure] [/div] [div class="flex-child"] [figure caption="ECOWAN - FR"][/figure] [/div] [/div] {% endif %}
{% if at_home %}
[fa=download /] Download the {{image_type}} image
{% if rpi012 %} ! Support for Raspberry Pi 0, 1 and 2 is unfortunately slowly dropping : building fresh images is complex, and RPi 0, 1 and 2 are ARM-32bit systems which will get more and more deprecated over time. Our pre-installed images are quite old. We recommend instead to download the official Raspberry Pi OS Lite (32-bit, Bullseye) and installing YunoHost on top using similar instructions as for other ARM boards {% endif %}
{% if virtualbox or regular %} !!! If your host OS is 32 bits, be sure to download the 32-bit image. {% elseif arm_unsup and not rpi012 %} [fa=external-link] Download the image for your board on Armbian's website
!!! N.B.: you should download the image Armbian Bullseye. {% endif %}
!!! If you wish to check the validity of our signed images, you can download our public key.
{% if internetcube or arm_sup %} ! Current images are from Debian Buster (YunoHost v4.x) and will require that you perform a manual apt update command in SSH or CLI to continue updating. ! Answer Yes to the warning about switching from stable to oldstable. {% endif %}
{% if not virtualbox %}
{% if arm %}
Flash the {{image_type}} image
{% else %}
Flash the YunoHost image
{% endif %}
Now that you downloaded the image of {{image_type}}, you should flash it on {% if arm %}a microSD card{% else %}a USB stick or a CD/DVD.{% endif %}
[ui-tabs position="top-left" active="0" theme="lite"] [ui-tab title="(Recommended) With Etcher"]
Download Etcher for your operating system and install it.
Plug your {% if arm %}SD card{% else %}USB stick{% endif %}, select your image and click "Flash"
[/ui-tab] [ui-tab title="With USBimager"]
Download USBimager for your operating system and install it.
Plug your {% if arm %}SD card{% else %}USB stick{% endif %}, select your image and click "Write"
[/ui-tab] [ui-tab title="With dd"]
If you are on GNU/Linux / macOS and know your way around command line, you may also flash your USB stick or SD card with dd
. You can identify which device corresponds to your USB stick or SD card with fdisk -l
or lsblk
. A typical SD card name is something like /dev/mmcblk0
. BE CAREFUL and make sure you got the right name.
Then run :
# Replace /dev/mmcblk0 if the name of your device is different...
dd if=/path/to/yunohost.img of=/dev/mmcblk0
[/ui-tab] {% if regular %} [ui-tab title="Burning a CD/DVD"] For older devices, you might want to burn a CD/DVD. The software to use depends on your operating system.
-
On Windows, use ImgBurn to write the image file on the disc
-
On macOS, use Disk Utility
-
On GNU/Linux, you have plenty of choices, like Brasero or K3b [/ui-tab] [ui-tab title="Using Ventoy"] Ventoy will be useful if you can't sucessfully boot the YunoHost image using the other methods.
Ventoy is a nice tool that makes it really easy to put multiple linux images on a USB stick. When the computer refuses to boot from an image on a usb stick, Ventoy will usually be able to boot it anyway!
- Install Ventoy on the USB stick. Refer to the install instructions.
- This will create 2 partitions on the stick.
- Using your favorite file explorer app, copy the YunoHost image file on the big
Ventoy
partition (not "VTOYEFI")- Don't use Balena Etcher, USBImager or
dd
for this!
- Don't use Balena Etcher, USBImager or
Later, when you'll boot the computer using this usb stick, Ventoy will appear and will list the images on the USB stick. Select the YunoHost image, then select GRUB2 launch option (or use whichever works for your computer 😉) [/ui-tab] {% endif %} [/ui-tabs]
{% else %}
Create a new virtual machine
! It's okay if you can only have 32-bit versions, just be sure that you downloaded the 32-bit image previously.
Tweak network settings
! This step is important to properly expose the virtual machine on the network
Go to Settings > Network:
- Select
Bridged adapter
- Select your interface's name: wlan0 if you are connected wirelessly, or eth0 otherwise.
{% endif %}
{% if arm %}
[fa=plug /] Power up the board
- Plug the ethernet cable (one side on your main router, the other on your board).
- For advanced users willing to configure the board to connect to WiFi instead, see for example here (or here prior to YunoHost12/bookworm.
- Plug the SD card in your board
- (Optional) You can connect a screen+keyboard directly on your board if you want to troubleshoot the boot process or if you're more comfortable to "see what happens" or want a direct access to the board.
- Power up the board
- Wait a couple minutes while the board autoconfigure itself during the first boot
- Make sure that your computer (desktop/laptop) is connected to the same local network (i.e. same internet box) as your server.
{% elseif virtualbox %}
[fa=plug /] Boot up the virtual machine
Start the virtual machine after selecting the YunoHost image.
! If you encounter the error "VT-x is not available", you probably need to enable Virtualization in the BIOS of your computer.
{% else %}
[fa=plug /] Boot the machine on your USB stick
- Plug the ethernet cable (one side on your main router, the other on your server).
- Boot up your server with the USB stick or a CD-ROM inserted, and select it as bootable device. Depending on your hardware, you will need to press one of the following keys:
<F9>
,<F10>
,<F11>
,<F12>
,<DEL>
,<ESC>
or<Alt>
.- N.B. : if the server was previously installed with a recent version of Windows (8+), you first need to tell Windows, to "actually reboot". This can be done somewhere in "Advanced startup options".
!!! If you can't boot the YunoHost image, try using Ventoy (select "Ventoy" in the section "Flash the YunoHost image" above). {% endif %}
{% if regular or virtualbox %}
[fa=rocket /] Launch the graphical install
You should see a screen like this:
[figure class="nomargin" caption="Preview of the ISO menu"] [/figure] [ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="Classic installation on a whole disk"]
!! N.B.: Once you have validated the keyboard layout, the installation will be launched and will completely erase the data on your hard disk!
- Select
Graphical install
- Select your language, your location, your keyboard layout, and eventually your timezone.
- The installer will then download and install all required packages.
[/ui-tab] [ui-tab title="Installation in expert mode"]
The YunoHost project simplified the classic installation as much as possible in order to avoid as many people as possible being lost with questions that are too technical or related to specific cases.
With the expert mode installation, you have more possibilities, especially concerning the exact partitioning of your storage media. You can also decide to use the classic mode and add your disks afterwards.
Summary of the steps in expert mode
- Select
Expert graphical install
. - Select your language, location, keyboard layout and possibly your timezone.
- Partition your disks. This is where you can set up a RAID or encrypt all or part of the server.
- Specify a possible HTTP proxy to use for the installation of the packages
- Specify on which volumes grub should be installed
Regarding partitioning
In general, we recommend against partitioning /var
, /opt
, /usr
, /bin
, /etc
, /lib
, /tmp
and /root
on separate partitions. This will prevent you from having to worry about full partitions that could crash your machine, cause app installations to fail, or even corrupt your databases.
For performance reasons, it is recommended to mount your fastest storage (SSD) on the root /
.
If you have one or more hard drives to store data, you can choose to mount it on one of these folders depending on your usage.
Path | Contents |
---|---|
/home |
User folders accessible via SFTP |
/home/yunohost.backup/archives |
YunoHost backups to be placed ideally elsewhere than on the disks that manage the data |
/home/yunohost.app |
Heavy data from YunoHost applications (nextcloud, matrix...) |
/home/yunohost.multimedia |
Heavy data shared between several applications |
/var/mail |
User mail |
If you want flexibility and don't want to (re)size partitions, you can also choose to mount on /mnt/hdd
and follow this tutorial to mount all these folders with mount --bind
.
About encryption
Be aware that if you encrypt all or part of your disks, you will have to type the passphrase every time you restart your server, which can be a problem if you are not on site. There are however solutions (quite difficult to implement) that allow you to type the passphrase via SSH or via a web page (search for "dropbear encrypted disk").
About RAID
Keep in mind that:
- the disks in your RAIDs must be of different brands, wear and tear or batches (especially if they are SSDs)
- a RAID 1 (even without a spare) is more reliable than a RAID 5 from a probability point of view
- hardware raids are dependent on the raid card, if the card fails you will need a replacement to read and rebuild the array
[/ui-tab] [/ui-tabs]
!!! If the YunoHost installer fails and you can't solve the issue, know that it's also possible to install Debian and then install YunoHost on top. See these instructions: https://yunohost.org/en/installing_debian {% endif %}
{% if rpi012 %}
[fa=bug /] Connect to the board and hotfix the image
Raspberry Pi 1 and 0 are not totally supported due to compilation issues for this architecture.
However, it is possible to fix by yourself the image before to run the initial configuration.
To achieve this, you need to connect on your raspberry pi as root user via SSH with the temporary password yunohost
:
ssh root@yunohost.local
(or yunohost-2.local
, and so on if multiple YunoHost servers are on your network)
Then run the following commands to work around the metronome issue:
mv /usr/bin/metronome{,.bkp}
mv /usr/bin/metronomectl{,.bkp}
ln -s /usr/bin/true /usr/bin/metronome
ln -s /usr/bin/true /usr/bin/metronomectl
And this one to work around the upnpc issue:
sed -i 's/import miniupnpc/#import miniupnpc/g' /usr/lib/moulinette/yunohost/firewall.py
! This last command need to be run after each YunoHost upgrade :/
{% elseif arm_unsup %}
[fa=terminal /] Connect to the board
Next you need to find the local IP address of your server to connect as root user via SSH with the temporary password 1234
.
ssh root@192.168.x.xxx
{% endif %}
{% endif %}
{% if vps_debian or arm_unsup %}
[fa=rocket /] Run the install script
- Open a command line prompt on your server (either directly or through SSH)
- Make sure you are root (or type
sudo -i
to become root) - Run the following command:
curl https://install.yunohost.org | bash
!!! If curl
is not installed on your system, you might need to install it with apt install curl
.
!!! Otherwise, if the command does not do anything, you might want to apt install ca-certificates
!!! Note for advanced users concerned with the curl|bash
approach: consider reading "Is curl|bash insecure?" on Sandstom's blog, and possibly this discussion on Hacker News.
{% endif %}
[fa=cog /] Proceed with the initial configuration
!!! If you are in the process of restoring a server using a YunoHost backup, you should skip this step and instead restore the backup instead of the postinstall step.
[ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="From the web interface"]
{%if at_home %}
In an internet browser, type {% if internetcube %}https://internetcube.local
{% else %}https://yunohost.local
(or yunohost-2.local
, and so on if multiple YunoHost servers are on your network){% endif %}.
!!! If this doesn't work, you can look for the the local IP address of your server. The address typically looks like 192.168.x.y
, and you should therefore type https://192.168.x.y
in your browser's address bar.
{% else %}
You can perform the initial configuration with the web interface by typing in the address bar of your web browser the public IP address of your server. Typically, your VPS provider should have provided you with the IP of the server.
{% endif %}
! During the first visit, you will very likely encounter a security warning related to the certificate used by the server. For now, your server uses a self-signed certificate. {% if not wsl %}You will later be able to add a certificate automatically recognized by web browsers as described in the certificate documentation. {% endif %} For now, you should add a security exception to accept the current certificate. (Though, PLEASE, do not take the habit of blindly accepting this kind of security alert!)
{% if not internetcube %} You should then land on this page :
[figure class="nomargin" caption="Preview of the Web initial configuration page"] [/figure]
{% endif %} [/ui-tab] [ui-tab title="From the command line"]
You can also perform the postinstallation with the command yunohost tools postinstall
directly on the server, or via SSH.
[figure class="nomargin" caption="Preview of the command-line post-installation"] [/figure]
[/ui-tab] [/ui-tabs]
{% if not internetcube %}
[fa=globe /] Main domain
This will be the domain used by your server's users to access the authentication portal. You can later add other domains, and change which one is the main domain if needed.
{% if not wsl %}
-
If you're new to self-hosting and do not already have a domain name, we recommend using a .nohost.me / .noho.st / .ynh.fr (e.g.
homersimpson.nohost.me
). Provided that it's not already taken, the domain will be configured automatically and you won't need any further configuration step. Please note that the downside is that you won't have full-control over the DNS configuration. -
If you already own a domain name, you probably want to use it here. You will later need to configure DNS records as explained here.
!!! Yes, you have to configure a domain name. If you don't have any domain name and don't want a .nohost.me / .noho.st / .ynh.fr either, you can set up a dummy domain such as yolo.test
and tweak your local /etc/hosts
file such that this dummy domain points to the appropriate IP, as explained here.
{% else %}
You will have to choose a fake domain, since it will not be accessible from outside.
For example, ynh.wsl
. The tricky part is advertising this domain to your host.
Alter your C:\Windows\System32\drivers\etc\hosts
file. You should have a line starting by ::1
, update it or add it if needed to get:
::1 ynh.wsl localhost
If you want to create subdomains, do not forget to add them in the hosts
file too:
::1 ynh.wsl subdomain.ynh.wsl localhost
{% endif %}
[fa=key /] First user
Since YunoHost 11.1, the first user is now created at this stage. You should pick a username and a reasonably complex password. (We cannot stress enough that the password should be robust!) This user will be added to the Admins group, and will therefore be able to access the user portal, the web admin interface, and connect via SSH or SFTP. Admins will also receive emails sent to root@yourdomain.tld
and admin@yourdomain.tld
: these emails may be used to send technical informations or alerts. You can later add additional users, which you can also add to the Admins group.
This user replaces the old admin
user, which some old documentation page may still refer to. In which case : just replace admin
with your username.
[fa=stethoscope /] Run the initial diagnosis
Once the postinstall is done, you should be able to actually log in the web admin interface using the credentials of the first user you just created.
{% if wsl %} ! Reminder: YunoHost in WSL will likely not be reachable from outside, and real domains and certificates won't be able to be assigned to it. {% endif %} {% if virtualbox %} ! Reminder: YunoHost in VirtualBox will likely not be reachable from outside without further network configuration in Virtualbox's settings. The diagnosis will probably complain about this. {% endif %}
The diagnosis system is meant to provide an easy way to validate that all critical aspects of your server are properly configured - and guide you in how to fix issues. The diagnosis will run twice a day and send an alert if issues are detected.
!!! N.B. : don't run away ! The first time you run the diagnosis, it is quite expected to see a bunch of yellow/red alerts because you typically need to configure DNS records (if not using a .nohost.me
/noho.st
/ynh.fr
domain), add a swapfile if not enough ram {% if at_home %} and/or port forwarding{% endif %}.
!!! If an alert is not relevant (for example because you don't intend on using a specific feature), it is perfectly fine to flag the issue as 'ignored' by going in the webadmin > Diagnosis, and clicking the ignore button for this specifc issue.
[ui-tabs position="top-left" active="0" theme="lite"] [ui-tab title="(Recommended) From the web interface"] To run a diagnosis, go on Web Admin in the Diagnosis section. Click Run initial diagnosis and you should get a screen like this :
[figure class="nomargin" caption="Preview of the diagnostic panel"] [/figure]
[/ui-tab] [ui-tab title="From the command line"]
yunohost diagnosis run
yunohost diagnosis show --issues --human-readable
[/ui-tab] [/ui-tabs]
[fa=lock /] Get a Let's Encrypt certificate
Once you configured DNS records and port forwarding (if needed), you should be able to install a Let's Encrypt certificate. This will get rid of the spooky security warning from earlier for new visitors.
For more detailed instructions, or to lean more about SSL/TLS certificates, see the corresponding page here.
[ui-tabs position="top-left" active="0" theme="lite"] [ui-tab title="From the web interface"]
Go in Domains > Click on your domain > SSL Certificate
[figure class="nomargin" caption="Preview of the diagnostic panel"] [/figure]
[/ui-tab] [ui-tab title="From the command line"]
yunohost domain cert install
[/ui-tab] [/ui-tabs]
Congratz!
You now have a pretty well configured server. If you're new to YunoHost, we recommend to have a look at the guided tour. You should also be able to install your favourite applications. Don't forget to plan backups !
{% endif %} {% endif %}