Comments (2)
After some more googling it appears that my issue is that the linux server I am using is missing some dependencies for Electron that desktop linux would not be missing. I will try installing these dependencies.
$ ldd electron | grep 'not found'
libgtk-x11-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found
libpangocairo-1.0.so.0 => not found
libatk-1.0.so.0 => not found
libcairo.so.2 => not found
libgdk_pixbuf-2.0.so.0 => not found
libpango-1.0.so.0 => not found
libfontconfig.so.1 => not found
libX11-xcb.so.1 => not found
libXi.so.6 => not found
libXcursor.so.1 => not found
libXdamage.so.1 => not found
libXrandr.so.2 => not found
libXcomposite.so.1 => not found
libXfixes.so.3 => not found
libXrender.so.1 => not found
libXtst.so.6 => not found
libXss.so.1 => not found
libgconf-2.so.4 => not found
libnss3.so => not found
libnssutil3.so => not found
libsmime3.so => not found
libnspr4.so => not found
libasound.so.2 => not found
libcups.so.2 => not found
from scrapman.
Ok. I got scrapman.js working on a linux server by doing the following:
- Installing ubuntu-desktop: sudo apt install ubuntu-desktop
- Installing xvfb, which I understood from work by the nightmare community was required to run electron on a server (see: https://gist.github.com/dimkir/f4afde77366ff041b66d2252b45a13db): sudo apt install xvfb
- Adding "scrapman.configure({ wait: 5500});" to the script (not clear why but this was required in linux when it wasn't for the same script in MacOS)
- Running my script (script.js) using command: xvfb-run -a --server-args="-screen 0 1366x768x24" node script.js
from scrapman.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrapman.