Created
August 3, 2017 23:23
-
-
Save vladmarchuk/9cb32ff7cf5d09e6bfa33250f7c55249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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