old-www/LDP/LG/issue28/lg_tips28.html

757 lines
24 KiB
HTML

<!--startcut ==========================================================-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>More 2 Cent Tips & Tricks LG #28</title>
</head>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
ALINK="#FF0000">
<!--endcut ============================================================-->
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <hr> <P>
<!-- QUICK TIPS SECTION ================================================== -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.gif">
More 2&#162; Tips!</A></H1> <BR>
Send Linux Tips and Tricks to <A HREF="mailto:gazette@ssc.com">
gazette@ssc.com
</A></center>
<p><hr><p>
<H3>Contents:</H3>
<ul>
<li><a HREF="./lg_tips28.html#shut">Re: Shutdown and Root</a>
<li><a HREF="./lg_tips28.html#core">Re: Core Dumps</a>
<li><a HREF="./lg_tips28.html#easter">Easter Egg in Netscape</a>
<li><a HREF="./lg_tips28.html#host">Host Name Completion</a>
<li><a HREF="./lg_tips28.html#login">Running Without Logging In</a>
<li><a HREF="./lg_tips28.html#eggs">Animation Easter Eggs in Netscape</a>
<li><a HREF="./lg_tips28.html#user">Re: Usershell on Console Without Logging In</a>
<li><a HREF="./lg_tips28.html#win95">Backing Up Win95 Files</a>
<li><a HREF="./lg_tips28.html#xterm">Re: X-term for MS-Windows</a>
<li><a HREF="./lg_tips28.html#shut2">Re: Shutdown and Root Again</a>
<li><a HREF="./lg_tips28.html#atapi">Running an ATAPI Zip Drive</a>
<li><a HREF="./lg_tips28.html#binary">New Binaries Script</a>
<li><a HREF="./lg_tips28.html#script">Script Contributions</a>
<li><a HREF="./lg_tips28.html#macker">Re: Core Dumps Again</a>
</ul>
<P> <hr> <P>
<!--================================================================-->
<a name="shut"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Shutdown and Root
</H3>
<P>
Date: Wed, 1 Apr 1998 06:31:04 -0500<BR>
From: Buz Cory, <A
HREF="mailto:adm@bzsys.dyn.ml.org">adm@bzsys.dyn.ml.org </A>
<P>
From the Linux Gazette, #27
<blockquote> <font color="navy">
Guido Socher, eedgus@eed.ericsson.se wrote:<BR>
I noticed that many people still login as root before they power down
their system in order to run the command 'shutdown -h now'. This is
really not necessary and it may cause problems if everybody working on a
machine knows the root password.
</font></blockquote>
Very true.
<blockquote> <font color="navy">
Most Linux distributions are configured to reboot if ctrl-alt-delete is
pressed, but this can be changed to run 'shutdown -h now'. Edit your
/etc/inittab ...
</font><PRE>
[snip inittab]
</PRE> <font color="navy">
Now you can just press crtl-alt-delete as normal user and your system
comes down clean and halts.
</font></blockquote>
Not necessarily the best solution.
<P>
It is perfectly safe to simply do a "Three-finger salute", allow a
normal shutdown, and then power down the machine anytime after you get
the message "unmounting filesystems" until you get the message during
reboot saying "mounting all filesystems". Probably the easiest time
would be at the LILO boot prompt (assuming you are using LILO).
<P>
An alternative I used once on a system that did *not* have
&lt;ctrl-alt-del&gt; enabled was to provide a special login that *just* did a
shutdown. There is such a line in my /etc/passwd now that I didn't put
there, so I guess it's from RedHat two years ago.
<P>
Regards,
==Buz :)
<P> <hr> <P>
<!--================================================================-->
<a name="core"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Core Dumps
</H3>
<P>
Date: Wed, 1 Apr 1998 14:31:24 -0500 (EST)<BR>
From: Claude Morin, <A HREF="mailto:klode@isgtec.com">klode@isgtec.com</A>
<P>
Neat idea!
<blockquote> <font color="navy">
Christoph Spiel says:
I'd like to paste some sample output here, but neither can I find a
core dump on my machine, nor do I know a program that generates one.
</font></blockquote>
How to generate a core dump in one easy lesson:
<ul>
<li>run something that reads stdin, like: <tt>cat</tt>
<li>press ^\
</ul>
You've just generated a core dump by sending SIGQUIT to cat.
<P>
If this doesn't work, you probably have core dumps disabled. To check:<BR>
within bash: <tt>ulimit -a</tt><BR>
within tcsh: <tt>limit</tt>
<P>
Lastly, you can <tt>kill -QUIT</tt> various running processes; if they don't
handle the signal, they'll dump core. Remember kids: don't try this as
root :-)
<P>
Claude
<P> <hr> <P>
<!--================================================================-->
<a name="easter"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Easter Egg in Netscape
</H3>
<P>
Date: Thu, 2 Apr 1998 11:25:56 +0800 (HKT)<BR>
From: Romel Flores, <A HREF="mailto:rom@elsi.i-manila.com.ph">
rom@elsi.i-manila.com.ph</A>
<P>
Remember the "about:mozilla" egg? Try it again and the usuall egg
appears. Now, click on the "N" logo. This will open Netscape's home page
as usuall but the meteor shower on the "N" logo is replaced with
Godzilla.
<P>
--Romel Flores
<P> <hr> <P>
<!--================================================================-->
<a name="host"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Host Name Completion
</H3>
<P>
Date: Fri, 3 Apr 1998 01:57:43 -0500 (EST)<BR>
From: John Taylor, <A
HREF="mailto:john@pollux.cs.uga.edu">john@pollux.cs.uga.edu</A> <BR>
<P>
Host name completion with BASH.
<P>
Synopsis : This is how you can use host name completion, which is similar to
file name completion.
<P>
Put your favorite telnet,ftp,rlogin hosts into $HOME/.hosts, in
/etc/hosts format.
<P>
example :
<PRE>
206.184.214.34 linux.kernel.org
</PRE>
then put into .bashrc :
<P>
------ cut here ------
<PRE>
export HOSTFILE="$HOME/.hosts"
# see HOSTFILE in bash man page
UseHosts()
{
for i in $* ; do
eval `echo "$i() { local IFS=\"@\\$IFS\"; set -- \\$1; eval command $i \\\\\\${\\$#} ; }"`
done
}
UseHosts telnet rlogin ftp
</PRE>
------ cut here ------
<P>
Now do a . .bashrc, to re-source the rc file.
You should have new 3 shell functions defined...telnet,rlogin,ftp
do a "set | less" to verify this
<P>
now try this [notice the @]:<BR>
<tt>ftp @lin&lt;tab-key&gt;</tt> which completes to linux.kernel.org
<P>
Well, this breaks doing just a "ftp", but this can be fixed by doing a
"command ftp", (maybe alias this??) which will give you the ftp> prompt.
Rlogin will also break if you have to use the -l switch. This could be
incorporated into UseHosts(), I just haven't had time to do it.
<P>
If you change the .hosts file, you have to logout and login again to use the
new hosts ... don't ask me why.x>
<P>
John Taylor
<P> <hr> <P>
<!--================================================================-->
<a name="login"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Running Without Logging In
</H3>
<P>
Date: Thu, 2 Apr 1998 22:50:26 -0800 (PST)<BR>
From: Jakob Kaivo, <A HREF="mailto:jkaivo@nodomainname.net">
jkaivo@nodomainname.net</A>
<P>
I notice a lot of discussion in Issue 27 of running shells on vt's without
logging in. I'm sure that there are some great solutions, but I would like
to add my 1/50 of a dollar to the heap. A while ago I had a need to keep a
telnet session open on a vt, so I hacked mingetty to do it. Then I
figured, "Hey, why stop there?" So I hacked a little more and came up with
rungetty, which can run any program on a vt. It also (in the newest
release) can run as any user, so a login is no problem, but you can also
tell it to, say, keep a top session running on another vt. It is available
from ftp://ftp.nodomainname.net/pub/rungetty/current (home site),
ftp://sunsite.unc.edu/pub/Linux/system/serial/getty, and should find it's
way into ftp://ftp.redhat.com/pub/contrib soon. It is available in
tarball, source RPM, and binary RPM for alpha (glibc2) and i386 (libc5 and
glibc2) on nodomainname, and tarball on sunsite.
<P>
Jakob Kaivo
<P> <hr> <P>
<!--================================================================-->
<a name="eggs"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Animation Easter Eggs in Netscape
</H3>
<P>
Date: Mon, 06 Apr 1998 12:03:41 +0100 (IST)<BR>
From: Caolan McNamara, <A HREF="mailto:Caolan.McNamara@ul.ie">
Caolan.McNamara@ul.ie</A>
<P>
with the release of the netscape source the most important
fact is now known, if your web page is not under<BR>
http://home.netscape.com/people/<BR>
http://www.netscape.com/people/<BR>
http://people.netscape.com/
<P>
then you cant have a mozilla as the animation with the X version of
netscape like http://people.netscape.com/briano and 20 others have
and only jamie zawinski under that tree gets the compass
http://people.netscape.com/jwz
<P>
sigh, and i really hoped that i could have one too, :-(
<P>
resource for this is lines 292-319 in ns/cmd/xfe/src/Logo.cpp
list of names with possible animations easters follows
akkana briano bstell converse djw dora dp francis kin jwz lwei mcafee radha
ramiro rhess rodt slamm spence tao toshok zjanbay
<P>
list of urls under which animation can take place.<BR>
http://home.netscape.com/people/<BR>
http://www.netscape.com/people/<BR>
http://people.netscape.com/
<P>
and usual format is<BR>
http://people.netscape.com/username<BR>
<P>
Caolan McNamara
<P> <hr> <P>
<!--================================================================-->
<a name="user"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Usershell on Console Without Logging In
</H3>
<P>
Date: Wed, 08 Apr 1998 20:21:42 +0200<BR>
From: Soenke J. Peters, <A HREF="mailto:soenke@pc1.sjp.de">
soenke@pc1.sjp.de </A>
<P>
In LG 27, Kragen@pobox.com announced some utilities to do an automatic
login.
Besides the fact that this might be a security risk, I use his program
"own-tty" to have my dosemu running on a tty.
Add the following line (or something adequate) to "/etc/inittab":
<PRE>
6:23:respawn:/sbin/own-tty /dev/tty6 /usr/bin/dos dos
</PRE>
From inside X, CTRL-ALT-F6 beams you into dosemu, from the console ALT-F6
does the same. Press CTRL-ALT-Fx from inside dosemu to go back to ttyx.
But be warned: Doing this causes a pretty high cpu-load because dosemu is
_always_ runnning.
To solve this problem, I inserted a "getchar();" into the source "own-tty.c"
right before the "execv()" is done. This makes "own-tty" wait for a key
beeing pressed before firing up dosemu.
<P>
Soenke J. Peters, Hamburg, Germany
<P> <hr> <P>
<!--================================================================-->
<a name="win95"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Backing Up Win95 Files
</H3>
<P>
Date: Fri, 10 Apr 1998 07:51:38 -0400<BR>
From: Donald Harter Jr., <A HREF="mailto:harter@mufn.org">
harter@mufn.org </A>
<P>
Here is a shell script that will back up some of the windows 95 registry
files on your vfat partition.
You may not want to backup all the files in the script since the *.da0
files are backups themselves. There may
others that I do not know about. You can use cron to run this script on
a regular basis.
<P>
Donald Harter Jr.
<PRE>
#!/bin/sh
#
# This script will backup your windows 95 registry.
# If you ever have problems with windows95, restoring the registry
# might fix the problem.
# By using this script you might not have to reinstall all your
software.
# BASE_DIR is the directory where you want the tar.gz archive to be
written.
# WIN_PATH is the base path of your windows 95 partition in the
/etc/fstab file.
# Change these to suit your own needs.
# written by Donald Harter Jr.
#
BASE_DIR=$HOME
WIN_PATH=/dosc
#
#
REGISTRY_STEM=registry_`date +%m_%d_%Y`
tar -c -f /tmp/$REGISTRY_STEM.tar --files-from=/dev/null
# some of these files may not needed
#tar -rPf /tmp/$REGISTRY_STEM.tar file_to_backup
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/windows/system.dat
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/windows/*.da0
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/windows/user.dat
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/windows/*.ini
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/autoexec.bat
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/*.sys
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/windows/command.com
tar -rPf /tmp/$REGISTRY_STEM.tar $WIN_PATH/Program\
Files/Netscape/Users/harter/bookmark.htm
gzip /tmp/$REGISTRY_STEM.tar
mv /tmp/$REGISTRY_STEM.tar.gz $BASE_DIR/$REGISTRY_STEM.tar.gz
echo "To restore your win95 registry type:"
echo "tar -zPxvf $BASE_DIR/$REGISTRY_STEM.tar.gz "
</PRE>
<P> <hr> <P>
<!--================================================================-->
<a name="xterm"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: X-term for MS-Windows
</H3>
<P>
Date: Fri, 10 Apr 1998 23:47:44 +0000<BR>
From: Milton L. Hankins, <A HREF="mailto:mlh@swl.msd.ray.com">
mlh@swl.msd.ray.com</A>
<P>
What it is sounds like you want is an X *server*.
<P>
You have several options. There are a few commercial X servers out
there: Hummingbird eXceed and LAN Workplace are two I know of.
There's also a free X server (with much fewer features) called MI/X.
You should be able to find these on the web.
<P>
You may also opt to use something like VNC, the virtual network
computer. You can also find that on the web.
<P>
Milton L. Hankins
<P> <hr> <P>
<!--================================================================-->
<a name="shut2"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Shutdown and Root Again
</H3>
<P>
Date: Wed, 15 Apr 1998 19:16:23 -0600<BR>
From: Bob van der Poel, <A HREF="mailto:bvdpoel@kootenay.com">
bvdpoel@kootenay.com</A>
<P>
In last months 2 cent tips:
<P>
------------
<blockquote> <font color="navy">
In the March issue, you have a tip on using X programs when you've run
su to root. By far the easiest method is
to simply
</font><PRE>
setenv XAUTHORITY ~khera/.Xauthority
</PRE> <font color="navy">
for your own user name, of course... No need to run any other programs
or cut and paste anything. </font>
<P> <font color="navy">
Vivek Khera, Ph.D.
</font></blockquote>
----------
<P>
Just adding the needed commands took me more than a few minutes. Part of
the problem is that I'm using bash, not csh as Dr. Khera is. My solution
was:
<ol>
<li>Add the following to the .bashrc script for root:
<PRE>
eval OLDHOME=~$USER
RCFILE=$OLDHOME/.rootrc
if [ -e $RCFILE ]
then source $RCFILE
fi
</PRE>
<li>Create a file in each user's home directory called .rootrc. In this
have the following line:
<PRE>
export XAUTHORITY=$OLDHOME/.Xauthority
</PRE>
</ol>
Hope this helps someone.
<P>
Bob van der Poel, bvdpoel@kootenay.com
<P> <hr> <P>
<!--================================================================-->
<a name="atapi"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Running an ATAPI Zip Drive
</H3>
<P>
Date: Sun, 19 Apr 1998 01:41:34 +0000<BR>
From: Steve Beach, <A HREF="mailto:asb4@psu.edu">asb4@psu.edu</A>
<P>
I just bought an IDE ATAPI iomega Zip drive, and I couldn't find any
help at all on how to use it. So, I slogged through, got a great hint
from Jeff Tranter (maintainer of the 'eject' utility), and managed to
get it working. In the spirit of giving back to the community, here's
my (maybe even) five cent tip.
<P>
Here's how to use an IDE ATAPI zip drive on Linux.
<P>
First, the kernel:
Do _not_ use the "IDE FLOPPY" option (officially the name is
CONFIG_BLK_DEV_IDEFLOPPY ). This will work perfectly for reading and
writing,
but it will not work for ejecting. What you need to do is say yes to
the
option CONFIG_BLK_DEV_IDESCSI. When this is set, you will treat the IDE
ATAPI
drive just like a SCSI drive, except without the SCSI card and all that
other
garbage.
<P>
After making your kernel, you should get these messages in your startup
messages (type dmesg at the prompt if they go by too fast to read):
<PRE>
hda: WDC AC34000L, 3815MB w/256kB Cache, CHS=969/128/63
hdb: WDC AC34000L, 3815MB w/256kB Cache, CHS=969/128/63
hdc: TOSHIBA CD-ROM XM-6102B, ATAPI CDROM drive
hdd: IOMEGA ZIP 100 ATAPI, ATAPI FLOPPY drive - enabling SCSI emulation
ide2: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
Vendor: IOMEGA Model: ZIP 100 Rev: 24.D
Type: Direct-Access ANSI SCSI revision: 00
Detected scsi removable disk sda at scsi0, channel 0, id 0, lun 0
scsi : detected 1 SCSI disk total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 196608 [96 MB] [0.1
GB]
sda: Write Protect is off
.
.
.
Partition check:
sda: sda4
hda: hda1 hda2 hda3 hda4
hdb: hdb1 hdb2 hdb3
</PRE>
The key is that SCSI simulation will be used only if the native ATAPI
driver
for that device isn't found. So, since the ATAPI CD driver was compiled
into
the kernel, it used it. Since the ATAPI removable disk driver wasn't,
SCSI emulation was used.
<P>
Second, the device:
If you want to have non-root users be able to mount, unmount, and eject
the
Zip disks, you've got to make a couple of changes to the default
configuration.
First thing to do is to change the permissions on the device. As root,
type the following:
<PRE>
chmod a+rw /dev/sda4
</PRE>
The next thing to do is set a shortcut (eject is easier). Again, as
root,
type the following:
<PRE>
ln -s /dev/sda4 /dev/zip
</PRE>
Third, the mount point:
Create a mount point for your drive. I like /mnt/zip, so I just do a
mkdir /mnt/zip. For ease, you now want to put this into your
/etc/fstab.
Put a line in that file that looks like
<PRE>
/dev/sda4 /mnt/zip auto user,noauto 0
0
</PRE>
The first column is the device, followed by the mount point. The first
'auto'
means that it will check to see the file system type when it is mounted.
(Hence, you can read not only ext2fs, but also FAT, VFAT, etc.) The
'user'
keyword allows average users to mount the disk, and the 'noauto' means
that it will not be mounted at startup. I don't know what the two
zero's mean,
but it works for me.
<P>
Now, at this point, any user should be able to mount the Zip disk by
typing
<PRE>
mount /mnt/zip
</PRE>
Unmounting would just be <tt>umount /mnt/zip</tt>.
<P>
Fourth, formatting the disks:
The Zip disks you buy at your corner computer store are formatted for
MSDOS.
Personally, I prefer to have ext2fs formatted disks, so I don't have to
worry
about file name conflicts. Hence, I have to reformat them. There are
two other oddities. First, the writable partition will be number 4.
This
is a Macintosh-ism, which you might as well leave. You can run fdisk
and
change the partition, but it will be much easier to just leave all your
disks the same, and that way you won't have to change the line in
/etc/fstab
for each disk. Second, the initial permissions are not set to be
writeable
by the user.
<P>
To handle all this, I do the following, as root (new disk, initially
unmounted): (WARNING: This will erase all data on the disk!)
<PRE>
/sbin/mke2fs -m 0 /dev/sda4
mount /mnt/zip
chmod a+w /mnt/zip
umount /mnt/zip
</PRE>
Now, whenever the user mounts that disk, she will be able to write to
it.
<P>
Fifth, ejecting:
The entire reason for using SCSI emulation is to make it easy to eject
the
disk. It's easy now:
<PRE>
eject zip
</PRE>
You can also say 'eject /dev/sda4', but since you created the symbolic
link
'/dev/zip', eject knows what you mean when you just say 'zip'.
<P>
One thing about eject is that the average user does not have permission
to
use it. So, change the permission via setuid:
<PRE>
chmod a+s /usr/bin/eject
</PRE>
That should allow any user to eject any disk.
<P>
Sixth, zip tools:
Jarrod A. Smith (jsmith@scripps.edu) has written a really nifty little
program
to make mounting, unmounting, ejecting, documenting, and write
protecting Zip
disks really easy. The name is jaZip, and it is available as an RPM
package
(jaZip-0.22-3.i386.rpm) from the usual download sites, including
ftp://ftp.redhat.com. Go ahead and download it -- it's only 24 K!
<P>
I hope that covers everything -- if anybody has any questions, please
let me know!
<P>
Steve Beach
<P> <hr> <P>
<!--================================================================-->
<a name="binary"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
New Binaries Script
</H3>
<P>
Date: Sat, 25 Apr 1998 01:06:03 -0700<BR>
From: Keith Humphreys, <A HREF="mailto:keith@SpeakerKits.com">
keith@SpeakerKits.com</A>
<P>
A friend installed linux and was mystified with the abundance of new binaries.
This little script was written to help introduce him to the family members.
May need bash >= 2.
<PRE>
#!/bin/bash
###########################################################################
#
# mkcontents.b (c) 1998 Keith Humphreys (keith@SpeakerKits.com) GNUed
#
# 1988.04.22
#
# This little script will create a list of descriptions for your main bins.
# It depends on whatis which appeals to the binaries man pages.
# Intended as a learning aid for newbies and as a memory crutch (for oldbies.)
#
###########################################################################
# These are the directories to scan:
checkhere='/sbin /bin /usr/sbin /usr/bin'
###########################################################################
if ! [ -f /usr/bin/whatis ]
then
echo '
You appear to be missing the /usr/bin/whatis program.
Sorry charlie,
only the finest tuna get to be Chicken of the Sea.
'
exit 1
fi
for dir in $checkhere
do
outFile=contents${dir//\//.}
echo '------------------------------------------------------'
if [ -f $outFile ]
then
rm $outFile
echo "Removing old $outFile"
fi
echo "Scanning $dir and creating $outFile"
echo '------------------------------------------------------'
sleep 1 #To see message.
for file in $(ls $dir)
do
echo $file #For entertainment
whatis $file >> $outFile
done
done
exit 0
</PRE>
<P> <hr> <P>
<!--================================================================-->
<a name="script"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Script Contributions
</H3>
<P>
Date: Sat, 18 Apr 1998 20:52:07 +0200 (SAT)<BR>
From: Stefan van der Walt, <A HREF="mailto:trax@the-force.ml.org">
trax@the-force.ml.org</A>
<P>
In the last few months, I wrote these simple scripts to enhance my
Linux environment. I believe some other users might find them useful too,
so I send you a copy.
<P>
Here are the 4 scripts provided in tar files with a README.
<ul>
<li><A HREF="./MP3-PlayList-1.0.0.tar.gz">MP3-PlayLister</A>:
Program which searches for all the MP3s in the current directory,
recursively, and then plays them.
<li><A HREF="./mountcd-1.0.0.tar.gz">mountcd</A>:
Semi-intelligent CD-mounting program to shorten the command line for
mounting CDs. Does simple checking to see if CD-ROM is already mounted or
unmounted.
<li><A HREF="./nookie.txt">nookie</A>:
A primer on notifying the user of incoming nukes, or how to react on
receiving them.
<li><A HREF="./sysmail-1.0.0.tar.gz">SysMail</A>:
A script to mail a message containing tokens to all system users.
</ul>
Thanx a mil! <BR>
BTW Keep up the great work with the Gazette. You rule :)
<P>
Stefan
<P> <hr> <P>
<!--================================================================-->
<a name="macker"></a>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
Re: Core Dumps Again
</H3>
<P>
Date: Sun, 26 Apr 1998 21:21:50 -0700 (PDT)<BR>
From: macker, <A HREF="mailto:macker@netmagic.net">macker@netmagic.net</A>
<P>
In issue #26, Marty was saying "I was annoyed on Linux that file(1)
couldn't tell what file dumped core if a core dump was seen.", and
mentioned size(1). gdb(1) will also do the job...
<P>
<tt>gdb -c core</tt> will show the program and calling arguments, as well as the
signal generated when it died, usually signal 11 (segmentation fault).
<tt>quit</tt> will exit the debugger.
<P>
-macker
<P> <hr> <P>
<!--================================================================-->
<center>Published in <I>Linux Gazette</I> Issue 28, May 1998</center>
<P> <hr> <P>
<!--================================================================-->
<A HREF="./index.html"><IMG SRC="../gx/indexnew.gif" ALT="[ TABLE OF
CONTENTS ]"></A> <A HREF="../index.html"><IMG SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A> <A HREF="./lg_mail28.html"><IMG SRC="../gx/back2.gif" ALT=" Back "></A>
<A HREF="./lg_bytes28.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<h5>This page maintained by the Editor of <I>Linux Gazette</I>,
<A HREF="mailto: gazette@ssc.com">gazette@ssc.com</A><BR>
Copyright &copy; 1998 Specialized Systems Consultants, Inc. </H5>
<P>
<!--startcut ==========================================================-->
</body>
</html>
<!--endcut ============================================================-->