Before You Install
Outcome: before anything is installed, you have the three things YunoHost cannot invent for you — a machine, a domain you control, and an honest answer about how the machine will be reached from the internet.
Most failed self-hosting projects do not fail at the install. They fail here, at the shopping list. YunoHost is unusually honest about its requirements — its own diagnosis tool will grade your setup against them for as long as the server lives — so this chapter takes them one at a time.
The machine
Almost any computer that runs Debian 12 will do: a retired desktop or laptop, a small single-board computer (there are ready-made images for Raspberry Pi and similar boards), or a rented VPS — a virtual server from a hosting company. The apps you choose matter more than the platform: a photo library with face recognition wants more memory and disk than a wiki does. Two properties matter whatever you pick:
- It stays on. A server that sleeps or gets unplugged is a part-time service. At home, that argues for a small, quiet, low-power box rather than a gaming PC.
- Its disk is the data. Your users' files and mail will live on this disk. Size it for the photos, not for the operating system — and read the backups chapter with that disk's failure in mind.
A VPS trades those worries for different ones: the hosting company keeps it on and connected, but the machine is rented, its data sits in someone else's building, and — chapter 9 again — its IP address has a reputation history you inherit.
The domain — this is not optional
YunoHost requires a domain name.
The official documentation is blunt:
"Yes, you have to configure a domain
name." The reason is structural, not
bureaucratic. The portal is reached at
the domain (https://the.domain.tld/yunohost/sso)
and cannot be reached by bare IP
address; certificates are issued per
domain; email addresses are the
domain. Everything stands on the name.
You have three honest options:
- Your own domain, bought from a registrar, with you able to edit its DNS records. This is the full-control route and the one this guide assumes. It costs a few units of currency a year.
- A free YunoHost domain. The
project offers subdomains under
.nohost.me,.noho.stand.ynh.fr(for examplehomelibrary.nohost.me). If the name is free, it is registered and its DNS configured automatically. The trade, stated in the docs, is that you do not have full control over the DNS configuration — and your server's identity is a subdomain of someone else's name. - A dummy domain for local-only
use, such as
yolo.test, combined with edits to the/etc/hostsfiles of the machines that should reach it. Fine for a lab; not a public server.
The DNS truth
If you bring your own domain, you
configure its DNS records at your
registrar, by hand. YunoHost helps: it
generates the exact list it wants (in
the webadmin under the domain's "DNS
configuration", or with yunohost domain
dns suggest your.domain.tld). The list,
in the documentation's example, includes
the address records for the domain and
its subdomains, the mail records (MX,
plus the SPF, DKIM and DMARC records
that let other mail servers trust your
mail), and records for the chat (XMPP)
services some installs use.
Two properties of DNS will shape your first week:
- It is checked, not assumed. The diagnosis tool compares your live DNS against the recommended configuration and complains, specifically, about every difference. Your first diagnosis run will show yellow and red alerts; the documentation says so and tells you not to run away.
- It propagates at its own pace. Changes at a registrar take time to spread. A certificate that will not issue today may simply be waiting on a record you fixed an hour ago.
And one record lives somewhere else entirely: the reverse DNS for your IP address is configured at your internet provider or VPS host, not at your registrar. The documentation calls it out because mail depends on it — chapter 9 explains why.
The network path
If the machine is at home, the internet reaches it through your router, so the router must forward the web ports (80 and 443) to the machine, and the mail and login ports if you use those services. The diagnosis tool checks port reachability from outside, which makes it a fair referee. Two home-network traps deserve naming now:
- Hairpinning. Some routers will not let a machine inside the house reach the house's own public address, which can make the server look broken from the sofa while it works fine from a phone on mobile data. Test from outside before concluding anything.
- Your address may move. Home
connections often have a changing
public IP address. YunoHost has a
dynamic-DNS facility for exactly this
(the
dyndnscommands in chapter 5, and the free domains above, which handle it for you).
The check
You are ready for chapter 4 when you can write down: the machine (and that it can stay on), the domain (and where its DNS is edited), and the route in (forwarded ports, or a VPS's public address). If the domain line is blank, stop here and fix that first — it is the cheapest problem you will ever solve on this project.