Files
pxe_boot_alma/work/KickStart/ks/.bash_history
T
andersenandClaude Fable 5 6d398b826a refactor: move tree under homelab/, add alma10 hardening and kickstart docs
- restructure boot/kickstarts/scripts/docs into homelab/
- docs: alma9->10 breaking changes, CIS hardening, kickstart changes
- add find_cron_entries.sh helper and codex running memory notes

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-06 22:35:07 -04:00

399 lines
13 KiB
Bash

ls
ls -al
rm .emacs
rm .zshrc
ls
ls -al
rm -rf .mozilla/
cd .ssh
ls
ls -al
more authorized_keys u
/usr/bin/ssh-keygen -t dsa
ls -al
pwd
echo $BIN
echo $PATH
ls /bin
ls ../bin
pwd
ls ../../bin
id
ls -al
cd ..
ls
ls -al
pwd
cd ..
ls
ls bin
ls sbin
ls usr/bin/
ls -al usr/
ls -al usr/libexec/
ls -al usr/libexec/openssh/
ls
ls -al
id
pwd
ls
pwd
ls -al
pwd
ls -al
ls -al /home/KickStart/
ls -al /dev/shm/tmp.NsxKH19945/ssh/
id
echo $PATH
echo $SAVEDIR
if [ -n "$ST" ]; then SAVEDIR="$SAVEDIR/$ST"; elif [ -n "$MAC" ]; then SAVEDIR="$SAVEDIR/$MAC"; else SAVEDIR="$SAVEDIR/`date +%s`"; fi
echo $SAVEDIR
echo $ST
ls
cd .ssh
ls
ls -al
more authorized_keys
man authorized_keys
man -k ssh
10.1.1.102man ssh_config
man ssh_config
man sshd_config
ls
vi authorized_keys
man rbash
man bash
pwd
ls
mkdir .postgresql
chmod 700 .postgresql
cd .postgresql/
ls
cp /tmp/ks.* .
ls
rm ks.new
ls -la
chmod 600 ks.*
ls
ln -s ks.crt.pem postgresql.crt
ln -s ks.key.pem postgresql.key
ls -la
exit
psql -U iglass -h brain01b iglass2
exit
eval $(op signin iglassnetworks repeat-hook-dish-sang)
PWENCODED=$(echo {"notesPlain":"Service Tag: 8BGKND2","sections":[],"passwordHistory":[],"password":"xY9P0SdUgoz8Pu7/MZz/ZXMG/Sp6xC"} | op encode)
echo $PWENCODED
op create item Password $PWENCODED --title="iprobe [8BGKND2]" --vault=Private --tags="probe passphrases"
op create item Password "$PWENCODED" --title="iprobe [8BGKND2]" --vault=Private --tags="probe passphrases"
op create item Password "$PWENCODED" --title="iprobe 8BGKND2" --vault=Private --tags="probe passphrases"
PWENCODED=$(echo '{"notesPlain":"Service Tag: 8BGKND2","sections":[],"passwordHistory":[],"password":"xY9P0SdUgoz8Pu7/MZz/ZXMG/Sp6xC"}' | op encode)
echo $PWENCODED
op create item Password "$PWENCODED" --title="iprobe [8BGKND2]" --vault=Private --tags="probe passphrases"
p signout OP_SESSION_iglassnetworks
op signout OP_SESSION_iglassnetworks
id
ls -al
op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7
/usr/local/bin/op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7
export OP_SESSION_iglassnetworks="EuhQ_fK34d0wVP1Gfd0F9BVP9Za6XqlaXtax_nSSx68"
PWENCODED=$(echo {"notesPlain":"Service Tag: HPYWHL2","sections":[],"passwordHistory":[],"password":"1w8ipN7zGAT6/Bc9uM2gdwiyVD2cpV"} | op encode)
pwd
ls
ls -al
more .bashrc
more .bash_profile
vi .bashrc
ls a-l
ls -al
su
. .bashrc
PWENCODED=$(echo {"notesPlain":"Service Tag: HPYWHL2","sections":[],"passwordHistory":[],"password":"1w8ipN7zGAT6/Bc9uM2gdwiyVD2cpV"} | op encode)
echo $PWENCODED
op create item Password $PWENCODED --title="iprobe [HPYWHL2]" --vault=Private --tags="probe passphrases"
op create item Password $PWENCODED --title="iprobe HPYWHL2" --vault=Private --tags="probe passphrases"
echo $PWENCODED
echo $SHELL
op create item Password bm90ZXNQbGFpbjpTZXJ2aWNlIFRhZzogSFBZV0hMMiBzZWN0aW9uczpbXSBwYXNzd29yZEhpc3Rvcnk6W10gcGFzc3dvcmQ6MXc4aXBON3pHQVQ2L0JjOXVNMmdkd2l5VkQyY3BW --title="iprobe [HPYWHL2]" --vault=Private --tags="probe passphrases"
echo {"notesPlain":"Service Tag: HPYWHL2","sections":[],"passwordHistory":[],"password":"1w8ipN7zGAT6/Bc9uM2gdwiyVD2cpV"} | op encode
pwd
cd ~ks
ls
pwd
ls -al
cd .ssh/
ls
ls -al
more authorized_keys
vi authorized_keys
ls -al
ls -al .op
more .op/config
more .op/.device
ls -al
ls -al .ssh
more .ssh/authorized_keys
grep ks /etc/passwd
echo foo |op encode
df
/home/network/Aurora/
more /etc/samba/smb.conf
ls -al /home/iglass-work/atl-fl/AurOS\ MIBs/
ls -al /home/iglass-work/atl-fl/AurOS\ MIBs/fastpath_boxservices.my
more /home/iglass-work/atl-fl/AurOS\ MIBs/fastpath_boxservices.my
ls -al /home/iglass-work/atl-fl/AurOS\ MIBs/
id
echo #PATH
echo $PATH
ls
vi .bashrc
ls -al
dbMgr.pl
ls
sudo -u noc dbMgr.pl
sudo -u noc /opt/iglass/bin/dbMgr.pl
ls -al /opt/iglass/bin/dbMgr.pl
visudo
sudo -u noc /opt/iglass/bin/dbMgr.pl
sudo -u noc /opt/iglass/bin/dbMgr.pl --help
sudo -u noc dbMgr.pl --help
sudo -u noc /opt/iglass/bin/dbMgr.pl --help
pwd
sudo -u noc /opt/iglass/bin/dbMgr.pl --db=beld --dbtype=cust-probe --host=192.168.177.110 --create
sudo -u noc /opt/iglass/bin/dbMgr.pl --db=beld --dbtype=cust-probe --host=192.168.177.110
sudo -u noc /opt/iglass/bin/dbMgr.pl --db=beld --dbtype=cust-probe --host=192.168.177.110 --schema=iprobe093-probe --create
sudo -u noc /opt/iglass/bin/dbMgr.pl --db=beld --dbtype=cust-probe --host=192.168.177.110 --schema=iprobe093-probe
ls -al .tab
nslookup test
kinit -k -t .tab/dnskey-monolith.tab [email protected]
ipa help dns
ipa help dnsrecord-add
ipa dnsrecord-add iglass.net test --a-ip-address=192.168.177.100 --a-create-reverse
pwd
history
which ipa
pwd
ip help
ipa help
ipa help host
ipa
ipa help topics
ipa help hostgroup
ipa help hostgroup-add-member
ipa hostgroup-add-member probes --hosts=test
kinit -k -t .tab/dnskey-monolith.tab [email protected]
ipa help
ipa help topics
ipa help host
ipa help host-add
ipa host-add test --ip-address=192.168.177.100
ipa host-add test.iglass.net --ip-address=192.168.177.100
ipa host-add "test.iglass.net" --ip-address=192.168.177.100 --desc=CUST
ipa host-add test.iglass.net --desc=CUST
ipa dnsrecord-add iglass.net test --a-ip-address=192.168.177.100 --a-create-reverse
ipa host-add test.iglass.net --ip-address=192.168.177.100 --desc=CUST
ipa help host
ipa help hostgroup
ipa help hostgroup-add-member
ipa hostgroup-add-member probes --hosts test.iglass.net
man op
op --help
op --help signin
op --help create
op --help create item
op --help signout
which op
vi /usr/local/bin/op
op update
op --help create item
op --help
op --help signin
ls
pwd
ls -al
more .op/config
op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7 repeat-hook-dish-sang --output-raw --shorthand [email protected]
more .op/config
op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7 repeat-hook-dish-sang --output-raw --shorthand wia
more .op/config
op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7 repeat-hook-dish-sang --output-raw --shorthand=wia
more .op/config
rm .op/config
op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7 repeat-hook-dish-sang --output-raw --shorthand=[email protected]
more .op/config
op signin iglassnetworks.1password.com [email protected] repeat-hook-dish-sang --output-raw --shorthand=[email protected]
op signin iglassnetworks [email protected] repeat-hook-dish-sang --output-raw --shorthand=[email protected]
op signin iglassnetworks [email protected] repeat-hook-dish-sang --output-raw
op signin iglassnetworks repeat-hook-dish-sang --output-raw --shorthand=[email protected]
op signin iglassnetworks repeat-hook --output-raw
more .op/config
op --help signin
ls .op
ls -al .op/
more .op/.device
ls
op signin iglassnetworks --output-raw -
op --help signin
op signin iglassnetworks --output-raw --shorthand=[email protected]
op signin iglassnetworks --output-raw
more .op/config
op signin [email protected] repeat-hook-dish-sang --output-raw
export [email protected]="Q96OVgj29ObLy_PeNNEQFHdiHxFpnWSLmHS3lU6E_us"
export OP_SESSION_wia\@iglass.net="Q96OVgj29ObLy_PeNNEQFHdiHxFpnWSLmHS3lU6E_us"
export OP_SESSION_wia="Q96OVgj29ObLy_PeNNEQFHdiHxFpnWSLmHS3lU6E_us"
OPUSER=[email protected]
echo $OPUSER
echo ${OPUSER/%@*/}
OPUSER=wia
echo ${OPUSER/%@*/}
more .op/config
rm .op/config
wcho $OPUSER
echo $OPUSER
if echo "$OPUSER" | grep -qv \@; then SH="$OPUSER" OPUSER="$OPUSER@iglass.net"; else SH=${OPUSER/%@*/}; fi
echo $OPUSER
echo $SH
grep $OPUSER .op/config
pwd
ls
op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7 repeat-hook-dish-sang --output-raw --shorthand=$SH
grep $OPUSER .op/config
grep shorthand .op/config
grep -E shorthand .op/config
grep -E "shorthand*$SH" .op/config
echo $SH
grep -E "shorthand.*$SH" .op/config
grep -E "shorthand.*$SHf" .op/config
grep -E "shorthand.*${SH}f" .op/config
grep -E "shorthand.*$SH" .op/config
grep -E shorthand.*$SH .op/config
op signin iglassnetworks.1password.com [email protected] A3-SALTLW-27JDLC-KZF78-6N2LY-2AMXN-EDVP7 repeat-hook-dish-sang --output-raw --shorthand=$SH
export OP_SESSION_wia="_VNI5oFOhq3MWxiCTsgHgqQ4ZUpBZJzDy2JiUS3LldE"
op signin $SH repeat-hook-dish-sang --output-raw
op signin $SH repeat-hook-dish-sang --output=raw
op -help signout
OP_SESSION_$SH='-CkCOOnmWILXpXA31X0RqlK_HPZQ5LlJ9c7STrWILmg'
"OP_SESSION_$SH"='-CkCOOnmWILXpXA31X0RqlK_HPZQ5LlJ9c7STrWILmg'
OP_SESSION_$SH='-CkCOOnmWILXpXA31X0RqlK_HPZQ5LlJ9c7STrWILmg' op signout
OP_SESSION_wia='-CkCOOnmWILXpXA31X0RqlK_HPZQ5LlJ9c7STrWILmg'
op signout
OP_SESSION_wia='-CkCOOnmWILXpXA31X0RqlK_HPZQ5LlJ9c7STrWILmg'
op signout
OP_SESSION_wia='B2_SI6hjFInELsVyQ2ziOImDUb3PCOA89YLZ6uUkY-M'
op signout
op signoutP_SESSION_wia
op signout OP_SESSION_wia
OP_SESSION_wia='Q96OVgj29ObLy_PeNNEQFHdiHxFpnWSLmHS3lU6E_us'
op signout OP_SESSION_wia
op signin $SH repeat-hook-dish-sang --output=raw
OP_SESSION_wia='ZOTzw7hIfA9EKc3c6h9hOQf6Y0aiXlgwF7Vy8iXLRB0'
op signout OP_SESSION_wia
kinit -k -t .tab/dnskey-monolith.tab
kinit -k -t .tab/dnskey-monolith.tab [email protected]
ipa help host
ipa host-show iprobe238
ipa host-show iprobe238.iglass.net
ipa host-show iprobe255
ipa host-show iprobe255 > /dev/null
ipa host-show iprobe255 2> /dev/null
ipa host-show iprobe255 2>&1 >/dev/null
ipa host-show iprobe238.iglass.net |grep -E "Principal*$PROBE"
PROBE=iprobe238
ipa host-show iprobe238.iglass.net |grep -E "Principal*$PROBE"
ipa host-show iprobe238.iglass.net |grep -E "Principal.*$PROBE"
PROBE=iprobe238.iglass.net
ipa host-show iprobe238.iglass.net |grep -E "Principal.*$PROBE"
ipa help host
ipa help host-del
Continue() { RTN=0; if [ -z "$AUTO" ]; then if [ -n "$*" ]; then PROMPT="$*"; else PROMPT="Continue?"; fi; echo; echo -n "$PROMPT [Y] "; read OK; if [ "$OK" != "" -a "$OK" != "y" -a "$OK" != "Y" ]; then return 1; fi; fi; return $RTN; }
if Continue; then echo yes; else echo no; fi
if Continue "Delete"; then echo yes; else echo no; fi
if $SSH "kinit -k -t $TAB [email protected]; ipa host-show $PROBE 2>/dev/null" |grep -Eq "Principal.*$PROBE" ; then echo yes; fi
pwd
ls -al
more .op/config
rm -f .op/config .op/.device
ls
ls -al
pwd
ls
ls -al
ls -al probe/
ls -al .op/
more .op/config
psql -Aqtc SELECT service_tag FROM probes_auth WHERE service_tag = '2N2C0Q2' LIMIT 1
PGSERVICE=iglass2 psql -Aqtc SELECT service_tag FROM probes_auth WHERE service_tag = '2N2C0Q2' LIMIT 1
PGSERVICE=iglass2 psql -U noc -Aqtc SELECT service_tag FROM probes_auth WHERE service_tag = '2N2C0Q2' LIMIT 1
PGSERVICE=iglass2 psql -U noc -Aqtc "SELECT service_tag FROM probes_auth WHERE service_tag = '2N2C0Q2' LIMIT 1"
ls
PGSERVICE=iglass2 psql -Aqtc "select optpass from probes_auth where service_tag = 'JR1TTQ2' LIMIT 1"
pwd
ls -al
more .pgpass
PGSERVICE=iglass2 psql -AqtcU noc "select optpass from probes_auth where service_tag = 'JR1TTQ2' LIMIT 1"
ls -al /etc/sysconfig/pgsql/pg_service.conf
more /opt/iglass/conf/db/pg_service.conf
PGSERVICE=iglass2 psql -Aqtc "select optpass from probes_auth where service_tag = 'JR1TTQ2' LIMIT 1"
vi .pgpass
ma psql
PGSERVICE=iglass2 psql -Aqtc -I noc "select optpass from probes_auth where service_tag = 'JR1TTQ2' LIMIT 1"
PGSERVICE=iglass2 psql -Aqt -U noc -c "select optpass from probes_auth where service_tag = 'JR1TTQ2' LIMIT 1"
nmap 192.168.177.102
nmap -Pn 192.168.177.102
sudo -u noc /opt/iglass/bin/dbMgr.pl
ADD=1
[ "$ADD" -eq 1 ] && echo yes
ls -al
more ifcfg.sh
ls -altr
more ifcfg.sh
sudo -u noc /opt/iglass/bin/dbMgr.pl --db=rrs --dbtype=cust-probe --host=192.168.177.102 --create
[ "$ADD" -eq 1 ] && echo yes
reset
clear
sudo -u noc /opt/iglass/bin/dbMgr.pl --db=rrs --dbtype=cust-probe --host=192.168.177.102 --create
reset
TAB=/home/KickStart/ks/.tab/dnskey-monolith.tab
kinit -k -t $TAB [email protected];
ipa host
ipa host-show
ipa host-add test.iglass.net --ip-address=192.168.175.5 --desc='testing'
ipa host-add --help
TAB=/home/KickStart/ks/.tab/dnskey-monolith.tab
kinit -k -t $TAB [email protected];
ipa host-add test.iglass.net --ip-address=192.168.175.5 --desc='testing'
ipa dnsrecord-find
ipa disrecord
ipa dnsrecord
ipa dnsrecord-find
ipa dns
ipa dnszone-find iglass
ipa dnszone-find istructure
ipa dnszone-find
id wia
more /etc/resolv.conf
ipa dnszone-find
pwd
cd -
cd /home/KickStart/cfg/probe-config/
ls
more 000-setup.sh
rpm -qa |grep ipa
rpm -qa |grep ipa|sort
ipa dnszone-find
su - wia
pwd
ls
more 300-addDNS.sh
more /etc/resolv.conf
grep ks /etc/passwd
id
ipa dnszone-find
ls
more 300-addDNS.sh
grep TAB *
ls -al /home/KickStart/ks/.tab/dnskey-monolith.tab
ls -al /home/KickStart/ks/.tab/
id
exit