This script installs chrome and allows it to run as root. setup_chrome.bash#!/bin/bash _WGET=$(which wget) if [ $? -ne 0 ]; then apt update apt install wget -y fi $_WGET https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/google-chrome-stable_current_amd64.deb if [ $? -eq 0 ]; then apt install -y /tmp/google-chrome-stable_current_amd64.deb if [ $? -eq 0 ] && [ -e /tmp/google-chrome-stable_current_amd64.deb ]; then rm /tmp/google-chrome-stable_current_amd64.deb fi fi # fix root access to chrome sed -i.backup 's/exec\ \-a\ \"\$0\"\ \"\$HERE\/chrome\"\ \"\$\@\"$/exec\ \-a\ \"\$0\"\ \"\$HERE\/chrome\"\ \"\$\@\"\ \-\-user\-data\-dir\ \-\-test\-type\ \-\-no\-sandbox/g ' /opt/google/chrome/google-chrome |
virtualization >
Proxmox - Install Chrome
posted Jan 5, 2021, 5:14 AM by Chris FranklinThis script installs chrome and allows it to run as root. |