Skip to content

Instantly share code, notes, and snippets.

@aquasmit
Forked from dwickstrom/nightmare.sh
Created May 23, 2016 08:14
Show Gist options
  • Save aquasmit/57810d1af24317552ac0960a707c6c8c to your computer and use it in GitHub Desktop.
Save aquasmit/57810d1af24317552ac0960a707c6c8c to your computer and use it in GitHub Desktop.
NightmareJS - install Electron on Ubuntu 14.04
apt-get -y update
apt-get -y upgrade
apt-get -y --force-yes install make unzip g++ libssl-dev git xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps clang libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib
npm -f init
npm i -S nightmare
xvfb-run nodejs index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment