7 Desktop Program
liquibyte edited this page 2026-11-27 18:07:51 -06:00

Desktop Program

folio-desktop is a window with a button for every command a person can send to a Folio site. It is for people who would rather click than type.

It does nothing of its own on the site. Each button sends the same command a person would type, and shows the answer. A button that only looks sends it with plain ssh, as ssh folio@dur.example.org comments xtk would. A button that changes something signs it first with your GPG key, the same way the folio command does (folio vote xtk): the site takes no change without that signature. So the site knows you by your SSH key and your GPG key, the program holds no password and no special rights, and whatever it can do, the Member Guide and the Command Reference explain as commands too. A few commands have fewer choices here than when typed (see What only a command does).

It sets no colours of its own: it wears the GTK 2 theme your desktop is set to.

Installing it

On your own computer, with sudo:

sudo apt install ./folio-desktop_0.1_amd64.deb

The file comes from whoever built Folio (see the Owner Install Guide, Part 1). The package also brings the package folio-client, with folio-mykeys, which makes keys, and the folio command, which does in a terminal what the buttons do. It also brings openssh-client, gnupg (whose /usr/bin/gpg signs every change), curl and ca-certificates (which fetch the site's SSH keys over https) and git.

Building it from the source instead

In a copy of Folio's source:

sudo apt install build-essential pkg-config libgtk2.0-dev
make desktop
bin/folio-desktop

make desktop builds bin/folio-desktop against the system's GTK 2 and prints which GTK library it will load. Run from there, the program finds client/folio-mykeys beside it, if no folio-mykeys is installed.

To build against gtk2-ng installed in a folder of its own:

make -B desktop GTK2NG=/path/to/gtk2-ng/prefix

-B builds again even if the program is there; GTK2NG names the folder gtk2-ng was installed into, and the program then loads its libraries from there. Such a build looks for themes in that folder only, so it comes up plain. To give it the system's themes, start it with GTK_DATA_PREFIX=/usr GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 bin/folio-desktop.

Starting it the first time

  1. Get your keys. You need two: an SSH key, which lets you in, and a GPG key, which signs every change. If you have none yet, run folio-mykeys in a terminal (see the Member Guide), or start the program and click My keys... (see My keys below). You can do this before you have an account.

  2. Get an account. Send both public keys to someone on the site who may vouch, with the account name you would like: your SSH key (~/.ssh/id_ed25519.pub) and your GPG key (folio-mykeys export > me.asc writes it to a file). See the Member Guide.

  3. Unlock your SSH key, if it has a passphrase. The program cannot ask you for it, so in a terminal, once per session, before you use the program:

    ssh-add ~/.ssh/id_ed25519
    

    Your GPG key's passphrase is asked for by gpg-agent, in a window of its own, the first time the program signs a change.

  4. Start the program. Type folio-desktop in a terminal, or start it from your desktop's "run" box. (The package adds no menu entry.)

  5. Say where the site is. The first time, the window Site opens by itself. Later, click Site... at the top right. Click Add... and fill in:

    Field What to enter
    Short name: the site's name on this computer, for example dur: letters, digits, -, _ and dots. The folio command knows the site by it (folio --site dur ...). It cannot be changed later
    Name shown: the name the program shows for the site, in its title and in the list of sites. Empty: the short name
    Address: what you give to ssh: folio@dur.example.org
    Port: the site's SSH port; leave it empty for 22
    Web address: where the site's pages are: https://dur.example.org. It must start with https://
    SSH private key: leave it empty: your usual SSH key is used, the same one the ssh command uses, and the line under the field says which (Your usual SSH key (~/.ssh/id_ed25519).). Fill it in (or click Choose...) only if you keep a separate key for this site. Choose your private key, for example ~/.ssh/id_ed25519 (not the .pub file). It never leaves your computer: when you connect, the site sends a random challenge, your computer signs it with this key, and the site checks the signature with the public key it already has on your account. See The SSH key field
    GnuPG home folder: leave it empty: your usual GPG keys (~/.gnupg) are used. Fill it in only if you keep the GPG key for this site in a folder of its own (a test site's keys, say); gpg is pointed at that folder for this site alone
    GPG key: the fingerprint of the GPG key to sign with. Choose... lists the keys in the GnuPG home folder above (gpg --list-secret-keys). Empty: the key folio-mykeys chose (~/.config/folio/pgp); a site with a GnuPG home folder of its own must name its key
    Certificate authority: leave it at None for a site whose https certificate comes from a public certificate authority, as almost every site's does. See A site with its own certificate authority for the other kind

    Your site's pages show a command like ssh -p 2222 folio@dur.example.org help. The part with the @ is the address; the number after -p is the port. The web address is the one in your browser when you look at the site's pages. Every field has a tooltip that says what it is for.

  6. Click Save, then Use this site. The program fetches the site's SSH keys from its pages (see The site's SSH keys) and shows their fingerprints in a window headed The site's SSH keys. Click Close. (If they cannot be fetched, a window headed The site's SSH keys were not fetched. says why.) It then asks the site who you are and reads everything. The line at the top should read You are NAME (member) on folio@dur.example.org, the window's title names the site (Folio: dur), and the status bar at the bottom says how many packages there are.

