1263 lines
36 KiB
HTML
1263 lines
36 KiB
HTML
<HTML>
|
||
<HEAD><TITLE>Linux Gazette Letters, Issue #7</TITLE></HEAD>
|
||
|
||
<BODY>
|
||
|
||
<H2><IMG ALIGN=MIDDLE SRC="../gx/mail.gif">Welcome to the Linux Gazette Mail
|
||
Bag!</H2>
|
||
<H4>Copyright (c) 1996, John M. Fisk <fiskjm@ctrvax.vanderbilt.edu><BR>
|
||
Published in Issue #7 of the Linux Gazette</H4>
|
||
|
||
As always, I <I>really</I> appreciate all of the letters that folks have
|
||
taken the time to pen. With added work at school I've been a bit pressed
|
||
for time and so haven't had the time to comment here on each letter. I
|
||
apologize for this, but am happy just to have the time to get this issue
|
||
out! :-)
|
||
|
||
<P>
|
||
Please don't hesitate to drop the author of a letter a note yourself if
|
||
there's something you'd like to follow up on. Also, there is a letter by
|
||
<B>Jeff Richards</B> with a question regarding VI, ftp, and the corruption of
|
||
the correct backspace definition after these programs have finished executing.
|
||
I've experienced this problem myself and honestly haven't an answer for him.
|
||
Any takers...? :-)
|
||
|
||
<P>
|
||
Enjoy.
|
||
|
||
<P>
|
||
-- John
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Wed, 20 Dec 1995 12:36:42 CST<BR>
|
||
From: Its Lonely Here <root@mail.bricbrac.de><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Stuff you got to try :)</B><BR>
|
||
|
||
<P>
|
||
John,
|
||
|
||
<P>
|
||
Good Nov. issue. Thanx for your continued & funny contributions.
|
||
|
||
<P>
|
||
Stuff you may want to tangle with and write about:
|
||
|
||
<UL>
|
||
<LI> The GIMP. One cool graphic manipulation package for Unix/X11
|
||
"Photoshop for the poor !"<BR>
|
||
<A HREF="http://www.xcf.berkeley.edu/~gimp">
|
||
http://www.xcf.berkeley.edu/~gimp</A>
|
||
<P>
|
||
|
||
<LI> WingZ. DOS/Windows spreadsheet that has been ported to Linux.<BR>
|
||
<A HREF="ftp://sunsite.unc.edu/pub/linux/apps/financial/">
|
||
ftp://sunsite.unc.edu/pub/linux/apps/financial/</A>
|
||
<P>
|
||
|
||
<LI> router-stats. A shameless plug for a little ditty I have put together.
|
||
Graphical representation of Cisco router statistics presented as WWW
|
||
pages to the user. Developed on Linux but not Linux specific.<BR>
|
||
<A HREF="http://www.scn.de/~iain/router-stats/">
|
||
http://www.scn.de/~iain/router-stats/</A>
|
||
<P>
|
||
</UL>
|
||
|
||
<P>
|
||
Iain Lea
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Mon, 12 Feb 1996 17:00:04 CST<BR>
|
||
Sender: <tyger@ctrvax.Vanderbilt.Edu><BR>
|
||
From: Tyger <tyger@eden.com><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: PGP compile for linux/ELF</B><BR>
|
||
|
||
<P>
|
||
Hey,
|
||
|
||
<P>
|
||
I just came across something that I thought would be nice to submit to the
|
||
mailbag. I came looking for hints in the LG when I was having trouble and it
|
||
wasn't there. :) So I thought I'd drop a line.
|
||
|
||
<P>
|
||
I discovered, much to my sorrow, that pgp refuses to compile on ELF systems.
|
||
Happily, I found a little fix for it on the net. I can't take credit.
|
||
|
||
<P>
|
||
To make it behave and compile as an ELF binary two changes need to be made.
|
||
One to 80386.S and one to zmatch.S - these files are found in the /src
|
||
directory of the untarred pgp distribution.
|
||
|
||
<P>
|
||
Near the top of each file, there is an #if directive. They need to be altered
|
||
thusly - (I forget which one is in which file but it's obvious when you look at
|
||
them):
|
||
|
||
<PRE>
|
||
#ifndef SYSV gets changed to
|
||
#if !defined(SYSV) && !defined(__ELF__)
|
||
</PRE>
|
||
|
||
and
|
||
|
||
<PRE>
|
||
#ifdef SYSV gets changed to
|
||
#if defined(SYSV) || defined (__ELF__)
|
||
</PRE>
|
||
|
||
<P>
|
||
Note the double underscores on either side of "ELF". This is crucial.
|
||
|
||
<P>
|
||
Change those directives and it'll do a nice clean compile. Crypto away.
|
||
|
||
<P>
|
||
Tyger
|
||
|
||
<PRE>
|
||
--
|
||
------------------------ http://www.eden.com/~tyger -------------------------
|
||
</PRE>
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Thu, 07 Mar 1996 19:33:18 CST<BR>
|
||
From: Tim Newsome <drz@cybercomm.net><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: 2-ct. tip</B><BR>
|
||
|
||
<P>
|
||
Hey,
|
||
|
||
<P>
|
||
Here's a nifty little shell script I wrote a while ago (I call it scribble):
|
||
#!/bin/sh
|
||
|
||
<PRE>
|
||
NOTESFILE=~/notes
|
||
|
||
[ -z $1 ] && (cat >> $NOTESFILE;exit)
|
||
echo $* >> $NOTESFILE;
|
||
</PRE>
|
||
|
||
<P>
|
||
All it does is append either it's arguments, or the data on stdin to the
|
||
NOTESFILE. I use it for cases like:<BR>
|
||
scribble 123-4567 jane<BR>
|
||
Or:<BR>
|
||
scribble<BR>
|
||
made a link from a to b<BR>
|
||
changed the global PATH<BR>
|
||
|
||
<P>
|
||
I find it rather useful, hope you do too. BTW, when is the next Linux
|
||
Gazette coming out?
|
||
|
||
<P>
|
||
Tim
|
||
|
||
<PRE>
|
||
Tim Newsome. drz@cybercomm.net. http://www.cybercomm.net/~drz/.
|
||
Java rules. Linux > Windows. question=(be||!be); answer=42; hack!=crack;
|
||
politics=crime; Quidquid latine dictum sit, altum viditur. Egotist, n:
|
||
A person of low taste, more interested in himself than me.
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Mon, 08 Jan 1996 22:07:48 CST<BR>
|
||
From: <=?iso-8859-1?Q?Anders_=D6stling_=3Canos=40mailer.neurope.ikea.se=3E?=@mailer.neurope.ikea.se><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: The Gazette !</B><BR>
|
||
|
||
<P>
|
||
Hi John
|
||
|
||
<P>
|
||
First of all, thanks for a very nice publication. I have downloaded all your
|
||
"editions" of
|
||
The Linux Gazette, and found many valueable hints and advise.
|
||
|
||
<P>
|
||
Here is one of my own;
|
||
|
||
<P>
|
||
If you want to make sure that you don't "rm *" in the wrong directory,
|
||
create a file called "-i"=20
|
||
in each directory that you want to protect. When the shell expands the "rm
|
||
*", it will expand to
|
||
"rm -i file1 file2" etc, and automatically ask for permission to delete.
|
||
This will increase the
|
||
chance that you detect your error by a magnitude !
|
||
|
||
<P>
|
||
Keep up the good work !
|
||
|
||
<P>
|
||
Anders =D6stling<BR>
|
||
IKEA Europe Information System, Sweden<BR>
|
||
anos@mailer.neurope.ikea.com<BR>
|
||
<PRE>
|
||
----------------------------------
|
||
- Anders =D6stling, Helsingborg SE -------
|
||
- E-mail anders.ostling@helsingborg.se --
|
||
- Voice/Fax +46-42-833 47 --------------
|
||
---------------------------------------
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Wed, 20 Dec 1995 11:47:15 CST<BR>
|
||
From: <aqui@VNET.IBM.COM><BR>
|
||
To: <FISKJM@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Linux Gazette linked to aqui!</B> <BR>
|
||
|
||
<P>
|
||
Congrats! Your web page http://www.tenn.com/fiskhtml/gazette_toc.html has been
|
||
linked into aqui!
|
||
|
||
<P>
|
||
Thanks from the folks at http://www.aqui.ibm.com
|
||
|
||
<P>
|
||
ps: to see the links, enter your URL in the 'Here's a web page' field and
|
||
press Show!
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Fri, 09 Feb 1996 15:10:26 CST<BR>
|
||
From: Jeff Richards <jeff@aesyvr2.pwc.bc.doe.ca><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Re: Linux Gazette</B><BR>
|
||
|
||
<P>
|
||
Just wanted to send a quick note to say that I like your electronic magazine,
|
||
and to also suggest an idea for a future issue. It concerns a problem that I
|
||
can't seem to solve(possibly because I just don't know what I'm doing - at
|
||
least as far as Linux is concerned - I have used other Unix variants for 10-15
|
||
years).
|
||
|
||
<P>
|
||
While I have the backspace set correctly using stty erase and it functions fine
|
||
when I'm typing commands at the console, when I enter vi, it no longer works.
|
||
The same is true within ftp. However, I have found that the control-H key
|
||
combination does work - just not the backspace key.
|
||
|
||
<P>
|
||
And even stranger, if I telnet in from another machine the backspace key works
|
||
in both vi and ftp - it only fails if I physically sit at the console.
|
||
|
||
<P>
|
||
Any ideas why this phenomenon is happening? Perhaps others have come across
|
||
this. I know I'd love the solution to the mystery and perhaps others might
|
||
as well.
|
||
|
||
<P>
|
||
Thanks in advance for any info.
|
||
|
||
<P>
|
||
PS: I'm using Slackware 1.2.3 at present, and haven't diddled with the kernel
|
||
or done any other fiddling about. I've just been evaluating Linux as
|
||
compared to the Unix available on our workstations(HP & Sun).
|
||
|
||
<PRE>
|
||
--
|
||
+----------------------------------+------------------------------------+
|
||
|Jeff Richards | Voice: +1 (604) 664-9140 |
|
||
|Atmospheric Environment Service | Fax: +1 (604) 664-9195 |
|
||
|Pacific Weather Centre +------------------------------------+
|
||
|700 - 1200 West 73rd Avenue | Email: jeff@aesyvr2.pwc.bc.doe.ca |
|
||
|Vancouver, BC CANADA V6P 6H9 | IRC: Horus |
|
||
+----------------------------------+------------------------------------+
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Sat, 10 Feb 1996 11:23:28 CST<BR>
|
||
From: Jesper <blackie@imada.ou.dk><BR>
|
||
To: John M. Fisk <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Dangerous Commands</B><BR>
|
||
|
||
<P>
|
||
Hi John.
|
||
How about a thread in The Linux Gazette aboyt dangerous commands (ie.
|
||
command which realy can mess up your system.)
|
||
|
||
<P>
|
||
I can think of three, right now, but I'm very sure there are many mores.
|
||
|
||
<P>
|
||
rm - well you know about that one
|
||
|
||
<P>
|
||
tar - yes realy, try 'tar cvf * | (cd /backup; tar xf -)'. I did that
|
||
the other day. What I relay wanted was to move a hiracy of files, to
|
||
/backup, but I forgot a '-' before the start, so what tar realy did was
|
||
to create a tar achive in the first file, which the star expanded to.
|
||
Another on cavet is when you type 'tar cf ..' instead of 'tar xf ..', tar
|
||
overwrite without saying a word....
|
||
|
||
<P>
|
||
chmod,chown,chgrp - thing of all the files located around the system.
|
||
Some of the have to be readable for every one, some of the have to belong
|
||
to the group bin, others must be owned by root or deamon etc. etc.
|
||
A chown/chmod/chgrp recursive will surely mess up your system that much
|
||
that you have to reinstall your whole system.
|
||
|
||
<P>
|
||
Kind Regards Jesper
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Tue, 23 Jan 1996 23:51:57 CST<BR>
|
||
From: H.E. Butterworth <heb1001@hermes.cam.ac.uk><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Homemade icons</B><BR>
|
||
|
||
<P>
|
||
Hi,
|
||
|
||
<P>
|
||
Here is a quickie suggestion for your linux gazette.
|
||
|
||
<P>
|
||
Effortless fvwm icons - no artistic skill required (for 16bpp or
|
||
32bpp displays - not recommended for 8bpp (you'll run out of colours)):
|
||
|
||
<OL>
|
||
<LI> Take your application window and make it smaller so that the size
|
||
of the significant features in the window is relatively large compared
|
||
with the size of the window itself.
|
||
|
||
<LI> Use XV to grab a shot of the window.
|
||
|
||
<LI> Use XV to resize the window to 8x or 16x the desired size of your
|
||
icon.
|
||
|
||
<LI> Save the image and reload using XV (this step seems to be
|
||
necessary to make XV change its representation from one of a small image
|
||
that has been enlarged to a large image at its natural resolution - You
|
||
may know how to do this without a save and reload - I don't).
|
||
|
||
<LI> Use XV to pixellize the image by a factor of 8 or 16 as above.
|
||
|
||
<LI> Use XV to resize the image to the desired size of your icon.
|
||
|
||
<LI> You now have an antialiased miniature image of the full size
|
||
window - save it as an XPM file somewhere where it will be safe for all
|
||
time.
|
||
|
||
<LI> Repeat the above as desired for other applications.
|
||
|
||
<LI> Set the pixmap path in your .fvwmrc to the directory containing
|
||
your icon image(s).
|
||
|
||
<LI> Associate the icon image with an application in your .fvwmrc file.
|
||
|
||
<LI> Sit back and admire your new-look desktop.
|
||
</OL>
|
||
|
||
<P>
|
||
Harry
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Tue, 16 Jan 1996 21:51:17 CST<BR>
|
||
From: Dean Carpenter <deano@areyes.com><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Re: Yet another HACK script</B><BR>
|
||
|
||
<P>
|
||
Just a point to note with hack. Once you start using it to maintain
|
||
a config file, you really should keep using it. You can make any
|
||
changes you want to a file under hack's control as root and force the
|
||
save (they're changed to be readonly), but the next time you hack
|
||
that file, RCS will replace it with its stored version.
|
||
|
||
<P>
|
||
IE:
|
||
|
||
<P>
|
||
Hack a file so it has lines one, two and three.<BR>
|
||
Save it. <BR>
|
||
Now edit that file as root and add lines four five and six. <BR>
|
||
Save it with :w! to force the save.<BR>
|
||
Hack the file again, and note that lines four five and six are gone.<BR>
|
||
RCS has replaced the files with the "correct" version as far as
|
||
it's concerned from the /configs/RCS/file,v file.
|
||
|
||
<P>
|
||
Just the way RCS works.
|
||
|
||
<PRE>
|
||
--
|
||
Dean Carpenter deano@areyes.com
|
||
Areyes, Inc. dcarpenter@kraft.com
|
||
|
||
"No matter where you go, there you are" sayeth Buckaroo across the Eighth Dimension
|
||
</PRE>
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Tue, 23 Jan 1996 17:16:26 CST<BR>
|
||
From: Sys admin hetz <supernet@netvision.net.il><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Linux 3D logo</B><BR>
|
||
|
||
<P>
|
||
Hi there,
|
||
|
||
<P>
|
||
Well, it's my 1st time on your pages, and they look REALLY good, so I
|
||
just printed them so I can read them while i'll be on my way from work
|
||
to my home.
|
||
|
||
<P>
|
||
Anyway, I include a <A HREF="./misc/linux-3D-logo.jpg">JPG file with some
|
||
sort of LINUX logo</A>, so people can put it in the background. It was done
|
||
using 3D Studio version 4.
|
||
|
||
<P>
|
||
I hope you can put it on your next Linux Gazzette so people can download
|
||
it from you.
|
||
|
||
<P>
|
||
Keep up the good work, my Friend :)
|
||
|
||
<P>
|
||
Hetz Ben Hamo<BR>
|
||
Sys. Admin.<BR>
|
||
Supernet Ltd.<BR>
|
||
Israel<BR><BR>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Thu, 14 Mar 1996 08:14:23 CST<BR>
|
||
From: James Garriss <jpg@langley.mitre.org><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: RE: Linux on PowerMac</B><BR>
|
||
|
||
<P>
|
||
>On Mon Mar 04 14:33:15 1996 James Garriss wrote:<BR>
|
||
><BR>
|
||
>>Thanks for your help. I spend one night last week intensively surfing for<BR>
|
||
>>info. I found the new site for the mailing lists as well as two homepages<BR>
|
||
>>on Linux for PowerMac. From what I gathered, it will be available 2Q96 or<BR>
|
||
>>Summer 96. I'd give you the homepages, but they're on my Mac at home. Let<BR>
|
||
>>me know if you're interested.<BR>
|
||
|
||
>Yes, I'd be very interested. If you'd just drop a note with the URL's then I'd<BR>
|
||
>be glad to include them for those who are running Mac's as I'm sure that there<BR>
|
||
>are those that would be interested in this as well.<BR>
|
||
|
||
<A HREF="http://www.gr.osf.org/mklinux/">http://www.gr.osf.org/mklinux/</A>
|
||
<A HREF="http://www.linuxppc.org/">http://www.linuxppc.org/</A>
|
||
|
||
<PRE>
|
||
James Garriss | I know you believe you understood
|
||
-> jpg@langley.mitre.org | what you think I said,
|
||
--> garriss@cs.odu.edu | but I'm not sure you realize that
|
||
---> http://www.cs.odu.edu/~garriss | what you heard is not what I meant.
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Tue, 16 Jan 1996 10:26:06 CST<BR>
|
||
From: Larry Doolittle <doolitt@recycle.cebaf.gov><BR>
|
||
To: <fisk@tenn.com><BR>
|
||
<B>Subject: Linux HomeBoy WebPage</B><BR>
|
||
|
||
<P>
|
||
John -
|
||
|
||
<P>
|
||
I like your page, but I don't like the implication that
|
||
Netscape is the best or only HTML+ capable browser.
|
||
I suggest you include parallel references to
|
||
<A HREF="http://www.w3.org/hypertext/www/arena/">Arena</A>
|
||
which also does justice to your page.
|
||
|
||
<P>
|
||
While you're at it, most browsers (Netscape, Mosaic,
|
||
Arena, Chimera) are good at putting the width and height
|
||
specifiers in img tags to good use. e.g.,
|
||
<img src="http://recycle.cebaf.gov/~doolitt/Doolittle.jpg" width=143 height=170>
|
||
Your page would come up cleaner (especally with your slow link)
|
||
if you put these in.
|
||
|
||
<P>
|
||
- Larry Doolittle ldoolitt@cebaf.gov
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Fri, 16 Feb 1996 12:10:12 CST<BR>
|
||
From: Barry Sanderson <barrydon@surf-ici.com><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Helpful PPP scripts</B><BR>
|
||
|
||
<P>
|
||
16 Feb 1996
|
||
|
||
<P>
|
||
John,
|
||
|
||
<P>
|
||
I found your "Helpful PPP scripts", from the August 1995 issue of the
|
||
Linux Gazette, VERY helpful. Thanks for sharing them.
|
||
|
||
<P>
|
||
Near the bottom of the man page for pppd, it is revealed that the file
|
||
/etc/ppp/ip-up is automatically run just after the ppp link is established.
|
||
By putting your "pppon" script commands in this file, you can avoid having
|
||
to manually run pppon.
|
||
|
||
<P>
|
||
Initially, the last portion of my local IP address (as extracted by your
|
||
pppon script) was missing. Apparently, my numerical IP address is longer
|
||
than yours. Changing the <BR><BR>
|
||
|
||
cut -b 21-32<BR><BR>
|
||
|
||
from your script to<BR><BR>
|
||
|
||
cut -b 21-36<BR><BR>
|
||
|
||
<P>
|
||
will properly extract the longest legal numerical IP address. Note that
|
||
positional parameter $4 passed to /etc/ppp/ip-up is the numerical local IP
|
||
address. Thus, if you want, you can get the local IP address value to write
|
||
to /etc/hosts from $4, rather than from /sbin/ifconfig ...
|
||
|
||
<P>
|
||
Although I too am the only person who uses my system, I don't do
|
||
everything as root. In order to alow non-root users to write to the
|
||
/etc/hosts file, I changed the <BR><BR>
|
||
|
||
echo " ... " > /etc/hosts<BR><BR>
|
||
|
||
command in your pppon script to<BR><BR>
|
||
|
||
su root -c "echo \" ... \" > /etc/hosts"<BR><BR>
|
||
|
||
<P>
|
||
Note that the double quote characters (") enclosing the text to be sent in
|
||
your pppon script are escaped (\") in my modified version. Also, note that
|
||
double quote characters are used to enclose everything after su root -c in
|
||
my modified version.
|
||
|
||
<P>
|
||
Thanks again.
|
||
|
||
<P>
|
||
Barry Sanderson barrydon@surf-ici.com
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Sun, 28 Jan 1996 12:19:42 CST<BR>
|
||
From: Alan Bailward <Alan_Bailward@mindlink.bc.ca><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: error in LG!</B><BR>
|
||
|
||
<P>
|
||
Hi John. I was just going through the LG and trying out all the cool new
|
||
stuff and I found that in the first or second letter (the one about
|
||
changing the prompt colors - the line that is put into the .profile has all
|
||
" ' "'s, they should be " ` "'s. ie:
|
||
|
||
<PRE>
|
||
export PS1="\['setterm -foreground green'\] etc
|
||
</PRE>
|
||
|
||
*should be*
|
||
|
||
<PRE>
|
||
export PS1="\[`setterm -foreground green`\] etc
|
||
</PRE>
|
||
|
||
<P>
|
||
All the ' should be ` (backquotes, not appostraphies (sp?)). This makes
|
||
the shell use the *result* of the commands, not the literal command.
|
||
|
||
<P>
|
||
alan<BR>
|
||
(keep up the good work)<BR>
|
||
|
||
<PRE>
|
||
--
|
||
Alan Bailward | There are two kinds of programmers,
|
||
alan_bailward@mindlink.bc.ca | those with humour, and those without
|
||
http://mindlink.bc.ca/alan_bailward | sanity. -someone else
|
||
</PRE>
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Wed, 24 Jan 1996 00:51:18 CST<BR>
|
||
From: Andy Parkerson <andyp@tamu.edu><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Setterm and the Linux Gazette</B><BR>
|
||
|
||
<P>
|
||
Howdy!
|
||
|
||
<P>
|
||
Kudos on your great resource for Linux Users!
|
||
|
||
<P>
|
||
In the November issue, you mention setterm. I have found that the best use for this (IMHO) is to
|
||
determine which user is currently logged in. I rarely log in as root, and have found that I often
|
||
forget that I am root. What I have done is changed the screen color for root to a nice bright
|
||
red screen with red letters whenever I am root. This way I know who I am (I also know whenever
|
||
someone else that I let use my computer hacks in to my superuser :-) ). I have edited the following
|
||
files:
|
||
|
||
<P>
|
||
/root/.profile<BR><BR>
|
||
|
||
<PRE>
|
||
--> add the following lines:
|
||
setterm -background red -foreground yellow- bold -store
|
||
clear
|
||
alias logout='setterm -background blue -foreground white -bold -store ; clear'
|
||
</PRE>
|
||
|
||
<P>
|
||
/root/.bashrc<BR><BR>
|
||
|
||
<PRE>
|
||
--> add the following lines:
|
||
setterm -background red -foreground yellow -bold -store
|
||
clear
|
||
alias exit='setterm -background blue -foreground white -bold -store ; clear'
|
||
</PRE>
|
||
|
||
<P>
|
||
This way, whether I login as root, or if I "su" to root, I change the color. I also recommend changing
|
||
the prompt to something obnoxious like "*****ROOT*****:/>" just to make the point.
|
||
|
||
<P>
|
||
I guess that you could do this for every different user that you used, such as webmaster, or KoolMoDee...
|
||
Whatever.
|
||
|
||
<P>
|
||
Now, do you have any way to interactively change the background colors in an xterm? I use X a lot, and
|
||
this would be nice.
|
||
|
||
<P>
|
||
Thanks for the help, and once again, good job!
|
||
|
||
<P>
|
||
andyp
|
||
<PRE>
|
||
---
|
||
Andy Parkerson mailto:andyp@tamu.edu
|
||
Texas A&M University http://utnapishtim.dorms.tamu.edu/~andyp/
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Sat, 06 Jan 1996 21:31:34 CST<BR>
|
||
From: Sam Lantinga <slouken@cs.ucdavis.edu><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: splitvt in Linux Gazette</B><BR>
|
||
|
||
<P>
|
||
Thanks for the blurb of the September issue of the Linux Gazette.
|
||
I appreciate it. :)
|
||
|
||
<P>
|
||
Do you mind if I put it in the next splitvt distribution?
|
||
|
||
<P>
|
||
I'd also be interested in any interesting ways you or anyone else
|
||
has found to use splitvt, and also what you think would make it better. :)
|
||
|
||
<P>
|
||
Thanks alot! :)
|
||
|
||
<P>
|
||
-Sam Lantinga (slouken@cs.ucdavis.edu)
|
||
|
||
<PRE>
|
||
---
|
||
Author of splitvt -- get the new version with security fixes from
|
||
ftp://dandelion.ceres.ca.gov/pub/splitvt/
|
||
---
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Sun, 21 Jan 1996 17:15:22 CST<BR>
|
||
From: Joey Hess <joey@kite.ithaca.ny.us><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: supermount</B><BR>
|
||
|
||
<P>
|
||
I applied your article on supermount to my RedHat system, and discovered
|
||
a problem. I thought I'd warn you about this.
|
||
|
||
<P>
|
||
it seems that RedHat's 'mount' command is different than the stock linux
|
||
mount. At least, it didn't like the /etc/fstab line for supermount. When
|
||
I put in the line you recoomended, I'd get something like this:
|
||
|
||
<PRE>
|
||
[Root] />mount
|
||
/ on /a type supermount (rw,fs=msdos,dev=/dev/fd0)
|
||
/dev/hda1 on /dos type msdos (rw,noexec,nosuid,nodev,umask=0)
|
||
/dev/hdb2 on /home type ext2 (rw)
|
||
/dev/hdb4 on /usr type ext2 (rw)
|
||
/proc on /proc type proc (rw)
|
||
</PRE>
|
||
|
||
<P>
|
||
The supermount on /a somehow superceded the "/dev/hdb1 on / type ext2
|
||
(rw)" line that's normally at the top of the output of mount on my
|
||
system. I was unable to unmount / or /a.
|
||
|
||
<P>
|
||
What's really bad about this is, if you reboot, it is unable to unmount
|
||
your actual root partition, and then when it boots up, it mounts it
|
||
read-only, and things are very bad..
|
||
|
||
<P>
|
||
My fix was to use this line in /etc/fstab:
|
||
|
||
<PRE>
|
||
/a /a supermount rw,fs=msdos,dev=/dev/fd0 0 0
|
||
|
||
^
|
||
|--notice that /a. I think that for supermount, this field is just a
|
||
placeholder, you can fill it with anything. So I picked something
|
||
innocuous. Now it works, and mount reports:
|
||
|
||
/dev/hdb1 on / type ext2 (rw)
|
||
/dev/hda1 on /dos type msdos (rw,noexec,nosuid,nodev,umask=0)
|
||
/dev/hdb2 on /home type ext2 (rw)
|
||
/dev/hdb4 on /usr type ext2 (rw)
|
||
/proc on /proc type proc (rw)
|
||
/a on /a type supermount (rw,fs=msdos,dev=/dev/fd0)
|
||
</PRE>
|
||
|
||
<P>
|
||
Thanks for the great articles in the Gazzette..
|
||
|
||
<P>
|
||
Joey
|
||
<PRE>
|
||
--
|
||
"How appropriate, you fight like a cow." -- Monkey Island
|
||
http://kite.ithaca.ny.us/
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Wed, 14 Feb 1996 09:26:32 CST<BR>
|
||
From: Rod Troch <troch@texas.com><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: TIP LG: Copying files > 1.4 Mb to floppy</B><BR>
|
||
|
||
|
||
<P>
|
||
Howdy,
|
||
|
||
<P>
|
||
I originally posted this tip to the c.o.l.m newsgroup back in August of
|
||
1995. I think it is a valuable tip and am forwarding it to you for
|
||
possible inclusion in the next LG.
|
||
|
||
<P>
|
||
How many times have you needed to transport a file larger then 1.44Mb via
|
||
floppies and did not know how? I have on many occasions. It finally
|
||
became a desperate situation and I was forced to read the man page for
|
||
Gnu Tar. I am glad I did!
|
||
|
||
<P>
|
||
The following command will let you tar either a single file or multiple
|
||
files and span them across multiple floppy disks. This is the command
|
||
that seems to work best for me:
|
||
|
||
<PRE>
|
||
'tar -cvMf /dev/fd0H1440/ files-to-betarred.gz'
|
||
</PRE>
|
||
|
||
<P>
|
||
I hope this helps some folks who may have been scratching their heads
|
||
over just this issue.
|
||
|
||
<P>
|
||
-Rod
|
||
|
||
<PRE>
|
||
Rod Troch N2ZVV | Don't mess with TEXAS.
|
||
troch@texas.com | Lonestar - A Linux box
|
||
http://www.texas.com/ | FTP for Pgp key
|
||
"Don't ever ask anybody if they are from Texas; if they are, you'll
|
||
know it. If they aren't, you'll just make 'em feel bad." -Anonymous
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Wed, 31 Jan 1996 23:16:02 CST<BR>
|
||
From: Michael Shelton <mshelton@onyx.idbsu.edu><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: VI</B><BR>
|
||
|
||
<P>
|
||
Is fmt usable in vi as well as vim?
|
||
|
||
<P>
|
||
Also, is fmt available in UNIX, not just Linux?
|
||
|
||
<P>
|
||
One more thing, in your Nov. issue, you talk about using '/' and '?' to
|
||
search out strings. Not only can you use 'n' to move forward in a '/'
|
||
search, or backwards in a '?' search, but if you use 'shift+n' it will
|
||
reverse whatever mode you are in. (i.e. If you start in '/' mode, typing
|
||
'shift+n' will go to '?' mode and reverse the search one step. Watch the
|
||
status on the bottom of the screen, it indicates which is which).
|
||
|
||
<P>
|
||
Mike Shelton
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Thu, 07 Mar 1996 09:49:42 CST<BR>
|
||
From: Les Schaffer <godzilla@futuris.net><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: XF-Mail</B><BR>
|
||
|
||
<P>
|
||
Hi.
|
||
|
||
<P>
|
||
I liked your article a lot, even though i have been compiling Linux
|
||
codes on my own for over a year.
|
||
|
||
<P>
|
||
But just in case you get other queries from desperate people:
|
||
|
||
<P>
|
||
As you may be aware, the 0.3 XF-Mail release doesnt work right with
|
||
the newer (> 3.4f) Xpm libs. Specifically, a call to the xform
|
||
function fl_set_pixmapbutton_data fails with a segmentation fault.
|
||
|
||
<P>
|
||
I also noticed a problem with dirent.h ... xfmail calls
|
||
dirent->d_namlen but it should be dirent->d_reclen . there is a
|
||
define fix in the dirent.h, but it didnt work for me and i had to put
|
||
it in by hand to get a compile...
|
||
|
||
<P>
|
||
I then upgraded to the alpha release of the newest xforms library,
|
||
but some of the calls have changed their arguments. I fixed them up,
|
||
and the xfmail program then ran, but things weren't quite right (menu
|
||
bar was at bottom, message bar at top!)
|
||
|
||
<P>
|
||
Then i noticed that there was an alpha release of the newest version
|
||
of xfmail, and that compiles with my eyes closed and the latest Xpm
|
||
and xform libraries...
|
||
|
||
<P>
|
||
Cheers
|
||
|
||
<P>
|
||
Les Schaffer
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Thu, 01 Feb 1996 12:58:59 CST<BR>
|
||
From: Jim Nicholson <libadm8@bns02.bns.att.com><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: xterm escapes - one more time</B><BR>
|
||
|
||
<P>
|
||
I saw a few examples of getting bash to put the current directory into
|
||
the titlebar, but they all either replace "cd" or change the prompt. Here's a
|
||
method that takes advantage of PROMPT_COMMAND:
|
||
|
||
<P>
|
||
use Escape for ^[ and Ctrl-G for ^G when adding this to your .bash_profile.
|
||
|
||
<PRE>
|
||
if [ "$?PROMPT" ]; then
|
||
if [ "$TERM" = "xterm" ]; then
|
||
echo -n "^[]2;xterm: `pwd`^G"
|
||
export PROMPT_COMMAND='echo -n "^[]2;xterm: `pwd`^G"'
|
||
fi
|
||
fi
|
||
</PRE>
|
||
|
||
<P>
|
||
It works because PROMPT_COMMAND gets executed each time the current directory
|
||
is changed. The only downside is having to do the "echo" up front; this is
|
||
required because PROMPT_COMMAND doesn't get executed when the shell first
|
||
fires up.
|
||
|
||
|
||
<P>
|
||
- Jim
|
||
|
||
<PRE>
|
||
Jim Nicholson | libadm8@bns02.att.com
|
||
BCS SMTS IOL Project | http://iol.bns.att.com/
|
||
908-457-1835 | http://cnj.digex.net/~pcks/jim/home.html
|
||
</PRE>
|
||
|
||
From: Jim Nicholson <jnich@nj40e4fw.bns.att.com><BR>
|
||
To: "John M. Fisk" <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: RE: xterm escapes - one more time</B><BR>
|
||
|
||
<P>
|
||
One correction: In my email, I stated that PROMPT_COMMAND gets called
|
||
by bash whenever the current directory is changed. There *IS* a facility
|
||
like that in tcsh (I forget the name of the environment variable), but
|
||
PROMPT_COMMAND is slightly different: it gets run each time bash is about
|
||
to issue a prompt. Thus, you can do things like:
|
||
|
||
<PRE>
|
||
export PROMPT_COMMAND="touch $HOME/.last.prompt"
|
||
</PRE>
|
||
|
||
<P>
|
||
and ~/.last.prompt will be time-stamped with the approximate time that
|
||
the last command finished...
|
||
|
||
<P>
|
||
I really enjoy LG, by the way. Would you be interested in an in-depth
|
||
discussion of how to set up xdm? I can't promise it for your next issue,
|
||
but I really should write something about the setup that I use; it's
|
||
become quite popular with the programmers in my project team.
|
||
|
||
<P>
|
||
- Jim
|
||
|
||
<PRE>
|
||
Jim Nicholson | libadm8@bns02.att.com
|
||
BCS SMTS IOL Project | http://iol.bns.att.com/
|
||
908-457-1835 | http://cnj.digex.net/~pcks/jim/home.html
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Tue, 05 Mar 1996 13:30:30 CST<BR>
|
||
From: Raul Benito Garcia <raul@panoramix.fi.upm.es><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: XTERM folluw-up</B><BR>
|
||
|
||
<P>
|
||
Hi John,
|
||
|
||
<P>
|
||
Thanks for your time and your wonderful gazette, here it is my contribution
|
||
to the million tons of mails that you may have about this subject.
|
||
|
||
<P>
|
||
Changing the xterm titlebar using aliases can led you to a wrong one If you do
|
||
a lot of telnet or rlogin to anothe system that changes your titlebar too.
|
||
|
||
<P>
|
||
But you can solve it in BASH with the
|
||
|
||
<PRE>PROMPT_COMMAND</PRE>
|
||
|
||
<P>
|
||
variable that runs the command in it every time it has to write a new
|
||
prompt(I have also try to use a prompt that changes my titlebar but I
|
||
find it terrible slowing editing long lines.)
|
||
|
||
<P>
|
||
I put this in my bashrc.
|
||
|
||
<PRE>
|
||
PROMPT_COMMAND='echo -ne "\033]2;bhole:$PWD$\007"'
|
||
</PRE>
|
||
|
||
<P>
|
||
Hope that you find it useful and understable(english isn't my first language).
|
||
|
||
<P>
|
||
Have you see the wonderful tkman (a X manual pager really cute, written it
|
||
Tcl/Tk). I also invite to see the Bowman Window Manger (it trys to convert
|
||
your linux box in a NeXt one)
|
||
|
||
<P>
|
||
Thanks again for your magazine,
|
||
|
||
<P>
|
||
Raul Benito Garcia<BR>
|
||
Ars Longa, vita brevis<BR>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
From: R.S. MALLOZZI, ES-84, 205-544-0887 <MALLOZZI@bowie.msfc.nasa.gov><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Xterm title</B><BR>
|
||
|
||
<P>
|
||
Hi John,
|
||
|
||
<P>
|
||
First of all, I'd like to tell ya how much I enjoy the LG. The tips are cool,
|
||
and don't change your style of writing! Anyway, I was digging through some
|
||
papers today and found the November issue of the LG, and started glancing
|
||
through it again. I noticed in the section about the xterm title bar where
|
||
you talked about setting the current working directory as the title that you
|
||
could not get it to work with BASH. Here is a section of my ~/.profile that
|
||
does it:
|
||
|
||
<PRE>
|
||
- - - - - - - - - - - - - - - - Start ~/.profile - - - - - - - - - - - - - - - -
|
||
|
||
# This function sets the xterm title to be the argument of xtitle
|
||
# It is used below so that 'cd' will write the current directory
|
||
# to the xterm title (see November Linux Gazette for explanation of
|
||
# the escape sequences, and how to insert them)
|
||
xtitle()
|
||
{
|
||
if [ "$*" != "" ]; then
|
||
echo -n "]0;$* "
|
||
else
|
||
echo -n "]0;xterminal:`/usr/bin/tty`"
|
||
fi
|
||
}
|
||
|
||
# Only write to xterm if X is running
|
||
if [ "$DISPLAY" ]; then
|
||
|
||
# Assign the titles of any xterms started in ~/.xinitrc
|
||
xtitle $PWD
|
||
|
||
temp_cd()
|
||
{
|
||
cd $1
|
||
# Set the xterm title
|
||
xtitle $PWD
|
||
# Echo to screen, if you like
|
||
echo $PWD
|
||
}
|
||
else
|
||
temp_cd()
|
||
{
|
||
cd $1
|
||
# Cannot write to xterm, just echo to screen
|
||
echo $PWD
|
||
}
|
||
fi
|
||
alias cd='temp_cd'
|
||
- - - - - - - - - - - - - - - - End ~/.profile - - - - - - - - - - - - - - - - -
|
||
</PRE>
|
||
|
||
<P>
|
||
I also wanted to tell you about a cool login-notifier I added to
|
||
/etc/profile after I saw that I had some attempted logins as root while
|
||
I had my ppp connection up. It broadcasts a message to me whenever anyone
|
||
other than myself logs in.
|
||
|
||
<PRE>
|
||
- - - - - - - - - - - - - - - Start /etc/profile - - - - - - - - - - - - - - - -
|
||
|
||
# Detect logins
|
||
UserId=`id -un`
|
||
case ${UserId}
|
||
in
|
||
# Don't broadcast when the following user(s) log in:
|
||
mallozzi );;
|
||
# Broadcast for everyone else, especially root
|
||
*) echo "User ${UserId} logged in at `date +%I:%M`" | wall;;
|
||
esac
|
||
- - - - - - - - - - - - - - - End /etc/profile - - - - - - - - - - - - - - - - -
|
||
</PRE>
|
||
|
||
|
||
<P>
|
||
I also had to put the following in my ~/.profile, to allow the broadcast
|
||
messages to be displayed:
|
||
|
||
<PRE>
|
||
- - - - - - - - - - - - - - - - snip, snip - - - - - - - - - - - - - - - -
|
||
|
||
# Enable write permission to terminal for the automatic login
|
||
# detection procedure (see /etc/profile)
|
||
if [ ! "$DISPLAY" ]; then
|
||
CurrentTerminal=`tty`
|
||
chmod 622 $CurrentTerminal
|
||
fi
|
||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
</PRE>
|
||
|
||
<P>
|
||
See Ya!
|
||
|
||
<P>
|
||
-Bob Mallozzi<BR>
|
||
#define Linux COOL<BR>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Tue, 06 Feb 1996 09:24:20 CST<BR>
|
||
From: Brian Harvey <brian@cs.UCR.edu><BR>
|
||
To: <waltz@pcjiw.lampf.lanl.gov><BR>
|
||
<B>Subject: XTerm title tricks (cont.)</B><BR>
|
||
Cc: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
|
||
<P>
|
||
I recently saw your email message in Linux Gazette Issue #6 in which
|
||
you present some lines to insert into your .cshrc and .login to get the
|
||
hostname and current path on the xterm title bar. At the end of the
|
||
message you mention that you've yet to figure out how to reset the
|
||
hostname and current path after returning from a rlogin or telnet
|
||
session (your solution was to run a "renew" command). I have a
|
||
solution which works very well for me.
|
||
|
||
<P>
|
||
I'm using tcsh, and I've setup up the following aliases in my .tcshrc:
|
||
|
||
<PRE>
|
||
alias rlogin "(\rlogin \!^; cd .)"
|
||
alias telnet "(\telnet \!^; cd .)"
|
||
</PRE>
|
||
|
||
<P>
|
||
Whenever I return from a rlogin or telnet session, the "cd ." command is
|
||
run which updates the title bar (because of your previous alias).
|
||
|
||
<P>
|
||
I don't know if !^ can be used with aliases in other shells, but
|
||
hopefully this helps you out.
|
||
|
||
<P>
|
||
BTW the tcsh man page gives an example very similar to your cd alias.
|
||
|
||
<PRE>
|
||
alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd^G^[]1;${HOST}^G"'
|
||
</PRE>
|
||
|
||
<P>
|
||
in tcsh, whatever "cwdcmd" is, gets run after every cd command
|
||
automatically.
|
||
|
||
<PRE>
|
||
--
|
||
Brian Harvey * brian@cs.ucr.edu
|
||
University of California, Riverside
|
||
http://www.cs.ucr.edu/~brian/
|
||
</PRE>
|
||
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Date: Wed, 31 Dec 1969 18:00:00 CST<BR>
|
||
From: Emilio Lopes <ecl@fnpc21.if.usp.br><BR>
|
||
To: <fiskjm@ctrvax.Vanderbilt.Edu><BR>
|
||
<B>Subject: Xterm title bar</B><BR>
|
||
|
||
<P>
|
||
Hi!
|
||
|
||
<P>
|
||
Can I still give my way to put info dynamically in Xterm's titlebar?
|
||
|
||
<P>
|
||
I use bash and here goes the relevant portion of my ~/.bashrc file:
|
||
|
||
<PRE>
|
||
#---
|
||
if [ -z "$HOST" ]; then
|
||
export HOST=`hostname`
|
||
fi
|
||
|
||
# The string between quotes is used to put the CWD
|
||
# in the Xterm title bar. -- ECL
|
||
if [ "$TERM" = "xterm" ]; then
|
||
PROMPT_COMMAND='echo -en "\033]2;${LOGNAME}@${HOST}:${PWD}\007"'
|
||
fi
|
||
#---
|
||
</PRE>
|
||
|
||
<P>
|
||
Bash executes "PROMPT_COMMAND" every time it is about to print the
|
||
prompt (PS1).
|
||
|
||
<P>
|
||
The variables LOGNAME and PWD are automatically set by Bash. This does
|
||
not happen with HOST, which we must set using the "hostname" command.
|
||
|
||
<P>
|
||
The "033" is the octal form of decimal 27 = ESC.
|
||
|
||
<P>
|
||
I prefer this way because I don't have to alias "cd". Note that the
|
||
power that the variable PROMPT_COMMAND gives you goes beyond a
|
||
"simple" title in a Xterm window. You can make it speak something like
|
||
"Yes sir!" at each prompt... ;-)
|
||
|
||
<P>
|
||
Have FUN!
|
||
|
||
<P>
|
||
Emilio.
|
||
|
||
<PRE>
|
||
--
|
||
Emilio C. Lopes
|
||
FINPE, Instituto de Fisica E-mail: ecl@if.usp.br
|
||
Universidade de Sao Paulo Phone: (55)(11) 818-6724 (Voice)
|
||
Caixa Postal 66318 (55)(11) 818-6715 (Fax)
|
||
05389-970 Sao Paulo - SP
|
||
BRAZIL
|
||
</PRE>
|
||
|
||
|
||
<HR> <P><IMG SRC="../gx/letter.gif">
|
||
Sender: senning@tabasco.math.gordonc.edu<BR>
|
||
From: "Jonathan R. Senning" <senning@gordonc.edu><BR>
|
||
To: fiskjm@ctrvax.Vanderbilt.Edu<BR>
|
||
<B>Subject: Updating XTerm's Titlebar</B><BR>
|
||
|
||
<P>
|
||
I've been wanting to know how to do this for some time now! Thanks for making
|
||
it available. I'm just sorry that I missed it the first time around...
|
||
|
||
<P>
|
||
Here is a minor suggestion that I didn't see mentioned in any other updates
|
||
in the January issue.
|
||
|
||
<P>
|
||
After some fiddling I came up with the following string for PS1:
|
||
|
||
<PRE>
|
||
PS1="\[\033]2;\h:\w\007\]\$ "
|
||
</PRE>
|
||
|
||
<P>
|
||
The "\["
|
||
at the beginning and the "\]" near the end bracket the non-printing
|
||
characters. This is important when the editing long command lines. This
|
||
is documented in the man page for bash.
|
||
|
||
<PRE>
|
||
--
|
||
*============================================================================*
|
||
| Jonathan R. Senning Assistant Prof. of Mathematics and Computer Science |
|
||
| senning@GordonC.EDU Gordon College, Wenham, MA 01984 (508) 927-2300 x4376 |
|
||
*============================================================================*
|
||
</PRE>
|
||
|
||
<HR>
|
||
<P>
|
||
Back up to the <A HREF="./lg_issue7.html">Linux Gazette!</A>
|
||
<P>
|
||
|
||
</BODY>
|
||
</HTML>
|