Installing SBGrid Software
Using the SBGrid Environment
Support for Site Administrators
Hardware Support Notes
Getting Help
Support for Developers
sbgrid-cli admin mode replaces the sbgrid-admin script installation method used previously to install and automatically update SBGrid installations. sbgrid-cli admin
offers a some advantages:
The sbgrid-cli admin
command will:
adduser sbgrid
sbgrid-cli
will attempt to use sudo to create the install path and symlink at /programs
that is required to run the software.
The sudo requirement can be skipped with the --target
and --no-link flags
(details below). If you would prefer the sbgrid-cli create /programs
and the installation path, add the sbgrid user to sudo with this command:
echo 'sbgrid ALL=(ALL) ALL' > /etc/sudoers.d/sbgrid
This is only required for activation and can be removed anytime after the installation is activated.
su sbgrid
For Linux:
curl -LO https://sbgrid-installation-manager.s3.amazonaws.com/2.2.29/sbgrid-cli_2.2.29-linux.tar.gz
For Mac:
curl -LO https://sbgrid-installation-manager.s3.amazonaws.com/2.2.29/sbgrid-cli_2.2.29-macos.tar.gz
tar -zxvf sbgrid-cli_2.2.29-linux.tar.gz && chmod +x sbgrid-cli
Activating the installation will create the required installation paths and directories for installing the software. This is the point where alternate installation paths can be used. Please see https://sbgrid.org//wiki/sbgrid-cli#activation for more info.
./sbgrid-cli activate <site> <user> <key>
If the sbgrid user does not have sudo access, use
./sbgrid-cli activate <site> <user> <key> --no-link --target=<path to where the software should be installed>
where the target path is writable. This option does not require sudo but will require manual creation of the /programs symlink to the target installation directory. This is not required for installation and updates, only for using the software. It may not be needed on servers that host the programs as a network share.
Run the installation using ./sbgrid-cli admin
Add to crontab for periodic updates using ./sbgrid-cli crontab
Post-Install Steps:
Once the download has completed, you'll need to add a symlink in the root directory of each machine that wants to use the software. Typically, this directory is shared via NFS to each of your computers.
ln -s /path/to/sbgrid/install /programs
Any user that wishes to use SBGrid needs to configure their shell to initialize the SBGrid shell environment:
For bash: add source /programs/sbgrid.shrc
to ~/.bashrc
For tcsh: add source /programs/sbgrid.cshrc
to ~/.cshrc
Configure your workstations for maximum compatibility:
To install all default versions of all titles, add new, update existing, remove obsolete, run :
$ sbgrid-cli admin
To do the same for all versions of all titles :
$ sbgrid-cli admin --all-versions
To make this automatic, add a crontab entry. This can be done from sbgrid-cli
with this command :
sbgrid-cli crontab
For more info on cron, see https://www.man7.org/linux/man-pages/man5/crontab.5.html
To migrate an existing site-install, use the sbgrid-cli migrate-admin
command as the sbgrid user. This will convert the legacy sbgrid-admin installation.
This version of the page was edited by Jason Key at 2021-09-08 19:49:43. View the most recent version.