You already know MultiValue. This set does not teach it.
SD Core Solo for Linux is a personal SD for one Linux user. Everything it
has — programs and data — lives in one directory in that user's home,
~/SDCoreSolo, and it runs as that user. It has one SD account, sduser,
and no way to make another. It never runs as root and refuses to start as
root. Apart from that it has every feature of the multiuser SD Core for Linux
it was made from.
SD Core is a version of SD, with elements found in the main SD version and in ScarletDME. ScarletDME was a fork of the original GPL release of OpenQM 2.6.6.
That lineage matters when you go looking for documentation. Not all the features of the commercial OpenQM 2.6.6 were in the GPL release, and no documentation specific to the GPL version was ever released. So even the OpenQM documents are not authoritative here.
The OpenQM 2.6.6 documents can be used as a reference, but SD Core has additions, changes and deletions — of features, of structure, of security and of commands. These pages cover those changes.
If you have used OpenQM, or upstream sdb64, much of SD Core will still be
familiar: the same data model, the same query processor, the same BASIC. If you
are bringing programs over from another MultiValue database, start with
Migrating to SD.
Two ways to use it, one install#
There is one installer and no mode to choose. It asks for a global password last, and you can leave it blank:
| No global password | a single-user database on this computer, in the way SQLite is. Nothing else manages it |
| A global password | a local database that an SD Core for Linux server also manages — one of several computers it looks after. The server signs in with the global password you gave the installer. Such a computer is called managed |
A computer is managed if, and only if, it has a global password. It is set at installation and fixed until you reinstall: no command creates it, so a computer installed without one needs a reinstall to be managed.
Only an SD Core for Linux server manages a Solo computer. What the server can do today is on Managed mode, and it will grow as management features are added to SD Core for Linux.
What "used to" means in these pages#
These pages describe changes, so used to, no longer and now run all
through them. The comparison is against the multiuser SD Core for Linux
this product was made from — what it does differently in this release is in
Differences from SD Core for Linux LC2.0-0
— and, behind it, upstream sdb64, ScarletDME and OpenQM 2.6.6.
The pages#
The pages are numbered. Read them in numerical order the first time; after that they stand alone.
A number with a letter after it continues the page before it, split so
that no page runs longer than a reader will scroll: 01a continues 01, and
so on.
| 00 | Start here | this page — what the set is and what it leaves out |
| 00a | Copyright and license | The copyright and the license for this set, in full and in one place |
| 01 | Installing | What the installer asks, what it puts where, and the control file for installing many computers |
| 01a | Upgrading and uninstalling | Installing a new release over an existing one, and taking SD off the machine |
| 01b | Differences from SD Core for Linux LC2.0-0 | What Solo leaves out, adds and does differently |
| 01c | Installing many computers | The control file, what the installer checks when it finishes, the editors and the mouse, and changing any of it afterwards |
| 02 | Your first thirty minutes | Start here if you just want it working |
| 03 | Running SD | How SD starts, stopping it, and the command line |
| 04 | Scheduled jobs | Running an SD command on a timer |
| 05 | The account and its passwords | sduser, the account password, the administrator and global passwords |
| 06 | Administrator commands | The commands that need admin first |
| 06a | Sessions and locks | Who is signed in, what is locked, and clearing it |
| 06a1 | Task locks and the sessions screen | Task locks, forcing a lock open, and the sessions and locks screen |
| 06b | Operating system access | Reaching Linux from inside SD |
| 06b1 | Showing a document with pdf | The one bypass of the os switch, naming a reader, and the context help |
| 06c | Backing up and restoring the account | Writing the account to a zip file, putting it back, and recording the system's settings |
| 07 | Development and file commands | Compiling, editing, and the verbs that maintain files and indexes |
| 08 | ssh access | Reaching SD on this computer over ssh |
| 09 | API access | The client API, its port, and its login |
| 10 | Client distribution | Which client library an application needs |
| 11 | Lower case | Case in commands, file names and record ids |
| 12 | Security | What protects the database, and what does not |
| 12a | Security and the operating system | Reaching the computer from inside SD, and the audit trail |
| 13 | Other hardening | The global catalog, the logs, and the rest |
| 14 | Not in SD Core Solo for Linux | What has been removed, and what to use instead |
| 15 | Managed mode | What an SD Core for Linux server can do to a managed computer |
| 16 | Configuration | sd.conf and its parameters |
| 16a | System limits | The sizes and counts SD works within |
| 16b | Changing a parameter from SD | set.config and the E key of the configuration screen |
| 16c | Configuration - the parameters | Every parameter SD accepts, by subject, and the ones that were removed |
| 17 | The installed scripts | The scripts in the installed directory |
| 17a | The scripts SD runs itself | The ones the installer and SD call, which nobody types |
| 18 | Encryption and the SDEXT interface | What encryption SD has, and the interface behind it |
| 18a | Encrypting the data SD keeps on disk | Putting ~/SDCoreSolo on an encrypted disk, and what that does and does not protect |
| 19 | Known limits | What depends on your own environment, and what to check before relying on it |
| 20 | sdfix, the file check tool | Checking a hashed file's structure on disk, and recovering space |
| 20a | sdfix: what it checks and repairs | Every error a check reports, and what -F or -Q does about it |
| 21 | sdidx, the index relocation tool | Where a file's indexes are kept, and moving or deleting them |
| 22 | sdconv, the byte order convertor | What it converts (compiled programs only), and what it refuses |
| 23 | Giving an AI agent an installation of its own | Why the wall for an agent has to be a computer, and the recipe |
| 24 | The AI helper | Asking an AI model a question from SD: the provider, the key, the gate, and what a helper that runs as you cannot promise |
| 24a | Setting up the AI helper | The AI choice page, the set.ai verb, the standing text, the key, a custom provider, the audit trail and troubleshooting |
| 25 | The MCP door | Letting an AI agent's MCP client use your account through read-only tools: the two switches (both off), the audit line, and what the door does not add |
| 26 | Migrating to SD | Bringing programs and queries from another MultiValue database: where the compatibility words are set, and the words SD does not accept |
| 26a | Option words | The words of the option command, one line each |
| 26b | Mode words | The names $mode accepts and the lines of a $basic.options record, one line each |
The five things most likely to surprise you#
1. Every session asks for the account password. At the keyboard, over ssh
and through the API. Being signed in to Linux is not enough. A command given
on the command line — sd-solo list customers — uses a copy of the password kept
for you in your own home directory, so a script or a scheduled job does not
have to type it. See The account and its passwords.
2. Administrator commands need admin first. Type admin and the
administrator password (or, on a managed computer, the global password) and
they work for the rest of that session. See
Administrator commands.
3. There is one account and you cannot make another. It is called
sduser on every computer, whatever your Linux user is called. There is no
sdsys Linux user, no groups to join and no sudo helper. The account and
grant commands are gone. See
Differences from SD Core for Linux LC2.0-0.
4. Commands and names are lower case, completely. Typing in upper case still works — SD converts it — but nothing can exist in two casings. See Lower case.
5. ssh can land inside SD, and the API login is SCRAM. ssh on Solo's own port, 4251, takes your Linux account name and password (or a key, if you add one) and lands at SD's prompt, asked for the account password. Clients built against the old cleartext API login will not connect. See ssh access and API access.
What this release is#
LS2.0-0. Linux only and English only. It is a hobby project with no release schedule.
This set covers installing and running SD Core Solo for Linux, administering it, managed mode, and what differs from the multiuser SD Core for Linux. The reference for the language and the command processor is the separate User set.
Where the source is#
Both repositories are public, and everything in them is open source. SD is
GPL software — config gpl at an sd-solo prompt displays the license, and the
installed directory carries it as the file licence.
| The server, the client libraries and the installer | https://github.com/dmontaine/SDCore4LinuxSolo |
| These pages | https://github.com/dmontaine/SDCore4LinuxSoloDocs |
Neither repository contains a built binary, deliberately — no executable,
no .so, no object files. A clone builds, and that is why installing means
building: the installer downloads the source and compiles it in your home
directory. The documentation repository holds the Markdown only; the HTML
and PDF you are reading are generated from it.
Reporting what you find#
Open an issue on the server repository — https://github.com/dmontaine/SDCore4LinuxSolo/issues — for anything about SD itself, and on the documentation repository for an error in these pages. If you are not sure which, the server one is the right guess.
Issues rather than pull requests. Both repositories are readable by anyone and writable only by the author, so a change cannot be merged from outside; a clear issue is worth more than a patch nobody can apply. A patch attached to an issue is welcome, it just travels that way.
The two things worth reporting in most detail are anything that behaves differently from OpenQM and is not described here, and anything in these pages that turns out not to be true of the build you are running. The second is as valuable as the first.
Quote the version as LS2.0-0 — the string in the header bar of every page
here, in the sign-on banner, and in what sd-solo --version reports. The bare
2.0-0 is the same release; the LS says it is the Linux Solo one, and that is
the part worth keeping in a report.