Skip to content

Commit a5e7ec7

Browse files
committed
Updated Chromium Install (markdown)
1 parent 910b3d9 commit a5e7ec7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Chromium-Install.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ services:
9898
...
9999
volumes:
100100
...
101-
- ./chrome_profile:/home/archivebox/chrome_profile
101+
- ./data/personas/Default:/data/personas/Default
102102
environment:
103-
- CHROME_USER_DATA_DIR=/home/archivebox/chrome_profile
103+
- CHROME_USER_DATA_DIR=/data/personas/Default/chrome_profile
104104
- DISPLAY=novnc:0.0
105105

106106
novnc:
@@ -121,13 +121,13 @@ docker compose up -d novnc
121121

122122
3. Start ArchiveBox's Chrome inside Docker
123123
```bash
124-
docker compose run archivebox /usr/bin/chromium-browser --user-data-dir=/home/archivebox/chrome_profile --profile-directory=Default --disable-gpu --disable-features=dbus --disable-dev-shm-usage --start-maximized --no-sandbox --disable-setuid-sandbox --no-zygote --disable-sync --no-first-run
124+
docker compose run archivebox /usr/bin/chromium-browser --user-data-dir=/data/personas/Default/chrome_profile --profile-directory=Default --disable-gpu --disable-features=dbus --disable-dev-shm-usage --start-maximized --no-sandbox --disable-setuid-sandbox --no-zygote --disable-sync --no-first-run
125125
```
126126
<small>(make sure you set `DISPLAY` & `CHROME_USER_DATA_DIR` and added the line to `volumes:` above first!)</small>
127127

128128
4. Open [`http://localhost:8080/vnc.html`](http://localhost:8080/vnc.html) in your browser. You should see a remote linux desktop shown with Chrome open, allowing you to remote-control ArchiveBox's browser. Use it to log into any sites where you want to save credentials.
129129

130-
5. ✅ Close the browser, stop & remove novnc, and then run archivebox normally. It will use the profile stored in `CHROME_USER_DATA_DIR=/home/archivebox/chrome_profile` going forward, you should now be able to archive sites as if you were logged in!
130+
5. ✅ Close the browser, stop & remove novnc, and then run archivebox normally. It will use the profile stored in `CHROME_USER_DATA_DIR=/data/personas/Default/chrome_profile` going forward, you should now be able to archive sites as if you were logged in!
131131

132132
```bash
133133
# stop the archivebox and novnc containers
@@ -159,13 +159,13 @@ Then run Chrome (with that profile dir) to open a visible browser window where y
159159

160160
```bash
161161
# find your CHROME_BINARY path by running
162-
archivebox version | grep CHROME_BINARY
162+
archivebox version | grep -i chrome
163163
164164
# macOS example (using Google Chrome.app)
165-
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/Users/alice/.archivebox_chrome
165+
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=~/ArchiveBox/personas/Default/chrome_profile
166166
167167
# Linux example (using Playwright Chromium)
168-
/root/.cache/ms-playwright/chromium-1105/chrome-linux/chrome --user-data-dir=/Users/alice/.archivebox_chrome
168+
/root/.cache/ms-playwright/chromium-1105/chrome-linux/chrome --user-data-dir=~/archivebox/data/personas/Default/chrome_profile
169169
```
170170

171171
Once it's open, log in to all the sites you want to be logged in to for archiving, then close/quit Chrome.

0 commit comments

Comments
 (0)