A: The vaxes DO know about ssh, so here is a trick to get a file from the vaxes over to the suns: from the unix machine type something like
ssh user@anph04 'type file.dat' > file.datThe idea is: you use ssh to access the vax, but rather than logging in interactively you execute the command in the quotes. This command types the file you want to get and since you redirect the output into a file (on the suns) that is called the same name, you end up with a copy on the sun. This will work for ascii files and is a lot faster than the reverse of the procedure - see next.
To transfer a file from a unix machine to the VAX: ftp the file to the gwingpc pc first, then fetch it from the VAX.
> keylogin Password:[1] > chkey Updating nisplus publickey database. Generating new key for '[email protected]'. Please enter the Secure-RPC password for stanton:[1] Please enter the login password for stanton:[2]for [1] you type the network password which you can get from Torben Lauritsen. At [2] you type your own password. You only need to do this once. After that it will not complain again. Please note: if you just click the 'ok' box, it will let you log in anyway, so this is just a warning message.
Please note that if you do 'keylogin' or 'chkey' again, you should now use your own password for the 'Secure-RPC password' - since you by the action above changed your 'Secure-RPC password' from the default system password to your own password.
if your have just been given a new account, you should use the
temp password the system administrator gave you for the 'Secure-RPC password'
and not the default 'Secure-RPC password'. Only the 'old' accounts on
the machine need to use the default 'Secure-RPC password'
# radware setup if ( -f /dk/bgo2/util/setup/radware ) then source /dk/bgo2/util/setup/radware endifThis setup file will add the appropriate path (depending on what UNIX platform you are on) and define some environment variables that Radware needs.
ls -l | sort +4nand to find the biggest files in a directory tree do
ls -Rl | sort +4n
niscat printers.org_diror just "printers" which is aliased to the above command
On the new solaris machines, just use dtmail rather than mailtool and it will handle mimeencoded files automatically. So will pine.
On the Suns running SunOS 4.1.xxx: there is a program called "mimencode" that allows you to decode mime encoded files. There is a man page for the utility. You would extract the mime encoded document, then type
mimencode -u mime-file -o decoded-filewhere 'mime-file' is the file you extracted and 'decoded-file' is the file you want the decoded file to end up in. You will have to remove ANY headers the mail utility left in extracted file before you use it. There should not be anything 'readable' in the mime-file that you input to the mimencode program with the -u option.
Mimencode is supposed to replace uuencode.
On the VMS machines: Extract the email on the VAX a file (message and all) and then exit mail. At the dollar prompt: $MUNPACK filename.ext If MUNPACK can decoded it, it will tell you the name of the new file(s) it creates.
On the Linux machines: Pine should handle mine-encoded documents
internally.
A: use the psresize utility. Example:
psresize -PA4 -pletter x.ps xA4.psthis command will convert a document on A4 size (european) paper to letter size (US) paper
Manually you can locate lines like
%%Page: 1 1 %%Page: 2 2 %%Page: 3 3 . .in the postscript file and insert the line
0 -50 translatejust after all these lines. This line will drop the origin down in the y direction by 50 ps units or 50/72 of an inch.
The style files are included by the environment variable TEXINPUTS, which is set when you start a window on the Solaris machines. If you want to use another package, change the environment variable to what you want. Currently the TEXINPUTS environment variable is set as:
setenv TEXINPUTS /usr/local/revtex/revtex4:To use revtex3.1 version, set your TEXINPUTS environment variable to
setenv TEXINPUTS /usr/local/revtex/revtex3.1:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is f6:cb:e0:b5:b2:2b:c2:22:88:26:6f:4b:8b:e1:0f:e5. Please contact your system administrator. Add correct host key in /home2/tl/.ssh/known_hosts2 to get rid of this message. Offending key in /home2/tl/.ssh/known_hosts2:9 RSA host key for gam3 has changed and you have requested strict checking. do you want to continue (Yes/No):You probably just said yes to last question and ssh logged you in anyway.
However, as it may warn you: "X11 forwarding is disabled to avoid attacks by corrupted servers." it will not set the environment up properly in that mode -- and that is the problem you see. The fix is DO TO WHAT SSH TELLS YOU TO DO: "Add correct host key in /home2/xxx/.ssh/known_hosts to get rid of this message.". Actually, the easiest thing to do is to delete the key for the computer with the problem, log in again and say 'yes' when it asks you to save the (new) public key.
This is a problem whenever the version of ssh changes; but we have to use the latest versions of ssh to avoid bugs...
A: To set up soffice in your directory, execute the command
/usr/local/OpenOffice.org1.1.2/setupThe menu will guide you through the setup (select network installation). When it is done, you will have a directory "OpenOffice.org1.1.2" which contains links to the programs you need. To run soffice after the initial startup, run "OpenOffice.org1.1.2/soffice" or add OpenOffice.org1.1.1 to your path so that you can just say 'soffice'. Your word documents can be located anywhere (there is not a default 'work' area as with the older versions of soffice)
consult http://www.openoffice.org for details on the use of staroffice.
Soffice contains an html editor as well as calendar
utilties, todo utilities, mail util, a spredsheet and a
'presentation manager'. The latter utility looks much like
powerpoint.
A: The old Openwin mailtool had an option for adding a filter that would convert the mail you were printing to postscript using whatever filter you wanted (usually mp or a2ps). In dtmail this useful option is for some reason missing. However, if you create a file '.dt/types/dtmail.dt' you can filter you print data through the filter/formatter program specified in this file. The simplest thing to do is to copy a working dtmail.dt file to your directory, e.g.:
cp ~tl/.dt/types/dtmail.dt ~/.dt/types/dtmail.dtThe filter part is the
| /usr/local/bin/a2ps -1 -p -nPpart. Here we ask to for the mail-text to be filtered through the a2ps utility in portrait mode (-p) and on one page (-1). (-nP means, do not print from a2ps itself). The resulting output is in postscript format and will print on the printer you have specified in the 'print' menu available from the "Messages" meu option of dtmail. If you on the same menu specify '-o nobanner' in the Print Command Option, it will not waste a page printing the banner page. (I do not know how to make dtmail remember the latter option...)
The dtmail.dt file might look like this:
# # Override default Print action for mailboxes # ACTION Print { LABEL Print ARG_TYPE DTMAIL_FILE TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING sh -c ' \ dtmailpr -p -f %(File)Arg_1% | \ /usr/local/bin/a2ps -1 -p -nP | \ dtlp -u %(File)Arg_1%;' }
A: Say your .ps file is calle x.ps, you would then type
/opt/Acrobat3/bin/distill x.psand the x.pdf file will be generated. The distill converter is somewhat old - so it may not do as good a job as newer version of the converter.
There is also a ps2pdf utility in /usr/local/bin which might do just as good a job.
hp4550trans < file.ps | lp -d fwhp4550The hp4550trans program will add a magic header line - which will switch the printer into using transparencies.
For the Phaser printers, type:
phasertrans < file.ps | lp -d p8200dp1
mt -f /dev/rmt/1mbn rew mt -f /dev/rmt/1mbn fsf 3- in this example file no 3 on drive /dev/rmt/1mbn. Then you can list the content of the tar backup in that file as:
tar -tf /dev/rmt/1mbnTo extract all the files in the tar backup
position tape as above cd to directory you want to recover in tar -xvf /dev/rmt/1mbnTo extract a specific file called test.dat
position tape as above cd to directory you want to recover in tar -xvf /dev/rmt/1mbn test.datConsult 'man tar' for more options for tar.
We do not have the ability to make Gammasphere write medium density tapes in the drives that can do compression, even if the drives are able to write without compression. The EPICS driver does not have a density (or compression) option like the workstations have.
If you scp the id_dsa.pub file over on the maria machine, and append it to your .ssh/authorized_keys file there, you should be able to log into the maria linux cluster machines without a password as well.
In that case type
cd mv .cshrc .cshrc.old cp /usr/local/etc/csh.cshrc .cshrc source .cshrcThat should give you a new start. You can then add back (good) aliases and setups again.
Also, make sure you do not have a .login file: type 'mv .login .login.old' Some of the old SunOS .login files upsets the Solaris system, so it is better not to have a .login file.
/dk/bgo2/util/bin/SunOS5.8/colorps2bwpsTypical use:
colorps2bwps plot.ps > plotBW.ps
Here is an example of how you can recover the content of the CD again in case you need to do that rather than just read the content of the CD disk.
To reuse a rewritable CD you must first erase it with 'cdrw -b all'. This can take a very long time, so erase the disks before you you really need them.
Use 'eject cdrom' to get the CD out of the CD drive - if the program doesn't do that for you.
Some SUNs (currently Wigner in F-133) have DVD writers installed for making DVD archives. The SUN workstations seem to have spotty performance (i.e. sometimes they work, sometimes not) reading DVD+R media. Using DVD-R media appears to be fairly safe. However, even though the SUN may not recognize a DVD+R that it just wrote, a Linux or Win** PC may be able to access the data just fine. Go figure.
The cdrecord-ProDVD program has been installed in /usr/local to facilitate this. Type 'cdrecord-ProDVD -help' for more info. Note that in order to write to DVD media, one needs an access/security key (free for non-commercial use) to be set before running. There is a wrapper script (cdrecord-wrapper.sh) in /usr/local/bin that you may use. There is a lovely GUI interface to cdrecord-ProDVD called xcdroast that makes generating DVDs much easier. It not only provides a nice interface, but also takes care of little things like the security key and device permissions. Here is a brief overview for creating a DVD archive with xcdroast.
acroread /usr/local/doc/toi/toi.pdf
cancel -u 'username' e.g., cancel -u stantonTo see the jobs in a queue type
lpstat -d fwhp4550in this case for printer "fwhp4550". Identify the job you want to delete, e.g., "fwhp4550-196", and type
cancel fwhp4550-196
speakez(notice the spelling) and it should come up. Kill netscape before you start it up or the colors will come up funny.
/usr/local/speakeasy contains help directories such as: demo, demotool, example, tutorial, help, lecture which might help beginners getting started.
I have found that the new compiler are a bit more picky about my source codes. In case you have problems with your codes, you can still use the old compilers, - I did not delete them. E.g, if f77 mycode.f fails, and you would like to use the old compiler rather than fix the problems, do the following: which f77 the response should be: /opt/SUNWspro/bin/f77 then the old compiler is in /opt/SUNWspro_old/bin/f77 ^^^^ add this and you should be able to compile as /opt/SUNWspro_old/bin/f77 mycode.f the same goes for cc and CC - although there could be problems with libraries.
evapOR < my.inpHere is an example of a most simple input file for the reaction 48Ca[Z=20]+108Pd[Z=46]@191MeV:
*TITLE gsfma68 simulation 48Ca[Z=20]+108Pd[Z=46]@191MeV *NAMES 152dy_191 *RANDOM 1 *ENDEV 100000,0,1 20,48,46,108 191.(notice the 5 empty lines at the end). You can find documentation for the input format in '/usr/local/src/evapOR/evapOR.doc'. I don't know if the mass table is as good as it can be. I'm using the one that came with evapOR.
chkey -p(respond with your current password) first, then you should be able to set your password with
passwd
A: below is a script that will copy four tapes: t1,t2,t3 and t4 to a DLT tape:
----------------------------------- #!/bin/csh #copy tapes in stacker INDRIVE to #OUTDRIVE (usually a DLT drive) #with logfiles and Email notification # indrive is 8mm tape stacker set INDRIVE = /dev/rmt/1mbn # outdrive is DLT, to use compression # specify /dev/rmt/2cbn set OUTDRIVE = /dev/rmt/2mbn # check output tape echo "test for output tape..." mt -f $OUTDRIVE status set st = $status if ( $st != 0) then echo "output tape NOT ready - quitting..." exit endif foreach tape ( t1 t2 t3 t4 ) # ... test if new tape is ready echo "test for input tape..." mt -f $INDRIVE status set st = $status if ( $st != 0) then echo "input tape NOT ready - quitting..." exit endif # ... copy from 8mm to DLT tape echo "-----> copying tape $tape" echo " $INDRIVE to $OUTDRIVE " tcopy $INDRIVE $OUTDRIVE >! exa2dlt.$tape # ... status echo "input:" mt -f $INDRIVE status echo "output:" mt -f $OUTDRIVE status # ... pop the old tape mt -f $INDRIVE rewoffl # ... wait for stacker echo "waiting for stacker..." sleep 180 end # send Emails echo "... exa2dlt done" echo "exa2dlt done on `date` in `\pwd`" | mailx jack,jackp@tmo_blackberrey.net exit -----------------------------------To use it:
./exa2dlt > exa2dlt_1.log &Here we are asking for the output from exa2dlt to be written to exa2dlt_1.log and the '&' at the end puts the script in the background so that we can log out and wait to be notified by email when the copy is done. You should be able to 'more exa2dlt_1.log' to see how far the copy is.
The output from tcopy, which shows the details from each tape copy, will be written to the logfiles:
exa2dlt.t1 exa2dlt.t2 . .or whatever extensions you specified. By looking in these log files you can add up how much data you have copied to the DLT tape. Note: The above script will not handle overfilling the DLT tape gracefully! -- so you will have to use your own judgment as to when to change the output DLT tape.When you are done copying, you could use 'tdir' to list what is on the DLT tape and double check that you copied what you though you were copying. the 8mm tape drives and stacker are not all that reliable, so be sure to check that the copy was successful.
If you for some reason need to restart the copy script, do
pkill -KILL exa2dlt pkill -KILL tcopythen manually unload the tape in stacker tape drive (push the button) and put it back into the stacker cartridge again. Now close the door on the stacker and press 'esc' 'enter'. That will start the stacker sequence again. Usemt -f /dev/rmt/2mbn rewto return the output DLT tape to the beginning again.
duplex printing on the Phaser printers
To print in duplex mode on the Phaser printers, typelp_duplex < file.ps | lp -d p8200dp1the lp_duplex program will add the duplex command to the top of the 'file.ps' postscript file before the result is piped to the 'p8200dp1' Textronics Phaser printer
Sending Email
Q: Why does my mail handler (pine/dtmail) no longer send Email out?
A: We are no longer allowed to run sendmail on the local machines. Only mail.phy.anl.gov is allowed to run this program which actually handles the Email transactions. Thus, in pine and dtmail (or whatever mail handler you are using) you must set the outgoing SMTP server to 'mail.phy.anl.gov'.
login ok, but no display
Q:I can log in on the suns, but the display will not come up. It used to work just fine. What is wrong?
A: There could be many reasons for this, but one very common one is that you are over quota. When that happens, the display cannot be set up because ssh cannot create/modify your .Xauthority file. Clean up your account, log out and log in again. You cannot ignore the warning that you are over quota, the system will come back and bite you...
How do use root on the suns?
A: Place a file called .setuproot in your home directory with the content# setup the version of root that you want to use. On the # Suns, there will be various versions of root available in # # /usr/local/root_vx.xx.xx # # Here we select the version we want to use: #set ROOTVERS=3.02.07 set ROOTVERS=3.10.02 # ---- you should not have to change anything below setenv ROOTSYS /usr/local/root_v$ROOTVERS setenv ROOTVERS $ROOTVERS # add a path to root set path = ( $path /usr/local/root_v$ROOTVERS/bin ) # add corresponding sharable object library path setenv LD_LIBRARY_PATH {$LD_LIBRARY_PATH}:/usr/local/root_v$ROOTVERS/lib # unset ROOTVERS exitif you say "ls /usr/local | grep root" you can see what versions of root are available. To make root available from your current window, say "resource" (which is an alias for "source ~/.cshrc"). When you log in the next time it will be available without saying resource. Also, to 'switch' version, edit .setuproot and say 'resource' PLEASE NOTE: to read an old .root (or .map) file, you may have to select the version it was created with. Unfortunately, ROOT does not always seem to be backward compatible. PLEASE NOTE: The different versions of ROOT requires different startmapaddresses, so be sure to go through the sdummyload sequence when you change to a new version and want to use shared .map files in GSSort/GSUtil PLEASE NOTE: The makefile for GSSort has been changed to use the ROOTSYS environment variable set from the .setuproot file.
using USB disks
Q:how do I use USB disks on the suns
A: Click here please.
Q:
A: