How to run Puppeeter on Ubuntu from shell

April 06, 2021

Makak in night japanese monkey

install nodejs

nodejs download and install for ubuntu

install dependencies

copy
sudo apt install python3-distutils

install puppetter

copy
npm install puppeteer

install xvfb to run in memory display server

copy
sudo apt-get install xvfb

run your puppeteer script via xvfb

copy
xvfb-run --auto-servernum node index.js

Xvfb

Xvfb or X virtual framebuffer is a display server implementing the X11 display server protocol. In contrast to other display servers, Xvfb performs all graphical operations in virtual memory without showing any screen output source wikipedia - Xvfb


© 2021 sebbie.pl