Skip to content

Instantly share code, notes, and snippets.

@vladmarchuk
Created August 3, 2017 23:23
Show Gist options
  • Save vladmarchuk/9cb32ff7cf5d09e6bfa33250f7c55249 to your computer and use it in GitHub Desktop.
Save vladmarchuk/9cb32ff7cf5d09e6bfa33250f7c55249 to your computer and use it in GitHub Desktop.
# Install dependencies
apt-get update &&\
apt-get install -y libgtk2.0-0 libgconf-2-4 \
libasound2 libxtst6 libxss1 libnss3 xvfb
npm install segmentio/nightmare
# Start Xvfb
Xvfb -ac -screen scrn 1280x2000x24 :9.0 &
export DISPLAY=:9.0
# Test it
apt-get install vim
vim index.js
# <paste in example>
node index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment