2020 / 04 / 04
2023 / 03 / 28
Install Google Chrome in Linux

Still one of the best dev environments for web apps.

linux
dev
chrome

Let’s install Google Chrome from the AUR:

cd ~/tmp
git clone https://aur.archlinux.org/google-chrome.git
cd google-chrome/
makepkg -si

Execute with:

google-chrome-stable &

Extensions

Privacy

  • uBlock Origin: Finally, an efficient blocker. Easy on CPU and memory
  • Privacy Badger: Privacy Badger automatically learns to block invisible trackers
  • Ugly Email: Get Back Your Email Privacy, Block Email Tracking

Development

HTML to PDF

I’ve found a better way than to use wkhtmltopdf to render an HTML page to a PDF file: headless Chrome.

Save an HTML page as a PDF with the following command:

google-chrome-stable --headless --disable-gpu --print-to-pdf=some-pdf-name.pdf http://some.page/url

Let’s add some time budget —for rendering SPAs, for example— and get rid of page headers with:

google-chrome-stable --headless --disable-gpu --print-to-pdf=some-pdf-name.pdf \
--virtual-time-budget=10000 --print-to-pdf-no-header http://some.page/url