Everything on this page is a change you may notice while testing, grouped by what it touches. The passwords and what each one guards are on Security; this is the remainder.
The global catalog#
Nobody changes the global catalog in a session — not with admin, not with
the global password. catalog ... global, and delete.catalog of a name that is
global (a name starting !, _ or $), are refused, and so is a program's
own write, delete or clear of global.bp.out and gcat:
:catalog bp myprog global
The global catalog holds the SD Core server's programs from global.bp.out and is changed only by sync.global.catalog
This matters because the global catalog holds the programs SD runs for
everybody, $login among them. Replacing one runs your code in every session,
and deleting one stops everybody signing in. In the multiuser product admin
was enough to overwrite SD's own $ and ! programs; here it is not.
On a managed computer the catalog is the server's, made from the compiled
programs the server puts in global.bp.out and kept in step by
sync.global.catalog, which only a session signed in with the global password
can run. See Managed mode. On a computer with no
global password the global catalog is only SD's own and sync.global.catalog
says there is nothing to manage.
Nothing changes for local and private cataloging, which is what programmers use day to day:
catalog bp myprog private catalog, this account
catalog bp myprog local this account's VOC
Both still work, and neither offers to remove a same-named global entry any
more. The only thing you cannot do is catalog a program whose name starts with
!, _ or $ — those characters mean global. Name it without one. You may
run a globally cataloged program.
The pcode library#
~/SDCoreSolo/bin/pcode is the interpreter itself, which SD loads into shared
memory at start-up and every session then runs. It is your file, like all the
rest, and is replaced by an upgrade.
Scheduled jobs#
A cron job or systemd timer can run any SD command, as you, with the kept password. There is no permit list. It has its own page: Scheduled jobs.
The logs#
There are two SD keeps itself, and they are not interchangeable.
| File | Where | For |
|---|---|---|
audit |
~/SDCoreSolo |
who did what — sign-ins, refusals, admin, passwords. See Security and the operating system |
errlog |
~/SDCoreSolo |
diagnostics |
A third place is worth checking, and it is not a file SD writes at all:
journalctl. SD logs to syslog under the tag sd_Log, and your user manager
logs the service:
journalctl -t sd_Log
journalctl --user -u sd-solo.service
API connections in the journal#
Every accepted API connection is logged with the address and port it came from:
sd_Log[115214]: API connection over TCP from 203.0.113.4 port 51322 (SD login required)
Nothing is refused on the strength of it. This records who connected; it does not decide who may. The API's own checks are unchanged.
A connection forwarded over ssh shows the tunnel's own endpoint, not the person at the far end: the tunnel genuinely does terminate on this computer, so the line cannot name a remote person.
Line endings#
Directory files exist so you can edit their records with an ordinary text editor, and a file that started life on a Windows machine — a CSV saved from Excel, a record pasted from Notepad — may still carry CR+LF line endings. SD reads either ending correctly: only the CR+LF pair that ends a line is treated as a line ending, so a bare CR that happens to be data is left exactly as it is.
What SD itself writes follows the platform's own convention, LF only, for writeseq/writecsv output,
como-captured output and the error log. SD's CSV statements are documented as
following RFC 4180, which technically asks for CR+LF — if you need output
another program expects to be CR+LF-terminated, check that program's own
tolerance for LF-only lines rather than assume SD supplies the pair.
Dynamic files are unaffected — they are stored in SD's own format and are not readable by other programs.
The terminal#
The default terminal type is linux. term on its own should report your
session's actual TERM — over ssh, whatever your client sent; locally, whatever
the terminal emulator or console set.
25 definitions ship, compiling to 36 terminal names — the extra names are
variants such as vt100-w — so term wyse60 still works. (The -at types of AccuTerm and SDTerm's sdterm were removed: SD does not support those terminal programs.)
A name that is not installed is refused and your current type is kept —
"Unrecognized terminal name" — so a typo costs you nothing. term with no
argument reports the type actually in force, which is how to check.
Watch for near-misses all the same. There is no vt320 definition; vt220
or xterm does the same job. terminfo.src ships with SD, so sdtic can add
a definition that is not there.
Backspace works, at the prompt and when you are asked for a password.
The page is 140 × 43, not 80 × 24#
SD's default terminal size is 140 columns by 43 lines. A terminal narrower than that makes wide reports
look wrapped or truncated, which reads as a formatting bug and is not one. SD's own
full-screen programs (sed, ced, ide, the home screen) want at least 140 columns by
43 lines and refuse a smaller window.
term reports the size in force, above the Device line:
:term
Page width: 140
Page depth: 43
Device : linux
The size is worked out at login, in this order: the LINES and COLUMNS
environment variables if they are numeric, otherwise the terminfo entry's
lines and cols, otherwise 43 and 140 — then raised to a minimum of
10 × 20 if smaller. So a console or ssh session normally gets its real window
size and 140 × 43 is the fallback when nothing answers, which is the case for a
phantom or a piped script.
term defaultrestores it, and it prints nothing when it does. It sets the same 140 × 43 the login path falls back to and returns silently, so run a baretermafter it to see the result.term 120,36does the same by hand for the old size.
Running SD#
| The unit | sd-solo.service, and with an API sd-solo-api.socket |
| After an unclean shutdown | SD starts anyway, once the daemon's own liveness — not just the segment's presence — is checked. See Running SD |
| Nested sessions | SD will not start a second time inside itself — see Running SD |
sd-solo <command> |
uses the kept password, and any command may be given — see Scheduled jobs |
| End of piped input | ends the session — at the command prompt, at PAUSE and at the Ctrl-R search |
Setting no password#
On SD Core Solo for Linux every session asks for the account password, and an account with none set cannot be signed in to at all — the installer always sets one, or, on a computer installed from a control file, the first console session does. See The account and its passwords.