Git Product home page Git Product logo

Comments (2)

JosephInLondon avatar JosephInLondon commented on May 27, 2024

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.

JosephInLondon avatar JosephInLondon commented on May 27, 2024

Ok. I got scrapman.js working on a linux server by doing the following:

  1. Installing ubuntu-desktop: sudo apt install ubuntu-desktop
  2. 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
  3. 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)
  4. 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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.