Pushkin
  • Welcome!
  • Getting Started
    • Installing Pushkin and dependencies
      • macOS
      • Windows 10
        • Windows Subsystem for Linux
        • AWS EC2 Instance
      • Ubuntu Linux
    • Quickstart
      • Quickstart: Example Outputs
    • Deploying to AWS
      • Install required software.
      • Configure the AWS and ECS CLIs.
      • Register a domain.
      • Set up DockerHub.
      • Initialize AWS Deploy.
    • Tutorial: Simple Experiment
  • FAQ
    • FAQ
  • Advanced
    • Pushkin CLI
    • Using Experiment Templates
      • Lexical decision template
      • Grammaticality judgment template
      • Self-paced reading template
    • Experiment Component Structure
      • Experiment Config.yaml Files
      • Experiment Web Page Component
      • Worker Component, Migration, and Seed
    • Modifying Site Template
      • React Bootstrap
      • Header and Footer
      • Home Page
      • Findings Page
      • About Page
      • Feedback Page
    • Troubleshooting Pushkin
    • Pushkin Client
    • pushkin-api
      • API Controller Builder
      • Core API
    • Users & Authentication
    • Deployment
      • Deleting AWS
  • Developers
    • Developing with Pushkin
    • Getting Started on Development
    • Overview of Technologies
    • Testing Pushkin with Jest
    • Working with Templates
Powered by GitBook
On this page
  • Skip to section
  • Install curl
  • Install Node.js
  • Install and configure Yarn
  • Install Yalc
  • Install pushkin-cli
  • Install and configure Docker Engine and Docker Compose
  • Next steps

Was this helpful?

  1. Getting Started
  2. Installing Pushkin and dependencies

Ubuntu Linux

Start here to build install Pushkin and its dependencies on Ubuntu Linux.

PreviousAWS EC2 InstanceNextQuickstart

Last updated 1 year ago

Was this helpful?

These instructions were created using Ubuntu 18.04 and the apt package manager. They should generalize to other Linux distributions and package managers, however.

Skip to section

Install curl

First, ensure that you have curl installed, as this will be necessary to download Node.js. If it isn't installed, you can install it using the following commands:

 sudo apt update
 sudo apt install curl

Install Node.js

To install Node.js, first run the following command to install nvm:

 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
 source ~/.bashrc 

Then use nvm to install Node.js:

 nvm install 20.2.0

In case the preferred version of Node.js is changed, use the following commands to update:

 nvm install <node_version>
 nvm use <node_version>

Install and configure Yarn

Use npm, which comes bundled with Node.js that you just installed:

 npm install --global yarn

Then check that Yarn is installed by running:

yarn --version

Run the following:

 yarn config set prefix ~/.yarn
 echo -e '\nexport PATH="$PATH:`yarn global bin`"\n' >> ~/.bashrc
 source ~/.bashrc

Install Yalc

Install Yalc globally.

 yarn global add yalc

Install pushkin-cli

Next, install the pushkin-cli package globally.

 yarn global add pushkin-cli

Confirm that pushkin-cli is installed by running:

 pushkin --help

You should get a list of commands with some documentation for each.

Confirm that you have version 2.0.0 or later by running:

 pushkin --version

and reading the output.

Install and configure Docker Engine and Docker Compose

 sudo apt-get update
 sudo apt-get install ca-certificates curl gnupg

Add Docker’s official GPG key:

 sudo install -m 0755 -d /etc/apt/keyrings
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
 sudo chmod a+r /etc/apt/keyrings/docker.gpg

Use the following command to set up the repository:

 echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Next, update the apt package index:

 sudo apt-get update

Install Docker Engine, containerd, and Docker Compose:

 sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose docker-compose-plugin

Check that Docker Engine is installed correctly by running:

 sudo docker run hello-world

If Docker Engine and Docker Compose are installed correctly, this should generate some output, including:

Hello from Docker!
This message shows that your installation appears to be working correctly.
 sudo groupadd docker
 sudo usermod -aG docker $USER
 newgrp docker 
 docker run hello-world

Next steps

You will next want to install the Yarn package manager. Official instructions (copied below for convenience) are available .

To allow Yarn to install pushkin-cli globally, run the following steps, based on .

Next, install Docker Engine (copied below for convenience).

Next, follow (copied below for convenience) to manage Docker as a non-root user. (You can ignore the rest of the post-installation instructions.)

Great! You're all done. Head over to build a basic Pushkin site and experiment.

here
this Stack Overflow solution
using these instructions
these post-installation instructions
here
Install curl
Install Node.js
Install and configure Yarn
Install Yalc
Install pushkin-cli
Install and configure Docker Engine and Docker Compose
Next steps