File: lg_tips.html

package info (click to toggle)
lg-issue78 2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,112 kB
  • ctags: 238
  • sloc: sh: 129; makefile: 68
file content (828 lines) | stat: -rw-r--r-- 33,097 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.4F.r">
<TITLE>More 2 Cent Tips & Tricks LG #78</TITLE></HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
	LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P> <hr>
<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/issue78/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>
</p>
<P> <hr> <P>
<!-- QUICK TIPS SECTION ================================  -->
<!--  endcut ======================================================= -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.jpg">
More 2&cent; Tips!</A></H1> <BR>
<!-- BEGIN tips -->

Send Linux Tips and Tricks to <A HREF="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</A></center>
</center>
<UL>
<!-- index_text begins -->
<li><A HREF="#tips/1"
	><strong>Tweaking the wily interface</strong></a>
<li><A HREF="#tips/2"
	><strong>Clipping URLs</strong></a>
<li><A HREF="#tips/3"
	><strong>w3m to access CUPS configuration utility</strong></a>
<li><A HREF="#tips/4"
	><strong>Imagem linux_logo.h na Inicializacao do linux</strong></a>
<li><A HREF="#tips/5"
	><strong>partial answer to euro-symbol question</strong></a>
<li><A HREF="#tips/6"
	><strong>PPP</strong></a>
<li><A HREF="#tips/7"
	><strong>Mouse control in X</strong></a>
<li><A HREF="#tips/8"
	><strong>Re LG 77: More on NET4</strong></a>
<li><A HREF="#tips/9"
	><strong>partition overlap = bad juju</strong></a>
<li><A HREF="#tips/10"
	><strong>Re LG 77, wanted #1: private email</strong></a>
<li><A HREF="#tips/11"
	><strong>RPMs</strong></a>
<li><A HREF="#tips/12"
	><strong>Re LG 77, wanted #5: serial programming</strong></a>: toys.
<li><A HREF="#tips/13"
	><strong>Re LG 77, wanted #5: serial programming</strong></a>: a guide.
<li><A HREF="#tips/14"
	><strong>subsystem sftp</strong></a>
<li><A HREF="#tips/15"
	><strong>some email related problems</strong></a>
<li><A HREF="#tips/16"
	><strong>Linux Red Hat 6.2 Unistallation</strong></a>
<li><A HREF="#tips/17"
	><strong>Make sure sshd is "always" there for you</strong></a>
<li><A HREF="#tips/18"
	><strong>LJWNN tech tips</strong></a>
	<ul>
<li>Python recursion limit
<li>Ssh2 client to ssh1 server
<li>Making executables smaller
<li>Headphone volume control
<li><A HREF="http://noframes.linuxjournal.com/subscribe/lja-sub.html"
		>subscribe</a> to <I>Linux Journal's</I> Weekly News Notes</A>
	</ul>
<!-- 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">Tweaking the wily interface</FONT></H3>
Thu, 11 Apr 2002 00:39:48 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%231%20accessibility">The Answer Gang</a>)

<P>
Well, I found a solution - but that solution is part of a package that's
interesting for more reasons than one. AccessControl, a package of useful
tweaks designed to help folks with disabilities, had what I needed and
more, along with a control panel that pulled it all together (of course,
the individual utilities could still be used as stand-alone programs.) It's
available at &lt;<A HREF="http://cmos-eng.rehab.uiuc.edu/accessx/"
	>http://cmos-eng.rehab.uiuc.edu/accessx/</A>&gt;.
</P>
<P>
Interestingly enough, Dan Linder (the author) says that a similar panel has
been incorporated into X11R6.6 - a Very Good Thing, in my opinion. However,
for those of us who'd like (or need) a bit more control over our keyboards,
mice, display, etc. and are not willing to chase the bleeding edge, this
package can be a useful tool in the sometimes confusing "battle of the
interfaces".
</P>

<!-- 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">Clipping URLs</FONT></H3>
Mon, 8 Apr 2002 13:02:20 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%232%20URLs">The Answer Gang</a>)

