Labels

Java (10) Spring (10) Spring MVC (6) Web Services (5) Rest (4) Javascript (3) Nodejs (3) Spring Batch (3) Angular (2) Angular2 (2) Angular6 (2) Expressjs (2) Passportjs (2) SOAP (2) SOAPUI (2) Spring Boot (2) AJAX (1) H2 (1) JQuery (1) JUnit (1) Npm (1) Puppeteer (1) Python (1) RaspberryPi (1) Raspbian (1) SQL (1) SQLite (1) Scripts (1) html (1)

Tuesday, November 13, 2018

Make puppeteer work with raspbian (vers. octover 2018)

Recently I have many problems installing puppeteer on my Raspberry pi 3 B. After a hard struggle I was able to configure it.
Let us see how this can be done.

1. Install the last version of node


Raspbian comes with an old version of node, you will need a more recent one (10 for instance):



2. Install the necessary debian dependencies


here you have a gist with all the necessary ones.


3. Install chromium-browser 65 and its codecs


you will need to run:


you may need to run also this command to fix broken packages:


sudo apt-get --fix-broken install

4. Use the param executablePath when you launch puppeteer


When you launch puppeteer you will need to specify the path for your chrome-browser. You need to use the parameter executablePath for that. See this minimal example:








3 comments:

  1. Thanks for sharing this information! I've converted all this logic sucessfully in a Dockerfile, and i'm running puppeteer succesfully (finally) on my rPi2! :-)

    ReplyDelete
  2. Hi Brecht,

    could you please share your dockerfile or push the docker image to dockerhub?
    Thanks.

    ReplyDelete
  3. Hi Unknown,

    I'm sorry for the late response.
    Recently I had some troubles though using page.Click()

    Meanwhile I rewrote the Dockerfile, which seems to be 100% functional right now (including page.Click() functionality)
    You can find the Dockerfile @
    https://github.com/brechtvm/puppeteer/blob/master/Dockerfile

    Hope this helps!

    ReplyDelete