File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,25 @@ if [ $os == "Linux" ]; then
1717
1818 # same for any debian disto (untested), including rpi (tested)
1919 sudo apt-get install chromium
20-
20+
21+ # install chromium from source if not available via apt-get
22+ # Raspbian Jesse does not include chromium in apt-get
23+ if dpkg -s chromium; then
24+ :
25+ else
26+ # adapted from https://medium.com/@icebob/jessie-on-raspberry-pi-2-with-docker-and-chromium-c43b8d80e7e1#6afd
27+ # files from https://launchpad.net/ubuntu/+source/chromium-browser/
28+ cfile=$( mktemp)
29+ wget https://launchpad.net/ubuntu/+archive/primary/+files/chromium-browser_48.0.2564.116-0ubuntu0.15.10.1.1221_armhf.deb -O $cfile
30+ fffile=$( mktep)
31+ wget https://launchpad.net/ubuntu/+archive/primary/+files/chromium-codecs-ffmpeg-extra_48.0.2564.116-0ubuntu0.15.10.1.1221_armhf.deb -O $fffile
32+ sudo dpkg -i $fffile $cfile
33+ # resolve "package old or missing" error
34+ sudo apt-get install -f
35+ sudo dpkg -i $fffile $cfile
36+ # clean up
37+ rm $cfile $fffile
38+ fi
2139
2240
2341 if [ $arq == " armv7l" ]; then
You can’t perform that action at this time.
0 commit comments