From: Chris Koeritz Date: Sun, 17 Dec 2017 22:48:06 +0000 (-0500) Subject: Merge branch 'dev' of feistymeow.org:feisty_meow into dev X-Git-Tag: 2.140.106^2~11^2~2 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=1fc8bcf0a57ced00df6ab01d682f8205deaee4c4;hp=855265f66789ebbc706a22009e0a8066fb0f3276;p=feisty_meow.git Merge branch 'dev' of feistymeow.org:feisty_meow into dev --- diff --git a/production/sites/cakelampvm.com/docs/manual/cakelampvm_guide_v002.html b/production/sites/cakelampvm.com/docs/manual/cakelampvm_guide_v002.html index 88317904..2b285a6d 100644 --- a/production/sites/cakelampvm.com/docs/manual/cakelampvm_guide_v002.html +++ b/production/sites/cakelampvm.com/docs/manual/cakelampvm_guide_v002.html @@ -271,7 +271,7 @@ href="http://mapsdemo.cakelampvm.com">http://mapsdemo.cakelampvm.com

Setting up DNS on Windows

The ipconfig tool will provide helpful information about your current networking and DNS configuration:

-
> ipconfig --all
+
> ipconfig /all

The DNS configuration on Windows is somewhat byzantine.  The pipe characters ('|') below are used to separate the menus or tabs or dialogs to traverse.  Follow this path to get to the DNS config:

