old-www/LDP/LG/issue88/lg_tips.html

1023 lines
39 KiB
HTML
Raw Permalink Blame History

<!--startcut ==============================================-->
<!-- *** BEGIN HTML header *** -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Language" CONTENT="en-us">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="generator" CONTENT="lgazmail v1.4G.d">
<LINK REV="made" href="mailto:%20linux-questions-only@ssc.com%20"><TITLE>More 2 Cent Tips &amp; Tricks LG #88</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000">
<!-- *** END HTML header *** -->
<!--endcut ==============================================-->
<!--startcut =========================================================-->
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_mail.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue88/lg_tips.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../lg_faq.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_answer.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
<!-- *** END navbar *** -->
<!--endcut ===========================================================-->
<TABLE BORDER><TR><TD WIDTH="200">
<A HREF="http://www.linuxgazette.com/">
<IMG ALT="LINUX GAZETTE" SRC="/../gx/2002/lglogo_200x41.png"
WIDTH="200" HEIGHT="41" border="0"></A>
<BR CLEAR="all">
<SMALL>...<I>making Linux just a little more fun!</I></SMALL>
</TD><TD>
<center>
<BIG><BIG><STRONG><FONT COLOR="maroon">More 2&cent; Tips!</FONT></STRONG></BIG></BIG><BR>
<!-- BEGIN tips -->
<STRONG>By <A HREF="mailto:linux-questions-only@ssc.com">The Readers of <i>Linux Gazette</I></A></STRONG></BIG>
</TD></TR>
</TABLE>
<P>
<!-- END header -->
<center><STRONG>See also: The Answer Gang's
<a href="../tag/kb.html">Knowledge Base</a>
and the <i>LG</i>
<a href="http://www.linuxgazette.com/search.html">Search Engine</a></STRONG>
</center><HR>
<UL>
<!-- index_text begins -->
<li><A HREF="#tips.1"
><strong>make in future? I'm confused *now*</strong></a>
<li><A HREF="#tips.2"
><strong>H/W detection in Debian ?</strong></a>
<li><A HREF="#tips.3"
><strong>ppp over nullmodem cable - Linux client, win2k RAS server</strong></a>
<li><A HREF="#tips.4"
><strong>kernels? make your own!</strong></a>
<li><A HREF="#tips.5"
><strong>Ipchains vs. Iptables</strong></a>
<li><A HREF="#tips.6"
><strong>a new language</strong></a>
<li><A HREF="#tips.7"
><strong>Key Remapping....</strong></a>
<li><A HREF="#tips.8"
><strong>Palm magic</strong></a>
<li><A HREF="#tips.9"
><strong>Initial thoughts on ratpoison</strong></a>
<li><A HREF="#tips.10"
><strong>rc.local in debian</strong></a>
<li><A HREF="#tips.11"
><strong>recording sounds on linux for windows</strong></a>
<li><A HREF="#tips.12"
><strong>Secure Password Authorization - NTCR ?</strong></a>
<li><A HREF="#tips.13"
><strong>Fwd: Terminating Misbehaving Programs</strong></a>
<li><A HREF="#tips.14"
><strong>Two sound cards</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">make in future? I'm confused *now*</FONT></H3>
Tue, 28 Jan 2003 00:35:59 -0600
<BR>Mike Orr (<a href="mailto:linux-questions-only@ssc.com?cc=hi_subri@hotmail.com&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%231"><em>Linux Gazette</em> Editor</a>)
<BR>Question by Subramanian Varadarajan (hi_subri from hotmail.com)
<P><STRONG>
hai,
</STRONG></P>
<P><STRONG>
I am subbu and I encounterd this problem when i ran
</STRONG></P>
<pre><strong>make - filename.
</strong></pre>
<P><STRONG>
How to fix this problem?Can you help me.
</STRONG></P>
<pre><strong>make: *** Warning: File `makefile.machine' has modification time in
the future (2003-01-28 07:07:00 &gt; 2003-01-28 00:09:19)
make: Nothing to be done for `all'.
make: warning: Clock skew detected. Your build may be incomplete.
</strong></pre>
<P><STRONG>
I guess that my real-time clock has set incorrectly. how to correct
it.
</STRONG></P>
<P><STRONG>
I appreciate your time.
</STRONG></P>
<P><STRONG>
thanks,
<BR>subbu
</STRONG></P>
<blockquote><font color="#000066">Ugly HTML had to be beaten up and reformatted.
Please send messages to The Answer Gang in text format.
-- Heather</font></blockquote>
<BLOCKQUOTE>
[Mike]
The message means what it says: 'make' found a file that "was"
modified in the future. That may or may not be a problem, and if
it is, it may or may not be significant. Do you know by other
means whether 'makefile.machine' should have been updated? I.e., did you
modify any file related to it?
</BLOCKQUOTE>
<BLOCKQUOTE>
How did that file get on your machine in the first place? Did you
copy or untar it from another computer in a way that would have
preserved the foreign timestamp? If so, then the clock on the
other computer may be wrong.
</BLOCKQUOTE>
<BLOCKQUOTE>
To check your own computer's clock, see the 'date' and 'hwclock'
commands. 'date' shows and sets Linux's time; 'hwclock' shows and
sets the real-time clock. First set Linux's time correctly, then
use 'hwclock --utc --systohc' to reset the hardware clock.
</BLOCKQUOTE>
<BLOCKQUOTE>
If your hardware clock is pretty unreliable (as many are), you can
use 'hwclock --adjust' periodically (see "man hwclock"), run ntp
or chrony to synchronize your time with an Internet time server,
or put the kernel in "eleven-minute mode" where it resets the
hardware clock every eleven minutes. (Answer Gang, how do you
activate eleven-minute mode anyway?)
</BLOCKQUOTE>
<BLOCKQUOTE>
[Ben]
In the "hwclock" man page:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
This mode (we'll call it "11 minute mode") is off until something turns it
on. The ntp daemon xntpd is one thing that turns it on. You can turn
it off by running anything, including hwclock --hctosys, that sets the
System Time the oldfashioned way.
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
Also, see the "kernel" option under "man ntpd".
</BLOCKQUOTE>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">H/W detection in Debian ?</FONT></H3>
Sun, 02 Feb 2003 02:49:05 +0000
<BR>Jimmy O'Regan (<a href="mailto:linux-questions-only@ssc.com?cc=jimregan@dol.ie&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%232">jimregan from dol.ie</a>)
<blockquote><font color="#000066">In reference to:
<a href="http://www.linuxgazette.com/issue87/lg_mail.html#wanted.1">Issue87, help wanted #1</a>
-- Heather</font></blockquote>
<P>
You could try installing libdetect, and then running <TT>/usr/sbin/detect</TT>
(detect is also used by Mandrake). Aside from that, the only thing I can
suggest is filing bugs with <A HREF="http://www.debian.org/">Debian</A>.
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">ppp over nullmodem cable - Linux client, win2k RAS server</FONT></H3>
Sun, 02 Feb 2003 03:13:36 +0000
<BR>Jimmy O'Regan (<a href="mailto:linux-questions-only@ssc.com?cc=jimregan@dol.ie&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%233">jimregan from dol.ie</a>)
<blockquote><font color="#000066">In reference to:
<a href="http://www.linuxgazette.com/issue87/lg_mail.html#wanted.1">Issue87, help wanted #2</a>
-- Heather</font></blockquote>
<P>
The problem is the authentication on the Win2K side. Check out
<A HREF="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/apcguide/htm/appdevisv_8.asp"
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/apcguide/htm/appdevisv_8.asp</A>
Basically, since I assume the RAS server is running etc, you just need
to enter this command on NT:
</P>
<blockquote><pre>netsh ras set authmode NODCC
</pre></blockquote>
<P>
Last month Linux Magazine (UK -
<A HREF="http://www.linux-magazine.com/issue/26/index_html"
>http://www.linux-magazine.com/issue/26/index_html</A>) ran an article on
setting up Direct Cable Connections with NT. I'll send on the details
when I find where I left the magazine. You may try searching
<A HREF="http://linux-magazin.de"
>http://linux-magazin.de</A> since Linux Magazine is a translated version of
that.
</P>
<P>
<A HREF="http://www.tldp.org/HOWTO/Modem-Dialup-NT-HOWTO-9.html"
>http://www.tldp.org/HOWTO/Modem-Dialup-NT-HOWTO-9.html</A>
</P>
<P>
This page may also be of use.
</P>
<!-- sig -->
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">kernels? make your own!</FONT></H3>
Thu, 6 Feb 2003 02:08:18 -0800 (PST)
<BR>j l (<a href="mailto:linux-questions-only@ssc.com?cc=cs25x@yahoo.com&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%234">cs25x from yahoo.com</a>)
<blockquote><font color="#000066">In reference to:
<a href="http://www.linuxgazette.com/issue87/lg_mail.html#wanted.1">Issue87, help wanted #1</a>
-- Heather</font></blockquote>
<P>
Solution: stop using redhat, debian, mandrake kernels,
download a fresh kernel from kernel.org and build with
that.
</P>
<P>
The other answer, is to look in you Makefile, and
check the line beginning with "EXTRAVERSION=" If you
add your own name to that line, and run make, you
brand the kernel and modules with that name.
Hope that fixes your problem.
</P>
<HR width="10%" align="center">
<blockquote><code><font color="#000033"><br>"Sean Shannon" &lt;sean@dolphins.org&gt;
<br>Tue, 4 Feb 2003 10:48:20 -0500
</font></code></blockquote>
<P><STRONG>
The hardest part in compiling a kernel is making the ".config" file. Some
things to check:
</STRONG></P>
<p><Strong><ol>
<LI>modify the Makefile changing EXTRA VERSION variable (looks like you did
this since the 2.4.18custom directory is made)
<LI>make sure when you configure ( I use make menuconfig) that you select
"enable module support"
<LI>make sure to run "make dep" after "make menuconfig"
</ol></Strong></p>
<BLOCKQUOTE>
[Thomas Adams]
Yep -- good idea.
</BLOCKQUOTE>
<p><Strong><ol>
<LI>Are you sure that "make modules" and "make bzImage" completed
successfully?
</ol></Strong></p>
<BLOCKQUOTE>
[Thomas Adams]
</BLOCKQUOTE>
<BLOCKQUOTE>
Well, I usually do something like:
</BLOCKQUOTE>
<blockquote><pre>alias beep='echo -e "\a"'
make modules &amp;&amp; for i in $(seq 10); do beep; done &amp;&amp;
make bzImage &amp;&amp; for i in $(seq 10); do beep; done
</pre></blockquote>
<p><Strong><ol>
<LI>here is the install procedure I use (System.map is a symbolic link,
RedHat 7.0, I use raid 1 disk device /dev/md0, you'll probably use
/dev/hda )
</ol></Strong></p>
<BLOCKQUOTE>
[Thomas Adams]
or <TT>/dev/sda</TT> if s/he has a SCSI
</BLOCKQUOTE>
<P><STRONG>
To install the new kernel:
</STRONG></P>
<P><STRONG><BLOCKQuote>
Copy the new kernel and system map to the <20>boot<6F> directory
</BLOCKQuote></STRONG></P>
<pre><strong>cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.16-22-custom
cp /usr/src/linux/System.map /boot/System.map-2.2.16-22-custom
</strong></pre>
<P><STRONG>
Edit file: <20>/etc/lilo.conf<6E>. Add a new <20>image<67> section (add everything below
)
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tips/customkernel.lilo.conf.txt">customkernel.lilo.conf.txt</a></tt></p>
<BLOCKQUOTE>
[Thomas Adams]
Often called a "stanza". Be careful though. I'd be
more inclined to "label" this as "linux-test" so that
it doesn't infringe on the "old" version of the
kernel. Remember that up until this point, you're
still testing (a trial run) the new kernel.
</BLOCKQUOTE>
<P><STRONG>
Activate the change as of next re-boot
</STRONG></P>
<pre><strong>/sbin/lilo
</strong></pre>
<P><STRONG>
Install new System.map
</STRONG></P>
<pre><strong>rm /boot/System.map
ln -s /boot/System.map-2.2.16-22-custom /boot/System.map
</strong></pre>
<P><STRONG>
Reboot the system to build module.dep file
</STRONG></P>
<pre><strong>shutdown -r now
</strong></pre>
<BLOCKQUOTE>
[Thomas Adams]
Hmmm, deprecated. "Init 6" is a better way.
</BLOCKQUOTE>
<P><STRONG>
Reboot the system after the login prompt appears
Enter <20>alt-ctrl-del<65> key combination
</STRONG></P>
<P><STRONG>
Reboot performed because modules.dep is created on first boot (if not, try
running the "depmod" command manually then reboot)
</STRONG></P>
<BLOCKQUOTE>
[Thomas Adam]
Not necessary. "depmod" is ran through all of the init
levels on a modern Linux system......
</BLOCKQUOTE>
<P><STRONG>
Good luck.
Sean Shannon
</STRONG></P>
<BLOCKQUOTE>
[Jim Dennis]
Most of this can be automated down to just two lines:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQUOTE><CODE>
make menuconfig
<BR>make clean dep bzImage modules modules_install install
</CODE></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
... note the list of multiple targets all on one line.
Make install will look for an executable (usually a shell script)
named <TT>/sbin/installkernel</TT> (or even ~/bin/installkernel) and call
that with a set of arguments as documented in ... (<TT>/usr/src/linux</TT>)
arch/i386/boot/install.sh
</BLOCKQUOTE>
<BLOCKQUOTE>
Here's a relevant excerpt:
</BLOCKQUOTE>
<blockquote><pre># Copyright (C) 1995 by Linus Torvalds
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
# "make install" script for i386 architecture
# Arguments:
# $1 - kernel version
# $2 - kernel image file
# $3 - kernel map file
# $4 - default install path (blank if root directory)
#
# User may have a custom install script
if [ -x ~/bin/installkernel ]; then exec ~/bin/installkernel "$@"; fi
if [ -x /sbin/installkernel ]; then exec /sbin/installkernel "$@"; fi
</pre></blockquote>
<BLOCKQUOTE>
So this can put the approprite files into the appropriate places
and run <TT>/sbin/lilo</TT> or whatever is necessary on your system.
</BLOCKQUOTE>
<BLOCKQUOTE>
I like to copy .config into <TT>/boot/config-$KERNELVERSION</TT>
Also, in my case the script as to mount -o remount,rw <TT>/boot</TT>
since I normally keep <TT>/boot</TT> mounted in read-only mode.
The script remounts it back to ro mode after running <TT>/sbin/lilo.</TT>
</BLOCKQUOTE>
<BLOCKQUOTE>
For new kernels you can save some time in menuconfig by preceding
that make with:
</BLOCKQUOTE>
<blockquote><pre> cp /boot/config-$RECENTKERNELVERSION ./.config.old
make oldconfig
</pre></blockquote>
<BLOCKQUOTE>
... which will set all the new config options to match any
corresponding settings in the old config. Then you can focus
on the new stuff in menuconfig.
</BLOCKQUOTE>
<BLOCKQUOTE>
Another useful tweak for some people is to edit ... (<TT>/usr/src/linux</TT>)
<TT>.../scripts/Menuconfig</TT> and find the single_menu_mode variable:
</BLOCKQUOTE>
<blockquote><pre># Change this to TRUE if you prefer all kernel options listed
# in a single menu rather than the standard menu hierarchy.
#
single_menu_mode=
</pre></blockquote>
<BLOCKQUOTE>
... for those that don't like to have to expend extra keystrokes
popping in and out of subsections of the menuconfig dialogs.
</BLOCKQUOTE>
<BLOCKQUOTE>
Sadly this particular featuer as changed (at least by 2.5.59)
with the inclusion of a new kconfig system (instead of menuconfig).
</BLOCKQUOTE>
<BLOCKQUOTE>
You can get a collapsible try of menu options in the new system
using: make menuconfig MENUCONFIG=single_menu
(However, it it starts with all branches collapsed. &lt;grump!&gt
<IMG SRC="../gx/dennis/smily.gif" ALT=";)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Ipchains vs. Iptables</FONT></H3>
Fri, 14 Feb 2003 11:06:01 +0100
<BR>De Groote, Patrick (<a href="mailto:linux-questions-only@ssc.com?cc=Patrick.DeGroote@NETnet.be&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%235">Patrick.DeGroote from NETnet.be</a>)
<blockquote><font color="#000066">In reference to:
<a href="http://www.linuxgazette.com/issue87/lg_mail.html#wanted.1">Issue87, help wanted #6</a>
-- Heather</font></blockquote>
<P>
if you use ipchains, then you should look at masquerading and
port-forwarding.
</P>
<P>
following command
</P>
<blockquote><pre>ipmasqadm portfw -a -P tcp -L $4 4662 -R 192.168.1.100 4662
</pre></blockquote>
<P>
should do the trick.
</P>
<P>
rgds
Patrick De Groote
</P>
<HR width="10%" align="center">
<blockquote><code><font color="#000033"><br>Bruce Ferrell &lt;bferrell@baywinds.org&gt;
<br>Sat, 22 Feb 2003 17:30:34 -0800
</font></code></blockquote>
<P>
if you're using ipchains you need something like this:
</P>
<blockquote><pre>/usr/sbin/ipmasqadm portfw -a -P tcp -L &lt;EXTERNAL ADDRESS&gt; 11900 -R &lt;INTERNAL ADDRESS&gt; 11900
</pre></blockquote>
<blockquote><font color="#000066">The point is, whether you use a variable or hardwire in an address, you
need to specify both sides of the forwarding connection. Also note that
the two examples selected a different port to play on, but the principle
is the same. I hope that leaving both examples in makes it all clearer
to readers.
-- Heather</font></blockquote>
<HR width="10%" align="center">
<blockquote><code><font color="#000033"><br>Jim Kielman &lt;jimk@midbc.com&gt;
<br>05 Feb 2003 23:30:27 -0800
</font></code></blockquote>
<P>
I ran into a similar problem with a client that had to have PCAnywhere
access to one of the computers on his network. My solution was to use
"ipmasqadm portfw" to forward the ports PCAnywhere needed to access. The
server is running <A HREF="http://www.debian.org/">Debian</A> potato with a stock 2.2.20 kernel. Here is what
I use:
</P>
<blockquote><pre>ipmasqadm portfw -a -P tcp -L &lt;internet IP&gt; 4162 -R &lt;mldonkey IP&gt; 4162
ipmasqadm portfw -a -P udp -L &lt;internet IP&gt; 4162 -R &lt;mldonkey IP&gt; 4162
ipmasqadm portfw -a -P tcp -L &lt;internet IP&gt; 4161 -R &lt;mldonkey IP&gt; 4161
ipmasqadm portfw -a -P udp -L &lt;internet IP&gt; 4161 -R &lt;mldonkey IP&gt; 4161
</pre></blockquote>
<P>
internet IP = the IP address of the computer connected to the internet.
</P>
<P>
mldonkey IP = the IP address of the computer running mldonkey.
</P>
<P>
I don't know if you need both udp and tcp, but it works for me. Hope
this helps.
</P>
<P>
Regards
<BR>Jim Kielman
</P>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.6"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">a new language</FONT></H3>
Mon, 10 Feb 2003 00:16:49 -0800
<BR>Rick Moen (<a href="mailto:linux-questions-only@ssc.com?cc=rick@linuxmafia.com&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%236">the <em>LG</em> Answer Gang</a>)
<blockquote><font color="#000066">In reference to:
<a href="http://www.linuxgazette.com/issue86/lg_tips.html#tips.3">Issue 86, 2c Tips #3</a>
-- Heather</font></blockquote>
<P>
John Karns:
</P>
<P><STRONG><BLOCKQuote>
Cool - thnks for the pointer. I think I'll check it out. I knew that
some IDE's exist for Linux, but never really took the time to look at one.
</BLOCKQuote></STRONG></P>
<P><DL><DT>
Why look at only one when you can look at over a hundred?
<DD><A HREF="http://linuxmafia.com/~rick/linux-info/applications-ides.html"
>http://linuxmafia.com/~rick/linux-info/applications-ides.html</A>
</DL></P>
<blockquote><font color="#000066">Note we're pointing to his gathered list of numerous "integrated
development ennvironments" - the previous entry pointed to his
description answering that (1) yes we have them, lots and lots; and
(2) that if you think you're seeking one, you should make sure you
are solving the right problem first.
-- Heather</font></blockquote>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Key Remapping....</FONT></H3>
Thu, 30 Jan 2003 13:37:20 -0800
<BR>Mike Orr (<a href="mailto:linux-questions-only@ssc.com?cc=jscott@sangoma.com&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%237"><em>Linux Gazette</em> Editor</a>)
<BR>Question by James Scott (jscott from sangoma.com)
<P><STRONG>
Is it possible to remap the &lt;tab&gt; key to another key on the keyboard?? One
of my co-workers has a broken left pinky and is going insane not being able
to use the tab key to complete commands.
</STRONG></P>
<P><STRONG>
I done a fair amount of searching to no avail... any help would be greatly
appreciated.
</STRONG></P>
<BLOCKQUOTE>
[Mike]
Grr, I just read yesterday about somebody turning Scroll Lock into another
Escape key, now where was it...?
</BLOCKQUOTE>
<BLOCKQUOTE>
You can remap any key using the "loadkeys", "showkey" (singular) and "dumpkeys"
commands. That's on the console. You have to do additional steps for X. See
the Keyboard and Console HOWTO
</BLOCKQUOTE>
<BLOCKQUOTE>
<A HREF="http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html"
>http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html</A>
</BLOCKQUOTE>
<P><STRONG>
Thanks for the quick reply. Helps a lot.
</STRONG></P>
<P><STRONG>
James
</STRONG></P>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.8"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Palm magic</FONT></H3>
Sun, 2 Feb 2003 10:21:46 +0100
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?cc=huibert_alblas@web.de&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%238">the <em>LG</em> Answer Gang</a>)
<BR>Question by Huibert Alblas (huibert_alblas from web.de)
<P>
I was desperatly trying to use my palm with the evolution mailer, recompiled everything but the kitchen sink to get Gnome2 and Gnome1.4 capplets and applets totlaly mixed up in the end, it was working, but gnome was broken, so now I'm repairing Gnome2, and then try to write the apropriate spells for my Paml connetion
</P>
<blockquote><font color="#000066">Halb uses the Sorceror distro, which refers to compiling its scripts and
packages as "casting spells".
-- Heather</font></blockquote>
<BLOCKQUOTE>
[Ben]
I've found the "appropriate spells" for the Palm - for my M-125 with the
USB cable, at least - to be "jpilot" and "coldsync". "jpilot" is really
well done, except for the selection interface in the "Install" menu
(select a file, click "Add". Select next file, click "Add". And so on
for, say, 50 files.) "coldsync" works at a lower level - it's great for
reinitializing user info, a quick install with <EM>or</EM> without synching,
and generally tweaking Palm comms. As an example, among the files that I
carry on the Palm, I have The Moby Shakespeare collection (all of The
Bard in one file) and Gibbon's "Decline and Fall of the Roman Empire",
volumes 1-6; both rather large (~5MB). "jpilot" refused to load them
(segfaulted). So did my brother's Wind*ws Palm desktop. "coldsync",
however, when used with the "slow sync" option, managed it just fine.
<A HREF="http://www.kde.org/">KDE</A>'s palm app, though, is severely broken (to its credit, it mentions
that in the initial screens); it hosed my Palm so hard that I had to do
a hard reset, and re-init the user (another thing that "jpilot" couldn't
handle.)
</BLOCKQUOTE>
<P><STRONG>
Yes, well thanks for the info, Jpilot and stuff works like a charm (Palm M105 the small one), but I wanted to Sync my mailadresses in evolution........ wich is based upon gnome 1.4 (c)applets, which are horible to get to play nice with the Gonme2.0 install.
</STRONG></P>
<P><STRONG>
Good to know about the big files though...
</STRONG></P>
<!-- end 8 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.9"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Initial thoughts on ratpoison</FONT></H3>
Mon, 24 Feb 2003 09:40:55 -0700
<BR>Jason Creighton (<a href="mailto:linux-questions-only@ssc.com?cc=androflux@softhome.net&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%239">androflux from softhome.net</a>)
<P>
For those of you who don't know, ratpoison is a light (<EM>very</EM> light) window
manager. (<A HREF="http://ratpoison.sourceforge.net"
>http://ratpoison.sourceforge.net</A>). The basic scheme is to have all
apps fullscreen, using screen-like key bindings to switch between windows.
I've been using it for about an hour or so now (Hint: Look at the
sample.ratpoisonrc in the doc directory. Don't end up hacking the source code
to change the prefix key like I did.), and I'm liking it. The best thing, of
course, is the tons of screen real estate you get without any window title
bars, borders, etc.
</P>
<P>
If you like doing everything with the keyboard or you want tons of screen real
estates, give ratpoison a whirl.
</P>
<P>
Also see this article on freshmeat: <A HREF="http://freshmeat.net/articles/view/581"
>http://freshmeat.net/articles/view/581</A>
</P>
<!-- end 9 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.10"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">rc.local in debian</FONT></H3>
Sun, 9 Feb 2003 15:42:07 +0530
<BR>Rick Moen (<a href="mailto:linux-questions-only@ssc.com?cc=joy12@vsnl.net&cc=rick@linuxmafia.com&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%2310">the <em>LG</em> Answer Gang</a>)
<BR>Question by Joydeep Bakshi (joy12 from vsnl.net)
<P><STRONG>
If you aren't using RHL, simply edit <TT>/etc/rc.d/rc.local</TT>
</STRONG></P>
<P><STRONG>
Atul
</STRONG></P>
<P><STRONG>
but there is no such file in debian . what file should I edit in <EM>debian</EM> ?
</STRONG></P>
<P><STRONG>
thanks in advanced.
</STRONG></P>
<BLOCKQUOTE>
The Linux Oracle has pondered your question deeply.
</BLOCKQUOTE>
<BLOCKQUOTE>
And in response, thus spake the Oracle:
</BLOCKQUOTE>
<blockquote><pre>echo '#!/bin/sh' &gt; /etc/rc.local
chmod 744 /etc/rc.local
RL=`grep ':initdefault:' /etc/inittab | cut -d: -f2`
echo "LO:$RL:once:/etc/rc.local" &gt;&gt; /etc/inittab
killall -HUP init
</pre></blockquote>
<BLOCKQUOTE>
You owe the Oracle a better understanding of why subverting the SysVInit
architecture is fundamentally a bad idea in the first place.
</BLOCKQUOTE>
<!-- end 10 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.11"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">recording sounds on linux for windows</FONT></H3>
Wed, 19 Feb 2003 02:19:49 +0800
<BR>Huibert Alblas (<a href="mailto:linux-questions-only@ssc.com?cc=50258246@student.cityu.edu.hk&cc=huibert_alblas@web.de&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%2311">huibert_alblas from web.de</a>)
<BR>Question by 50258246 (50258246 from student.cityu.edu.hk)
<P><STRONG>
Hi!i'm rayho, i would like to ask how to receive sound from the microphone and
then transmit the sound from the linux os to the window os system.Also,I'm not
understand where the sound source is stored in which file in the linux os and
what hardware and software do i need to do this transmition.Thankyou for your
help!!
</STRONG></P>
<BLOCKQUOTE>
[Halb]
Hi there,
</BLOCKQUOTE>
<BLOCKQUOTE>
This may sound a bit simple but I would do it like this:
</BLOCKQUOTE>
<blockQuote><ul>
<LI>record your sound with anything that works (grecord or something)
<LI>save as any file format you like (wav, mp3, ogg)
<LI>copy this file over to the windoze box (samba)
<LI>play file on windows (media-player, realplayer,..)
</ul></blockQuote>
<BLOCKQUOTE>
needed Hardware:
</BLOCKQUOTE>
<blockQuote><ul>
<LI>2 pc with networking cards (rj45, Wlan,..)
<LI>microphone
<LI>loudspeakers (? I looked this one up in dict.leo.org)
</ul></blockQuote>
<BLOCKQUOTE>
needed software:
</BLOCKQUOTE>
<blockQuote><ul>
<LI>Linux (any flavour you like)
<LI>Windoze
</ul></blockQuote>
<BLOCKQUOTE>
On the other hand, you might not want to transport single files, but want to do some kind of Internet audio broadcasting or something. You might want to look into
</BLOCKQUOTE>
<blockQuote><ul>
<LI><A HREF="http://www.shoutcast.com"
>http://www.shoutcast.com</A>
<LI><A HREF="http://www.peercast.org"
>http://www.peercast.org</A> ( p2p radio based on the gnutella protokol, I don't know about the license, but source is available)
<LI><A HREF="http://streamerp2p.com/streamer.htm"
>http://streamerp2p.com/streamer.htm</A> ( p2p radio GPLed)
</ul></blockQuote>
<BLOCKQUOTE>
What did you have in mind?
</BLOCKQUOTE>
<!-- end 11 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.12"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Secure Password Authorization - NTCR ?</FONT></H3>
Fri, 14 Feb 2003 01:18:41 +0000
<BR>Jimmy O'Regan (<a href="mailto:linux-questions-only@ssc.com?cc=ursine90@msn.com&cc=jimregan@dol.ie&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%2312">jimregan from dol.ie</a>)
<BR>Question by Neil Belsky (ursine90 from msn.com)
<P>
Neil Belsky wrote:
</P>
<P><STRONG><DL><DT>
Were you ever able to solve this problem?
<DD><A HREF="../issue64/lg_mail64.html#wanted/1"
>http://www.linuxgazette.com/issue64/lg_mail64.html#wanted/1</A>
</DL></STRONG></P>
<P>
NTCR is another name for NTLM, which is supported by fetchmail.
</P>
<!-- end 12 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.13"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Fwd: Terminating Misbehaving Programs</FONT></H3>
Wed, 12 Feb 2003 22:48:50 -0800 (PST)
<BR>Raj Shekhar (<a href="mailto:linux-questions-only@ssc.com?cc=lunatech3007@yahoo.com&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%2313">lunatech3007 from yahoo.com</a>)
<P><STRONG>
I receieved this tip for inclusion in my HOWTO
</STRONG></P>
<P><STRONG>
<A HREF="http://geocities.com/lunatech3007/doing-things-howto.html"
>http://geocities.com/lunatech3007/doing-things-howto.html</A>
</STRONG></P>
<P><STRONG>
However as it a bit advanced for a newbie's howto I did
not include it. i am forwarding it to you.
</STRONG></P>
<P><STRONG>
Regards
<BR>Raj
</STRONG></P>
<BLOCKQUOTE>
[C.R. Bryan III]
Subject: Doing Things in GNU/Linux
</BLOCKQUOTE>
<BLOCKQUOTE>
Good stuff
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> Something I can put on a firewall
machine when I put it onsite (since I leave <A HREF="http://www.apache.org/">Apache</A>
in for a status.cgi page anyway)
</BLOCKQUOTE>
<BLOCKQUOTE>
In the section "Terminating Misbehaving Programs":
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
If the afflicted machine is on a network with
another Linux machine, or a Windows machine with
PuTTY, there are additional steps that can be taken
before hitting the Big Red Two-by-Four switch. (My
network runs RHL 6.2 on older boxes, old as in P133,
so I get practice in this every time Netscape walks
into a Java site and freezes.)
</BLOCKQuote></BLOCKQUOTE>
<blockQuote><ol>
<LI>Shell into the afflicted machine.
Use ssh if you've got it, telnet otherwise. If VNC
is installed at both ends, maybe you can use that.
Just because the local desktop is frozen doesn't
always mean that all desktop functioning is frozen.
If the machine won't log you in, obviously it's
game-over, so at that point you have to reset the
box. Often, though, especially on older boxen, it's
just X that's either frozen or in a really deep
thrashing session, and you can get a shell prompt.
Root-to-root ssh is most convenient.
<LI>Get root on the afflicted box with su.
<LI>Try to kill off just the program that's freezing
things, and try to do it nicely.
<br>&nbsp;<br>
a. If you can get X apps to forward, or you can get
a VNC window open, you can bring up kpm (the KDE
process manager), which, with all the information
presented, allows you to pinpoint just the app to
kill with a right-click. Try several times to get it
to go away, starting with Hangup, then Terminate,
then Kill. The more of a chance you give the program
to clean up its exit, the less garbage you'll leave
lying around in the system.
<br>&nbsp;<br>
b. If you know the name of the program that has
gotten hung, and only one instance of it is running,
use killall. Let's assume for example that it's
netscape:
<br>&nbsp;<br>
<tt># killall -HUP netscape
<br># killall -TERM netscape
<br># killall -KILL netscape</tt>
<br>&nbsp;<br>
Killall does just that, kills off every instance of
a program that it finds. That's appropriate for
netscape, since it has a session-manager core which
is usually the part that's locked up. If you've got
a dozen xterms open, and ytree running in half of
them, though, killing off every ytree might not be
what you want; often, it's the helper-app that ytree
launched that's frozen up (lynx, for instance) and
you can killall that.
<br>&nbsp;<br>
c. Use top and other shell tools to zero in on which
process to kill, then use kill.
(Here I don't have that much experience: when I need
to use top and kill, it's on a firewall without X,
where all the running processes fit in an xterm/ssh
window, so it's simple to fish out the pid to kill.)
<LI>If it won't kill, or you can't figure out who to
kill, or things just seem hosed at the X level, as
long as you can get root on a shell command-line,
you can tell it:
<br>&nbsp;<br>
<tt># init 3;init 5</tt>
<br>&nbsp;<br>
...and that'll do what ctrl-alt-bs would do, restart
X to a graphic login. Your underlying filesystem
will have cores and DEADJOEs left lying around from
the X-level programs that had to abort, but you
won't have to fsck everything on a dirty boot.
<LI>If you think you might have stuck ports and locks from
the killed X-level processes, and the machine
doesn't have duties that would prevent it, or if X
won't come back up, you can do a clean reboot to put
things back in order, probably in less time than
it'd take to find and free the stuck resources...
<br>&nbsp;<br>
<tt># shutdown -r now</tt>
<br>&nbsp;<br>
That'll take down the X level, giving the X programs
a chance to clean up after themselves, then the rest
of the machine, and your filesystem will be
unmounted and rebooted cleanly.
</ol></blockQuote>
<BLOCKQUOTE>
Bottom line: if you can shell or VNC into the frozen
machine, there are things you can do to avoid losing
data in the innocent processes you're running in X
or corrupting your filesystem. You can even do some
of these things from Windows if you have the right
tools (telnet, ssh, PuTTY, VNC), as long as you have
two or more machines on the same network.
</BLOCKQUOTE>
<BLOCKQUOTE>
How much of this you think might be appropriate to a
newbie-help, I don't know, but that's my experience,
anyway
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<!-- end 13 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.14"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Two sound cards</FONT></H3>
Wed, 5 Feb 2003 11:52:43 +0100
<BR>Dean Buhrmann (<a href="mailto:linux-questions-only@ssc.com?cc=d.buhrmann@chello.nl&subject=%20Re%3A%20%5BLG%2088%5D%202c%20Tips%20%2314">d.buhrmann from chello.nl</a>)
<blockquote><font color="#000066">In reference to:
<a href="http://www.linuxgazette.com/issue87/lg_tips.html#tips.1">Issue 87, 2c Tips #1</a>
-- Heather</font></blockquote>
<P>
Hello,
</P>
<P>
Great how you tackled this problem. I have a simple Sounblaster 16 card.
This card (with this chipset) appeared to be multichannel.
</P>
<P>
I play online games on the internet (Tribes2) and we use for communication a
voice communication program (Teamspeak2). I also want to hear the sound of
the game. Teamspeak2 is able to use a different channel (dsp0/dsp1).
</P>
<P>
So i adress the gamesound to dev/dsp1 and the voice communication to
<TT>/dev/dsp0.</TT> I couldn't get it working with alsa drivers, but others with
different soundcards can. So i used the OSS driver. It works great with only
one soundcard.
</P>
<P>
If a program only wants to adress the default <TT>/dev/dsp</TT> (dsp0) and you want to
let it use <TT>/dev/dsp1</TT> you can change the link <TT>/dev/dsp</TT> --&gt; <TT>/dev/dsp1</TT>
</P>
<P>
More information on <A HREF="http://www.teamspeak.org"
>http://www.teamspeak.org</A>
</P>
<P>
Linux is a very stable platform for games and there is now a (free)
voicecommunication program too.
</P>
<!-- end 14 -->
<!-- *** BEGIN copyright *** -->
<hr>
<CENTER><SMALL><STRONG>
<h5>This page edited and maintained by the Editors of <I>Linux Gazette</I><br>HTML script maintained by <A HREF="mailto:star@starshine.org">Heather Stern</a> of Starshine Technical Services, <A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
<br>Copyright &copy; 2003
<br>Copying license <A HREF="http://www.linuxgazette.com/copying.html">http://www.linuxgazette.com/copying.html</A>
<BR>Published in Issue 88 of <i>Linux Gazette</i>, March 2003</H5>
</STRONG></SMALL></CENTER>
<!-- *** END copyright *** -->
<HR>
<!--startcut ==========================================================-->
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_mail.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue88/lg_tips.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../lg_faq.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_answer.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
<!-- *** END navbar *** -->
</CENTER>
</BODY></HTML>
<!--endcut ============================================================-->