From 690531382f5d2627c57a589bcb88869c7c7ba06f Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 14 Nov 2023 07:34:26 -0500 Subject: [PATCH] fixes for prep feisty host added some new apps in prep feisty host (e.g. screen, python3) cast_identify_spell is a cool script for identifying metadata on files, but identify app is actually broken on my current ubuntu (Ubuntu 22.04 (code-name jammy)). path_splitter is just a nice reformatter for the PATH variable that shows each component on a separate line. cheapo script. --- scripts/core/prep_feisty_host.sh | 45 +++++++++++++++++++--------- scripts/files/cast_identify_spell.sh | 17 +++++++++++ scripts/system/path_splitter.sh | 3 ++ 3 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 scripts/files/cast_identify_spell.sh create mode 100644 scripts/system/path_splitter.sh diff --git a/scripts/core/prep_feisty_host.sh b/scripts/core/prep_feisty_host.sh index cb02013f..ebb149e0 100644 --- a/scripts/core/prep_feisty_host.sh +++ b/scripts/core/prep_feisty_host.sh @@ -153,17 +153,14 @@ elif [ ! -z "$IS_DARWIN" ]; then exit_on_error $PHASE_MESSAGE elif [ "$OS" == "Windows_NT" ]; then # windows-based with cygwin (or we'll fail out). - if apt_cyg_finder; then -echo need to fix apt cyg install list somewhat. +echo need to fix apt cyg install list for build apps somewhat. #hmmm: list is in our docs as a separate file for cygwin. # plug those packages into here please. - apt-cyg install gawk libcurl-devel meld mingw64-i686-openssl openssl openssl-devel libssl-devel zlib-devel +# and separate out the build vs. handy packages. + apt-cyg install gawk libcurl-devel meld mingw64-i686-openssl openssl openssl-devel libssl-devel zlib-devel exit_on_error $PHASE_MESSAGE -#extended set. just add them? -# xorg-server xorg-docs xlaunch - fi fi @@ -171,11 +168,31 @@ fi # install other external packages and whatnot. -#hmmm: anything else to get installed? - #hmmm: java? - #hmmm: python? - #hmmm: perl itself!? +PHASE_MESSAGE="installing additional helper packages" +if whichable apt; then + # ubuntu or debian or other apt-based OSes... + sudo apt install screen python3 python3-pip xserver-xorg xorg-docs + exit_on_error $PHASE_MESSAGE +elif whichable yum; then + # rpm based with yum available... +#new yums unvetted + sudo yum install screen python3 python3-pip xserver-xorg xorg-docs + exit_on_error $PHASE_MESSAGE +elif [ ! -z "$IS_DARWIN" ]; then + # macos based... +#hmmm: still working on these... + brew install screen python3 pip xserver-xorg xorg-docs + exit_on_error $PHASE_MESSAGE +elif [ "$OS" == "Windows_NT" ]; then + # windows-based with cygwin (or we'll fail out). + + if apt_cyg_finder; then +echo need to fix apt cyg install list for extended apps somewhat. + apt-cyg install screen python3 pip3 xserver-xorg xorg-docs + exit_on_error $PHASE_MESSAGE + fi +fi #### @@ -193,10 +210,10 @@ exit 0 #scav line ############################# -The "kona" collection depends on Java version 8 or better. -| Ubuntu: -| Set up the java PPA archive as described here: -| https://launchpad.net/~webupd8team/+archive/ubuntu/java +#The "kona" collection depends on Java version 8 or better. +#| Ubuntu: +#| Set up the java PPA archive as described here: +#| https://launchpad.net/~webupd8team/+archive/ubuntu/java #not needed at the moment. #echo "bailing because script is immature. farts!" diff --git a/scripts/files/cast_identify_spell.sh b/scripts/files/cast_identify_spell.sh new file mode 100644 index 00000000..73e992d8 --- /dev/null +++ b/scripts/files/cast_identify_spell.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# calls a verbose identify on each file passed to it. +# this should shake loose all the metadata and display it. + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + + +for file in "${@}"; do + echo + sep + echo "file: '$file'" + echo + identify -verbose "$file" + sep + echo +done diff --git a/scripts/system/path_splitter.sh b/scripts/system/path_splitter.sh new file mode 100644 index 00000000..fda4b9cc --- /dev/null +++ b/scripts/system/path_splitter.sh @@ -0,0 +1,3 @@ +echo $PATH | sed -e 's/:/\ +/g' + -- 2.34.1