Installer settings¶
The guided install is on Install nextPYP, and that’s the friendliest way in. This page is for when you want to script the install, passing every setting on the command line, and it also has the full list of PYP_* variables for when you need to look one up.
From the command line¶
The same ./install takes its answers as PYP_* variables. Any PYP_* setting on the command line turns the questions off, and the installer then uses different defaults from the wizard:
Setting |
Wizard |
Command line, when not given |
|---|---|---|
|
asks, default yes |
Apptainer is not installed. The install stops with |
|
|
unset: every folder you name must already exist. Pass |
|
|
|
|
|
foreground on a fresh directory: the installer waits for the compute container download (tens of GiB). Pass |
|
|
With |
Tip
A command-line run on a fresh directory prints the rows from this table that apply to it, under Command-line install. These defaults differ from the wizard's:, before it changes anything. Set the variable, or stop the run with Ctrl-C, if a listed default is not what you want.
Note
A cluster install (PYP_SLURM_HOST set) with PYP_REMOTE=false is refused: compute nodes could not reach a website bound to 127.0.0.1.
A few things worth knowing:
./install --yeskeeps the wizard defaults and does not ask../install --non-interactivenever asks and never reads a terminal.A root run that is not under
sudomust also passPYP_ADMIN=<login>(orPYP_ALLOW_ROOT_OWNER=true) to name who owns the program files.
Here are some starting points you can adapt. First, a regular account, accepting every wizard default:
mkdir -p ~/nextPYP
cd ~/nextPYP
wget -O install https://nextpyp.app/files/pyp/latest/install
chmod u+x install
./install --yes
mkdir -p ~/nextPYP
cd ~/nextPYP
curl -fsS -o install https://nextpyp.app/files/pyp/latest/install
chmod u+x install
./install --yes
An administrator account on a workstation:
sudo mkdir -p /opt/nextpyp
cd /opt/nextpyp
sudo wget -O install https://nextpyp.app/files/pyp/latest/install
sudo chmod u+x install
sudo PYP_USER=nextpyp PYP_STORAGE=/large-storage/nextpyp \
PYP_INSTALL_DEPS=true PYP_CREATE=true PYP_AUTH=login PYP_FETCH=background \
./install --non-interactive
sudo mkdir -p /opt/nextpyp
cd /opt/nextpyp
sudo curl -fsS -o install https://nextpyp.app/files/pyp/latest/install
sudo chmod u+x install
sudo PYP_USER=nextpyp PYP_STORAGE=/large-storage/nextpyp \
PYP_INSTALL_DEPS=true PYP_CREATE=true PYP_AUTH=login PYP_FETCH=background \
./install --non-interactive
An administrator account on a web server that submits to a SLURM login node over SSH. PYP_STORAGE must not be set here: it would put every folder under one local path. The shared and scratch folders already exist (see Cluster folders). Name CPU and GPU partitions in the SLURM template, not in the installer:
sudo PYP_USER=nextpyp \
PYP_SHARED_DATA=/nfs/nextpyp/shared \
PYP_SHARED_EXEC=/nfs/nextpyp/sharedExec \
PYP_LOCAL=/opt/nextpyp/local \
PYP_SCRATCH=/scratch/nextpyp \
PYP_SLURM_HOST=slurm-login.example.org PYP_SLURM_PATH=/usr/bin \
PYP_REMOTE=true PYP_AUTH=login \
PYP_WEBHOST=http://nextpyp-web.example.org:8080 \
PYP_INSTALL_DEPS=true PYP_CREATE=true PYP_FETCH=background \
./install --non-interactive
When the web server itself runs sbatch, replace the two PYP_SLURM_* lines with PYP_SLURM_LOCAL=true.
Re-running
./installafter a finished install printsnextPYP is already installed. Nothing to do.and exits.A folder that already has program files such as
nextPYP.sifbut noinstalled.tomlis an older installation:./installstops withThis folder already has an older nextPYP installation.and tells you to run./install --replace. That replaces the program files and keeps the existingconfig.toml. The old program files are kept as a release of their own underreleases/and the database is snapshotted first, sosudo nextpyp rollbackgoes back to them; the closing lines print that command.--replacealso writes the systemd unit, thenextpypcommand and the sudo rule again.
Note
PYP_* settings are not applied to an existing configuration. --force does the same. Change settings with nextpyp config set (Operate) and upgrade with nextpyp upgrade (Upgrade).
Turn login on after a command-line install¶
A wizard install already uses login mode. A command-line install that did not pass PYP_AUTH=login opens the website with no login page at all, so it’s worth a quick check. Run nextpyp config get web.auth. If it prints none, set login and restart. Use sudo on an administrator install, or ./nextpyp from the install folder on a regular-account install:
sudo nextpyp config set web.auth login
sudo nextpyp restart
Then open the website and create the administrator account as described on Install nextPYP. reverse-proxy is the other login mode; see Enable remote access.
Settings¶
Here is every setting ./install accepts. Wizard is the value the questions default to; Command line is what applies when the variable is not given and the questions are off. When the two are the same, one value is shown.
PYP_INSTALL_DIRDefault
/opt/nextpypwhen that directory is writable, otherwise the directory where./installwas started. ForDownloadsand/tmpthe wizard asks whether to use it anyway; a command-line install warns and goes on.PYP_USERWizard:
nextpypwhen the installer is root. Command line as root: required, unlessPYP_CREATE=true(thennextpypis created) or existingshareddata names its owner. A regular account is not asked: the install runs as that login. On a cluster, this is usually an existing directory (LDAP) login with the same UID on every host; seePYP_ALLOW_LOGIN_SERVICE.PYP_ALLOW_LOGIN_SERVICEDefault unset. When
true, a normal login UID may be the service account on a workstation install.PYP_PROFILE=clusteralready allows that without this flag, because cluster installs need a directory account that can SSH to the login node.PYP_GROUPThe service account’s existing group, or a group of the same name. Asked only for a root install, and not asked when a group named after the account exists.
PYP_ADMINandPYP_ADMIN_GROUPThe login that owns the program files, and a group whose members may run
nextpyp upgradeand the other administrator commands. Undersudothe administrator is the login that ransudo. A direct root login must setPYP_ADMINorPYP_ALLOW_ROOT_OWNER=true. See Security.PYP_INSTALL_DEPSWizard: asks when Apptainer, or both
wgetandcurl, is missing; default yes. Command line: unset, nothing is installed.PYP_CREATEWizard:
true. Command line: unset, so every named folder must exist. A folder on a disk smaller than the installer’s minimum is refused untilPYP_HERE_OK=true(install directory) orPYP_STORAGE_OK=true(storage directory).PYP_PROFILEWizard:
clusterwhensbatchis onPATH, otherwiseworkstation. SetPYP_PROFILE=clusterwith./install --interactiveto get the cluster questions whensbatchis missing (for example on a web server that submits through a login node).PYP_SLURM_HOST,PYP_SLURM_PATH, orPYP_SLURM_LOCAL=truealso force cluster;PYP_PROFILE=workstationforces workstation. Without--interactive, anyPYP_*setting turns the questions off.PYP_STORAGEWorkstation layout. The wizard default is the mount point of the largest filesystem of at least 1 TiB, skipping a root disk under 200 GiB; when none is that large, the install directory. Setting it on the command line puts
local,shared,sharedExec, andscratchunder it. A folder variable given in the same command (PYP_LOCAL,PYP_SHARED_DATA,PYP_SHARED_EXEC,PYP_SCRATCH) wins for that one folder.PYP_SHARED_DATA,PYP_SHARED_EXEC,PYP_LOCAL,PYP_SCRATCHCluster layout. Wizard defaults
/opt/nextpyp/shared,/opt/nextpyp/sharedExec,/opt/nextpyp/local, and/scratch/nextpyp. See Cluster folders.PYP_BINDSDefault empty. A colon-separated list of data folders, written to
pyp.binds.PYP_REMOTEDefault
false: the website listens on this computer only.truelistens on the network and requiresPYP_AUTH=loginunlessPYP_REMOTE_UNAUTHENTICATED_OK=true. The wizard asks this as Will people use nextPYP only from this computer?, whereYmeansfalse.PYP_HOSTThe address written to
web.host. Unset leaves that line out.PYP_REMOTE=truewrites0.0.0.0instead. WithPYP_AUTH=reverse-proxyand noPYP_TRUSTED_PROXIES(only this machine is trusted), the bind address is always127.0.0.1.PYP_AUTHWizard:
login. Command line:none. Alsoreverse-proxy.PYP_WEBHOSTThe URL compute jobs use to reach the website. Asked on a cluster only, with
http://plus this machine’s hostname and:8080as the default. A workstation install writes nowebhostline.PYP_DOMAINDefault empty. A name installs the HTTPS reverse proxy and opens ports 80 and 443. Asked only when the website listens on the network. The installer warns when the name does not resolve or resolves to a private address, and the closing summary has an
https proxy:line.sudo nextpyp rprox <domain>adds the proxy to an install made without it.PYP_SLURM_LOCALWizard:
truewhen you answerlocalto the login host question, meaningsbatchruns on this machine. Command line: unset. When bothPYP_SLURM_LOCAL=trueandPYP_SLURM_HOSTare set,PYP_SLURM_LOCALwins.PYP_SLURM_HOSTandPYP_SLURM_PATHThe SLURM login node, and the folder that contains
sbatchthere. Wizard default for the path/usr/bin. WithPYP_SLURM_HOSTset, the installer creates~<service account>/.ssh/id_ed25519and records the host key. Name CPU and GPU partitions in the SLURM template.PYP_USER_SWITCH,PYP_USERS_GROUP,PYP_JOB_PATHHow the website becomes a linked operating-system user (
sudofor a new install;setuidis the other choice), the group of people it may become (nextpyp-users), and thePATHfor commands the helper runs. See Run jobs as each OS user and Security.PYP_FETCHWizard:
background. Command line on a fresh directory: unset, which downloads the compute container before the installer exits. On a directory that already hasinstalled.toml,local/,shared/, orconfig.toml, unset downloads it in the background.backgroundstarts the website first and runs the download as a systemd unit.waitdownloads it before the installer exits.PYP_MIRRORandPYP_DOWNLOAD_LIMITUnset. Downloads come from
https://nextpyp.app/files/pyp/plus the version.PYP_MIRRORnames the directory of one version on another server, and is recorded ininstall.envso the container download started later uses it too.PYP_WWW_ROOTnames the parent of the version directories, which is wherenextpyp latestlooks. A limit such asPYP_DOWNLOAD_LIMIT=20mis passed to curl or wget as--limit-rate.PYP_SUDODefault
sudo.doasis used instead whennextpyp upgrade, run without root, has to stop or start the system unit. Commands started withsudo(or as root) need neither.PYP_USER_SERVICEWizard default
true. A root install always writes the system unit: unset ortrueenables it and starts it;falseleaves it installed, disabled, and stopped, andsudo systemctl enable --now nextPYPstarts it later. A regular-account install gets a systemd user unit (plusloginctl enable-lingerso it also starts at boot) only withtrue; from the command line with the setting unset, nothing is started and the installer prints thenextpyp startcommand.PYP_CONTAINER_SOURCEUnset. Set it to an existing
pyp.sifto use that file instead of downloading one. It must be the container of the release being installed: its SHA-256 is checked against the signed manifest first, and a file that is not is refused.PYP_DISTUnset. A folder of release files instead of the public download URL.
PYP_WEB_INSTALLUnset. For a command-line install: the directory of a web install whose container it shares.
/opt/nextpypis looked at without it.
PYP_NONINTERACTIVE=1 is the same as --non-interactive. PYP_YES=1 is the same as --yes. Confirmed wizard answers are saved in .np/answers in the install directory (plain NAME=value lines, read as data), not in the directory where ./install was started; a setting given on the command line wins over that file.