OSM Documentation 0.1.0 Search

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 and Network Boot (computers that start from the server). They are kept on the USB stick and on the server, so they install even without the internet.
  • 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.

Bring It Home: fifteen apps that take you off the cloud

Bring It Home sets up fifteen apps of the App Catalog as one free package that does what the cloud services you pay for do, on your own server: photos from your phone, files and sync, office documents, passwords, notes, calendars and contacts, films and series, music, audiobooks and podcasts, paper documents, PDF tools, news feeds, cameras, the smart home, and ads and trackers blocked for the whole network. Each one is an app of the App Catalog like the others: its settings, updates and passwords are on its page there.

Open Bring It Home on the desktop, or from the top of the App Catalog's list. Each app's tile says what it does for you; once it is set up, four marks say whether it opens signed in, whether a phone is set up with a QR code, whether it is backed up, and whether it brings in what you had elsewhere.

Setting up the apps

  1. Tap the apps you want, then Set up. The bar at the bottom says how much memory and disk they need, and how much memory the server has free.
  2. Choose the volume their data goes on, and Set up.
  3. OSM installs them one after the other in one job (Containers first, when it is not there yet), each with its usual settings, then makes an account in each one for every person who may use it. An app that cannot be installed (a port taken, for example) is said at the end; the others are installed anyway.

Office documents (Collabora Online) open from Nextcloud's files: set up both, and OSM joins them, with nothing to paste (Nextcloud downloads its office app, Nextcloud Office, from its own app store: the server needs the internet then). The Office row of either app's panel says whether they are joined; 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). Ad blocking (AdGuard Home) needs an address of its own on your network: set the addresses for apps first (Settings > Network).

Each person, signed in as themselves

Each person who may use an app (Settings > App Permissions) gets an account of their own in it, made by OSM with a strong password that OSM keeps. Opening the app from the desktop signs them in as themselves, so each person keeps their own photos, files and notes. Administrators are the apps' administrators. The Signed in row of an app's panel lists the people who have an account; Make the accounts now makes the missing ones at once (OSM also does it by itself, a few minutes after an account or a permission changed).

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 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).

A few apps work differently:

  • Passwords (Vaultwarden): each person makes their own safe, with a master password only they know. OSM invites them with their e-mail address (their account's, or the one its panel shows them): on its page they choose Create account with that address. Nobody else, OSM included, can open their safe or reset that password. Its sign-up stays open to anyone who reaches its page until you close it (its page in the App Catalog says how); invited people can still make theirs then.
  • News feeds (FreshRSS): each person opens it through OSM's own sign-in, into their own reader; their phone's news app uses the password Your phone shows them.
  • PDF tools (Stirling-PDF): it keeps nothing of anyone's, so it has no accounts of its own: each person who may use it opens it through OSM's own sign-in.
  • Ad blocking (AdGuard Home) is for the Administrators only.
  • Office documents (Collabora Online) open inside Nextcloud, for whoever opened them there.

Your phone

On an app's panel, Your phone > Show the code shows a QR 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 > OSM Connect), an Administrator can let an app be reached from anywhere: the switch Reach from anywhere on its panel, 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

The panel's last rows bring in what you had elsewhere, into your own account:

  • Photos: 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.
  • Files: 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: choose .ics files (calendars) or .vcf files (contacts): each becomes a calendar or an address book of yours.
  • News feeds and Podcasts: choose the OPML file your old app exports.
  • Paper documents: choose a folder of PDF files and scans: each one is read, made searchable and filed in your account.
  • Passwords: export them from your old password manager, then on Vaultwarden's page choose Tools > Import data. The file is read in your browser: your passwords stay encrypted and OSM never sees them. Delete the export file after.
  • Notes: in the Joplin app on your computer, File > Import your old notes' export.
  • Films, music and books: put them in the app's shared folder (Files); the app finds them by itself.

A file can also come from your computer: From this computer... uploads it into your home folder first. OSM reads what you choose as you: only what you may read.

Backed up

Each panel's Backed up row says whether the app's data (its settings, database and accounts) and each of its shared folders (photos, music, recordings) are in a backup task, and when its last version was made. A backup task with The apps' data keeps every app's data; add the apps' shared folders to it too. Back it up... opens Backup.

Installing an app

  1. Open the app's page in the App Catalog and choose Install.
  2. 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...), another app's data (appdata/<app>) or the system's folders: the App Catalog refuses them, and so does Create in Containers.

  3. 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.

Vaultwarden is the exception: OSM makes no account for it, and anyone who reaches its page can make one (sign-up is open). Make yours, and your family's, then close sign-up: in Containers, choose More > Terminal (shell) on the vaultwarden container, type echo '{"signups_allowed": false}' > /data/config.json, then Restart Vaultwarden on its page in the App Catalog. New accounts are then refused, also after updates; the accounts made stay. To open sign-up again, delete that file (rm /data/config.json) and restart it.

The app then has an icon on the desktop and in All apps, 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.

How apps sign in

Each app with a web page opens from its desktop icon, 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. 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.

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 own address on your network, like a separate device, so it can use any port, 80 and 53 included. 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.

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....
  • 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.

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.

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.

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.
  • 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. An app from a source never replaces an App Catalog app.

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.

  1. Install Print Server from the App Catalog.
  2. Open its icon on the desktop: CUPS' page opens in a new tab, at https://<server>:631. The first time, your browser warns about its certificate (CUPS makes its own).
  3. 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 ***), priority and limits.
  • Create a container from any image, with its ports, folders, environment, command, and an address of its own if you want.
  • 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. 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. 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.

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

The Home Assistant section of Settings > Monitoring makes the server a device in Home Assistant: its processor, memory, temperature, volumes, updates, UPS, power draw and backups, sent every minute to an MQTT broker. Home Assistant only reads: it cannot change anything on the server.

  1. Install Mosquitto from the App Catalog, or give your own broker's address in MQTT broker. Left empty, it is this server's Mosquitto, which OSM signs in to with the login made at Mosquitto's install.
  2. Turn on Send to Home Assistant, and Apply.
  3. In Home Assistant, add the MQTT integration with the same broker: the server's address, Mosquitto's port and the same login (user osm, with the password shown on Mosquitto's page in the App Catalog).

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.