More than one site

You can keep several sites, each with its own keys: your own site and a test site, say, or two sites on the same computer. The window Site lists them:

  • Site: the sites kept on this computer. Choosing one shows its settings below the list, with the fingerprints of the SSH keys kept for it.
  • Add... adds a site (step 5 above).
  • Edit... changes the chosen site's settings, in the same window as Add.... Its short name cannot be changed; add it again under another name instead.
  • Remove forgets the chosen site on this computer, after asking: its settings, its certificate authority and the SSH keys kept for it. Nothing changes on the site, and your own keys are kept.
  • Use this site makes the chosen site the one the program talks to. Everything shown of the site before is forgotten (who you are there, every list, what a signed request holds), the new site's SSH keys are fetched, and everything is read again.

Changing the site in use with Edit... does the same: what the program learnt of it is forgotten and asked again.

Each site is kept in a file of its own, ~/.config/folio/sites/NAME (readable by you only, in a folder only you may enter), and ~/.config/folio/current names the one in use:

[site]
name=Dur
ssh=folio@dur.example.org
port=2222
key=
web=https://dur.example.org
pgp=0123456789ABCDEF0123456789ABCDEF01234567

What is trusted for a site is kept in a folder of its own, ~/.config/folio/trust/NAME: its SSH keys (hosts/HOST) and its certificate authority (ca.pem), if it has one. Two sites with the same host name (two test sites on localhost, say) never share them. The folio command reads and writes the same files, so a site added here works with folio --site NAME too, and the other way round (see the Member Guide).

Without a pgp= line the program signs with the key named in ~/.config/folio/pgp, which folio-mykeys writes (folio-mykeys use FINGERPRINT changes it).

From an older version. Older versions kept one site in ~/.config/folio/site. The first time this version starts, that file becomes the site default (~/.config/folio/sites/default, byte for byte, checked by reading it back), the SSH keys kept for it are copied along, it becomes the site in use, and only then is the old file removed. A window says so: Your site settings (~/.config/folio/site) are now the site "default" (~/.config/folio/sites/default); the old file was removed. If it cannot be done, the old file is left as it is and the window says that instead. A site file from a much older version has no web= line: the program then connects to nothing until you give the web address under Site..., Edit....

A site with its own certificate authority