diff --git a/scripts/agenda/info_overload_report.sh b/scripts/agenda/info_overload_report.sh index 1c7784aa..9469e57e 100644 --- a/scripts/agenda/info_overload_report.sh +++ b/scripts/agenda/info_overload_report.sh @@ -127,7 +127,7 @@ analyze_hierarchy_and_report ~/cloud/branch_road "hearth and home notes (branch # and then count up the things that we think will be cleaned soon, but one thing we have learned # unsorted files haven't been categorized yet. -analyze_hierarchy_and_report ~/cloud/disordered "unsorted files" +analyze_hierarchy_and_report ~/cloud/disordered "disordered and maybe deranged files" # we now consider the backlog of things to read to be a relevant fact. this is going to hose # up our weight accounting considerably. @@ -151,7 +151,7 @@ analyze_by_dir_patterns "lab experiments" ~/cloud/experiment* analyze_by_dir_patterns "jobby work tasks" ~/cloud/job* # scan all the trivial project folders. -analyze_by_dir_patterns "trivialities" ~/cloud/trivia* +analyze_by_dir_patterns "trivialities and back burner items" ~/cloud/trivia* ~/cloud/backburn* full_report+="================================================================\n\ " diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh index f98c004a..529c2ac3 100644 --- a/scripts/archival/pack_feisty_meow.sh +++ b/scripts/archival/pack_feisty_meow.sh @@ -6,6 +6,8 @@ TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")" # specify where we keep the file until we're ready to move it. # shortcut for the lengthy exclude parameter. +# note that this only works on file patterns apparently, like *.hosed, +# instead of working with general patterns (like */code_guide/*). export XC='--exclude=' parent_dir="$(dirname "$FEISTY_MEOW_APEX")" @@ -13,8 +15,20 @@ base_dir="$(basename "$FEISTY_MEOW_APEX")" pushd $parent_dir -# zip up feisty meow, but exclude the file names we never want to see. -tar -h -czf $TEMPO_FILE $base_dir $XC"*/*.tar.gz" $XC"*/*.zip" $XC"*/waste/*" $XC"*/logs/*" $XC"*/binaries/*" $XC"*.git*" $XC"*/code_guide/*" $XC"*/kona/bin/*" +# archive feisty meow current state, but exclude the file names we never want +# to see in the archive. the exclude vcs flag takes care of excluding +# revision control system private dirs. first chunk of excludes is for the +# code guide files; this should wash out the majority of those fat things. +# next line is to exclude archives that shouldn't be in the output file. +tar -h -cz --exclude-vcs -f $TEMPO_FILE $base_dir \ +\ + ${XC}*8cpp_source.html ${XC}*8h__dep__incl.map ${XC}*8h__dep__incl.md5 ${XC}*8h__dep__incl.png ${XC}*8h.html \ + ${XC}*8h__incl.png ${XC}*8h_source.html ${XC}8h__dep__incl.md5 ${XC}8cpp.js \ +\ + ${XC}*.tar.gz ${XC}*.zip \ + +# note: not currently excluded! cannot do these with --exclude= flag! +#${XC}*/waste/* ${XC}*/logs/* ${XC}*/binaries/* ${XC}*/kona/bin/* # now move the newest version into its resting place. this prepares the # feisty_meow package for uploading. diff --git a/scripts/customize/fred/fred_variables.sh b/scripts/customize/fred/fred_variables.sh index 87d0dbf2..1ac9756a 100644 --- a/scripts/customize/fred/fred_variables.sh +++ b/scripts/customize/fred/fred_variables.sh @@ -10,7 +10,7 @@ if [ -z "$USER_CUSTOMIZATIONS_LOADED" ]; then # The gruntose web site is expected to reside below, if it exists at all. export WEBBED_SITES=$HOME/web - if [ "$(hostname)" = "zooty.koeritz.com" ]; then + if [ "$(hostname)" = "hamstertronic" ]; then export WEBBED_SITES=/var/www fi diff --git a/scripts/customize/fred/scripts/archival/raw_surya_synch.sh b/scripts/customize/fred/scripts/archival/raw_surya_synch.sh deleted file mode 100644 index 57b9472b..00000000 --- a/scripts/customize/fred/scripts/archival/raw_surya_synch.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" - -echo "Updating walrus and musix from surya: raw mode without syncthing!" -echo - -for currdir in basement imaginations musix walrus; do - sep - echo "synching $currdir folder..." - rsync -avz surya:/z/$currdir/* /z/$currdir/ -done - -sep - diff --git a/scripts/customize/fred/scripts/archival/raw_synch.sh b/scripts/customize/fred/scripts/archival/raw_synch.sh new file mode 100644 index 00000000..9a69b9c1 --- /dev/null +++ b/scripts/customize/fred/scripts/archival/raw_synch.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +synch_host="$1"; shift +if [ -z "$synch_host" ]; then + echo This script requires a hostname where we expect to find archives. + exit 1 +fi + +echo "Updating our local archives from $synch_host: this is very raw mode, without syncthing!" | splitter +echo + +for currdir in basement imaginations musix walrus; do + sep + echo "synching $currdir folder from $synch_host..." + rsync -avz "$synch_host":/z/$currdir/* /z/$currdir/ +done + +sep + diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index 9db5eef3..a9016d8c 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -136,6 +136,65 @@ fi ############## +# fix up the apache site so that HSTS is disabled. otherwise we can't view +# the https site for cakelampvm.com once the domain name switch has occurred. + +# we operate only on our own specialized tls conf file. hopefully no one has messed with it besides revamp. +# note the use of the character class :blank: below to match spaces or tabs. +search_replace "^[[:blank:]]*Header always set Strict-Transport-Security.*" "# not good for cakelampvm.com -- Header always set Strict-Transport-Security \"max-age=63072000; includeSubdomains;\"" /etc/apache2/conf-library/tls-enabling.conf +if [ $? -ne 0 ]; then + echo the apache tls-enabling.conf file seems to have already been patched to disable strict transport security. good. +else + restart_apache + echo successfully patched the apache tls-enabling.conf file to disable strict transport security. awesome. +fi + +############## + +# fix up bind so that we think of any address with cakelampvm.com on the end +# as being on the vm. this is already true for some specific sites, but we +# want the wildcard enabled to ease the use of DNS for windows folks. + +grep -q "\*[[:blank:]]*IN A[[:blank:]]*10.28.42.20" /etc/bind/cakelampvm.com.conf +if [ $? -eq 0 ]; then + # already present. + echo the bind settings for wildcard domains off of cakelampvm.com seems to already be present. good deal. +else + echo " +; our bind magic, a wildcard domain, for all other sites with cakelampvm.com +; in the domain. this forces any other sites besides the ones above to route +; to the actual vm IP address, which currently is singular and very fixated. +* IN A 10.28.42.20 + IN HINFO "linux vm" "ubuntu" +" >> /etc/bind/cakelampvm.com.conf + restart_bind + echo "successfully added wildcard domains to the cakelampvm.com bind configuration, so we're still on track for greatness." +fi + +############## + +# fix samba configuration for (ass-headed) default of read-only in user homes. +# why add a necessary feature if you're just going to cripple it by default? + +pattern="[#;][[:blank:]]*read only = yes" +replacement="read only = no" + +# first see if we've already done this. +# if we find any occurrence of the replacement, we assume we already did it. +# ** we're assuming a lot about the structure of the samba config file! +grep -q "$replacement" /etc/samba/smb.conf  +if [ $? -ne 0 ]; then + echo "the samba configuration has already been fixed for user homes, s'cool." +else + # so not there yet; we need to make the replacement. + sed -i "0,/$pattern/{s/$pattern/$replacement/}" /etc/samba/smb.conf + test_or_die "patching samba configuration to enable write acccess on user home dirs" + # sweet, looks like that worked... + restart_samba + echo successfully patched the samba configuration to enable writes on user home directories. way cool. +fi + +############## ############## # sequel--tell them they're great and show the hello again also. diff --git a/scripts/system/add_swap_mount.sh b/scripts/system/add_swap_mount.sh index 593115fe..2577f44a 100644 --- a/scripts/system/add_swap_mount.sh +++ b/scripts/system/add_swap_mount.sh @@ -8,7 +8,7 @@ source "$WORKDIR/../core/launch_feisty_meow.sh" #hmmm: why all the hard-coded paths below? -/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 +/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=2048 test_or_die "creating swap file" /bin/chmod 600 /var/swap.1 diff --git a/scripts/system/common_sysadmin.sh b/scripts/system/common_sysadmin.sh index 4ab80ed3..7f831e21 100644 --- a/scripts/system/common_sysadmin.sh +++ b/scripts/system/common_sysadmin.sh @@ -186,6 +186,25 @@ function restart_bind() ############################################################################ +# samba server helper functions... + +function restart_samba +{ + echo restarting samba server. + service smbd restart + if [ $? -ne 0 ]; then + echo "The samba service did not restart properly. Please check the error logs." + exit 1 + fi + service nmbd restart + if [ $? -ne 0 ]; then + echo "The samba name service (nmbd) did not restart properly. This may not always be fatal, so we are ignoring it, but you may want to check the error logs." + fi + echo samba service restarted. +} + +############################################################################ + # apache2 methods... # removes a config file for apache given the app name and site name.