Skip to content

Month: July 2007

Differencing two similar text files

There is a faily brain-dead unix utilitiy for differencing two files:

diff file1 file2

There is a lovely graphical version on linux called kompare. i highly recommend it (jmw).

Its output can be exported as text to send to distant colleagues. Furthermore the following diff command gives similar (text) output – much to be preferred to raw diff:

diff -U 3 -dHrN — file1 file2

(the 3 means it places 3 lines of context around the change to help you visualize it)

–Joel

Thuban reboot issues

Thuban as the server, is more sensitive to rebooting than other machines. Therefore do not reboot thuban unless absolutely necessary.

If it is rebooted, be sure that it has exported all the shared disks for use on other astro net clients. To check that this has successfully happened, log in to another desktop and try cd-ing to various shared disks like /data/psrdata and /docs and so on. If thuban has NOT mounted these disks for sharing, then James Fuller says to enter the following command on thuban:

(as root):# /usr/sbin/exportfs -a

–Joel

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.