Computing Notes
webpush
To use webpush on a new machine,
on the machine that generates the images, generate a key with no passphrase by doing ssh-keygen -t dsa -f ~/.ssh/imagepush
then copy and edit ~/.ssh/imagepush.pub by pre-pending command="cd /home/jsoishi/public_html/research/images; tar xf -",no-port-forwarding,no-X11-forwarding,no-agent-forwarding
push this to www.jsoishi.org: cat imagepush.pub | ssh -p 7822 jsoishi@www.jsoishi.org 'sh -c "cat - >>~/.ssh/authorized_keys2"'
File Transfer
Transferring files from TG sites is annoying. In order to check that a large file has successfully transferred doing
[remote machine]$ md5sum <file> > file.md5
and then after copying file.md5 and the file, do
[local machine]$ md5sum -c file.md5
and it will check the sums against one another. Fairly fast, even for 47 GB files.
Methods
bbcp bbcp -z -k -P 2 -V -w 8m -s 16 krakenpf1.nics.tennessee.edu:/lustre/scratch/jsoishi/xad .
globus-url-copy
gets about ~8 MB/sec by default. has a -rst option that i haven't yet tried.
globus-url-copy -vb gsiftp://gridftp.nics.teragrid.org/lustre/scratch/jsoishi/vc/pencil-code/joishi/LargeMRI/B100Re1600Pm4_64.tar B100Re1600Pm4_64.tar
from Pople, do
globus-url-copy -vb -p 2 -tcp-bs 4000000 gsiftp://gridftp.pople.psc.teragrid.org/bessemer/oishi/vc/pencil-code/joishi/LargeMRI/B100Re800Pm4_64.1.tar B100Re800Pm4_64.1.tar
patched scp
debugging
parallel gdb tutorial
Screen
NASA Pleides notes
(this should really be moved somewhere else)
- no default compilers loded. use
module load comp/intel/10.1.021_64 module load mpi/mpt.1.23.nas
Misc
to enter greek letters in Inkscape, type ctrl-u (unicode) in a text entry box. then enter the corresponding unicode character. a list of greek (and coptic!) unicode can be found here.
- to combine stderr and stdout:
some_program > logfile 2>&1
Entertainment
- to eject an ipod from linux, first find the device it's been assigned via
$ dmesg
- then eject (use eject command). you may need to sudo
$ sudo eject /dev/[device]
