Created
February 10, 2014 20:29
-
-
Save tifletcher/8923586 to your computer and use it in GitHub Desktop.
chrome canary for linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Update to latest chromium nightly on linux | |
# Script requires root to properly set up the sandbox | |
# https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment | |
# | |
# I use it with a line like the following in my .bashrc: | |
# alias canary='CHROME_DEVEL_SANDBOX="/home/tif/bin/chrome-linux/chrome_sandbox" /home/tif/bin/chrome-linux/chrome-wrapper' | |
# | |
# ---------------------------------------------------------------------- | |
# forked from https://gist.github.com/craSH/236563 | |
# Original comments / copyright follows: | |
# | |
# Simple script to update OSX Chromium to the latest nightly build. | |
# Will not download if you already have the latest (call with --force | |
# to override this check) | |
# | |
# Copyleft 2010 Ian Gallagher <crash@neg9.org> | |
# ---------------------------------------------------------------------- | |
LATEST=$(curl -s "http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux_x64/LAST_CHANGE") | |
REMOTE="http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux_x64/247920/chrome-linux.zip" | |
TMP=$(mktemp -d) | |
ZIP="$TMP/chrome-linux.zip" | |
OUT="$TMP/chrome-linux" | |
BIN="/home/tif/bin" | |
INSTALL="$BIN/chrome-linux" | |
BACKUP=$(mktemp -d --tmpdir=$BIN/old/chrome-linux) | |
# Grab the current SVN revision of Chromium installed on the system | |
# from the file we created last installation called BUILD | |
if [ ! -f $INSTALL/BUILD ]; | |
then | |
INSTALLED_VERSION=0 | |
else | |
INSTALLED_VERSION=$(cat $INSTALL/BUILD) | |
fi | |
if [ $INSTALLED_VERSION -ge $LATEST -a "--force" != "$1" ]; then | |
echo "Current or later version already installed" | |
exit 0 | |
fi | |
cd $TMP | |
echo "Working directory: "$PWD; | |
echo "Downloading build $LATEST..." | |
curl -# -o $ZIP $REMOTE || exit; | |
echo "Extracting ..." | |
unzip $ZIP >/dev/null || exit; | |
echo "Installing ..." | |
echo $LATEST > $OUT/BUILD | |
mv $INSTALL $BACKUP | |
mv $OUT $BIN | |
echo "Previous version moved to $BACKUP" | |
echo "Cleaning up ..." | |
rm -rf $TMP | |
echo "" | |
echo "We need sudo to set up sandbox. This will run:" | |
echo "$(grep sudo $BASH_SOURCE | grep -v echo)" | |
echo "" | |
echo 'Where $INSTALL='$INSTALL | |
echo "" | |
echo "Any key to continue." | |
echo -n "Pressing Ctrl-C and doing this by hand would be much safer ..." | |
read -r FOO | |
sudo chown root:root $INSTALL/chrome_sandbox | |
sudo chmod 4755 $INSTALL/chrome_sandbox | |
echo "" | |
echo "Done." |
That no longer works, last build is from 2016
That’s not too surprising. I’m pretty sure this was a dirty hack even ten years ago. Unfortunately I don’t have an alternate solution or even a way to figure one out, as my daily driver has been a work-provided mac for quite a few years now. Best of luck!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you sure its Chrome
Canary
channel notDev
for Linux?