Skip to content

Carleton Astronet Admin Log Posts

When the IDL license manager halts for no good reason on canopus…

Updated by Bruce and Joel July 2019

So apparently the license manager for idl on canopus loses connection to the server from time to time and Bruce found out that the best way to deal with it was just to power cycle it. Yuping encountered the problem again today and tried the following and it worked.

sudo su – (puts one into root and bash shell – must have sudo privileges)

$ cd /usr/local/exelis/idl83

This is where the IDL installation is

$./bin/lmutil lmdown

This will kill all of the license managers.

$ps aux|grep lm

Make sure that all lm’s are killed

$ ./bin/lmgrd > lmgrd-201Y-MM-DD.log

imgrd starts the license managers.

This appears to fix the problem.

-Yuping

On 2016-05-26, joel found that the above did not quitre work without some help.  I had to first create the log file with a sudo touch filename command, and then CONCAT to the log file in the above sh command by adding a second > to the first one.

psrchive build notes

PSRCHIVE BUILD NOTES

This file is also located /usr/share/astro/psrhome/PsarchiveBuildNotes.txt
Yuping Huang
02/25/2016

psrchive is built under 64bit and with gfortran as the fortran compiler. Note that they require a 64bit gfortran compiled pgplot. I will start by building psrchive since it well build its dependencies automatically.

—–PSRCHIVE—————
Set $PSRHOME to /usr/share/astro/psrhome/ this is the directory for all the softwares.

Add $PSRHOME/bin to your $PATH variable

$ cd $PSRHOME

Unzip psrcat in the directory (psrcat available at http://www.atnf.csiro.au/people/pulsar/psrcat/download.html). Then add in .cshrc setenv PSRCAT_FILE $PSRHOME/psrcat/psrcat.db

$ mkdir src && cd src

$ git clone git://git.code.sf.net/p/psrchive/code psrchive

$ cd psrchive

$ ./bootstrap

$ ./configure –prefix=$PSRHOME F77=gfortran

Then psrchive will complain about not having required packages. It generetes csh scripts under packages for installation and we will use those

$ cd packages

$./pgplot.csh

Remember to add to .cshrc $PGPLOT_DIR and $PGPLOT_FONTS as the script suggests. In my case it is

setenv PGPLOT_DIR $PSRHOME/pgplot/

setenv PGPLOT_FONTS $PGPLOT_DIR/grfont.dat

You should also add $PGPLOT_DIR to your LD_LIBRARY_PATH in .cshrc.

$./fftw.csh

$./cfitsio.csh

$PSRHOME/x86_64-linux/src/cfitsioTake notes of where the cfitsio source is located. We will need it later. In my case it is under $PSRHOME/src/cfitsio

$source ~/.cshrc

this step validates the changes made to the environmental variables.

$./tempo2.csh

This will install tempo2 but likely pgplot will not be linked and henceforth this is not yet a fully functional tempo2. But it does have the components
that psrchive needs. The tempo2 linked with pgplot will be built seperately later.

You should set your $TEMPO2 variable to the tempo2 runtime directory. In my case it is $PSRHOME/tempo2

$ cd ..

This should bring you back to the psrchive folder where configure is located. Now rerun ./configure. It should not complain about fftw, cfitsio, tempo2 or pgplot

./configure –prefix=$PSRHOME F77=gfortran –with-cfitsio-dir=$PSRHOME/src/cfitsio

If you are still having trouble, look at http://psrchive.sourceforge.net/third/packages.shtml. When I did it it can find everything but cfitsio so I fed in the
–with-cfitsio-dir directory. Now we are ready to build it.

$ make

$ make check

$ make isntall

Done! the binaries should locate in $PSRHOME/bin . You should add it to your $PATH variable.

to select VERTICALLY (column mode) in vi or vim or kate editors

suppose you want to select a column (or more) in a file?

in vi or vim:

1. select a corner of desired region

2.  contol v  (start Visual block)

3. move cursor to opposite corner and

4. you will see the desired box highlighted!

5. then do what you will with that highlighted region. eg  d(elete)

6. to paste it elsewhere, move cursor to desired location and p(aste)

(Note if I tried y(ank) instead of d, I got full lines in buffer rather than desired box)

Added 2018 Jul 29: For kate, cntrl-shift-b enables similar block mode for delete at least.  However, multiple write doesnt come until v 4.12 and we seem to have v3.4. –jmw

-Joel (from Nina Gusinskaia , University of Amsterdam Pannekoek Institute)

 

How to configure Oklular to show a document’s file name in its titlebar instead of the document’s “title property”

By default, the version of Okular available to CentOS 6 does not show the viewed document’s filename in the Okular window titlebar, but rather the value of the “Document Title” property embedded in the document being viewed. This is bad news because the Document Title property is usually set to the name of the app that created the document, making it difficult to tell multiple documents generated by the same app apart.

You can force Okular to set it’s window titlebar value to the name of the file being viewed by editing the file ~/.kde/share/config/okularpartrc and appending this line to the ‘[General]’ section:

DisplayDocumentTitle=false

When you finish, the file will end up looking like this:


[General]
UseKTTSD=false
DisplayDocumentTitle=false

 

Thanks Bruce!

Login Hangs After CentOS/RedHat Kernel Update

June 15, 2015

A second incident of login getting hung after kernel update is found. The first incident was reported on Aug 2, 2014. As usual when users type in user name and password at the login window and hit login the login process gets frozen and cannot get to the desktop. It appeared to only affect tsch (using .cshrc) users.

The solution is to hit ctrl-c and then rm .history to get rid of the .history file. Note that if you do it from ssh, it might cause the host to reboot.

Canopus and Algol got updated over the weekend to kernel version 2.6.32-504.23.4.el6.x86_64. Hence it seems like it is only affecting these two hosts.

-Yuping & Bruce

compile pgplot in 32bits

Since we decided to compile the computing programs in 32 bits to ensure consistencies, pgplot should be compiled in 32 bit as well so that those programs can call it. The build notes are in

/usr/share/astro/psrchive/00READMECarleton

 

The compatibility libraries (with the yum commands) that I had to pull in (which Bruce had a copy):

yum install compat-libgfortran-41.i686
yum install libICE-devel.i686

yum install glibc-devel.i686

yum install zlibrary-devel.i686

yum install libpng-devel.i686

yum install xorg-x11-server-devel.i686

yum install compat-libstdc++-33.i686

yum install compat-libstdc++-296.i686

yum install libxcb-devel.i686

yum install libxcb-devel.i686

yum install zlib-devel.i686

yum install libX11-devel.i686

 

-Yuping

mingw64-pkg-config.x86_64

I installed mingw64-pkg-config.x86_64

It seems like it need to pull in its sister package e2fsprogs before compiling dump by typing in the /root/ directory

$ git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git

$./configure –enable-elf-shlibs

$ make

$ make check

$ make install

$ make install-libs

which puts the binary file in /usr/bin or /usr/local/…

then go to the dump source file, type

http://surf.ml.seikei.ac.jp/~nakano/dump-restore/dump-restore-mini-HOWTO.en.html