Last active
December 7, 2024 18:30
-
-
Save lambdan/4c2f4c53ed0c7a36569e8ac5963d53cb to your computer and use it in GitHub Desktop.
Install chromium 130 on Debian amd64/arm64 (131 is broken on arm64)
This file contains hidden or 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/sh | |
set -e | |
do_install() { | |
echo "#######################################################" | |
echo "# Chromium Install Script (modified 2024-12-07 19:29) #" | |
echo "#######################################################" | |
if [ -f "/etc/apt/sources.list" ]; then | |
# This is unneccessary (doesnt exist) for node:20 images atleast but just in case... | |
echo "Backing up existing sources.list" | |
mv /etc/apt/sources.list /etc/apt/sources.list_BAK | |
fi | |
echo 'deb http://snapshot.debian.org/archive/debian/20241110T143611Z bookworm main contrib non-free' >> /etc/apt/sources.list | |
apt-get update | |
apt-get install -y --no-install-recommends chromium=130.0.6723.91-1~deb12u1 chromium-common=130.0.6723.91-1~deb12u1 chromium-sandbox=130.0.6723.91-1~deb12u1 | |
if [ -f "/etc/apt/sources.list_BAK" ]; then | |
echo "Restoring sources.list" | |
mv /etc/apt/sources.list_BAK /etc/apt/sources.list | |
fi | |
chromium --version | |
echo "################################" | |
echo "# Chromium Install Script Done #" | |
echo "################################" | |
} | |
# wrapped up in a function so that we have some protection against only getting | |
# half the file during "curl | sh" | |
# shoutouts to https://get.docker.com/ :) | |
if grep -q "bookworm" /etc/os-release; then | |
do_install | |
else | |
echo "Not running on Debian 12 (Bookworm)?! Cannot proceed!" | |
exit 1 | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment