Connecting to Windows metafrme server

To start metaframe client on Linux
xhost +metaframe4
rsh metaframe4 x11 

How to un-delete files from CVS

While the "add" method previously submitted is correct, it is incomplete. To successfully undelete a file keeping it's revision history (even the revision showing the file as being deleted) in CVS you will need to follow this simple procedure:

1. Identify the deleted revision of the file, simply performing a 'status' on the file will reveal this:

   brettryan@devel:~/ExDel$ cvs status deleted_file
   ===================================================================
   File: no file deleted_file              Status: Up-to-date
   
      Working revision:    No entry for deleted_file
      Repository revision: 1.15    /var/lib/cvs/ExDel/Attic/deleted_file,v
   

2. We now need to check out the revision prior to being deleted

   brettryan@devel:~/ExDel$ cvs update -r 1.14 deleted_file
   U deleted_file

3. We need to move the file to a temp name so that we can read the file.

   brettryan@devel:~/ExDel$ mv deleted_file .#deleted_file.1.14

4. Before we can read the file, we need to reset our sticky state:

   brettryan@devel:~/ExDel$ cvs update -A deleted_file
   cvs update: warning: `deleted_file' is not (any longer) pertinent

5. Okay, now we add the file again, restore the previous revision and then commit the change.

   brettryan@devel:~/ExDel$ cvs add deleted_file
   cvs add: re-adding file `deleted_file' (in place of dead revision 1.15)
   cvs add: use `cvs commit' to add this file permanently
   brettryan@devel:~/ExDel$ mv .#deleted_file.1.14 deleted_file
   brettryan@devel:~/ExDel$ cvs commit -m "Restored deleted file..."
   cvs commit: Examining .
   Checking in deleted_file;
   /var/lib/cvs/ExDel/deleted_file,v  <--  deleted_file
   new revision: 1.16; previous revision: 1.15
   done

Quite simple really, if you remember these steps it is quite easy to restore a deleted file. All you need to know is the file name and the directory the file used to exist in. 

GDB debugger

/usr/local/gnu/bin/gdb is version 4.17
/usr/local/bin/gdb-5.3 is the correct version to use with gcc 3.1.1

To use purify:

source /usr/local/rational/rs_setup_2002.05.20.csh
gmake CC="purify gcc -static" CXX="purify g++ -static"
if that doesn't work, then list all .a files on the purify line:
purify gcc -static ${CFLAGS} libpdsagent.a libecho.a ...

Forte location:
/opt/SUNWspro/WS6U2

Installing Source RPMs as non-root User

I copied this page from the Internet, however I can't remember the source.

RPM installation can be performed as a normal Unix user without root access using the following instructions:

   1. copy the source RPM that you want to install wherever you want
   2. create the RPMdb directory and copy the rpm files from /var/lib/rpm to the user created local RPM database directory

mkdir ~/RPMdb
cp /var/lib/rpm/* ~/RPMdb

   3. create a local copy of .rpmmacros

cp /usr/lib/rpm/macros ~/.rpmmacros

   4. in .rpmmacros change %_topdir to the user's home directory and %_dbpath to %{_topdir}/RPMdb
   5. create the RPM topdir structure as follows:

mkdir -p ~/rpm/redhat/SOURCES
mkdir -p ~/rpm/redhat/BUILD
mkdir -p ~/rpm/redhat/RPMS
mkdir -p ~/rpm/redhat/SRPMS
mkdir -p ~/rpm/redhat/SPECS

   6. install the rpm in your chosen directory (specified by --prefix)

rpm -ivh --prefix ~/ --dbpath ~/RPMdb edg-optorsim-0.4.0-1.i386.rpm