How to Install and Use YunoHost 12 on Debian 12 (Bookworm)
Install YunoHost 12 on a Debian 12 server, complete the initial setup, then configure DNS, certificates, users and your first application.
YunoHost turns a plain Debian server into a self-hosting platform with a web administration panel, a single sign-on portal for your users, mail, automatic Let's Encrypt certificates and a large catalog of applications that install in a few clicks. This guide installs YunoHost 12 on a Debian 12 (Bookworm) VPS or dedicated server, completes the initial configuration, and walks through the first tasks: diagnosis, DNS, certificate, users, installing an application and keeping the system updated.
Use Debian 12, not Debian 13. The stable YunoHost release (12.x) only installs on Debian 12; the Debian 13 (Trixie) version, YunoHost 13, is still in testing and its installer refuses to install the stable channel. Debian 12 remains supported through Debian LTS until June 2028. Debian 7 and the old install_yunohostv2 script are long gone.
Requirements
- A server with a fresh Debian 12 (Bookworm) installation, kernel 6.1 or newer (the stock Debian 12 kernel). Do not install YunoHost on a machine that already runs a web or mail server: it manages NGINX, Postfix, Dovecot and the firewall itself.
- At least 512 MB of RAM and 16 GB of disk space. Plan for more if you intend to run several applications.
- Root access over SSH.
- A domain name you control, for example
example.com, or one of the free subdomains the YunoHost project offers (.nohost.me,.noho.st,.ynh.fr). - Check with your provider that outgoing port 25 is open if you want the server to send mail.
Run the installer
Connect to the server as root (or run sudo -i after logging in):
ssh root@203.0.113.10
Update the system and make sure curl and the CA certificates are present:
apt update
apt full-upgrade -y
apt install -y curl ca-certificates
Start the official install script. Check that the address begins with https.
curl https://install.yunohost.org | bash
The script confirms that it is running on Debian 12, warns that YunoHost will take over the SSH configuration, adds the YunoHost package repository and installs everything. It takes several minutes. The log is written to a file named /var/log/yunohost-installation_<date>.log; read it if the installation stops with an error.
If you prefer to inspect the script before running it, download it first:
curl -o install_yunohost https://install.yunohost.org
less install_yunohost
bash install_yunohost
Complete the initial configuration
The installation ends by telling you to run the post-installation. You can do it in a browser at https://203.0.113.10 (your server's public IP address) or on the command line:
yunohost tools postinstall
In the browser you will first see a certificate warning, because the server only has a self-signed certificate at this point; accept it for now. Either way you are asked for two things:
- Main domain. The domain your users will use to reach the portal. With one of the free YunoHost subdomains, DNS is configured for you. With your own domain you add the DNS records yourself in a later step. A domain is mandatory; you cannot use a bare IP address.
- First user. A user name and a strong password. This account becomes a member of the
adminsgroup: it can log in to the web admin, the user portal and SSH, and it receives mail sent toroot@andadmin@your domain.
Two things change once the post-installation finishes: the password you chose also becomes the root password, and root can no longer log in over SSH from the internet. From now on connect with the user you created and use sudo:
ssh deploy@203.0.113.10
sudo yunohost --help
The web administration panel is at https://example.com/yunohost/admin (or https://203.0.113.10/yunohost/admin until DNS works). The user portal at https://example.com/yunohost/sso is only reachable through the domain name, not through the IP address.
Run the diagnosis and configure DNS
YunoHost includes a diagnosis system that checks DNS records, open ports, mail deliverability, services and resources. It runs twice a day and mails the administrator when it finds problems. Run it once by hand, in the web admin under Diagnosis or with:
sudo yunohost diagnosis run
sudo yunohost diagnosis show --issues --human-readable
Expect warnings on the first run if you use your own domain, because the DNS records do not exist yet. YunoHost prints the exact records it wants:
sudo yunohost domain dns suggest example.com
Create those records at your DNS provider. At a minimum you need the A record (and AAAA if the server has IPv6) for the domain; the MX, SPF, DKIM and DMARC records are required for mail. Run the diagnosis again once the records have propagated. A warning about a feature you do not use can be marked as ignored in the web admin.
Install a Let's Encrypt certificate
When the A record points to the server and ports 80 and 443 are reachable, replace the self-signed certificate. In the web admin go to Domains, select your domain, then Certificate; or run:
sudo yunohost domain cert install
The certificate is then renewed automatically.
Add users
Each user gets a mailbox (user@example.com) and access to the portal, where the applications they are allowed to use appear. Create users in the web admin under Users > New user. On the command line, the same action is yunohost user create; list its options with:
sudo yunohost user create --help
Only members of the admins group can use SSH. Regular users cannot, unless you grant that permission explicitly.
Install an application
In the web admin, open Applications, click Install, and pick an application from the catalog (WordPress, Nextcloud and so on). Before anything is installed, a form asks for the settings the application needs, typically:
- the domain and path, for example
example.comand/blog; - which users may access it, and whether it is visible to anonymous visitors;
- the administrator account for the application.
The command-line equivalent asks the same questions interactively:
sudo yunohost app install wordpress
YunoHost then creates the database, the NGINX configuration, the system user and the single sign-on integration. The application appears as a tile in the user portal. Several applications can share one domain under different paths, or you can add a subdomain per application under Domains; each extra domain needs its own DNS record and certificate.
Install only what you use: each application adds to the server's attack surface and to its memory footprint.
Keep the server updated
The system update page of the web admin lists pending system and application upgrades and applies them with one click each. From the shell:
sudo yunohost tools update
sudo yunohost tools upgrade system
sudo yunohost tools upgrade apps
Do not run apt full-upgrade to a newer Debian release by hand; major upgrades are done through YunoHost's own migration when the project publishes it. Set up backups (web admin > Backup) before you start relying on the server.
Frequently asked questions
Can I install YunoHost on Ubuntu or on Debian 13?
No for Ubuntu: the installer stops on Ubuntu and Linux Mint and asks for plain Debian. On Debian 13 only the testing and unstable channels of YunoHost 13 can be installed at the moment, and the project explicitly advises against using them in production.
Where did the Glances monitoring page go?
Older tutorials enable a Glances service and a Monitoring page. Current versions have neither; the Diagnosis section replaces them, checking the server twice a day and sending its findings by mail. If you want graphs, install a monitoring application from the catalog.
I am locked out of SSH after the post-installation. What happened?
Root login from the internet is disabled at that point, and Fail2Ban blocks an address for ten minutes after ten failed attempts. Log in with the first user you created, on port 22, and use sudo -i if you need a root shell. Your provider's web console still accepts root.
Do I need to configure a firewall?
YunoHost ships its own firewall, based on nftables, and opens the ports that its services and installed applications need. Manage it from the Firewall page of the web admin (under Tools) or with yunohost firewall --help, rather than adding UFW or firewalld on top.