Skip to content

Commit 389dde9

Browse files
committed
installing chromium on Raspbian Jesse
Jesse does not include chromium in its repositories, so lets download and install it directly
1 parent d7cf041 commit 389dde9

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

install.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)