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
  • 05:21 (UTC -12:00)
View GitHub Profile
@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 / Eve-Mint_SysInfo
Created March 19, 2018 00:22
Eve-Mint System Info (auto-generated)
System: Host: Eve-Mint Kernel: 4.13.0-37-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm Distro: Linux Mint 18.3 Sylvia
Machine: System: Google (portable) product: Eve v: 1.0 Chassis: type: 3
Mobo: Google model: Eve v: 1.0 Bios: coreboot v: N/A date: 11/07/2017
CPU: Dual core Intel Core i5-7Y57 (-HT-MCP-) cache: 4096 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 6432
clock speeds: min/max: 400/3300 MHz 1: 1600 MHz 2: 1600 MHz 3: 1600 MHz 4: 1600 MHz
Graphics: Card: Intel Device 591e bus-ID: 00:02.0 chip-ID: 8086:591e
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 2400x1600@59.98hz
@DennisLfromGA
DennisLfromGA / chrx-setup-storage
Created October 31, 2017 15:34
chrx-setup-storage [chrx]
#!/bin/bash
#
# setup_storage
#
# This script is _sourced_ from install-chrx (not exec'ed),
# so all functions and variables from there are available.
#
# It cannot be run directly from the commandline.
#
@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 / go
Created October 31, 2017 15:32
go [chrx]
#!/bin/sh
# #
# chrx-go #
# #
# A wrapper for chrx-install #
# #
: ${CHRX_WEB_ROOT:="https://chrx.org"}
CHRX_CACHE0_DIR="/var/tmp/chrx"
CHRX_LOG_FILE="${CHRX_CACHE0_DIR}/chrx-install.log"
@DennisLfromGA
DennisLfromGA / priority
Last active May 25, 2021 17:26
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 / cb
Created July 6, 2017 00:12
Shows Vital Product Data (VPD) for Chrome OS device.
#!/bin/sh -e
### 'cb' - Shows Vital Product Data (VPD) for Chrome OS device.
###
### Typical VPD data
###
## sudo dump_vpd_log --full --stdout
## "mlb_serial_number"="CN0V..................."
## "ppid"="CN0V..................."
## "asset_tag"=""
[
{
"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 / chrootbu
Last active May 8, 2021 23:21
Perfroms a chroot backup ensuring enough space is available.
#!/bin/sh
ANSWER=''
APPLICATION="${0##*/}"
AVAIL=''
AVAILGB=''
BACKTAG=''
BACKUP=''
CHROOT=''
CHROOTS=''
@DennisLfromGA
DennisLfromGA / chrx-install.log
Created February 21, 2016 17:59
chrx install log (Feb 21 12:51)
## go -d galliumos -p admin-misc kodi -H denny.chrx -U denny -v
chrx installer, version 2.1.2
Hardware ID: LULU_D25-O2K-D2Q-Q2P
Model: Dell Chromebook 13 7310
Released: 2015
CPU Family: Intel Broadwell
Prognosis: success likely, ONLY IF FIRMWARE HAS BEEN UPDATED!
Checking hardware support for legacy boot... OK