Skip to content

Carleton Astronet Admin Log Posts

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

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

add new user MUST BE ON THUBAN:


0. For all newusers:

  • MAKE SURE YOU ARE ROOT ON THUBAN.
  • Inform newuser that they are responsible for reading the document /docs/linux/ourhints/newusers which gives some hints and rules for users.
  • Ask their supervisor what principal group they should belong to. Otherwise the script defaults to giving them a principal group with the same name as their user name. JMW thinks this is useless though he might be wrong. A good choice for Joel’s students is “pulsar”.

Steps 1 through 4 are for adding a linux account for a Carleton user with a Carleton username and password. If the person in question is not a member of the Carleton Community, skip straight to step 5.

  1. At the sh prompt, type “useradd -g pulsar <username>”.
  2. Then type “edquota <username>which brings up a vi session, and set the block soft quota to 200000, and the block hard quota to 240000. To do this type ‘i’ (w/o quotes) to insert text into the file, change the values and hit <escape>. Then type “:wq” (w/o quotes) to save the file and exit vi. Do not change any other fields or numbers. Just replace the 0 under “soft quota” with 200000 and the 0 under “hard quota” with 240000.
  3. Then edit /etc/passwd, find <username>’s entry, and enter their full name in the 5th field and change their login shell to ‘/bin/tcsh’.
  4. Go to astro-server list, login, and add <username>@carleton.edu to the list. Then you are done. The user will need to wait 15 minutes for the changes to propagate to the other Astro machines. They should then be able to log in. If user has no carleton account, follow these directions instead of the above:

  5. Determine the alien user’s uid. By convention, Carleton reserves all uid/gid values of 15000+ for Carleton ldap authenticated user accts. So we must choose an unallocated uid for the new user with a value between 500 and 14999. Look at /etc/passwd to find the next available uid larger than 500 and less than 14999. Then open a shell as root on thuban and issue these commands:
  6. adduser <username> -g pulsar -u <uid>”, replacing <username> with the user’s id and <uid> with the uid you’ve just chosen.
  7. passwd <username>” to set the password to a password of your choice.
  8. Then edit /etc/passwd, find <username>’s entry, and enter their full name in the 5th field and change their login shell to ‘/bin/tcsh’.
  9. Then type “edquota <username>which brings up a vi session, and set the block soft quota to 200000, and the block hard quota to 240000. To do this type ‘i’ (w/o quotes) to insert text into the file, change the values and hit <escape>. Then type “:wq” (w/o quotes) to save the file and exit vi. Do not change any other fields or numbers. Just replace the 0 under “soft quota” with 200000 and the 0 under “hard quota” with 240000.
  10. Go to astro-server list, login, and add alien’s email address to the list.
  11. You will then need to wait 15 minutes for the changes to propagate throughout the system. Notify alien of new account and whatever password you set it to. The first thing s/he should do when logging in is change his password(using the passwd command ON THUBAN) to something s/he will remember.

Useful 1-line commands: repquota,lsraid,rpcinfo,du,clear

One-liners

  • repquota /home
    report on quota usage in /home directory
  • lsraid -A -a /dev/md0
    report on state of RAID array
  • rpcinfo -p
    To see what’s running
  • du -h max-depth=1 /home
    List space occupied on home
  • clear && tail /etc/secret/logs/*.log -n 3
    Show the last action taken on astro network machines

 

 

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