Skip to content

Instantly share code, notes, and snippets.

View DennisLfromGA's full-sized avatar
🏠
Working from home

DennisL DennisLfromGA

🏠
Working from home
  • SOHO
  • GA
  • 17:31 (UTC -12:00)
View GitHub Profile
@DennisLfromGA
DennisLfromGA / rw-rootfs
Last active November 5, 2024 22:02
A script that asks to make the root filesystem read-writable for subsequent changes and additions by the user.
#!/bin/sh -e
##!! PLEASE USE THIS SCRIPT WITH CAUTION - AND AT YOUR OWN RISK !!##
##!! IT HAS BEEN KNOWN TO CAUSE RESETS AND WIPE DATA ON SOME CHROMEBOXES !!##
APPLICATION="${0##*/}"
ANSWER=''
SUDO=''
USAGE="
$APPLICATION [no options]
@DennisLfromGA
DennisLfromGA / priority
Last active September 12, 2024 19:07
Re-prioritize CrOS boot pair to toggle the active image pair (KERNEL & ROOT) or set the active image pair as specified.
#!/bin/sh -e
REVISION=14
APPL_PATH="$(readlink -f $0)"
APPLICATION="${0##*/}"
BOOT_KERNEL=""
BOOT_ROOT=""
CURRENT_BOOTPAIR=""
CURRENT_CHROME=""
CURRENT_DRIVE=""
CURRENT_KERNEL=""
@DennisLfromGA
DennisLfromGA / name
Last active August 29, 2024 16:12
A bash script to gather pertinent system info. For debian, arch, crunchbang, raspbian, chromeos, and other *nix distros.
#!/usr/bin/env bash
## for default bash
##!/data/data/com.termux/files/usr/bin/bash
# for termux bash
## Gist link to 'name':
# https://gist.github.com/DennisLfromGA/a12b511d2b4a27e67a53
# name - A script to gather pertinent system info.
#
@DennisLfromGA
DennisLfromGA / flex.grub
Last active July 30, 2024 05:45
[BROKEN] Script for ChromeOS Flex to add cros_debug / dev mode option in grub.cfg
##########################################################################
### THIS SCRIPT NO LONGER WORKS DUE TO RECENT CHANGES IN CHROMEOS Flex ###
##########################################################################
### Script to add cros_debug / dev mode option in grub.cfg
### ( Each Flex update removes cros_debug / dev mode option
### Be sure to run this script AFTER each update and BEFORE rebooting )
ANS=
ROOTDEVICE=
@DennisLfromGA
DennisLfromGA / crouton.init
Last active March 17, 2024 14:58
An external control file for adjusting six parameters in 'crouton.conf' to invoke a crouton chroot.
##########################################################################
##* crouton.conf defaults are: ##
# DELAY=10 # delay desired number of seconds before starting ##
# CHROOT=xenial # enter desired chroot to start ##
# START_DE=startxfce4 # enter desired Desktop Envirnoment to use ##
# CHROOT_APP=none # enter desired chroot application to run ##
# XMETHOD=default # enter the desired XMETHOD (xorg,xephyr,xiwi) ##
# RUN_STATE=y # change to 'n' to disable running $CHROOT ##
##########################################################################
@DennisLfromGA
DennisLfromGA / chrx-install
Created October 31, 2017 15:33
chrx-install [chrx]
#!/bin/bash
#
# chrx-install
#
# chromebook unix installer
#
CHRX_VERSION="2.4.1"
CHRX_OS_DISTRO="galliumos"
@DennisLfromGA
DennisLfromGA / etc-setup.sh
Last active June 22, 2023 02:23
A script to remove rootfs verification and install an openssh server - needs to be run twice with two reboots.
#!/usr/bin/env bash
###
APPLICATION="${0##*/}"
ARCHIVE=''
CURRENTROOT="$(rootdev -s)"
GO=''
HOM=$HOME
NUM='0'
SUDO=''
[
{
"desc": "Acer 15.6\" BSW Banjo refresh",
"file": "chromeos_8530.81.0_banon_recovery_stable-channel_mp.bin",
"filesize": 2279571456,
"hwidmatch": "^BANON .*",
"manufacturer": "Acer",
"name": "Acer 15.6\" Chromebook",
"sha1": "55283c73c64c48cca410eddc38b23a9f4854648e",
"url": "https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_8530.81.0_banon_recovery_stable-channel_mp.bin.zip",
@DennisLfromGA
DennisLfromGA / brio-br
Last active September 12, 2021 20:06
A script to list, backup and restore brioche containers
#!/bin/bash
# 'brio-br' - A script to list, backup and restore brioche containers
##
#########################
### Declare variables ###
#########################
##
## COMMON variables ##
##
APPL="${0##*/}"
@DennisLfromGA
DennisLfromGA / install.brio-br
Last active September 11, 2021 20:50
A script to install 'brio-br' and associated links to '/usr/local/bin' as root (default)
#!/bin/bash
# 'install.brio-br' - A script to install 'brio-br' and associated links to '/usr/local/bin' as root (default)
##
#########################
### Declare variables ###
#########################
##
APPL='install.brio-br'
APPLBR='brio-br'
BIN=${BIN:-/usr/local/bin}