Skip to content

Instantly share code, notes, and snippets.

@fiver-watson
Last active September 2, 2015 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiver-watson/46cab25b03b43449cf7d to your computer and use it in GitHub Desktop.
Save fiver-watson/46cab25b03b43449cf7d to your computer and use it in GitHub Desktop.
This document offers an overview for AtoM Premium+ hosted clients with Artefactual Systems on setting up SSH access to an AtoM installation, basic command-line use, links to CLI tools, and where to find support.

NOTE: There is an updated version of this document available here: https://docs.google.com/document/d/1DdSK-G4R0we8YcalPJNC12XgcCc-9baefXdjFyPvvF0/edit?usp=sharing

Please update your links!

Overview

All Premium+ clients get SSH access to the server hosting their AtoM instance. Listed below is information on how to get started using an SSH client to connect to the server, and issue various CLI (command line interface) commands.

SSH Client

Windows: We recommend using PuTTY as a client if you are connecting from Windows. You can find tutorials online such as this one to get started.

Linux: Most Linux distributions (such as Ubuntu) come with an ssh client pre-installed. Please consult your particular Linux distribution's documentation for further details if you need to install an ssh client. Generally, all you need to do is issue a command such as ssh myusername@1.2.3.4 to connect, where myusername is the username you were given, and 1.2.3.4 is replaced with the IP address to your server.

When your AtoM install is ready, you should be given the proper ssh credentials to login successfully. If you haven't received credentials yet, you can contact Artefactual for the information.

Ubuntu CLI basics

If you are unfamiliar with basic Linux commands, you can consult this page to get a very basic introduction.

A quick search for "Linux command-line cheat sheet" will return many options, including:

And so forth.

AtoM installation location

The AtoM install location will be /usr/share/nginx/atom unless otherwise specified. Example of how to change directories to get there, to the root directory of your AtoM installation:

 cd /usr/share/nginx/atom

If you have any issues accessing your AtoM instance at this location, please contact us and we will be happy to assist you.

AtoM Command-line tasks

To run AtoM command line tasks, you will generally need to cd /usr/share/nginx/atom and then issue commands such as php symfony example:task <arguments here>.

We have thorough documentation with details on various AtoM maintenance tasks and what their parameters and options are. Furthermore, we have specific documentation for users wanting to import and export data to and from AtoM.

Here are some of the most useful links:

Examples of what you will find in the command-line tools documentation:

  • Bulk import and bulk export from the command-line (EAD, MODS, or DC XML)
  • How to create a new admin user from the command-line, or change the password of an existing user
  • How to re-index text extracted from your PDFs so it is in the search index
  • How to regenerate slugs
  • Deleting a large description from the command-line
  • Updating the publication status of draft records
  • Common AtoM database queries

And more! For the full list, see:


Other useful maintenance documentation:

tmux

Client sessions in Premium+ are automatically created inside tmux sessions, and hence are persistent. This means for example if you disconnect accidentally in the middle of an import or export task in AtoM, that task will still run in the background while you aren't logged in. When you log back in later, you should then see your previous session's screen restored. This feature should be transparent for the user and not require any further setup. For more technical information on tmux, see here.

If you want to know more about tmux in general, see also:

Getting support

If you have a general question about AtoM, our CLI tasks, CSV import, or the like, please consider posting in our User Forum:

By asking your question in the public forum, there are a number of benefits for you and the community as a whole:

  • If you're not certain about something, it's almost guaranteed that someone else out there has the same question!
  • Whenever Artefactual answers in the public forum it helps all users.
  • Similar questions in the future can be directed to the thread you start; other users searching the user forum can find your answer instead of having to post again
  • Other users might have answers or workarounds that we had not considered! By posting in the user forum, you get many eyes on the issue
  • Reports from other users can help us determine if you've uncovered a bug in AtoM, or a spot where our documentation is unclear
  • It helps to build a sense of community, participation, and ownership among community members - and the stronger the community, the stronger the AtoM project is!

More information about our user forum, and how to make a post:


If you have a question or issue specific to your AtoM instance you can contact Artefactual directly by emailing support@artefactual.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment