Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

install ChromeHeadless wsl

#install packages
sudo apt-get install -y curl unzip xvfb libxi6 libgconf-2-4 fonts-liberation

#update
sudo apt update && sudo apt upgrade

#get latest chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

#install it
sudo apt install ./google-chrome-stable_current_amd64.deb

#test a screenshot
google-chrome --headless --disable-gpu --screenshot https://www.chromestatus.com/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #install #ChromeHeadless #wsl
ADD COMMENT
Topic
Name
4+7 =