Skip to content

Category: Old as of 2009

Pages marked with this Category are no longer current as of 2009.

xfig

OUT OF DATE as of 2008-11-01.

xfig, a figure drawing program, is now installed at /usr/share/astro . The executable is called xfig. The Imakefile I used to compile and install this program can be found a /etc/secret/Imakefile.xfig

If this ever needs to be compiled again, download the source and follow the directions to compile located in the README, using my Imakefile

sudoer list

As of this post date 2007, the Astro network syncs thuban’s sudoers file to the other workstations, just as it does with user accounts. Please contact fullerj with any problems regarding sudo.

Date and Time Configuration

OUT OF DATE as of 2008-11-01.

For our systems, we want to use the network time protocol put in place by the college. Therefore, we do not set the time manually but rather, have it sync from the Carleton Network Time server. To do this follow these easy steps.

As root, under the Applications menu to the right of the little red hat, click on System Settings/Date and Time.

Click on the Network Time protocol tab. Under this tab you should see a place to add and delete network time servers. Delete any servers that are there.

Then type ntp.carleton.edu and click the add button. ntp.carleton.edu should then appear as a server on the list. Click OK and wait a few moments for the machine to sync with the server.

Double check the time to make sure it is accurate. Your system should now have the correct date and time.

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.

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

Configure astro network client

OUT OF DATE as of 2008-11-01.

OUT OF DATE as of 2008-11-01.

Steps to configure an astronomy department linux client computer.

  1. Install Redhat Enterprise Linux AS 4
  2. Install redhat keys from:
    http://rhn.carleton.edu/pub/RedHat/keys.html
  3. Add line to /etc/hosts
    137.22.6.54 algol.physics.carleton.edu algol
  4. Add to /etc/fstab:
    algol:/home /home nfs defaults 1 1
    algol:/etc/secret /etc/secret nfs defaults 1 1
  5. Add computer’s IP address to Algol’s /etc/exports file and then run:
    /usr/sbin/exportfs -a
    on Algol
  6. Install Carleton RPM for LDAP auth:
    rpm -i –force carletonldapauth-1.00-3.es40+fc2.noarch.rpm
  7. Put mntdrives and umntdrives scripts in /usr/local/bin available on /etc/secret/RPMS/mntdrive_scripts (mntdrives.tar.gz)
  8. Make collab scripts runnable:
    chmod u=rwxs,g=rxs,o=rxs /usr/bin/smbmnt
    chmod u=rwxs,g=rxs,o=rxs /usr/bin/smbumount
  9. cp /etc/secret/RPMS/cron_scripts/redhat_update.cron /etc/cron.daily
  10. /etc/cron.daily/redhat_update.cron
  11. cp /etc/secret/RPMS/cron_scripts/get_account_info.cron /etc/cron.hourly
  12. /etc/cron.hourly/get_account_info.cron
  13. Set up printer for computers in Olin 304 and 311 (see separate “printer setup” post)
  14. test

printer setup and commands

OUT OF DATE as of 2008-11-01.

bring up app>>sys settings>>printing and enter sys password

———————————————————————–

for hp color in 304 astro lab:

Queue name: Olin304-CLJ4550

Queue type tab:

Queue type: Networked UNIX LPD
server: Olin304-CLJ4550.physics.carleton.edu
queue: Olin304-CLJ4550–(perhaps must be exactly this since it has been set up thus on another.)
Generic: Printer driver: Postscript printer

————————————————————————-

for hp color in workroom 311

Queue name: AstroPrinterOlin311

Queue type tab:

Queue type: Networked Jetdirect
server: Olin311-x6350.physics.carleton.edu
port:9100

Generic: Printer driver: Postscript printer

————————————————-

some useful queries of printer queues:

lpq [-P]

lpstat -v
lpstat -a

———————–

To print to a queue: lpr -P filename

To pretty-print an ascii file to a queue: a2ps -o filename

vnc client installation onto Mirzam (and later Deneb) via rpg

OUT OF DATE as of 2008-11-01.

JMW installed vnc client onto mirzam into /usr/bin.

Download it from http://rpmfind.net/linux/RPM/redhat/9/i386/vnc-3.3.3r2-47.i386.html

I did it as root and it placed a package on desktop. clicking it a few times installed it into /usr/bin

Drew added it to Deneb at a later time.

/usr/share/astro = shared astro directory

this directory is a place for astro software that needs to be shared across all hosts.

for example right now it has some scripts for compiling and linking fortran, c, pgplot, etc.

it also contains jpeg2ps, astrolib, sm, starlink, pgplot ; many of which have not yet actually been installed but only transferred to here. ie they may well have wrong paths. by the way, to add /usr/share/astro to your path (so that this directory is automatically searched for executables), either copy joel’s .cshrc to your home directory, or put into your .cshrc a line that says

set path = (. $path /usr/share/astro)

(this should replace or augment any current such statement in your .cshrc. note that there are three entries inside the parentheses: ‘.’ which means the current directory; ‘$path’ which means whatever the current value of the path is; and ‘/usr/share/astro’, which is what you want to add.)