Skip to content

Commit c75fdfb

Browse files
committed
Merge pull request #1 from quinkennedy/patch-2
Patch 2
2 parents d7cf041 + f50fb64 commit c75fdfb

1 file changed

Lines changed: 29 additions & 2 deletions

File tree

install.sh

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ if [ $os == "Linux" ]; then
1818
# same for any debian disto (untested), including rpi (tested)
1919
sudo apt-get install chromium
2020

21-
22-
2321
if [ $arq == "armv7l" ]; then
2422
# on RaspberryPi
2523

@@ -28,6 +26,35 @@ if [ $os == "Linux" ]; then
2826
# FOR NOW, CODE GOES HERE since we're shooting for RPi support
2927
#
3028
# ####
29+
30+
#install chromium from source if not available via apt-get
31+
# Raspbian Jesse does not include chromium in apt-get
32+
# if chromium is not where we expect it
33+
if ! ls /usr/bin/chromium; then
34+
# if chromium is available somewhere else, symlink to it
35+
if which chromium; then
36+
sudo ln -s `which chromium` /usr/bin/chromium
37+
# if chromium-browser is available somwhere, symlink to it
38+
elif which chromium-browser; then
39+
sudo ln -s `which chromium-browser` /usr/bin/chromium
40+
# otherwise we need to download and install chromium
41+
else
42+
# Raspbian Jesse does not have chromium in its repositories
43+
# adapted from https://medium.com/@icebob/jessie-on-raspberry-pi-2-with-docker-and-chromium-c43b8d80e7e1#6afd
44+
# files from https://launchpad.net/ubuntu/+source/chromium-browser/
45+
# download files
46+
cfile=$(mktemp)
47+
wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -O $cfile
48+
fffile=$(mktemp)
49+
wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -O $fffile
50+
# install
51+
sudo dpkg -i $fffile $cfile
52+
# symbolic link
53+
sudo ln -s `which chromium-browser` /usr/bin/chromium
54+
#clean up
55+
rm $cfile $fffile
56+
fi
57+
fi
3158

3259
# TODO: update chromium window_placement settings
3360
echo "armv7l"

0 commit comments

Comments
 (0)