Skip to content

Commit

Permalink
docs: headless setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Aug 19, 2016
1 parent 8a176e1 commit 9cb1536
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion API-and-internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

# Running headless Chrome for Lighthouse

These steps mostly worked on Debian Jessie. Also, both .travis.yml and launch-chrome.sh are worth a look.
The headless_shell still has a few bugs to work out. Until then, Chrome + xvfb is a stable solution.
These steps mostly worked on Debian Jessie. Also, worth a look: both `.travis.yml` and `launch-chrome.sh`.

```sh
# get node 6
Expand All @@ -14,6 +15,12 @@ sudo apt-get install -y nodejs
# get chromium (stable) and Xvfb
apt-get install chromium xvfb

# install lighthouse
git clone https://github.com/GoogleChrome/lighthouse
cd lighthouse && npm i && npm link
```

```sh
TMP_PROFILE_DIR=$(mktemp -d -t lighthouseXXXX)
export DISPLAY=:1.5

Expand Down

0 comments on commit 9cb1536

Please sign in to comment.