WackyDawg / Tapswap--Bot

Bot that mines coins in Tapswap
GNU General Public License v3.0
1 stars 0 forks source link

Run this script on Ubuntu server #2

Open sinazh opened 4 months ago

sinazh commented 4 months ago

Hi, I have a question. When running index.js using node, I get the error missing x server or $display error. Keep in mind that I am using puppeteer on Ubuntu 22 server and that Chrome and Firefox are installed.

WackyDawg commented 4 months ago

set headless to true const browsers = await Promise.all( urls.map(() => puppeteer.launch({ args: [ "--disable-setuid-sandbox", "--no-sandbox", "--single-process", "--no-zygote", ], executablePath: process.env.NODE_ENV === "production" ? process.env.PUPPETEER_EXECUTABLE_PATH : puppeteer.executablePath(), headless: true, }) ) );

sinazh commented 4 months ago

Can you tell me where this is?

WackyDawg commented 4 months ago

its located in the index.js file

shaonturaj commented 3 months ago

I have turned headless to true still not working . How can i do ?