Carsten's collected bits and pieces
salt server attachments
redirect
systemctl stop salt-minion && cd /etc/salt/ && mv pki/minion/minion_master.pub pki/minion/minion_master.pub.saltmine && sed -i 's/saltmine/salt-server-carsten/' minion.d/* && systemctl start salt-minion
and back again:
systemctl stop salt-minion && cd /etc/salt &&mv pki/minion/minion_master.pub.saltmine pki/minion/minion_master.pub && sed -i 's/salt-server-carsten/saltmine/' minion.d/* && systemctl start salt-minion
Debian live
log into cowbuilder on bob,
apt-get install live-build
mkdir /live
cd /live
lb config --apt-recommends false --architectures amd64 --clean --memtest none --verbose --bootstrap-flavour minimal
lb build
Currently this results in a 120 MB Wheezy ISO, todo: testing and customizing
E@H post-run file re-organization
Eisntein@home result files are organized in tarballs which are written
daily. Each tarball contains results called 'canonical' (first choice)
or 'valid' (second choice). Ideally both files should be the same as
seen by the project specific validator. Tarball sizes vary a lot,
e.g. for
S6Bucket they can range from a few hundred kByte up to
several GByte in size.
Re-organizing the results into frequency bands should enable post
processing to be much smoother than before, thus this task.
To achieve this, the following steps are performed:
- parse command line options and act...
- read state file - in case previous run failed
- iterate over list of found tarballs
- unpack tarball to /dev/shm
- iterate over result file
- FrCheck result file
- append lines from result file to f-based results
- close all open file handles/flushing results to disk
These steps are performed by a script which can be found
here.
This should be followed by an independent check (Bernd did this for
S6Bucket) to ensure
ALL candidates are retained.
Finally, all bands created should be sorted by the most useful
column(s) and compressed (gzip) to save space and necessary IO during
file reads.
Command line for S5GC search
apt-get --yes --no-install-recommends install devscripts
cd /data/s6bucket/bin
rm -rf /dev/shm/EatH-*
rm -f /data/result/* /data/state.*
git pull
screen -S S5GC1 -d -m bash -c "annotate-output ./convert2freqbased.pl --verbose --noprompt --input=/data/work --output=/data/result --state=/data/state.$(hostname) --freqstart=50.1174637425192 --band=0.05 --label="S5GC1_%08.3f.band" --validator=/data/s6bucket/bin/validator_test_S5GC1B | tee /data/S5GC1.log"
set up working pool for ra05..ra17 (say on ra05 in /data/tmp/):
mkdir -p /data/tmp; cd /data/tmp/
find /home/einstein/UWM-backup/S5GC1/results/ -type f -name "canonical*tar" | rl | split -d -l $((270/12)) - ra
for i in $(seq -w 12 -1 0); do mv ra$i ra$(printf "%02d" $((5+${i#0}))); done
for i in *; do scp $i $i:/data/; ssh $i "cd /data/work; rm -f /data/work/*; cat /data/$i | xargs -n 1 ln -s"; done
My Prefs
- Set NOWYSIWYG = 0
- Set SKIN = natedit,pattern