Skip to content

Month: August 2006

IDL customization for Arecibo and GBT: juldaytoLMST.pro

we found that there were two incompatible versions of juldatetoLMST.pro

one is Phil’s arecibo routine, which defaults to arecibo

one is a GBTidl modification to it that defaults to GBT and that has an optional extra parameter.

in order to avoid future confusion, we renamed each routine so that the right version must
explicitly be called:

juldaytoLMSTarecibo.pro

juldaytoLMSTgbt.pro (in /usr/share/astro/gbtidl/pro/toolbox)

NOTE ADDED JUNE 2008:  NOTE THIS IS A GBTIDL INCOMPATIBILITY,

NOT A GODDARD LIBE INCOMPAT!

User Login Problem and Fix

This week we experienced some login failures with the astro network. The symptoms were as follows. The user could not log in as himself/herself under our linux boxes. However, root login continued to be successful. Errors in /var/log/messages indicated an error which suggested the ldap server could not be contacted.

To fix this problem, we first looked at /etc/ldap.conf which had a line like “host 127.0.0.1″ which was not the proper configuration for our network(the ldap server is ldap.carleton.edu”.

To fix this we reinstalled the carletonldapauth rpm located in /etc/secret/RPMS/.

However, this did not fix our error. The error we were now getting in /var/log/messages was an invalid credentials error when trying to bind with the ldap server. After calling ITS admins to see the logs on the server side of things we noted that our astro machines were trying to bind to the ldap server as root. This is incorrect. After discussing the matter further we determined that a newer version of carletonldapauth had been created which was not on the astro network.

This should have been installed automatically by our scripts that we run on the astro network. However, ITS had recently changed the cert on the server which broke our updates. After installing the new cert(located in /etc/secret/RPMS), installing some missing packages on some of the machines(openssl-perl) and installing the new carletonldapauth everything is back to normal.

pgplot compile and link in fortran or c

there are a variety of scripts to do it in /usr/share/astro

note they have names like pglink.f77 and contain lines bringing in pgplot and x11 libraries:

g77 -fno-backslash -o $1 $1.f   -L/usr/share/astro/pgplot -lpgplot -L/usr/X11R6/lib -lX11 -lGL  -xlist

pgplot plotting routines need user to place a directory in path

In your .cshrc, you must add /usr/share/astro to your path if you want to be able to see
plots on screen with /xwin or /xserv windows, because pgplot has to be able to find the pgxwin server in that directory at execution time. Joel linked the pgxwin server from its home in /uasr/share/astro/pgplot into /usr/share/astro to make it more findable.
eg; in Joel’s .cshrc, one finds
set path = ( . $path /usr/share/astro /usr/share/astro/idlshare/gbtidl/)

uncompress

Joel installed uncompress onto Mirzam.

He got the rpm for “ncompress” at

http://rpm.pbone.net/index.php3/stat/4/idpl/2406147/com/ncompress-4.2.4-31.i386.rpm.html

Algol tape drives

We have two tape drives now attached to Algol. The first is an exabyte tape drive listed under

/dev/st0 (or /dev/nst0 depending on if you are using no rewind or not)

The SDLT 320 tape drive is listed under /dev/st1 (/dev/nst1).

To read data from the exabyte. Simply CD into the directory you want to put your data in. Then use the command:(must be run as root)
>>tar xvf /dev/st0

If this fails, try setting the bock size and density using these two commands and then try again.

>>mt setdensity 0x00

>>mt setblk 0

To extract from the SDLT tape drive, the tar command should work as well.

WARNING: When retrieving data from tape, make sure the directory you are in is empty as you can overwrite data files without even realizing it.

redhat desktop modification: eg thunderbird internet email

OUT OF DATE as of 2008-11-01.

when thunderbird died, from the redhat applications internet menu, Josh showed Joel how to fix it.

As root on /usr/share/applications, fix mozilla-thunderbird.desktop

In this particular case, I had to change  to

Exec=/usr/bin/thunderbird

Icon=thunderbird.png