1、环境:ubuntu18.04 laradock laradock-seleninum
2、执行在laravel目录执行php artisan dusk chrome浏览器不启动
3、解决方法在ubuntu中:

makes sure all your repos are up to date

sudo apt-get update

chrome dependencies I think

sudo apt-get -y install libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4

chromium is what I had success with on Codeship, so seemed a good option

sudo apt-get install chromium-browser

XVFB for headless applications

sudo apt-get -y install xvfb gtk2-engines-pixbuf

fonts for the browser

sudo apt-get -y install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable

support for screenshot capturing

sudo apt-get -y install imagemagick x11-apps

结果:# makes sure all your repos are up to date
sudo apt-get update

chrome dependencies I think

sudo apt-get -y install libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4

chromium is what I had success with on Codeship, so seemed a good option

sudo apt-get install chromium-browser

XVFB for headless applications

sudo apt-get -y install xvfb gtk2-engines-pixbuf

fonts for the browser

sudo apt-get -y install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable

support for screenshot capturing

sudo apt-get -y install imagemagick x11-apps
浏览器出现:


白马啸西施
38 声望1 粉丝