Jocki's Personal Tips and Tricks

General Red
      Bullet Linux Red
      Bullet OS/2 Red
      Bullet Java Red
      Bullet Graphics

General

Memory Test

Always test your new computer memory with a good memory test program. I prefer memtest from Alexander Grigoriev, that does excellent stress testing under adverse conditions and has proved many SIMM modules defect here at work. Even if HIMEM.SYS or the BIOS test have not reported any problems but the system was unstable, it was shown that the memory had certain defect bits, even new modules we just bought.

You can download it from the authors home-page AleGr, or from a local copy from me here

Another program is called memtest86 and can be downloaded from memtest86.

Linux

CDRecord
Hosts File
Compiling EGCS to a different location
  1. Unpack the sources from Cygnus (egcs home) or a mirror site (e.g. cygnus at ftp.gwdg.de) to a src directory.
  2. Then do the following:
    mkdir objdir
    cd objdir
    ../configure --prefix=/own --enable-shared
    make CFLAGS='-O2' LIBCFLAGS='-O2' LIBCXXFLAGS='-O2 -fno-implicit-templates' bootstrap-lean
    	    
  3. To install it beneath /own, just do a make install.
  4. Last, you have to make sure to get the correct gcc by renaming one, e.g. the one in /usr/bin/gcc to /usr/bin/gcc2.
Xfig: fig2dev doesn't work anymore with newer version and error: couldn't find "C.ps"
just create an empty file /usr/X11R6/lib/X11/xfig/fig2dev/C.ps and fig2dev is happy.
ATAPI Zip drives don't behave like SCSI Zip drives
You probably have the Zip drive run as a Floppy in the BIOS Setup and not as a hard disk (SCSI Zips are usually hard disks). Therefore the BIOS eats the partition table and starts the Zip after the first 16384 bytes, where usually the first partition begins. Either change the mtools to not use an offset when accessing the Zip or make the Zip again a hard disk in the BIOS.
EUR currency in Linux
Using the EURO currency € in Linux means two things:
  1. in the console: select the latin0 font: CONSOLE_FONT="lat0-16.psfu" and choose an EURO compatible locale, e.g. de_DE@euro
  2. in X Windows and XEmacs: add a line to .xinitrc with

    xmodmap -e 'keycode 75 = EuroSign cent'

    and change all fonts that you use to iso8859-15 instead of iso8859-1 (most of them are defined in .Xdefaults). Then for XEmacs (that doesn't know 'EuroSign') in .xemacs/init.el

    ;; eurosign
    (define-key global-map '(currency) '[€])
    (define-key global-map '(EuroSign) '[€])

BTW: if your browser isn't clever enough, you won't see that € is the actual symbol in these places here already. So check also what the HTML source looks like. Any occurrence of € is the actual character.

OS/2

Booting from a SCSI Zip drive (Rescue system)
  1. Repartition the Zip disk with fdisk/fdiskpm. Delete the single primary partition. Then create a single extended partition on it and leave the (automatically created) primary partition alone. Make the logical drive/extended partition bootable and add it to the boot manager menu with a unique name.
  2. Use BootOS2 (download directory at LEO, look for btos2xxx.zip) to create the boot disk on the Zip drive (have the OS/2 installation disks handy!).
  3. Add all the utilities you want on the disk manually in a separate directory. Don't forget the corresponding DLLs, e.g. the emx??? DLLs for many Unix utilities.
  4. Check the entries in the config.sys for their consistency. Take care to include the IFS=... line when using the ext2 file system driver for OS/2, as BootOS2 doesn't add it. Add your utility paths to the LIBPATH, and the PATH statements. Decide if you have enough memory (more than 32 MB sounds safe to me) to switch swapping off, so as not to load the Zip drive with the unnecessary SWAPFILE by adding or changing MEMMAP=noswap.
  5. Whenever you want to boot from this Zip disk, make sure to switch the option in your SCSI controller BIOS called Treat all removable drives as fixed drives, or similar to ON. Only if the BIOS knows about the Zip drive, the Bootmanager will display the boot option. This is a drawback, but the only possible way to my knowledge.
  6. Remark:If you had left the primary partition on the Zip disk then the drive letter would shift in front of your logical drives of the primary hard disk(s) and would mess up all drive letter assignments. This would be very hard to adjust for and should under all circumstances be avoided. The extended partition/logical drive remains at the end of the drive letter assignment order and therefore doesn't affect your hard drive partitions.
  7. You are done and you should have a bootable Zip disk for rescue purposes handy. Just switch the Removable drives... option in the BIOS off and on for normal and rescue operations respectively.
Joliet Support in OS/2 Warp 4
If you have Fixpack 4 or later then you can enable Joliet (beta) support by adding the /W switch to the CDFS line:
IFS=C:\OS2\BOOT\CDFS.IFS /W
How do I revert my Warp Server system from HPFS386 back to HPFS?
These two HPFS file systems are virtually the same, except for the following:
  1. The CONFIG.SYS file, the statement is HPFS.IFS rather than HPFS386.IFS.
  2. The HPFS386 partition will have HPFS version 2.4 marked in the superblock as opposed to 2.2 or 2.3 for regular HPFS.
  3. You will need to process each HPFS386 partition using the LAN Server tool PREPACL to remove the imbedded Access Control Lists (ACLs) and save them in a standalone file for possible later use. PREPACL needs to be run before booting using regular HPFS.
Note that the largest cache size for regular HPFS is 2 MB, so be sure to review your HPFS.IFS statement for valid parameters.
OS/2-Festplatte klonen (von: Michael Eckert)
Ich klone mein OS/2 auf eine neue Platte immer mit "XCOPY C:\ X:\ /s/e/t/h/r/v". Dabei starte ich von Disktette und partitioniere und formatiere die neue Platte zuvor von dort. Das ganze dauert vielleicht länger, ist aber noch nie schiefgegangen. Abschließend kann ich dann die Platten so anschließen, daß die Lauferwksbuchstaben wieder passen.

Ich benutzte zusätzlich immer den Parameter /O, da OS/2 manchmal alte Dateien reanimiert. Den Grund kenne ich nicht, bzw. ich kann diesen nicht reproduzieren.

micha

Java

Running Package Classes

Graphics

How to Use Gimp to Make an ImageMap
  1. Go to the image and select Filter -> Web -> ImageMap and follow the dialog window.
  2. Select a selection tool
  3. e.g. click the desired polygone outline and close this with a double click
  4. Then specify the desired URL for this area
  5. Repeat this for all areas
  6. Save this into a file: this creates the HTML source code including an absolute link to the image you were just using.
  7. Change the link in this file accordingly

Hoch Hoch


Valid HTML 4.0! Blue Ribbon Blue Ribbon © Joachim F. Selinger, Stuttgart, Revalidate
Last modified: Thu Feb 14 10:12:27 CET 2002 / Last checked on 15.6.99 by jfs