<h4>Setting up DNS on Windows<a id="#windoze-dns" name="#windoze-dns"></a></h4>
<p>The ipconfig tool will provide helpful information about your current
networking and DNS configuration:</p>
- <pre>> ipconfig --all</pre>
+ <pre>> ipconfig /all</pre>
<p>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:</p>
# 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.
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\
"
# 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")"
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.
# 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
+++ /dev/null
-#!/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
-
--- /dev/null
+#!/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
+
##############
+# 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.
#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
############################################################################
+# 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.