Skip to content

Instantly share code, notes, and snippets.

View IsaacChapman's full-sized avatar

Isaac Chapman IsaacChapman

  • United States
View GitHub Profile
@IsaacChapman
IsaacChapman / gist:df3d28c6676a29077696bdb68507b79e
Created March 22, 2017 21:57
Install google-chrome-[un]stable on Ubuntu 12 LTS
#!/bin/bash
# Install latest versions of Google Chrome (stable and unstable) on Ubuntu 12.04 LTS
# Google does not support latest versions of Chrome on Ubuntu 12, but it works after re-writing the .deb file requirements
# (specifically 'lsb-base' and 'libfontconfig1')
# From by http://askubuntu.com/questions/758571/google-chrome-stable-depends-on-libstdc6-4-8-0-however-version-of-libs
cwd=`pwd`
# make temp directory
temp_dir=$(mktemp -d "${TMPDIR:-/tmp/}google-chrome-install.XXXXXXXXX")
@IsaacChapman
IsaacChapman / deb-package-checker.sh
Created March 22, 2017 20:13
Check if installed packages satisfy .deb file dependencies
#!/bin/bash
# Determine if .deb package dependencies are met
if [[ -z "$1" || "$1" == '--help' || "$1" == "-h" ]]; then
echo "Usage $0 file.deb"
exit 0
fi
if [[ ! -f "$1" ]]; then