mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-21 21:57:26 +02:00
Updated Chromium Install (markdown)
@@ -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.
|
||||
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
|
||||
# On Mac:
|
||||
# If you already have Google Chrome in /Applications/, skip this brew command
|
||||
brew cask install google-chrome
|
||||
brew install wget python3
|
||||
google-chrome --version
|
||||
Google Chrome 73.0.3683.75 beta # should be >v59
|
||||
```
|
||||
(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
|
||||
chmod +x /usr/local/bin/google-chrome
|
||||
## Installing Chromium
|
||||
|
||||
### 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
|
||||
# On Linux:
|
||||
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'
|
||||
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
|
||||
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.
|
||||
If you encounter problems setting up Google Chrome or Chromium, see the [[Troubleshooting]] page.
|
Reference in New Issue
Block a user