<P>
After going back to my tried-and-true "icewm" (KDE was just <EM>too</EM> bloated
for my 366MHz/64MB laptop), I gave a bit of thought to "URL clipping",
which - if not over-automated - could be a handy feature indeed. Then, I
remembered the "xclip" utility.
</P>
<p align="center">See attached <tt><a href="misc/tips/clipurl.bash.txt">clipurl.bash.txt</a></tt></p>
<P>
All that was left was tying "clipurl" to a key sequence in "icewm". To do
that, I simply added the following line to my "~/.icewm/keys" file:
</P>

<blockquote><pre>key "Alt+Ctrl+u" clipurl
</pre></blockquote>
<P>
Now, when I select a URL and want to launch it, I press "Alt-Ctrl-u", and -
presto! A new Netscape window pops up (if Netscape is already running, it
spawns a new one). It also works for files in your home directory, or
"clips" that contain the entire path as well as the filename.
</P>
<P>
One of these days, I might write a little "chooser" for "ftp://", etc.
URIs... but so far, it hasn't been a problem.
</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">w3m to access CUPS configuration utility</FONT></H3>
Thu, 18 Apr 2002 00:34:16 -0700
<BR>Steven R. Robertson (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%233%20CUPS%20via%20w3m">srobert from anv.net</a>)

<P>
My tip concerns the CUPS configuration utility that is accessed through the
webbrowser at <A HREF="http://localhost:631/"
	>http://localhost:631/</a>
</P>
<P>
My default browser, galeon, takes awhile to start on my machine. If all I
want to do is run the CUPS interface to change a printer parameter, then it's
much quicker to call it up with the w3m webbrowser in an xterm. Though text
based, w3m even supports inline images. I put a "printer" button on my gnome
panel that launches the following command when pressed:
</P>

<blockquote><pre>"xterm -title CUPS -bg black -fg white -geometry 110x46+240+50  -fn 7x14 -e w3m http://localhost:631/printers"
</pre></blockquote>
<P>
Steve Robertson
</P>

<!-- 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">Imagem linux_logo.h na Inicializacao do linux</FONT></H3>
Wed, 17 Apr 2002 10:40:44 +0100
<BR>Heather Stern (<a href="mailto:linux-questions-only@ssc.com?cc=alfredogn@bol.com.br&cc=editor@gazetadolinux.com&subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%234"><em>LG</em> Technical Editor</a>)
<BR>Translated by Pedro Medas (editor from gazetadolinux.com) 
<br>Question from Alfredo Guimaraes Neto (alfredogn from bol.com.br)

<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I'm the editor of the '<em>Gazeta do Linux</em>', the portuguese version 
of <em>Linux Gazette</em>. 
We received the attached email with a question for you from
Alfredo Guimaraes Neto. 
</STRONG></P>
<P><STRONG>
Cheers,
Pedro Medas
</STRONG></P>
<P>
Ola,
<br>Gostaria de saber se voces teem um tutorial de como mudar a imagem de
inicializacao do linux, aquele pinguinzinho com um copo de cerveja, pois
tentei varias vezes e estou com dificuldades, quando mando compilar o
kernel, da sempre erro nesse arquivo.
</P>
<P>
Grato,
Alfredo
</P>
<p><strong>
Hi,
</STRONG></P>
<P><STRONG>
I would like to know if you have a HOWTO to change the boot image of
linux, that penguin with a beer cup, I tried several times and I'm
having difficulties, when I try to compile the kernel, it reports always
the same error.
</STRONG></P>
<P><STRONG>
Greetings,
<br>Alfredo
</STRONG></P>
<HR width="10%" align="center"><P><em>
Thank you Pedro.  I have an answer for him.  If you would be kind enough
to translate it back I think he'd appreciate it. -- Heather
</em></P>

<p><font color="#000066">Hi Heather,
<br>Thanks for the answer to the 'Two Centavos Tip'.
I will translate it for him.
</font></p>
<p><font color="#000066">If you need any more info or help feel free to say so.
</font></p>
<p><font color="#000066">bests,
<br>Pedro
</font></p>
<blockquote>
Not precisely a HOWTO, but actually useful instructions, are at the Linux
Kernel Logo Patch Project:
<A HREF="http://www.arnor.net/linuxlogo/download.html"
	>http://www.arnor.net/linuxlogo/download.html</A>
</blockquote>
<blockquote>
Apparently you are not the only one in the world who is inclined to change
the boot logo, but finds it hard to figure out where you would tweak the
kernel code to use your own.  So these people have a patch that makes it
easy for everybody, not just kernel-hackers, to put in a new image.
</blockquote>
<blockquote>
I think they're looking for help on getting the non-intel platform logos
right.
</blockquote>
<blockquote>
For my own part, I like it, I think I'll be using it soon myself!
</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">partial answer to euro-symbol question</FONT></H3>
Mon, 1 Apr 2002 15:38:48 +0200 (MEST)
<BR>rene.leeuwen (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%235">rene from wxs.nl</a>)

<P>
Hi Mailgang,
</P>
<P>
Concerning the question of Donal Rogers (rogers from clubi.ie) in the
Mailbag of LG76 I found the following in:
<A HREF="http://users.pandora.be/sim/euro/112/kde/kbdandbdf.html"
	>http://users.pandora.be/sim/euro/112/kde/kbdandbdf.html</A>
<A HREF="http://www.interface-ag.com/%7Ejsf/europunx_en.html"
	>http://www.interface-ag.com/%7Ejsf/europunx_en.html</A>
</P>
<P>
So: you may start a new xterminal screen with the Euro-enabled font:
</P>

<blockquote><pre>xterm -fn -misc-fixed-medium-r-normal--13-120-75-75-C-70-ISO8859-15 &amp;
</pre></blockquote>
<P>
In this terminal you can use the Euro-symbol (eg. echo -e "\244"). The
question I cannot answer is: how do you force all of your applications to
use this font (if indeed that is the best solution). But I hope it gives
you something to start working with.
</P>
<P>
--
groeten,
<br>Rene van Leeuwen
</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">PPP</FONT></H3>
Sun, 7 Apr 2002 23:40:06 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%236">The Answer Gang</a>)
<BR>Question from cka74 (cka74 from yahoo.com)

<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
Please kindly advise me on PPP.
</STRONG></P>
<P><STRONG>
I'm using RedHat 7.2, somehow I having difficulties in getting the modem
setup and recognized.
</STRONG></P>
<P><STRONG>
I compiled the new kernel with PPP add-on: Network Device Support -&gt; (Y)
PPP Support -&gt; (Y) PPP Support for async serial ports
</STRONG></P>
<P><STRONG>
1. My external modem was connected to com1, so when I echo &gt; <TT>/dev/ttyS0</TT>,
my TR on modem get lighted.
</STRONG></P>
<P><STRONG>
2. I set; setserial -g <TT>/dev/ttyS0</TT>, it shows: <TT>/dev/ttyS0</TT>, UART: 16550A,
Port: 0x03f8, IRQ: 4
</STRONG></P>
<blockquote>
OK - those numbers look fine, and the above test says that you're
definitely on the right port.
</blockquote>
<P><STRONG>
I ensured that IRQ 4 is not used by other program by cat <TT>/proc/interrupts</TT>
</STRONG></P>
<P><STRONG>
3. When I performed; wvdialconf <TT>/etc/wvdial.conf</TT>, the results show ttyS0
modem was not found.
</STRONG></P>
<P><STRONG>
I tested out on 2 external modems, same problem arise. but of course my
both modems (one of them was MERZ 566) were in working condition.
</STRONG></P>
<P><STRONG>
Where did I went wrong?
</STRONG></P>
<blockquote>
As far I can tell, you didn't; "wvdialconf" does not guarantee to detect
all modems. Try using "minicom" to test it: do the serial port setup (it's
pretty self-explanatory) and see if the modem will respond to simple
commands like "AT" (it should come back with "OK"), "AT&amp;V" (show the
profiles), "ATDT5555555" (dial those numbers), etc. If it responds, just
use those values in your "<TT>/etc/wvdial.conf</TT>", and everything will be fine.
</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">Mouse control in X</FONT></H3>
Tue, 9 Apr 2002 03:40:43 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%237">The Answer Gang</a>)


<blockquote><pre>xmodmap -e "pointer = 1 3 2 4 5"
</pre></blockquote>
<P>
If that works for you, you can place the expression (the part between the
double quotes) in a ".Xmodmap" file in your home directory - or launch it
directly by specifying the entire command line in your "~/.xinitrc" or
"~/.xsession" file, depending on how you start your X session.
</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">More on NET4 (from LG 77, 2 cent tips)</FONT></H3>
Wed, 3 Apr 2002 07:07:38 -0600
<BR>Brian Finn (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%238">brian from nacmsw.com</a>)
<BR>replying to Chris Gianakopoulos' previous Tip

<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
In the 2 cent tips from LG 77, Chris Gianakopoulos writes:
</STRONG></P>
<P><STRONG><BLOCKQuote>
"It is my belief that Net4, although it may be influenced by other
protocol suites, was written from scratch (other han being derived
from NET3.)"
</BLOCKQuote></STRONG></P>
<P><STRONG>
I read recently in Linus Torvalds' "Just for Fun" (and again in
in Glyn Moody's "Rebel Code") that the TCP/IP implementation in
Linux was written from scratch in order to avoid being hassled by
AT&amp;T, who owned UNIX at the time. I suppose AT&amp;T was using their
legion of lawyers to go after other UNIX implementors for royalties.
</STRONG></P>
<P><STRONG>
Thanks,
<br>Brian Finn
</STRONG></P>
<blockquote>
Hi Brian,
<br>That makes sense.  I've read somewhere that the book, "The Design of the Unix
Operating System" by Maurice Bach, influenced Linus Torvalds with respect
to his Linux stuff.  The book described the algorithms of System V Release
2.  Of course, other stuff influenced him also.  Thanks for that info,
Brian.
</blockquote>
<blockquote>
Regards,
<br>Chris G.
</blockquote>

<!-- 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">partition overlap = bad juju</FONT></H3>
Fri, 12 Apr 2002 01:30:51 -0400
<BR>Frank Brand (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%239">fbrand from uq.net.au</a>)
<BR>replying to the Gang's previous Thread

<P>
Hi there Ben,
</P>
<P>
I am responding to you as you were first on the list of answer people:-
</P>
<P>
I refer to "ntfs clobbered my ext3fs!!" in Linux Gazette 77 in which the
questioner asks about a partition overlap.
</P>
<P>
I have encountered this twice. Both times it has been with a mixed
Windows/Linux drive and using automated partitioning (ie Disk Druid or
DiskDrake). Your questioner has exactly this scenario.
</P>
<P>
Now, I never use automated partitioning and I partition the drive using
parted before I start the installation. I use primary partitions where
possible and avoid mixed Windows/Linux disk setup.
</P>
<P>
I have experienced the overlapping partition syndrome and have found it very
difficult to overcome. I have not been able to sort it out using fdisk as
either Linux or Windows fdisk can not do anything to such corrupted
partitions. I have only been able to recover using disk manager software and
this was a destructive recovery.
</P>
<P>
Regards
<br>Frank Brand
</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">Re: [LG 77] help wanted #1 private email</FONT></H3>
Wed, 3 Apr 2002 09:00:37 +0100
<BR>Neil Youngman (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2310">n.youngman from ntlworld.com</a>)

<P><STRONG>
Hi there
</STRONG></P>
<P><STRONG>
I would like to know how to set up my email on my home network with win98
outlook express and Linux.
</STRONG></P>
<P><STRONG>
I would like to set it up so that I can email anybody else in the house on
the network and email via the internet when needed.
</STRONG></P>
<P><STRONG>
Thank You
<br>Cheryl
</STRONG></P>
<blockquote>
There are a couple of linuxWorld articles describing Nicholas Petreley's
setup, which may be suitable for you requirements.
</blockquote>
<blockquote>
<A HREF="http://www.linuxworld.com/site-stories/2002/0318.ldap1.html"
	>http://www.linuxworld.com/site-stories/2002/0318.ldap1.html</A>
<br><A HREF="http://www.linuxworld.com/site-stories/2002/0401.ldap2.html"
	>http://www.linuxworld.com/site-stories/2002/0401.ldap2.html</A>
</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">RPMs</FONT></H3>
Thu, 25 Apr 2002 07:06:04 +0100
<BR>Neil Youngman (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2311">n.youngman from ntlworld.com</a>)
<BR>Question from Lord of Wolves (Lord0Wolves from aol.com)


<P><STRONG>
Simple question: What is a ".RPM" and how do I use them. I assume they
are a type of compression file, but what do I need to use them.
</STRONG></P>
<blockquote>
RPMs are RedHat Package manager files. They contain the necessary files for a
package, including setup scripts to be run pre- and post-install. They also
have a list of dependencies, so they can determine whether you have installed
the other packages on which this one depends.
</blockquote>
<blockquote>
Simple usage
</blockquote>

<blockquote><pre>rpm -Uvh pkg.rpm	# install package from pkg.rpm
rpm -Fvh pkg.rpm	# freshen (update) package from pkg.rpm
</pre></blockquote>
<blockquote>
In both the above examples v is verbose and h is using a hash mark progress
indicator.
</blockquote>
<blockquote><DL><DT>
For examples of other usages see
<DD><A HREF="http://www.getlinuxonline.com/omp/distro/RedHat/rpm.htm"
	>http://www.getlinuxonline.com/omp/distro/RedHat/rpm.htm</A>
</DL></blockquote>
<blockquote>
Neil Youngman
<br>P.S. If you're asking questions of this list, please turn off MIME and HTML.
</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">Re: [LG 77] help wanted #5 serial programming</FONT></H3>
Wed, 03 Apr 2002 22:54:48 -0500
<BR>Gary J. Wozniak (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2312">gjwoz from 110.net</a>)

<P>
Hi,
</P>
<P>
Check out www.linuxtoys.com.  This site has some great examples  of how
to read/write form serial ports in linux.
</P>
<P>
The
</P>
<P>
Radio Shack DVM with RS-232 &lt;<A HREF="http://www.linuxtoys.com/dvm/dvm.html&gt"
	>http://www.linuxtoys.com/dvm/dvm.html&gt</A>;
</P>
<P>
article was of particular use for me.
</P>
<P>
Good luck,
<br>G Wozniak
</P>

<!-- sig -->


<!-- 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">Re: [LG 77] help wanted #5 serial programming</FONT></H3>
Wed, 10 Apr 2002 14:35:24 +0200
<BR>Matthias Prinke (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2313">matthias.prinke from sci-worx.com</a>)

<P>
Hi,
</P>
<P>
check out the Serial Programming Guide for POSIX Compliant Operating Systems
at <A HREF="http://www.easysw.com/~mike/serial"
	>http://www.easysw.com/~mike/serial</A>
You can find the answer in chapter 4.
</P>
<P>
Best regards,
<br>Matthias
</P>

<!-- 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">subsystem sftp</FONT></H3>
Mon, 8 Apr 2002 18:27:59 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2314">The Answer Gang</a>)
<BR>QUestion from Francoise Guilbault (guilbaultf from em.agr.ca)


<P><STRONG>
Why when starting SSH client does a subset of sftp open up in the
background by default?
</STRONG></P>
<blockquote>
Take a look at the last line of your "<TT>/etc/ssh/sshd_config</TT>":
</blockquote>

<blockquote><pre>Subsystem	sftp	/usr/lib/sftp-server
</pre></blockquote>
<blockquote>
Also, from "man sshd":
</blockquote>

<blockquote><pre>Subsystem
   Configures an external subsystem (e.g., file transfer daemon).
   Arguments should be a subsystem name and a command to execute
   upon subsystem request.  The command sftp-server(8) implements
   the &quot;sftp&quot; file transfer subsystem.  By default no subsystems
   are defined.  Note that this option applies to protocol version 2
   only.
</pre></blockquote>
<blockquote>
I find the next-to-the-last sentence very interesting... on Solaris, for
example, it's defined but commented out. On <A HREF="http://www.debian.org/">Debian</A> Linux, it's defined
<EM>and</EM> enabled by default. I suppose you could turn it off by commenting out
the line, but I'd make absolutely certain that I didn't have any need for
it first.
</blockquote>

<!-- end 14 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="tips/15"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">some email related problems</FONT></H3>
Wed, 3 Apr 2002 18:40:17 +0100
<BR>Neil Youngman (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2315">n.youngman from ntlworld.com</a>)
<BR>Question from amitava maity (amaity from vsnl.net)

<P><STRONG>
Hello everybody,
</STRONG></P>
<P><STRONG>
I have emails with a MS-TNEF file and a humor.mp3.scr file as attachments
waiting in my inbox. How do I view/listen to these attachments?
</STRONG></P>
<blockquote>
You really don't want to open humor.mp3.scr. That's the Badtrans virus!
Fortunately, as a linux user you're immune 
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)" 
		height="24" width="20" align="middle">
</blockquote>
<blockquote>
See <A HREF="http://vil.nai.com/vil/content/v_99069.htm"
	>http://vil.nai.com/vil/content/v_99069.htm</A> for more info.
</blockquote>
<blockquote>
Neil Youngman
</blockquote>

<blockquote><font color="#000066">As a general point, anything which has two whole three letter extensions
(.jpg.pdf, .mp3.scr, and so on) especially when the second is one that
may be reasonable to auto-view, you should be immediately suspicious that
it's probably a virus.  The same goes for MIME types which represent
auto-view type files but which do not match the extensions given on the
attachment (e.g. audio/wav but the attachment says .jpg).
<br>However, there are 4 or 5 different small utilities that will deal
with a true "TNEF" attachment, easily found at <a href="http://freshmeat.net/"
>freshmeat.net</a> -- Heather</font></blockquote>

<!-- end 15 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="tips/16"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux Red Hat 6.2 Unistallation</FONT></H3>
Fri, 12 Apr 2002 01:46:11 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2316">The Answer Gang</a>)
<BR>Question from Alok Garg (aalugarg from yahoo.com)

<P>
On Fri, Apr 12, 2002 at 06:02:39AM +0100, Alok Garg wrote:
</P>
<P><STRONG>
Hello Sir,
<br>I have 2 HDD of 20 Gig each, on the Primary drive I
have WinNT and on the secondary I have Linux RH 6.2 I
wanted to uninstall Linux from the system without
effecting my data on Win NT. I wanted to move my
secondary drive to other machine.
</STRONG></P>
<P>
I'm sorry, but that's impossible.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
 Removing Linux from your machine would
utterly destroy (beyond any hope of recovery) the data on <EM>every</EM> WinNT
machine in a 60-mile radius of where you are. Note that everybody will know
exactly who is responsible: you'll be left in the center of a large charred
circle. Even if you removed the HD with Linux and carried it off, as soon
as you erased it, your NT would <EM>know</EM>.
</P>
<P>
It all happens magically, really.
</P>
<P>
(HINT: There's no magic. NT may be evil, but it does <EM>not</EM> watch your Linux
drive and explode if anything changes.)
</P>
<P>
See &lt;<A HREF="../tag/kb.html#uninstall"
	>http://www.linuxgazette.com/tag/kb.html#uninstall</A>&gt; for tips on
uninstalling Linux.
</P>

<!-- end 16 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="tips/17"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Make sure sshd is "always" there for you</FONT></H3>
Mon, 29 Apr 2002 19:16:33 -0700
<BR>James T. Dennis (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2078%5D%202c%20Tips%20%2317">The Answer Gang</a>)

<P>
Make sure sshd is "always" there for you.
</P>
<P>
Using OpenSSH (circa 2.95 or later?) you can configure the sshd to
run directly from your <TT>/etc/inittab</TT> under a "respawn" directive by
adding the -D (don't detach) option like so:
</P>

<blockquote><pre># excerpt from /etc/inittab, near end
ss:12345:respawn:/usr/sbin/sshd -D
</pre></blockquote>
<P>
This will ensure that an ssh daemon process is always kept running
even if the system experiences extreme conditions (such as OOM,
out of memory, overcommitted memory) or a careless sysadmin's
killall which kills the running daemon.  So long as init can function
it will keep an sshd running (just as it does with your existing
getty processes).
</P>
<P>
This is particularly handy for systems that are co-located and which
don't have (reliable) serial port console connections.  It just might
save that drive across town or that frustrating, time consuming and
embarassing call to the colo staff, etc.
</P>

<!-- end 17 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="tips/18"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux Journal Weekly News Notes tech tips</FONT></H3>

<h4 align="center"><br>Python recursion limit
</h4>
<P>
If Python's built-in recursion limit keeps your incredibly cool
recursive function from working, you can temporarily set a different
recursion limit with the sys module.
</P>

<blockquote><pre>oldlimit = sys.getrecursionlimit()
sys.setrecursionlimit(len(big_hairy_list))
incredibly_cool_recursive_function(big_hairy_list)
sys.setrecursionlimit(oldlimit)
</pre></blockquote>
<HR width="10%" align="center">
<h4 align="center"><br>Ssh2 client to ssh1 server
</h4>
<P>
If you have an account on a system where only your ssh1 key is
installed in your authorized_keys file, you can force your ssh
connection to use version 1 of the protocol with ssh -1 example.com.
</P>
<P>
Then you can use scp with the -1 option to transfer your ssh2 key
there, so that you can use version 2 to connect from now on. Paranoid
sysadmins are turning off version 1 access, so you should be using
version 2 everywhere by now to be on the safe side.
</P>
<HR width="10%" align="center">
<h4 align="center"><br>Making executables smaller
</h4>
<P>
To make executables smaller, try running strip(1) with the options -R
Comment -R Note. This removes "comment" and "note" sections that the
compiler and linker may have added during the build process.
</P>
<P>
(source: MontaVista Software's MontaVista Zone customer support site.)
</P>
<HR width="10%" align="center">
<h4 align="center"><br>Headphone volume control
</h4>
<P>
If you're running your headphones straight out of your sound card's
"Line out" jack, you might notice there's no volume control. Instead
of trashing your ears or firing up a audio mixer every time you need
to set the volume, just bind the commands
</P>

<blockquote><code><font color="#000033"><br>   aumix -v+4 # crank up the volume!
</font></code></blockquote>
<P>
and
</P>

<blockquote><code><font color="#000033"><br>   aumix -v-4 # turn that crap down!
</font></code></blockquote>
<P>
to two spare function keys. (In Sawfish, this is under the "Bindings"
menu in the sawfish-ui program.) Presto--free and easy volume control
straight from the keyboard.
</P>
<P>
There are also nifty little volume control applets for the <A HREF="http://www.kde.org/">KDE</A> and
<A HREF="http://www.gnome.org/">GNOME</A> taskbars, but why spend pixels on a common task when you have
all those keys just sitting there?
</P>

<!-- end 18 -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
	of <I>Linux Gazette</I> 
<a href="http://www.linuxgazette.com/copying.html"
	>Copyright &copy;</a> 2002
<BR>Published in issue 78 of <I>Linux Gazette</I> May 2002</H5>
<H6 ALIGN="center">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> 
</H6>
<!-- *** END copyright *** -->
<!--startcut ======================================================= -->
<P>
<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/issue78/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>
</p>

</BODY></HTML>
<!--endcut ========================================================= -->