Skip to content

Instantly share code, notes, and snippets.

@gusflopes
Created April 26, 2022 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gusflopes/57f5d6abadb2415b6b153a976b2112ff to your computer and use it in GitHub Desktop.
Save gusflopes/57f5d6abadb2415b6b153a976b2112ff to your computer and use it in GitHub Desktop.
## Working with Google Chrome
### Path to Google Chrome on Windows
cd Program\ Files\ \(x86\) \Google\Chrome\Application\chrome.exe
### Using Google Chrome inside WSL 2 (need testing)
```bash
#install packages
sudo apt-get install -y curl unzip xvfb libxi6 libgconf-2-4 fonts-liberation
#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/
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment