1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-22 22:25:24 +02:00

Updated Chromium Install (markdown)

Nick Sweeting
2019-03-12 20:40:51 -04:00
parent aac404e528
commit b895d3e543

@@ -1,30 +1,46 @@
### Google Chrome Instructions:
I recommend Chromium instead of Google Chrome, since it's open source and doesn't send your data to Google. I recommend Chromium instead of Google Chrome, since it's open source and doesn't send your data to Google.
Chromium may have some issues rendering some sites though, so you're welcome to try Google-chrome instead. Chromium may have some issues rendering some sites though, so you're welcome to try Google-chrome instead.
It's also easier to use Google Chrome if you already have it installed, rather than downloading Chromium all over.
1. Install & link google-chrome By default, ArchiveBox looks for any existing installed version of Chrome/Chromium and uses it if found, but you can optionally install a specific version and set the environment variable `CHROME_BINARY` to force ArchiveBox to that one (e.g. `CHROME_BINARY=google-chrome-beta`).
#### Check for existing Chrome install
```bash ```bash
# On Mac: google-chrome --version
# If you already have Google Chrome in /Applications/, skip this brew command Google Chrome 73.0.3683.75 beta # should be >v59
brew cask install google-chrome ```
brew install wget python3 (Replace `google-chrome` with `chromium-browser` or path to your preferred binary)
echo -e '#!/bin/bash\n/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "$@"' > /usr/local/bin/google-chrome ## Installing Chromium
chmod +x /usr/local/bin/google-chrome
### macOS
If you already have Chromium installed at `/Applications/Chromium.app`, you don't need to run this.
```bash
brew cask install chromium-browser
``` ```
### Ubuntu/Debian
If you already have `chromium-browser` >= v59 installed (run `chromium-browser --version`, you don't need to run this.
```bash
apt update
apt install chromium-browser
```
## Installing Google Chrome
### macOS
If you already have Google Chrome installed at `/Applications/Google Chrome.app`, you don't need to run this.
```bash
brew cask install google-chrome
```
### Ubuntu/Debian
If you already have `google-chrome` >= v59 installed (run `google-chrome --version`, you don't need to run this.
```bash ```bash
# On Linux:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
apt update; apt install google-chrome-beta python3 wget apt update
apt install google-chrome-beta
``` ```
2. Set the environment variable `CHROME_BINARY` to `google-chrome` before running: ## Troubleshooting
```bash If you encounter problems setting up Google Chrome or Chromium, see the [[Troubleshooting]] page.
env CHROME_BINARY=google-chrome ./archive ~/Downloads/bookmarks_export.html
```
If you're having any trouble trying to set up Google Chrome or Chromium, see the Troubleshooting section below.