- ~/dev: Base dir where everything is.
- ~/dev/SO-ChatBot:
git clone https://github.com/allquixotic/SO-ChatBot
- run-headless.config.json: drop in ~/dev/SO-ChatBot
- run-headless.sh: drop in ~/dev
Steps:
- Extract firefox latest .tar.bz2 (with "firefox" folder inside) to ~/dev/firefox. Firefox binary should be
~/dev/firefox/firefox/firefox
(we have to say firefox three times to summon @Bob-refox) - known working with Firefox 59.0.3 - Update geckodriver version (download from Github) and WebdriverIO in SO-ChatBot/package.json to use newer Firefox, as they are both fairly tightly coupled to the Firefox version
- Extract geckodriver binary into ~/dev/firefox (known working with 0.20.1)
- Don't need selenium-server-standalone anymore, or Java
- Need Node 6.x or later (use LTS)
- In ~/dev/SO-ChatBot: run
npm install
to grab WebdriverIO dependency - Need GNU
screen
installed - Don't need an X server
- ~/dev/firefox/ffprofile is where the Firefox profile will be stored. Not sure if FF creates this dir if it doesn't exist, but if it doesn't, you need to mkdir it
- Obviously if your username isn't "sean", s/sean/whatever/g in everything