2018-12-27 20:06:10 +01:00
|
|
|
# Start Xvfb screen
|
|
|
|
export DISPLAY=:99.0
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
|
|
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
|
|
|
|
|
2018-12-25 09:58:29 +01:00
|
|
|
# Install chromedriver
|
2018-12-27 20:06:10 +01:00
|
|
|
wget -N https://chromedriver.storage.googleapis.com/2.45/chromedriver_linux64.zip -P ~/
|
2018-12-25 09:58:29 +01:00
|
|
|
unzip ~/chromedriver_linux64.zip -d ~/
|
|
|
|
rm ~/chromedriver_linux64.zip
|
2018-12-27 18:55:11 +01:00
|
|
|
sudo chmod -R u=rwx,g=rwx /usr/bin/google-chrome-stable
|
|
|
|
sudo chmod -R u=rwx,g=rwx /usr/bin/X11/google-chrome-stable
|
|
|
|
|
2018-12-25 09:58:29 +01:00
|
|
|
sudo mv -f ~/chromedriver /usr/local/share/
|
2018-12-27 18:55:11 +01:00
|
|
|
sudo chmod u=rwx,g=rwx /usr/local/share/chromedriver
|
|
|
|
|
2018-12-25 09:58:29 +01:00
|
|
|
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
|
|
|
|
|
|
|
|
whereis google-chrome-stable
|
|
|
|
whereis chromedriver
|
2018-12-26 19:36:29 +01:00
|
|
|
|
|
|
|
mysql -e 'CREATE DATABASE Plan;'
|