A site's https address is vouched for by a certificate authority. Almost every site's certificate comes from a public one (Let's Encrypt, for example), which your computer already trusts; such a site needs nothing here. A site whose certificate comes from an authority of its own (a test site, or a site inside an organisation) cannot be reached until you give the program that authority, and the program trusts it for that site alone, never for any other site and never for the whole computer.

Ask the site's owner for two things: the authority's certificate (a file, often ca.crt or ca.pem), and its SHA-256 fingerprint, given to you in a way you trust (in person, or read out on the phone; not in the same mail as the file). The owner sees it with openssl x509 -in ca.crt -noout -fingerprint -sha256.

Then, under Site..., Add... or Edit...:

  1. Next to Certificate authority, click Choose... and choose the certificate file. A private key is refused (This file holds a private key. Choose the certificate authority's certificate (often ca.crt or ca.pem), never its key.), and so is a file that is not one certificate.
  2. A window shows the fingerprint the program worked out from the file, and says what trusting it means: Trusting it means that, for this site alone, whoever holds this authority's key can vouch for the site's https address, so trust it only once its fingerprint is the one the site's owner gave you.
  3. Type or paste the fingerprint the owner gave you (colons, blanks and small letters make no difference) and click Trust it. If the two are not the same, it is refused: The fingerprints are not the same, so the certificate authority was not trusted. Check that you chose the right file, and ask the site's owner again, in a way you trust (in person, or by phone).
  4. Click Save. Only now is the certificate copied, exactly as it was checked, to ~/.config/folio/trust/NAME/ca.pem, with its fingerprint in the site's file (ca-sha256=).

From then on, the program fetches from that site (its SSH keys) with curl --cacert ~/.config/folio/trust/NAME/ca.pem --capath /dev/null: that authority alone, and none of the system's. Before each use it checks the file again against the fingerprint you confirmed; if the file changed, nothing is fetched and the program says: The certificate authority file kept for this site is not the one whose fingerprint was confirmed, so nothing was fetched. Choose it again under Site, and confirm its fingerprint with the site's owner. None takes the site's own authority away again (the system's are then used, as for any other site).

The site's SSH keys

The first time a plain ssh command reaches a server, it cannot know whether that server is the site or someone in between, and asks you. This program does not ask, and does not trust a server it has never seen. Instead:

  1. The site publishes its own SSH keys on its pages, as the file ssh-host-keys (for example https://dur.example.org/ssh-host-keys). https vouches for that file, as it does for the pages.
  2. The program fetches it with curl, over https only, when you click Use this site under Site..., and when it holds no keys for the site yet. Unless the site has its own certificate authority, https is vouched for by the system's certificate authorities.
  3. It keeps the keys in ~/.config/folio/trust/NAME/hosts/HOST (NAME the site's short name, HOST its host name) and tells ssh to trust those keys and no others for the site. Once kept, they are not replaced by themselves.
  4. A server that shows another key is refused by ssh before anything is sent. The program then fetches the site's keys again. If the pages list the same keys, it says: The site's SSH key does not match the keys it publishes at https://dur.example.org/ssh-host-keys, which are the ones this program trusts. Nothing was sent. Someone may be between you and the site: ask the site's owner before you go on. If they list other keys (the site's owner changed them, after a break-in or a move), it shows the fingerprints trusted until now and the ones listed now, and asks Trust the new keys?. Say Yes only if the owner told you the keys changed and gave you these fingerprints; then try again. No keeps the old ones (The SSH keys this program trusts for the site were not changed, and nothing was sent.).

The window Site shows the fingerprints of the keys kept for the chosen site, under The site's SSH keys, as fetched:. The site's home page shows the same fingerprints. If there are none yet and they cannot be fetched (the pages are down, for example), the program does not connect.

The window

+-----------------------------------------------------------------------+
| You are NAME (ROLE) on folio@...   [Refresh] [My keys...] [Site...]   |
+-----------------------------------------------------------------------+
| Packages | My account | Builds | Nodes and mirrors | Requests |       |
| People | Changes                                                      |
+-----------------------------------------------------------------------+
|                                                                       |
|   the chosen tab                                                      |
|                                                                       |
+-----------------------------------------------------------------------+
| status bar: the last line of the site's last answer                   |
+-----------------------------------------------------------------------+
  • Refresh asks the site for everything again. After every button that changes something, the program does this by itself.
  • My keys... opens the window My keys.
  • Site... opens the window Site (step 5 above, and More than one site).
  • The window's title names the site in use (Folio: dur).
  • The status bar at the bottom shows the last line of the site's answer. When something did not work, a window says why.

There are seven tabs: Packages, My account, Builds, Nodes and mirrors, Requests, People, Changes. Some boxes and buttons are only shown to those who may use them (see What is shown to whom).

Every button in the main window has a tooltip. Rest the pointer on a button and it says what the button does and, where not everyone may, who may use it. (The buttons inside the small windows that ask for something have none.)

Most buttons act on what is chosen in a list. Click a row first, then the button. Buttons whose name ends in ... ask for something before they send anything.

My keys

The window My keys shows the SSH and PGP keys on this computer and makes the ones that are missing. The PGP key (a GPG key) is the one the program signs every change with. It runs folio-mykeys on your computer and talks to no site. A key you have is never replaced.

  1. Click My keys... (at the top, or on the tab My account). The upper part shows what you have, as folio-mykeys show prints it.

  2. Fill in:

    Field What it is for
    Your name: written into a new PGP key, for others to see
    Your e-mail address: the same
    Passphrase: locks both new keys. You type it when you use them. Empty means no lock: whoever gets the files can act as you
    The same again: the passphrase once more, to catch a typing slip
  3. Click Make what is missing. The upper part then shows what was made, for example Made your SSH key: /home/you/.ssh/id_ed25519.pub.

  4. Click Close.

My keys works with your usual keys (~/.ssh, ~/.gnupg), whichever site is in use. Keys kept apart for one site (its SSH key file and GnuPG home folder under Site...) are made and looked after with ssh-keygen and gpg --homedir FOLDER yourself.

Doing things, step by step

Offer your projects

  1. Tab Packages, below the list: click Watch a forge account....
  2. Enter your account's address on the forge, for example https://forge.example.org/you, and click OK.
  3. The site imports every repository there. The list fills with your new packages; the status bar shows the site's last line, (What could not be imported, and why: imports).
  4. Click Not imported... to see which projects were turned down, and why.

For a single repository, click Follow a repository... instead and enter its address, for example https://forge.example.org/you/project.git.

Vote, and comment

  1. Tab Packages: click a package in the list on the left. Its name, version, description and votes appear on the right.
  2. Click Vote for it. Once you have voted, the same button reads Take my vote back.
  3. To comment, write in the box Your comment at the bottom right, then click Add comment. The comment appears in the list Comments.

Look after a package

  1. Tab Packages: click your package in the list.
  2. Use the row Look after it: (see the table under Packages). Flag..., Keywords..., Co-maintainers... and Request... ask for the words first.

Use another computer too

  1. On the other computer, make an SSH key (folio-mykeys, or My keys... there) and copy its .pub file to this computer.
  2. Here: tab My account, click Add a key..., and choose that file.
  3. The list Your SSH keys now shows both keys.

The other computer can then look. To change things from there too, it needs your GPG key as well, since an account has one GPG key: move it there with gpg --export-secret-keys --armor FINGERPRINT on this computer and gpg --import on the other, then folio-mykeys use FINGERPRINT there.

Get mail about your packages

  1. Tab My account: click Mail me at... and enter your address.
  2. A mail with a code arrives. Click Enter the code... and enter it.
  3. The text at the top of the tab now has a line mail: with your address. No more mail stops it.

Sign your work

  1. Your account's GPG key, the one every change is signed with, also signs your commits. The text at the top of the tab My account shows its fingerprint on the line pgp:.
  2. Have git sign your commits with it (see the Member Guide).

The key chosen to sign with (the site's GPG key under Site..., pgp= in ~/.config/folio/sites/NAME, or else ~/.config/folio/pgp) may be the account's key itself or a subkey under it that can sign and is neither revoked nor run out: the site takes a signature whose primary key is the account's. The folio command checks the same. Any other key is refused before anything is sent. So is a computer whose clock is more than four minutes off the site's: Your computer's clock is N seconds off the site's, and the site takes a request only within five minutes of its own time: set your clock right (nothing is sent without that).

Send my PGP key to the site sends the site's GPG key (from its GnuPG home folder, if it has one), or else the key ~/.config/folio/pgp names (what folio-mykeys export prints), and signs the request with that same key. The site takes the request only if it is signed with the key it has now, so this button cannot switch you to a new key: after folio-mykeys use NEW-FINGERPRINT the program refuses before it sends anything (The site knows your account by the GPG key ...). To switch to a new key, use a terminal while the old key is still chosen and still on this computer:

gpg --armor --export NEW-FINGERPRINT | folio pgp set
folio-mykeys use NEW-FINGERPRINT

The first line sends the new key, signed with the old one; the second makes the program and folio sign with the new one from then on (see the Member Guide). If the old key is lost, ask an administrator to set the new one (admin pgp NAME).

Let a new person in (if you may vouch)

The box Let a new person in (vouch for them) on the tab People says first whether you may, and why: You may vouch for new people: as an administrator. (or as the owner, or in the vouching group). If you may not, it says so and greys out its fields: You may not vouch for new people: you are neither an administrator nor in the vouching group. Ask an administrator if you should be (admin voucher NAME on).

  1. Get both their public key files, the SSH key (.pub) and the GPG key (.asc), and the account name they want.
  2. Tab People, box Let a new person in (vouch for them): type the name under Account name:, choose the SSH key under Their SSH key (.pub): and the GPG key under Their GPG key (.asc):, and click Vouch.
  3. The status bar says Account NAME created (vouched for by YOU), with the GPG key FINGERPRINT., and the new account appears in the list.

Only public keys are sent

Add a key..., Vouch, Set their GPG key..., Let it in and Set chosen's GPG key send a key file you choose, and Send my PGP key to the site sends what folio-mykeys export prints. Before anything is sent, the program looks at it:

  • An SSH key must be the one line of a .pub file: ssh-ed25519, ssh-rsa, ecdsa-sha2-nistp256 (or 384, 521), sk-ssh-ed25519@openssh.com or sk-ecdsa-sha2-nistp256@openssh.com, then the key, then perhaps a comment. At most 8 KB.
  • A PGP key must be one block that starts with -----BEGIN PGP PUBLIC KEY BLOCK-----. At most 256 KB.
  • Anything with PRIVATE KEY in it (in any case), a PuTTY key file (PuTTY-User-Key-File), and a PGP block with PRIVATE KEY BLOCK or SECRET KEY, is refused as a private key.

What is refused is not sent at all, not a byte of it. The window says why:

What it says Why
This is a private key. It never leaves your computer: choose the file ending in .pub. you chose id_ed25519 instead of id_ed25519.pub: the private half of the key
That file is not an SSH public key. A .pub file holds one line that starts with ssh-ed25519, ssh-rsa, ecdsa-sha2- or sk-. some other file, or a file with more than one key in it
That file is too large to be an SSH public key. more than 8 KB
This is a private PGP key. It never leaves your computer: send the public key (folio-mykeys export, or gpg --armor --export). what was to be sent holds a private PGP key
That is not a PGP public key. It must be one block that starts with -----BEGIN PGP PUBLIC KEY BLOCK-----. the file you chose, or what came out of folio-mykeys export, is something else
That is too large to be a PGP public key. more than 256 KB

Every tab, button by button

The column "Runs" is the command the button sends, as in the Command Reference. The buttons that only show something (Not imported..., Settings, Releases, Its key, Check the signatures, Refresh) send it with plain ssh; every other button changes something, and sends its command signed with your GPG key.

Packages

On the left, the list of every package (Package, Version, Votes, Description), and under it:

Button Runs Does
Follow a repository... follow ADDRESS import one repository, and every new commit of it
Watch a forge account... watch ADDRESS import every repository of your forge account, and new ones later
Not imported... imports show what could not be imported, and why
Stop watching unwatch stop watching your forge account; the packages stay

On the right, the chosen package: its name and version, its description, its votes ("2 votes (one is yours)"), and:

Button Runs Does Who
Vote for it / Take my vote back vote / unvote vote, or take the vote back everyone
Approve newest upload approve let the newest upload into the reviewed part. An administrator may approve anyone's upload but the owner's; only the owner approves the owner's administrators, the owner
Move to: main / unsafe admin move put the package in the other part administrators

The row Look after it:

Button Runs Does
Flag... flag say a newer version is out, with what is newer
Unflag unflag take the flag off
Keywords... keywords set the words to find it by, with spaces between
Co-maintainers... comaintainers name who else looks after it, with spaces between
Give up disown stop being its maintainer (asks first)
Adopt adopt become the maintainer of one that has none
Request... request ask for it to be freed (orphan), removed (delete) or merged (merge OTHER), then the reason
Fetch now fetch have the site look for new commits now
Unfollow unfollow stop importing its new commits

Everyone sees these buttons; where you may not use one, the site says so when you try.

Below, the list Comments (By, Comment), and:

Button Runs Does Who
Remove the chosen comment admin remove-comment take the chosen comment off the page administrators
Add comment comment add what you wrote in the box Your comment everyone

My account

At the top, your account as whoami shows it: name, role, the day you joined, how many keys, and, if set, where mail goes (mail:), your PGP key (pgp:) and the forge account you watch (watches:).

Button Runs Does
Add a key... key add add an SSH key; choose its .pub file (see Only public keys are sent)
Remove the chosen key key remove remove the key chosen in the list Your SSH keys. Your last key cannot be removed
Mail me at... mail set give an address; the site mails a code to it
Enter the code... mail confirm the code from that mail
No more mail mail remove stop the mail and delete your address
Send my PGP key to the site gpg --export of the site's GPG key (or folio-mykeys export), then pgp set send the site's GPG key (or the key ~/.config/folio/pgp names) to the site, signed with that same key. It cannot switch you to a new key (see Sign your work)
Take it off my account pgp remove remove it (asks first). Your account can then only look, and your signed commits are no longer taken as yours (on a site that requires signed commits, they are refused), until an administrator sets a new key
My keys... folio-mykeys the window My keys

Builds

The list of the newest 100 builds: Build, Package, Version, For (release and processor type), State, Node, Queued (UTC).

Button Runs Does Who
Build the chosen one again rebuild queue the chosen build again, for example after a package it waited for was published. Only a finished build of the package's newest upload the package's maintainers, administrators (on the owner's package, only its maintainers)
Remove the chosen build admin build remove take it off the list, with its log. Not one being built or one that is published administrators

Nodes and mirrors

The list Build nodes (Node, State, Builds for, Let in by) and the list Mirrors (Mirror, Address, Listed by).

The box Administrator: build nodes (administrators):

Button Runs Does
Let it in admin node add let a node in: type its name under New node's name:, choose its SSH key under Its SSH key (.pub): and its GPG key under Its GPG key (.asc): first. Both are sent, the SSH key's line first; the GPG key signs every claim and result the node sends
Set chosen's GPG key admin node key give the build node chosen in the list its GPG key, or a new one: choose the key under Its GPG key (.asc): first. For a node let in before nodes had one, or after its key ran out or was lost
Switch chosen off admin node disable the chosen node's key no longer gets in; what it was building goes back into the queue
Switch chosen on admin node enable let it work again

Under the mirrors (administrators):

Button Runs Does
List a mirror... admin mirror add list a copy of the site kept elsewhere: its name, a space, its address
Take the chosen mirror off admin mirror remove remove the chosen mirror from the list

Requests

The list of open requests: Package, Asked, Into, By, Why, ID.

Button Runs Does Who
Accept the chosen request accept do what it asks. For delete and merge it asks first, because the package is then removed from the site and the archive maintainers, administrators. A maintainer cannot accept their own request. On the owner's packages, only the owner
Turn it down (or withdraw your own) reject close it; nothing is changed maintainers, administrators (on the owner's packages, only the owner), the package's maintainer, whoever asked

The list Found on the forge (Project, Lives at, State): projects on a forge the site watches as a whole, waiting to be let in.

Button Runs Does Who
Let the chosen one in... admit import and build it from then on. It asks for a package name; leave it empty for the project's own maintainers, administrators
Turn it down... decline turn it down, with a reason that may stay empty maintainers, administrators

People

The list of accounts: Account, Name, Role, State, May vouch. May vouch says why: yes (as the owner), yes (as an administrator) or yes (in the vouching group); it is empty for an account that may not.

The box Let a new person in (vouch for them), with a line that says whether you may vouch and why (greyed out if you may not): Account name:, Their SSH key (.pub):, Their GPG key (.asc):, and the button Vouch (vouch, with both keys).

The box Administrator: change the account "NAME" (administrators; it reads Administrator: choose an account in the list above until you click one):

Button Runs Does
Change its role to: a role, then Set role admin role make the chosen account a member, maintainer or administrator. Only the owner can choose owner: that hands the site over, and the owner becomes an administrator
May vouch / May not vouch admin voucher on / off put the chosen member or maintainer in the vouching group, or take it out. Greyed out for an administrator or the owner, who may vouch in any case (the tooltip says so)
Reason:, then Suspend admin suspend lock the chosen account out, with the reason (asks first)
Unsuspend admin unsuspend let it back in
Set their GPG key... admin pgp set the chosen account's GPG key: choose their public key file (.asc). For an account that has none, or whose person lost theirs, or whose key ran out and was renewed. Only the owner sets the owner's, on their own account, signed with their current key (the same as pgp set). The person is mailed

Changes

This tab is shown to administrators only. The list of the latest 100 changes, newest first: Change, and "When, who, what".

Button Runs Does Who
Undo the chosen change admin undo reverse the chosen change; the undoing is recorded too (asks first) administrators
Check the signatures admin verify check the site's signature on every change in the record administrators
Accept doubted changes... admin verify accept CODE or admin verify accept all list the changes admin verify doubts (signed with a signing key that was revoked as stolen later), and accept the chosen one, or all of them, as the site's own. Look at each first, against a copy of the record from before (a backup, or the forge's copy): accepting says you have looked at it and it is the site's own (asks first) the owner
Erase from the history... admin erase take a comment, an account or a removed package out of the record for good. Write comment PACKAGE ID why, account NAME why or package NAME why. Cannot be undone (asks first) the owner

The box Administrator: the site (administrators):

Button Runs Does
Settings admin settings show every setting
Change a setting... admin set its name, a space, its new value; the name alone removes it (see the Settings Reference)
Releases admin releases show what the mirrors of the distributions the site builds for say of their releases: which is stable, testing and so on, one the site does not build, one that has gone
Publish to a forge... admin publish-to ADDRESS the first step of keeping the record, the pages and the archive on a forge: the site fetches the SSH host key of the forge's server and shows its fingerprint, to compare with the server's own (ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub on that server, or the forge's admin page). Nothing is sent yet
Confirm the forge's key... admin publish-to ADDRESS FINGERPRINT the second step: give the same address, then the fingerprint you compared. Only then does the site send anything, and only to a server that shows that key. The answer shows the key the forge must let in (see Forge Setup, B1)
Its key admin publish-key show that key again, and the forge's host key the site trusts
Publish now admin publish-now send what changed now, and show what happened
Stop publishing admin publish-off stop sending; what is on the forge stays
Watch the whole forge... admin watch-forge list every public project on a forge as waiting to be let in (tab Requests)
Stop that admin unwatch-forge stop looking at the whole forge
Package list... admin registry-to also put each published package into the forge's own package list
Token... admin registry-token paste the forge's access token for that; it is sent to the site and not shown again
Stop the list admin registry-off stop that, and delete the token

What the forge itself must be given for these (a key, a token) is in Forge Setup. The program cannot do that part: it happens on the forge.

What is shown to whom

What an account may not do is not shown:

Shown only to What
administrators and the owner Approve newest upload, Move to:, Remove the chosen comment, Remove the chosen build, the box Administrator: build nodes, the mirror buttons, the administrator's box on People, the tab Changes with the box Administrator: the site
the owner Erase from the history..., Accept doubted changes...

Everything else is shown to everyone. The box Let a new person in (vouch for them) is shown to everyone too, with a line that says whether you may vouch and why; it is greyed out for those who may not. Where you may not do something else, the site says so when you try.

What is done on the server, not here

Thing Where it is explained
the site's key (every change of it is made on the owner's computer with folio-site-key; moving the master off an older server) Owner and Administrator Guide
backups, and moving the site Owner and Administrator Guide
changing the logo or other pictures Settings Reference

What only a command does

Typed In the program
follow ADDRESS NAME (choosing the package's name) Follow a repository... takes the address only; the name comes from it
builds PACKAGE (one package's builds) the tab Builds lists the newest 100 builds of all packages
rebuild PACKAGE (the newest upload again, for every release) Build the chosen one again takes one build from the list
admin log NUMBER the tab Changes shows the latest 100
admin build remove NUMBER NUMBER ... one build at a time
cat node.pub node.asc | folio admin node add NAME arm64 (a node for another processor type) Let it in lets in amd64 nodes only
help this page

While it works

While a command runs, the pointer shows a busy cursor and the windows take no clicks until it is done. The window cannot be closed in the middle of a command. If the site cannot be reached, ssh gives up after ten seconds and the program says why.

The program never stops to ask ssh's questions. It connects only to a server that shows one of the keys the site publishes (see The site's SSH keys); there is no "trust it the first time".

It starts /usr/bin/ssh, /usr/bin/curl, /usr/bin/ssh-keygen, /usr/bin/gpg and folio-mykeys by their full names, never by looking along PATH, and passes them their words one by one, never through a shell. folio-mykeys is /usr/bin/folio-mykeys, else the one in the folder the program itself is in, else ../client/folio-mykeys beside it (when it runs from where it was built). The programs get your environment as it is, so that ssh finds your unlocked keys (SSH_AUTH_SOCK) and gpg finds gpg-agent.

For a button that changes something, the program first asks the site what a request there holds (request-info: the site's key, your account and the GPG key the site has for it), once. It checks that the site's key for your account is the one it would sign with, makes the request, has /usr/bin/gpg sign it, and sends it as signed REQUEST SIGNATURE. How a request looks is in How It Works.

The SSH key field

SSH private key: under Site..., Add... or Edit... names the key the program reaches the site with. The dialog says, under the field: "Choose your private key, for example ~/.ssh/id_ed25519 (not the .pub file). It never leaves your computer: when you connect, the site sends a random challenge, your computer signs it with this key, and the site checks the signature with the public key it already has on your account. Leave it empty to use your usual key."

  • Empty (the usual case): ssh uses your usual key, or your SSH agent's. The line under the field names it: Your usual SSH key (~/.ssh/id_ed25519).
  • The private key file (~/.ssh/id_ed25519): it is used as it is. The line says Uses your SSH key ~/.ssh/id_ed25519 (it never leaves this computer).
  • The .pub file (~/.ssh/id_ed25519.pub): many people pick this one, and that is fine. The program uses the private key file beside it, keeps that one in the site's settings, and says so: Uses your SSH key ~/.ssh/id_ed25519 (the private half of id_ed25519.pub, which never leaves this computer). Only when there is no private key file beside it is it refused.

Choose... opens in ~/.ssh and shows the files named id_... (both halves); pick All files for a key with another name. The program reads only the first line of a private key file, to see that it is one, and never sends, copies or shows it.

Before each connection the program checks the file again. A site's settings from before that name the .pub file are mended when the program starts: the private key file beside it is kept instead, and the status bar says which file is used. ssh refuses a private key file that others can read; the program says so first, with the command that mends it (chmod 600 ~/.ssh/id_ed25519).

The line under GPG key: says the same of your GPG key: your changes are signed on this computer with your private GPG key, through gpg-agent; the site checks them with your public key.

If it says something did not work

A window opens with what went wrong and what ssh or the site said. When the program cannot reach the site at all, the window is headed Could not reach the site. and the line at the top reads Not connected.

What it says Why
Permission denied (publickey) (the program adds: "The site did not accept your SSH key. Is your key on your account there, and unlocked (ssh-add)?") ssh offered a usable key and the site did not take it. Most often: your key has a passphrase and is not loaded (ssh-add, step 3). Otherwise: you have no account yet, your account is suspended, or you are using another key than the one you were let in with
Your SSH private key file ~/.ssh/id_ed25519 can be read by others, so ssh will not use it. Make it readable by you alone: chmod 600 ~/.ssh/id_ed25519 the key file's permissions let others read it, and ssh refuses such a key
~/.ssh/NAME.pub is the public half of an SSH key, and its private half (NAME) is not beside it. Choose the private key file: the one without .pub. the .pub file chosen under SSH private key: has no private key file next to it
There is no SSH key file ~/.ssh/NAME. Choose your SSH key, or leave it empty to use your usual one. the key file named for the site is gone
~/.ssh/NAME is not an SSH key file. ... the file chosen is neither half of an SSH key
WARNING: UNPROTECTED PRIVATE KEY FILE!, bad permissions, invalid format, Load key or no such identity (from ssh; the program adds what it means) ssh could not use the key file: others can read it, it is not a private key, or it is not there
Connection refused, timed out or Could not resolve (the program adds: "The site could not be reached. Check the address and port under Site.") the address or port under Site... is wrong, or the site is down
The site's SSH key does not match the keys it publishes at ... the server you reached showed a key the site does not publish. Nothing was sent. Do not go on: ask the site's owner
The site's web address is not set: click Site and give it (https://...). This program fetches the site's SSH keys from there before it connects. your settings have no web address (an older version wrote them)
The site's web address must start with https:// (for example https://dur.example.org). the web address under Site... is not https
The site's web address is not a plain https address (for example https://dur.example.org). the web address holds something an address of pages does not: a blank, @, ? or #, for example
The site's SSH keys could not be fetched from https://.../ssh-host-keys, so it was not contacted. (then what curl said) the web address is wrong, the pages are down, or the site publishes no keys (its owner runs folio-install again)
What https://.../ssh-host-keys holds is not a list of SSH keys, so the site was not contacted. the web address leads to something else than a Folio site's pages
/usr/bin/curl is not installed. It comes with the package curl. install curl (the package folio-desktop depends on it)
No site is set yet: click Site. the window Site was closed without a site in use
The certificate authority file kept for this site is not the one whose fingerprint was confirmed, so nothing was fetched. Choose it again under Site, and confirm its fingerprint with the site's owner. (then the file's name) ~/.config/folio/trust/NAME/ca.pem changed since you confirmed its fingerprint. Nothing was fetched or sent. Choose the certificate again under Site..., Edit..., and confirm its fingerprint with the site's owner
curl: (60) SSL certificate problem: ... (the program adds: "The site's https certificate is not vouched for by a certificate authority this program trusts for it. ...") the site's certificate comes from an authority of its own, and none is given for the site (see A site with its own certificate authority); or the one given is not the one that vouches for the site
This file holds a private key. Choose the certificate authority's certificate (often ca.crt or ca.pem), never its key. the file chosen as the certificate authority is its key. Choose its certificate
That file is not a certificate in PEM form (a block that starts with -----BEGIN CERTIFICATE-----). / That file holds more than one certificate. ... the file chosen is something else, or a bundle of several. Ask the site's owner for the authority's certificate alone
The fingerprints are not the same, so the certificate authority was not trusted. ... the fingerprint typed is not the chosen file's. Check the file, and ask the owner again
There is no site NAME (...) / That site's file is not as Folio writes it. the site's file in ~/.config/folio/sites/ is gone or damaged. Add the site again
/usr/bin/gpg is not installed (it comes with the package gnupg). Every change is signed with your GPG key, so nothing was sent. install gnupg
No GPG key is chosen to sign with, so nothing was sent. Make one with "My keys..." (folio-mykeys pgp), or choose yours: folio-mykeys use FINGERPRINT (or under Site, Edit..., give it as the site's GPG key). no GPG key for the site and no ~/.config/folio/pgp: make a key with My keys..., or choose the one you have
No GPG key is chosen to sign with, so nothing was sent. This site keeps its keys in FOLDER: under Site, Edit..., choose one of them as its GPG key. the site has a GnuPG home folder of its own but no GPG key: choose it under Site..., Edit...
Your account on the site (NAME) has no GPG key, so it can only look. Send your public key (folio-mykeys export) to an administrator of the site, and ask them to set it: admin pgp NAME the account was made without a GPG key, or the key was taken off. Only an administrator can set one
The site knows your account by the GPG key X, but this program would sign with Y. Choose that key (folio-mykeys use X), or have an administrator set yours (admin pgp NAME). you have several keys and the chosen one is not your account's, or you chose a new key before the site had it. Choose the old one again (and send the new one as in Sign your work), or have an administrator set the new one
Your GPG key could not sign the request, so nothing was sent. Is the key on this computer, and is gpg-agent running and able to ask for its passphrase? (then what gpg said) the chosen key's private half is not on this computer, or gpg-agent could not ask for the passphrase (no window for it to open)
a line starting with folio: the site's own answer: what you asked for was refused, and why. The answers about signed requests (a clock that is off, a key that ran out) are in Troubleshooting