#!/usr/bin/perl
$netscapeName = "nets"; ##################### # kn - kill Netscape ##################### # Author: Andy Deck # http://artcontext.com # Developing Java under RedHat 6, Netscape 4.61 # often freezes up, so I'm often killing # zombie Netscape processes. If you are # having the same problem, kn is easy # to type. # Possible improvement: -n flag option to # start a new Netscape process. # A few lines of perl... open(PS, "ps -ax | grep $netscapeName | grep -v grep |"); while($line= ($slot1,$slot2,$fluf) = split(/\ +/,$line); # this ps split is unpredictable # so we check for a number if($slot1 =~ /[0-9]/){ `kill -9 $slot1`; print("Killing $slot1\n"); } else{ print("Killing $slot2\n"); `kill -9 $slot2`; } } close(PS); |
Alternatively, you can use mke2fs to create a standard Linux file system on the same disk: "mke2fs /dev/sdd1". In this case the mount command would be "mount -t ext2 /dev/sdd1 /mnt/zip" |
DocNotFound <-- 4 ----------------------------------+----------+ | qAds.com | 1 GET q.gif from qAds.com 3 GET z.gif img ->| web | \ / | server | - > / +----------+ 2 /etc/hosts -+ - > \ +----------+ / \ | zAds.com | 1 GET z.gif from zAds.com 3 GET q.gif img ->| web | | server | DocNotFound <-- 4 ----------------------------------+----------+
207.46.131.137 m.doubleclick.net 207.46.131.30 ad.doubleclick.net 207.46.130.149 ads05.focalink.com 205.188.146.23 ads.tucows.com 204.162.96.173 ads.lycos.comBack to top
Under Redhat 6, there is a fontserver called xfs that is started at boot time. I've learned that the config file for this server is /etc/X11/fs/config. The fonts on my system are located at /usr/X11R6/lib/X11/fonts/ (sub-directories of this folder like Type1, 100dpi, 75dpi, etc.). In order to remove some of the fonts I didn't want or weren't really functional, I removed the font files, such as jiskan16.pcf.gz, and then typed the command to rebuild the folder's font database (fonts.dir, fonts.alias). That command is "mkfontdir" and must be typed inside of the affected directory. After removing and rebuilding the database, I restarted the xfs server using the init mechanism:
Finally, in order to install the Type1 fonts, I located RPM files like xfreefonts-0.10-9.noarch.rpm, freefonts-0.10-9.noarch.rpm, and type1inst-0.6.1-2.noarch.rpm and ran the Redhat package manager install procedure (rpm -i some.rpm) on each.
I now have lots of good fonts to work with in GIMP and can
use a few fonts that look alright in Netscape. I'm not saying
you should do exactly as I have, but at least these notes may illuminate how Redhat 6's default font functionality can be improved.
Back to top
(escape) :% s/strin/strout/g
That will sUBSTITUTE all instances of strin with strout
in your document (g is for global -- without it only
the fist strin is changed). That's all. If
you are looking for a complete Vi reference, there's
a decent book by O'Reilly on the topic.
Back to top