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
  • 11:34 (UTC -12:00)
View GitHub Profile
@DennisLfromGA
DennisLfromGA / name
Last active April 13, 2024 19:40
A bash script to gather pertinent system info. For debian, arch, crunchbang, raspbian, chromeos, and other *nix distros.
## for default bash
#!/usr/bin/env bash
# for termux bash
##!/data/data/com.termux/files/usr/bin/bash
# name - A script to gather pertinent system info.
#
APPLICATION="${0##*/}"
TMPDIR='/tmp'
@DennisLfromGA
DennisLfromGA / flex.grub
Last active April 7, 2024 15:43
[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=''
@DennisLfromGA
DennisLfromGA / rw-rootfs
Last active July 31, 2022 10:17
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]
[
{
"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}
@DennisLfromGA
DennisLfromGA / brio-restore
Last active September 5, 2021 15:45
A script to restore brioche containers from brioche backups
#!/bin/bash
# brio-restore - A script to list brioche backups & restore brioche containers
##
#######################
### Setup variables ###
#######################
##
APPL="${0##*/}"
CONTAINERS=''
DELAY=5