6. Apps
Everything beyond the base system is installed from the App Catalog.
- System apps are Debian's packages, updated with the system from OSM's update service: Containers, Virtual Machines, VPN, Antivirus, the Print Server, Network Boot (computers that start from the server) and the Domain (a domain of your own). They are kept on the USB stick and on the server, so they install even without the internet. Each one's app shows in All apps once it is installed. Network Boot (OSM Pro) and the Domain (OSM Business) show their edition's gold tag when this server's license does not include it.
- What belongs to a page is installed on that page, not here: SMB, NFS and FTP in Settings > File Protocols, Settings > Media Streaming, Settings > SSH, Storage > iSCSI, and ZFS support in Storage > Settings. The page shows Install until it is installed, and Uninstall... at its bottom after. They install without the internet too, except ZFS support, which comes from OSM's update service.
- Container apps run in Docker: more than 40 apps in the App Catalog, from Nextcloud and Immich to Home Assistant and Vaultwarden (What OSM does lists them all). Installing the first container app installs Containers with it, in the same job.
An installed app that the App Catalog no longer lists is still shown, marked No longer in the App Catalog. It keeps running as it was, from the copy of its description that OSM keeps with every installed app; its settings can still be changed, and you uninstall it when you no longer need it.
Installing an app
- Open the app's page in the App Catalog. Under its name are pictures of its screens: the arrows (or the arrow keys) show the next, and a click shows one larger. Choose Install.
The dialog shows what the app needs (other apps are installed first, in the same job), its settings, its folders, and how it is reached (Addresses and ports).
An app's folder is a shared folder itself (
/volume1/Media), or a folder outside shared folders: not a folder inside one (/volume1/Media/Movies). Anyone who can write in Media could otherwise put a link in place of Movies, and the app would see whatever it led to. Give the app the shared folder, and let it find Movies inside. Nor can an app have a whole volume, a volume's own folders (@docker...), the apps' data (appdata, its own folder and the folders inside it too: its containers write there, and could put a link in place of a folder) or the system's folders: the App Catalog refuses them, and so does Create in Containers. A folder's path cannot hold$,:or a line break either: Docker would read another folder than the one you typed. Nor can it have a name that is not UTF-8 (from an old computer or a zip): rename the folder first.- The App Catalog shows the progress until the installation is done. The installation goes on if you close the page, and the turning ring at the top right shows it.
Each app is ready at once: OSM makes its administrator account during the installation, with a strong password, shown on the app's page in the App Catalog (Save as a file keeps it). Nothing is left with a default password, and nothing asks for a first-visit setup. Through OSM Connect, Show and the copy button ask for your code again first (Confirm it is you), unless you gave it in the last 5 minutes.
Vaultwarden is the exception: OSM makes no account for it. Its sign-up is closed: OSM invites each person who may use it (App Permissions) with their e-mail address, and they make their own account on its page. To let anyone who reaches its page make one (not advised): in Containers, choose More > Terminal (shell) on the vaultwarden container, type echo '{"signups_allowed": true}' > /data/config.json, then Restart Vaultwarden on its page in the App Catalog. To close it again, delete that file (rm /data/config.json) and restart it.
The app is then in All apps, under Apps, and in the search, with its own logo, and its data in a folder of its own on the volume (appdata/<app>). Uninstall... removes it; Keep its data lets you install it again later with everything in place.
Apps take the server's time zone. Changing it (Settings > Language and Time) makes the apps that keep it in their settings again with the new one: each restarts, one after the other.
How apps sign in
Each app with a web page opens from All apps or the search, signed in where OSM can. On the app's page, How it signs in (in the Sign-in section) chooses how:
- With its own password (OSM fills it in): OSM signs in for you with the password it made. The password never reaches the browser. Only Administrators are signed in this way, since its password is the app's administrator's; other accounts see the app's sign-in page.
- With the OSM account: each person who may use the app (App Permissions) opens it signed in as themselves; the app creates their account the first time, and OSM's Administrators are its administrators. An account that is not an Administrator but is named as the app's administrator signs in (
admin, in any case) cannot open the app this way: it would be the app's administrator. It uses the app's own sign-in. Available for apps that support it (Grafana, Gitea, Navidrome, Paperless-ngx, VS Code), when the app is on the server's ports, not on an address of its own. The app is then reached through OSM only: phone apps that sign in to it directly need its own password. Signing out of OSM signs out of the app too. - On its own sign-in page: the app opens as it is.
Leaving With the OSM account (or giving the app an address of its own) also turns OSM's sign-in off in the app itself: it then signs people in with its own passwords only. The app's own sign-in comes back first, while OSM still checks every visit; if the app cannot be set up again, it stays with the OSM account and the job says why.
When an app refuses the password OSM saved for it (it was changed in the app), opening it says so at once: set the password again on the app's page, or sign in on the app's own page.
Each person's own account
In twelve apps, OSM makes an account for each person who may use the app (Settings > App Permissions): Immich, Nextcloud, Joplin, Radicale, Jellyfin, Navidrome, Audiobookshelf, Paperless-ngx, FreshRSS, Frigate and Home Assistant, with a strong password that OSM keeps, and Vaultwarden by invitation. It does so a few minutes after the app is installed, an account is added or a permission changes. Opening the app from All apps signs each person in as themselves, so each keeps their own photos, files and notes; a person whose account is renamed keeps theirs too (the app goes on knowing them by the name they had). Administrators are the apps' administrators.
On the app's page in the App Catalog, Accounts > People lists who has an account, and what could not be made; Make the accounts now makes the missing ones at once. The App Catalog is for Administrators. Each person, an Administrator or not, finds the apps they have their own account in under My Account > Your apps: each app by its name, with Your phone and Bring your old ... for their own account. An app that the person may no longer use, or whose account OSM has not made yet, is not listed there.
These are this server's own accounts. The accounts of a directory (a domain this server is a member of) get none (Accounts: directory services).
When someone may no longer use an app, or their account is deleted, their account in it is turned off, never deleted: their data stays, and comes back if they may use the app again. An account that was in the app before OSM made the others is left as it is: its owner signs in with their own password. A new account given the name of someone who was deleted never gets their account in an app: the app keeps it, turned off and with its data, for the person who left, and the new person gets no account of that name there; give the new account another name if they need the app. A person who changes their password inside an app itself keeps signing in there with it, but the desktop can no longer open that app signed in for them (OSM still has the password it made).
- Vaultwarden: each person makes their own safe, with a master password only they know. OSM invites them with the e-mail address of their OSM account, or one it makes up (their phone's code shows it): on its page they choose Create account with that address. Nobody else, OSM included, can open their safe or reset that password.
- FreshRSS: with How it signs in set to With the OSM account, each person opens it into their own reader; their phone's news app uses the password Your phone shows them.
Your phone
In My Account > Your apps, Your phone beside the app shows a QR code (on the app's page in the App Catalog: Accounts > Your phone > Show the code). Point your phone's camera at it and open the page it shows: it says which app to get for your phone, and gives the address and your own sign-in to type in it, with a button to copy each. For Nextcloud and for calendars and contacts on Android, Set up the app fills in everything at once. The dialog says when your phone opened the code. A code works for 10 minutes; it shows your own sign-in only, so keep it to yourself.
Your phone must reach the server: be on its network (at home), use the VPN, or have the app reached from anywhere.
Reach from anywhere
With OSM Connect on (Settings > Remote access), an Administrator can let an app be reached from anywhere: on its page, the switch Reach from anywhere > OSM Connect, from the server's own network only. Its phone apps then reach it away from home through OSM Connect, at a secret address of its own, and the phone's page gives that address too. There, the app's own sign-in is the only one: OSM's two-step sign-in is not asked (phone apps cannot answer it), so keep the address to the people who use the app. New address stops the old one at once (show the phone's code again); turning the switch off stops it too. Up to 16 apps can be reached from anywhere; they share OSM Connect's speed with the desktop.
Bringing your old data
In My Account > Your apps, Bring your old ... beside the app brings what you had elsewhere into your own account (on the app's page in the App Catalog: Accounts > Bring your old ... > Bring in...):
- Photos (Immich): download an export of your old photo service (a .zip or .tgz file) and choose it: each photo and video is added with its date and place, and those already there are left out. Each album of the export becomes an album of yours, with its own title, in an export of any language; the folders of a year or a day are no albums. One without a date, or with a side file OSM cannot read, comes in all the same, and the rest of the import goes on.
- Files (Nextcloud): choose a folder of yours on the server (your old cloud's export, or a folder a Cloud task fills): it is copied into your files in Nextcloud, under Brought in.
- Calendars and contacts (Radicale): choose .ics files (calendars) or .vcf files (contacts): each becomes a calendar or an address book of yours.
- News feeds (FreshRSS) and Podcasts (Audiobookshelf): choose the OPML file your old app exports.
- Paper documents (Paperless-ngx): choose a folder of PDF files and scans: each one is read, made searchable and filed in your account.
A file can also come from your computer: From this computer... uploads it into your home folder first (a file of the same name there stays: the upload takes the next free name, such as export (2).csv). OSM reads what you choose as you: only what you may read.
Office documents
Collabora Online opens the documents of Nextcloud's files. With both installed, Office documents > Join them on either app's page joins them, with nothing to paste (Nextcloud downloads its office app, Nextcloud Office, from its own app store: the server needs the internet then); Join again after the server's address changed. Documents open inside Nextcloud's pages from Collabora's own address, https://<server>/collabora/: a browser that warns about the server's certificate shows no document there, so open Its own address once and accept the certificate, or give the server a trusted one (Network: certificates).
Addresses and ports
Apps never fight over ports. Each app is reached in one of these ways:
- Ports on the server's address: free ports, chosen at install. Its web page opens over HTTPS, at an address of its own (
https://<server>:30101and up, with the server's certificate): the server refuses its own web port to your network, whatever the firewall's switch, so no sign-in to it crosses your network unencrypted (other apps on the server still reach it there). Phone and computer apps use that HTTPS address too (a device that warns about the certificate needs it trusted once, or the server a trusted one: Network: certificates). For a device that cannot use HTTPS at all, turn on Plain HTTP on the network in the app's Settings...: its web port then answers your network too, unencrypted. - Its own address on your network, like a separate device, so it can use any port, 80 and 53 included (ports 80 and 443 of the server's address are OSM's own: an app that needs exactly those, Nginx Proxy Manager, gets an address of its own). Give apps a range of your network's addresses first, in Settings > Network (Addresses for apps), outside your router's DHCP range. An app that only works this way (AdGuard Home, Pi-hole) asks for the range when you install it.
- The server's network (host), for apps that must find devices on your network (Home Assistant, Jellyfin, Plex, UrBackup; Tailscale works only this way). The app then answers on the server's own ports, and its web page, like the others', over HTTPS at its own address: the server refuses its plain web port to your network (Home Assistant's 8123, Plex's 32400), unless you turn on Plain HTTP on the network in its Settings.... A phone app or a device set to
http://<server>:8123stops working until you give it the app's HTTPS address (its page's Address), or turn that switch on. Plex's TV and phone apps connect to its port 32400 directly: turn the switch on for Plex.
An app's ports are chosen together: a port an app uses for both TCP and UDP (qBittorrent's 6881, Syncthing's 22000, Frigate's live view) gets one number for both, as the app announces it.
An installed app's page shows its Address: its HTTPS address, with Copy (for a phone app, or a bookmark), and whether Plain HTTP on the network is on, at which port, with that plain address. Change... opens the app's Settings... at that switch. An app with an address of its own answers plain HTTP at its own port whatever the switch says; one that signs in with OSM accounts never does.
Moving an app back from an address of its own to the server's ports makes its network again (the app restarts once), and OSM checks that it answers at its ports before it says it is done.
Apps that tell their own phone and computer apps where they are (Joplin Server's notes apps, Gitea's addresses for Git) give them that same address: the HTTPS one, or the plain one while Plain HTTP on the network is on. Set up your Joplin apps and Git remotes with it.
For a friendly address such as https://photos.example.com or https://nas.local/photos, see Network: an address for each app.
Priority, limits and graphics
When you install an app, or later with Settings... on its page:
- Priority: Critical, High, Normal or Low. Higher priorities get more of the processor and the disks when the server is busy, and are the last the system stops when memory runs out.
- Memory limit (MB) for an app that should never take more. A CPU limit is set in Containers: More on the app's container, then Priority and limits.... An app's other containers (its database, its cache) have no limits of their own: their Priority and limits... points to the app's settings.
- Use the graphics card: gives the app the server's graphics card (Intel, AMD or NVIDIA), for video transcoding or AI.
Network rules
Network rules, on the app's page, limit what an app may reach and who may reach it:
- What it may reach: anywhere (the internet too); the local network only (no internet); or nothing outside the app, not even the server.
- Who may reach it: anyone the firewall lets in, or the local network only (over IPv4 and IPv6, at the app's ports on the server too, even with the firewall off; never through the VPN Client's tunnel).
Network rules are for apps on the server's ports. An app with an address of its own is a separate device on your network: its rules are your router's. An app on the server's network has no rules of its own. When Settings... gives an app with rules an address of its own, or the server's network, OSM says its rules stop applying; they apply again when it is back on the server's ports. Through OSM Connect, changing an app's network, its address or Plain HTTP on the network asks for your code again (Confirm it is you), as its network rules do.
Updates
System apps are updated with the system. Update on a container app's page first copies the app's data, then downloads the newest version of the app and starts it; if the new version does not start or its page does not answer, the previous version comes back by itself, with its data as it was. On a Btrfs volume (and a ZFS volume that can clone files) the copy is instant and takes no room, whatever its size; on other volumes OSM copies up to 8 GB, when the volume has the room for it. Each app shows its version, and App Catalog > Updates lists the apps that have a newer one, with what is new in it; an app never goes to an older version than it had.
A stopped app keeps that safety net: Update starts it with its new version to check that it runs and answers, then stops it again (or puts the old version back, stopped). An automatic update never starts an app you stopped: it is updated once it runs again.
When the app's data cannot be copied (too big, or too little free room), nothing changes, and OSM asks whether to update it anyway. If you do and the new version does not work, OSM leaves the new version as it is: the old one, put back on data the new one may have changed, might not work at all. Make a backup of the app's data first (Backup), to restore it if needed.
In the app's Settings...:
- Automatic updates: in the maintenance window (Settings > Updates and Recovery), the app takes its new version if there is one, and goes back to the old one if it does not start or answer. By default, an app follows the choice for the apps in Settings > Updates and Recovery > How each part updates. A security fix installs by itself whatever this says, while security updates do. An app whose data cannot be copied is not updated by itself: a notification tells you to update it by hand after a backup, and goes once the app is updated.
- Channel: the stable versions, or newer ones (beta, nightly...) where the app has them. Newer versions may break: keep a backup of the app's data. Changing the channel is an update: the data is copied first (when it cannot be, the channel does not change), and if the app does not start or answer on the new channel, it comes back on the old one with its data as it was.
If an update was cut short (a power cut, a restart), the copy of the app's data from before it stays beside the app's data, in the volume's appdata folder, and a notification says where. OSM never deletes it. If the app works as it should, you can remove the copy over SSH with sudo; if not, stop the app and put its data back from the copy, or restore it from a backup.
An app that OSM has checked on a test server (installed with its defaults, started and answering) says on its page when it last passed that check; an app that failed it is marked, and the App Catalog asks before installing it. An app that has not been checked yet shows nothing of the kind.
More apps: app sources
App sources..., in the App Catalog's side bar, adds the apps of other publishers:
- Signed catalogs: a publisher's list of apps, signed with their key. You check the key's fingerprint once. OSM downloads each catalog again once a day and checks its signature every time: a catalog whose signature is wrong (changed by someone else, or signed with another key) is not used, and its last good copy stays.
- CasaOS app stores: OSM installs CasaOS apps (most of CasaOS's own store) and replaces the passwords published with them by new ones for your server. A CasaOS store is not signed, so OSM takes one only over HTTPS, and only when you tick that you trust it. You can also paste a single CasaOS app.
Every app from a source is checked first. An app that would need control of the server (Docker's socket, the server's processes, system folders) is left out with the reason. An app that asks for powers over the server (privileged mode, devices, the server's network) shows each one with the reason, and installs only when you tick I know what this does: install it anyway; so do the apps it needs, installed first with it. When the publisher's catalog later asks for more powers than when you installed the app, its update and its settings ask you first (Agree), and it is not updated by itself until you do (its notification goes once it is updated, or when its catalog no longer asks for more). An app from a source never replaces an App Catalog app. An app whose description OSM cannot read is left out with the reason, and the source's other apps stay; a source that cannot be updated keeps its last good copy, and its warning in the bell goes when it works again or when you remove it.
The Print Server
The Print Server shares your printers with every computer, phone and tablet of your network: AirPrint (iPhone, iPad, Mac), IPP Everywhere (Linux, Android) and Windows' Add a printer. It is CUPS, from Debian, with its own web page.
- Install Print Server from the App Catalog.
- Open it in All apps: CUPS' page opens in a new tab, at
https://<server>:631. The first time, your browser warns about its certificate (CUPS makes its own). - Administration > Add Printer: sign in with an Administrator's name and password, choose the printer (on a USB port of the server, or on your network), and tick Share This Printer.
The printers are shared with your local network only: port 631 is open to private addresses, never to the internet. Everyone there may print; only Administrators add, change or remove printers. CUPS' page answers at the server's address (https://192.168.1.10:631) and at https://<name>.local:631. At another name (one your router gives the server), it answers Bad Request: use the address.
Containers
The Containers app manages Docker itself:
- Containers: start, stop, restart, the log, a shell inside, details (passwords in the environment show as
***; through OSM Connect the environment shows after your code again: Show), priority and limits. A read-only API token gets***for a container's log: an app's log can hold its passwords. - Create a container from any image, with its ports, folders, environment, command, and an address of its own if you want. A folder is
server folder:container folder; add:roto make it read only in the container. The environment and the command reach the container exactly as you type them: a$stays a$(Docker fills in no variable), and so does a word in braces. - Projects: paste or edit a Compose file. Risky settings (privileged mode, the server's network or folders, Docker's socket, another app's data, a folder inside a shared folder) are listed with the reason, and refused unless you tick I know what this does: allow these settings. So is a build that sends a folder or a file of the server to Docker besides its own folder: an extra context (
additional_contexts), a Dockerfile named by its path, a key file ofssh, a local cache (cache_from,cache_to). What starts is checked again right before it starts. A folder inside a shared folder is one because Docker follows links each time it starts the container, also when it restarts it by itself: anyone who can write in that shared folder could put a link in its place. Give the container the shared folder itself instead. A named volume that mounts a disk or a folder of the server is listed the same way. A file that takes in another one (include:, orextends:with afile:) may only name a file written out in full (/volume1/..., no variable), kept in a folder only Administrators can change and outside the system's and OSM's folders: OSM refuses the others before Docker reads them. Through OSM Connect, Edit... asks for your code again first (Confirm it is you): the file holds the project's passwords. Delete... removes its containers and its compose file; what its containers kept in the project's own folder (./data) stays, and a new project of the same name uses it again. - Images: download one, and remove those that no container uses.
- Networks: Docker's networks, and the range of addresses for apps (set in Settings > Network).
Cameras
Frigate NVR records security cameras and recognizes people, cars and animals. Its page in the App Catalog has a Cameras section:
- Find cameras asks your local network for ONVIF cameras, and Add by its address... adds one directly. Add a camera with its user name and password: OSM sets up its largest stream for recording and its smallest for detection, and its pan-tilt-zoom controls if it has them.
- Keep the recordings: how many days to keep everything recorded, motion, alerts and detections.
Frigate reads a camera's user name and password with placeholders of its own. A password that holds {FRIGATE_, {{ or }} cannot reach the camera as it is, so OSM refuses it when you add the camera: change the password on the camera, then add the camera again. A camera added before with {FRIGATE_ in its password made Frigate stop every camera: the next time OSM changes Frigate's cameras or recording days, that camera alone is turned off, a notification names it, and Frigate runs the others. One added before with {{ or }} in its password does not connect. For either, change its password on the camera, then remove it here and add it again.
Only cameras on your local network can be added. Frigate runs on the server's ports only: you open its web page (HTTPS) and sign in as admin, with the password shown on its page in the App Catalog. Its internal interface (port 5000), which asks for no password, is closed to the other apps and to the server's accounts.
Home Assistant
Home Assistant, on the server's network, is opened at its HTTPS address (its page's Address in the App Catalog), not http://<server>:8123, which the server refuses to your network: give the companion app on your phone that HTTPS address, or turn on Plain HTTP on the network in Home Assistant's Settings....
Mosquitto refuses connections without a password: every device signs in with a login. Its setting Connections without a password can accept them again, but then anyone on your network may publish and read. Changing it restarts Mosquitto, which then works by the new setting. A login for each device: its setting More logins, each name:password separated by spaces (Radicale has the same setting, for more calendar accounts). Once given there, the password file follows the setting: type them all again to change one, or none to keep only the login shown on the app's page.