File: lg_tips69.html

package info (click to toggle)
lg-issue69 2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,996 kB
  • ctags: 141
  • sloc: perl: 131; sh: 59; sql: 49; makefile: 45
file content (935 lines) | stat: -rw-r--r-- 33,712 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
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3E.y">
<TITLE>More 2 Cent Tips & Tricks LG #69</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_answer69.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="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="collinge.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>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P>
</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:gazette@ssc.com">gazette@ssc.com</A></center>
<UL>
<!-- index_text begins -->
<li>Subscribe to Tech tips from
	<A HREF="http://noframes.linuxjournal.com/subscribe/lja-sub.html"
		><I>Linux Journal's</I> Weekly News Notes</A>
</ul>
<ul>
<li><A HREF="#tips/2"
	><strong>bin/cue - iso files</strong></a>
<li><A HREF="#tips/3"
	><strong>Segmentation Faults -- At odd times.</strong></a>
<li><A HREF="#tips/4"
	><strong>editing shell scripts</strong></a>
<li><A HREF="#tips/5"
	><strong>2.2.20 kernel?</strong></a>
<li><A HREF="#tips/6"
	><strong>Linux on Sun Sparc??</strong></a>
<li><A HREF="#tips/7"
	><strong>Routing Mail</strong></a>
<li><A HREF="#tips/8"
	><strong>Command to read CMOS from running Linux system</strong></a>
<li><A HREF="#tips/9"
	><strong>linux ftp problem</strong></a>
<li><A HREF="#tips/10"
	><strong>Self extracting shell script</strong></a>
<li><A HREF="#tips/11"
	><strong>Cannot Format Network Drive</strong></a>
<li><A HREF="#tips/13"
	><strong>Wu-FTP and Linux Newbie</strong></a>
	A source of confusion.
<li><A HREF="#tips/14"
	><strong>Root Password</strong></a>
<li><A HREF="#tips/15"
	><strong>RH7.1 switch to KDE login as default</strong></a>
<li><A HREF="#tips/16"
	><strong>3d linux</strong></a>
<!-- index_text ends -->
</UL>
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="tips/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">bin/cue - iso files</FONT></H3>
Thu, 21 Jun 2001 12:46:24 +0000
<BR>Andrew Higgs (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P>
Question From: "M.Mahtaney" &lt;mahtaney from pobox.com&gt;
</P>
<P><STRONG><BLOCKQuote>
hi james
</BLOCKQuote></STRONG></P>
<P><STRONG>
i came across your website while looking for some help on file
compression/conversion
</STRONG></P>
<P><STRONG>
i downloaded an archive in winrar format - which then decrompressed to bin/cue
files
</STRONG></P>
<P><STRONG>
i'm not sure what to do with that now - i've converted it to an iso file, but
i need to basically open it up to gain access to the application that was
downloaded.
</STRONG></P>
<P><STRONG>
i'm a little lost on how to do that - can you help?
</STRONG></P>
<P><STRONG>
thanks,
mgm.
</STRONG></P>
<P>
Hi MGM,
</P>
<P>
Have you tried to mount the iso image and copy the files out? There maybe
another way but this worked for me.
</P>
<P><CODE>
mount -o loop -t is09660 file.iso /mnt
<br>ls /mnt
</CODE></P>
<P>
should then give a list of the files in the iso image.
</P>
<P>
Hope this helps.
</P>
<P>
Kind regards
Andrew Higgs
</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">Segmentation Faults -- At odd times.</FONT></H3>
Wed, 18 Jul 2001 15:03:33 -0700
<BR>Mike Orr (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P>
Question From: "Jon Coulter" &lt;jon from alverno.org&gt;
</P>
<P><STRONG>
I've recently upgraded the ram on my linux box in an attempt to wean some of
the memory problems that have been occurring
</STRONG></P>
<P>
What were the previous problems.  Just running out of memory?  Or other
things.
</P>
<P><STRONG>
, and now get "Segmentation
Fault"'s on almost every program about 80% of the time (if I keep trying and
keep trying to run the program, it eventually doesn't Segmentation Fault for
one time... sometimes then segmentation faulting later in its execution). My
question is: Is there anything I can do about this?!? But seriously, is
there any chance that a kernel upgrade would help fix this (my current
kernel is 2.4.2)? I just don't understand why a memory <EM>upgrade</EM> would cause
problems like this. I've run memtest86 test on the ram to ensure that it
wasn't corrupted at all.
</STRONG></P>
<P>
Frequent segfaults at random times usually indicate a hardware problem,
as you suspected.  A buggy kernel or libraries can throw segfaults left and
right too, but if you didn't install any software at the time the faults
started occurring, that rules that out.
</P>
<P>
Does <TT>/etc/lilo.conf</TT> have a "MEM=128M" number or something like that in it?
Some BIOSes require this attribute to be included, other's don't.  But if
it's specified, it must be correct.  Especially, it must not be larger
than the amount of RAM you have: otherwise it <EM>will</EM> segfault all over the
place and you'll be lucky to even get a login prompt.  Remember to run
lilo after changing lilo.conf.
</P>
<P>
Try taking out the memory and reseating it.  Also check the disks: are the
cables all tight and the partitions in order?  Since memory gets swapped to
disk if swap is enabled, it's possible for disk problems to masquerade as
memory problems.
</P>
<P>
If you put back your old memory, does the problem go away?  Or if you're
mixing old and new memory, what happens if you remove the old memory?
Are the two types of memory the same speed?  Hopefully the faster memory
will cycle down to the slower memory, but maybe the slower memory isn't
catching up.  What happens if you move each memory block to a different
socket?
</P>
<P>
I'm running 2.4.0.  There are always certain evil kernels that must be
avoided, but I don't remember any such warnings for the 2.4 kernels.
Whenever I upgrade, I ask around about the latest two stable kernels, and
use whichever one people say they've had better experiences with.
</P>
<P>
Good luck.  Random segfaults can be a very irritating thing.
</P>
<HR width="10%" align="center"><P>
More From:  Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

</P>
<P>
Take a look at the Sig 11 FAQ: &lt;<A HREF="http://www.bitwizard.nl/sig11/&gt"
	>http://www.bitwizard.nl/sig11/&gt</A>;.
</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">2c tip : editing shell scripts</FONT></H3>
Tue, 24 Jul 2001 09:24:02 -0400 (EDT)
<BR>Matt Willis (<a href="mailto:linux-questions-only@ssc.com">willis_matthew from yahoo.com</a>)

<P>
For shell scripts it's a common error to accidentally include a space
after the line-continuation character. This is interpreted as a
literal space with no continuation; probably not what you want. Since
spaces are invisible, it can also be a hard error to spot. If you use
emacs, you can flag such shell script errors using fontification. Add
this code to your ~/.emacs file:
</P>
<pre>
;;; This is a neat trick that makes bad shell script continuation
;;; marks, e.g. \ with trailing spaces, glow bright red:
(if (eq window-system 'x)
  (progn
    (set-face-background 'font-lock-warning-face "red")
    (set-face-foreground 'font-lock-warning-face "white")
    (font-lock-add-keywords 'sh-mode
      '(("\\\\[ \t]+$" . font-lock-warning-face)))
  )
)

</Pre>
<p>Matt Willis</P>
<HR width="10%" align="center"><P>
More From: Dan Wilder (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
</P>
<P>
And in vi,
</P>
<Pre>:set list</Pre>
<P>
reveals all trailing spaces, as well as any other normally
non-printing characters, such as those troublesome leading tabs
required in some lines of makefiles, and any mixture of tab-indented
lines with space-indented lines you might have introduced into Python
scripts.
</P>
<Pre>:set nolist</Pre>
<P>
nullifies the "list" setting.
</P>
<HR width="10%" align="center"><P>
More From: Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

</P>
<P>
Good tip, Matt! I'll add a bit to that: if you're using "vi", enter
</P>
<Pre>:set nu list</Pre>
<P>
in command mode to number all lines (useful when errors are reported),
show all tabs as "^I", and end-of-lines as "$". Extra spaces become
obvious.
</P>
<P>
In editors such as "mcedit", where selected lines are highlighted,
start at the top of the document, begin the selection, and arrow (or
page) down. The highlight will show any extra spaces at line-ends.
</P>

<!-- 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">2.2.20 kernel?</FONT></H3>
Thu, 19 Jul 2001 18:34:21 -0400
<BR>Heather Stern (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<p>
Question From: Ben Okopnik
</p>

<P>
Where can I get one? I've looked at kernel.org, and they only go up to
.19...
</P>
<P>
Ben
</P>
<P><STRONG>
Glad you asked, Ben, now I have an excuse to cough up a 2c Tip.
</STRONG></P>
<P>
Cool. Thanks!
</P>
<P><STRONG>
The two places to look for "the rest of it" if you really want a bleeding
edge kernel are:
</STRONG></P>
<P><STRONG><dl>
<dt>For Linus' tree -
<dd> <A HREF="http://www.kernel.org/pub/linux/kernel/testing"
	>http://www.kernel.org/pub/linux/kernel/testing</A>
</dl></STRONG></P>
<P>
Nope; just 2.4.x stuff.
</P>
<P><STRONG><dl>
<dt>For Alan's tree -
<dd> <A HREF="http://www.kernel.org/pub/linux/kernel/people/alan"
	>http://www.kernel.org/pub/linux/kernel/people/alan</A>
</dl></STRONG></P>
<P><STRONG>
Alan keeps subdirectories in there which should help you figure things
out.  In the moment I type this, his 2.4.6 patch is at ac5 and his
2.2.20pre is at 7.
</STRONG></P>
<blockquote><em>
As of press time, 2.4.7 patch is at ac3 and 2.2.20pre is at 8. -- Heather
</em></blockquote>
<P><STRONG>
These are of course patches that you apply to the standard source
after you unpack the tarball.
</STRONG></P>
<blockquote>
<em>
For a last tidbit, the web page at <A HREF="http://www.kernel.org/"
	>http://www.kernel.org</A> keeps track
of the current Linus tree, listing both the released version number
and the latest file in the <TT>/testing</TT> area.
</em>
</blockquote>

<!-- 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">Linux on Sun Sparc??</FONT></H3>
Thu, 26 Jul 2001 08:53:42 -0700 (PDT)
<BR>Heather Stern (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P>
Question From: Danie Robberts  &lt;DanieR from PQAfrica.co.za&gt;
</P>
<P><STRONG>
Is there a way to install this. I can see the Sparc64 architecture under
/usr/src/linux/arch
</STRONG></P>
<P><STRONG>
Booting from the slackware 8 cd does not work, and it seems as if
<A HREF="http://www.slackware.org/">Slackware</A>'s Web site is "unavailable"
</STRONG></P>
<P><STRONG>
Please, any pointers!
</STRONG></P>
<P><STRONG>
Cheers
Danie
</STRONG></P>
<P>
Sure.
</P>
<P>
The  <A HREF="http://www.lwn.net/">Linux Weekly News</A>  just wrote that Slackware is no longer supporting
their Sparc distro.  There's a sourceforge project to take over the code:
<A HREF="http://sourceforge.net/projects/splack"
	>http://sourceforge.net/projects/splack</A>
</P>
<P>
Entirely possible that some decent community interest would boost it nicely,
but if so, why'd Slackware have to let go of it... dunno...
</P>
<P>
Maybe you want to try another distro that builds for Sparc - RH's sparc build
isn't well regarded amongst a few non-Intel types I know locally... I think
in part because they get to Sparcs last.  But you've lots of choices anyway.
The search engines (keywords: sparc distribution) reveal that Mandrake and
<A HREF="http://www.suse.com/">SuSE</A> both have Sparc distros, Rock Linux (a distro that builds from sources
- <A HREF="http://www.rocklinux.org"
	>http://www.rocklinux.org</A>) builds successfully on it, and of course there's
my personal favorite, <A HREF="http://www.debian.org/">Debian</A>.
</P>
<P>
The Sparc-HOWTO adds <A HREF="http://www.caldera.com/">Caldera</A> OpenLinux and <A HREF="http://www.turbolinux.com/">TurboLinux</A> to the mix.  I know
that Caldera is really pushing to support the enterprise  but that points
to openlinux.org and appears to be an unhappy weblink - I only did a spot
check, but didn't see "Sparc" on Caldera's own pages.  One may safely
presume that someone who wants Caldera's style of enterprise level support
for Linux will be getting Sun maintenance contracts for their high end Sparcs,
right?
</P>
<P>
Anyways the reasons that Debian is my personal favorite in this regard are:
</p>
<ol>
<li>It's the only distro that I've tried on a Sparc
<li>It worked just as smoothly as on a PC
<li><tt>apt-get install</tt> &lt;package name here&gt;
</ol>
<P>
But you don't have to take my word for it 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle"> There's a bunch of folks at
<A HREF="http://www.ultralinux.org"
	>http://www.ultralinux.org</A>
</P>
<P>
who pay attention to how well things work on ultrasparcs, and they've
helpfully gathered a bunch of pointers into the arcvhives and subscribe
methods for the lists maintained by the major vendors in this regard.  So
check out what people who really use Sparcs have been saying about 'em!
Using your model number as a search key may narrow things down, too.
</P>

<!-- 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">Routing Mail</FONT></H3>
Thu, 19 Jul 2001 08:50:47 -0700
<BR>Dan Wilder (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P>
Question From: Danie Robberts (DanieR from PQAfrica.co.za)
</P>
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I am trying to set my environment up so that I can use Star Office on my
<A HREF="http://www.slackware.org/">Slackware</A> 8 Laptop, and send mail via our Exchange Servers.
The problem is that the IIS Department has only allowed my Suna Workstation
to Send mail to their List server. I think it is limited by IP @.
</STRONG></P>
<P><STRONG>
Is there a way to configure a type of mail routing agent, so that my sending
adress in S/O will be the IP@ of my Sun Workstation, and the receiving will
be the exchange server (At the moment I can only receive e-mail)
</STRONG></P>
<P><STRONG>
Here is the IP Setup:
</STRONG></P>

<pre><strong> List Server:	196.10.24.112
 Exchange 	196.10.24.33
 Laptop:		192.168.102.241
 Sun:		192.168.102.44
</strong></pre>

<P><STRONG>
Thanx
<br>
Danie
</STRONG></P>
<P>
Not directly, while your Sun workstation is online.  You'd have to give
your Linux workstation the Sun's IP number.  Two hosts with the same IP
on the same network is a recipe for trouble!
</P>
<P>
If you've full control of your Sun, you could arrange to use
it as your email relay host, for an indirect solution.
</P>
<P>
It looks like StarOffice can be configured to use two different
mail servers, one for outgoing, one for incoming.  Set the outgoing
server to the Sun, and the incoming to the exchange server.
Configure the MTA on the Sun (sendmail, I expect) to relay for
you, and you're all set.
</P>
<P>
To test the Sun,
</P>

<blockquote><pre>telnet sun 25
helo linux.hostname
mail from: &lt;you@your.domain&gt;
rcpt to: &lt;somebody@reasonable.domain&gt;
data
some data
.
quit
</pre></blockquote>
<P>
"linux.hostname" is the hostname of your linux system
"<A HREF="mailto:you@your.domain"
	>you@your.domain</A>" is your return email address
"<A HREF="mailto:somebody@reasonable.domain"
	>somebody@reasonable.domain</A>" is some reasonable recipient
</P>
<P>
If you don't get a refusal, and the email goes through, the
Sun is set up to relay.
</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">Command to read CMOS from running Linux system</FONT></H3>
Wed, 20 Jun 2001 09:01:11 +0000
<BR>Andrew Higgs (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P>
Question From: Paul Kellogg (pkellogg from avaya.com)
</P>
<P><STRONG>
To "The Answer Gang":
</STRONG></P>
<P><STRONG><BLOCKQuote>
I am looking for a program I can run on my Linux machine that will
display the CMOS settings and CPU information.  I would like to avoid
rebooting to display the information.  Have you heard of a program that will
work for this?  And if so, do you know where I can get it?  If not, do you
have some suggestions for where to start if I wanted to write such a program?
I am working with a RedHat 6.2 system on a intel platform.
</BLOCKQuote></STRONG></P>
<P><STRONG>
Thanks - Paul.
</STRONG></P>
<P>
Hi Paul,
</P>
<P>
Try `<TT>cat /proc/cpuinfo`</TT> for information regarding the CPU. I am not to sure
about the CMOS info. It depends what you are looking for?
</P>
<P>
Look at the files in <TT>/proc</TT> and see if you can find what you are looking for.
</P>
<P>
I hope this will help in some small way.
</P>
<P>
Kind regards
</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">linux ftp problem</FONT></H3>
Thu, 21 Jun 2001 12:18:42
<BR>Thomas Adam &lt;<A HREF="mailto:n6tadam@users.purbeck.dorset.sch.uk">The Weekend Mechanic</A>&gt; 

<P>
Question From: Brad Webster (webster_brad from hotmail.com)
</P>
<P><STRONG>
ok heres the deal, im having a heck of a time with the ftp client on my
linux server. im running red hat 6 and i can connect fine, but then it will
not accept the username  and password for any of the users. the worst part
is the same username and passwords will connect through telnet?
any suggestions would be very appriciated
</STRONG></P>
<P><STRONG>
bard webster
</STRONG></P>
<P>
Hello,
</P>
<P>
First off, I shall begin by saying, please in future send your e-mail in
plain-text format and NOT in HTML. Poor Heather will have a hell of a time
trying to extract the important information from the e-mail 
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)" 
		height="24" width="20" align="middle">
</P>
<blockquote><em>
It's easier than quoted printable, but, yeah, it's a pain. -- Heather
</em>
</blockquote>
<P>
So, to your problem. There are a number of things that you can check.
Firstly, when using FTP, do you make use of the hidden files ".netrc", in
each of your users home directory? In that file, you can store the ftp
machine, and the username and password of the user. Typically, it would look
like the following:
</P>

<blockquote><pre>machine ftp.server.sch.uk   login   usernametom  password xxxxxxx
</pre></blockquote>
<P>
The reason why your users can log in via telnet, is that telnet uses
different protocols. I would also suggest using a program such as "ssh",
which is more secure than telnet, but I digress.
</P>
<P>
Regards,
</P>
<P>
Thomas Adam
</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">Self extracting shell script</FONT></H3>
Sat, 7 Jul 2001 22:26:22 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<P>
Question From: Albert J. Evans (evans.albert from mayo.edu)
</P>
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I'm looking through some older Linux Gazzette articles and noticed
"fuzzybear" had put out a location to download his "self extracting w/make"
shell script. He was responding to your inquiry about this script. The URL
he listed is now defunct. Did you by chance get a copy of it, or know his
current URL?
</STRONG></P>
<P>
You know, I searched the past issues of LG... and I must admit that I
couldn't find my own article mentioning that. I'm pretty sure that the
URL I gave is the same as it is now - I don't rememberr changing it at
all - and I've just tested it (with Lynx.) It's still good. Anyway,
here it is -
</P>
<P>
<A HREF="http://www.geocities.com/ben-fuzzybear/sfx-0.9.4.tgz"
	>http://www.geocities.com/ben-fuzzybear/sfx-0.9.4.tgz</A>
</P>
<P>
The reason I haven't been particularly hyped about this thing is that,
the more time passes, the less I think of it as a good idea. Given that
one of the classes I teach for a living is Unix (Solaris) security, it's
actually my job to believe that it's a bad idea. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle"> Just like many other
things, it's perfectly fine as long as you trust the source of the data
- but things rapidly skid downhill as soon as that comes into question.
Sure, in the Wind*ws world, people blithely exchange "Setup.exe" files;
they also suffer from innumerable viruses, etc.
</P>
<P>
Think well before you use this tool. Obviously - and if it isn't
obvious, even downloading it might be a bad idea - never-ever-*ever* run
a self-extracting archive, or any executable that is not 100%
trustworthy, as root.
</P>
<blockquote><em>...at this point Ben drew a huge ASCII-art skull and crossbones...</em></blockquote>
<P>
You have been warned. 
<IMG SRC="../gx/dennis/smily.gif" ALT=":)" 
		height="24" width="20" align="middle">
</P>
<P>
Ben Okopnik
</P>

<!-- 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">Cannot Format Network Drive</FONT></H3>
Sat, 14 Jul 2001 12:49:30 -0400
<BR>Ben Okopnik (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P><STRONG>
I'm not quite sure if you can help me out with this situation.
Okay here's the lay down
I have 1 IDE Hardrive 35 gigs
About a month ago I added the program System Comander so I could put Windows
98, Windows 2000, and Linux on my system.
I did it successfully!
So now about a week ago I wanted everything off, cause I bought a serperate
PC for Linux.
This is how I wipe everything off of my drive.
I used a Debug to wipe everything off and used fdisk to try to get rid off
all of the partititions... but it still didn't get all of the partitions off
(looking in fdisk). How I got rid of all of them was doing the commands
</STRONG></P>

<pre><strong>lock c:
fdisk /mbr
</strong></pre>
<P><STRONG>
Than going back to fdisk and deleted the remaining partitions.
This did work... no longer is there any drives stated in fdisk.
So than I created 2 drive c: and d: both about 15 gigs or more
But now this is were I run into my problem....
After rebooting I tried to format those drives a it's giving the error
message CANNOT FORMAT A NETWORK DRIVE????
I know this is a lot more information than you prbably needed, but I thought
I'd better say everything so that you know the whole story...
Can you help me?
Do you know of anything I could try?
</STRONG></P>
<P>
Well, since you've removed Linux, your options are pretty thin.
It sounds like your 'fdisk' screwed up somewhere, or you have a
virus (I remember, a looong time ago, of some that did that.) One of
the easiest ways to handle it would be to download <A HREF="http://www.toms.net/rb/">Tom's rootboot</A>
&lt;<A HREF="http://www.toms.net/rb/&gt"
	>http://www.toms.net/rb/&gt</A>;, run it, and use the Linux fdisk that comes
with it (you should read the 'fdisk' man page unless you're very
familiar with it.) It can rewrite your partitions and assign the correct
types to them; after that, you should be able to boot to DOS and do
whatever you need.
</P>
<P>
Ben Okopnik
</P>

<!-- end 11 -->
<!--     .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.     -->
<P> <A NAME="tips/13"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Wu-FTP and Linux Newbie</FONT></H3>
Wed, 11 Jul 2001 18:40:57 +0200 (MET DST)
<BR>Karl-Heinz Herrmann (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P>
Question From: seboulva (seboulva from gmx.de)
</P>
<P><strong>
Sorry about this Simple Question, but I am a Linux Newbie and I want, no  I
must Update our Wu- FTP Server.It Comes with <A HREF="http://www.redhat.com/">Red Hat</A> 6.3
</strong></P>
<P><STRONG>
I Downloaded the 3 *.patch Files . And want to Apply it with the Patch
Command.
</STRONG></P>
<P>
Do you have the source code for wu-ftp and did you compile it yourself last
time? patch files are usually for source code, and they will change a
specific version to a specific other version. Are you sure that the patch
files math your source code version?
If it's RedHats patch files for their 6.3 distribution that should match.
But most probably it matches only the source code from their 6.3 CD's.
</P>
<P>
If all this matches, you should be able to compile the basic wu-tfp as it
comes with 6.3. Then you can try to patch the source and recompile.
</P>
<P>
Depending on the patch files (especially with which path they are generated)
you would do something like:
</P>

<blockquote><pre>cd wu-ftp-source
patch -p 1 &lt; ./path/to/patchfile
</pre></blockquote>
<P>
the -p x optioon strips off x directory levels from the path in the patch
file. If you look in the  ascii patch-files you will see file names with
path -- they have to match where your source is.
</P>
<P>
'patch --help' says among other very usful thing:
</P>

<blockquote><pre>  --dry-run  Do not actually change any files; just print what would happen.
</pre></blockquote>
<P>
so this is the option for testing until it looks as if it will apply
cleanly. Then remove the dry-run and do it for real.
</P>
<P>
recompile wu-ftp and then install it in the system. You will have to restart
it of course.
</P>
<P>
K.-H.
</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">Root Password</FONT></H3>
Mon, 02 Jul 2001 14:02:18 -0400
<BR>Thomas Adam &lt;<A HREF="mailto:n6tadam@users.purbeck.dorset.sch.uk">The Weekend Mechanic</A>&gt; 

<P>
Question From: Adam Wilhite (a.m.wilhite from larc.nasa.gov)
</P>
<P><STRONG>
Somehow the root password was lost or doesn't work anymore for one of
the computers I administer.  I went through your steps to reboot with
init=/bin/sh...  My problem is when I try to mount <TT>/usr</TT>. It says it
can't find <TT>/usr.</TT>  I would really appreciate your help.
</STRONG></P>
<P><STRONG>
thanks,
<br>adam wilhite
</STRONG></P>
<P>
Hi,
</P>
<P>
Your error message about not being able to find <TT>/usr</TT>, suggests to me that
"<TT>/usr</TT>" is not your mount point. Take a look in the file "<TT>/etc/fstab</TT>", which
is the filesystem table.
</P>
<P>
Locate the entry which points to "<TT>/usr</TT>". Your mount points are usually in
the second field, i.e. after all the "<TT>/dev/hda1</TT>" entries.
</P>
<P>
When you have found it, type in the correct value, using:
</P>
<P><CODE>
mount /path/to/mountpoint
</CODE></P>
<P>
Failing that, try issuing the command:
</P>
<P><CODE>
mount -a
</CODE></P>
<P>
that will tell your computer, to (try and) mount all the entries within the
file "<TT>/etc/fstab</TT>". You can then check what has been mounted, by typing in
the following:
</P>
<P><CODE>
mount
</CODE></P>
<P>
HTH,
</P>
<P>
Thomas Adam
</P>

<!-- 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">RH7.1 switch to KDE login as default</FONT></H3>
Fri, 6 Jul 2001 11:09:13 -0400
<BR>Faber Fedor (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)

<P>
Questions From: Larry Sanders (lsanders from hsa-env.com) and Jim (<em>anonymous</em>)
</P>
<P><STRONG>
Having completed the installation of <A HREF="http://www.redhat.com/">Red Hat</A> 7.1 with both
<A HREF="http://www.gnome.org/">GNOME</A> and <A HREF="http://www.kde.org/">KDE</A>, the default graphical login is GNOME.
How is this changed to the KDE default login for the system?
-- Larry
</STRONG></P>
<P><STRONG><FONT COLOR="#000066"><EM>
I love and use both the KDE and Gnome desktops. I have a strong
aesthetic preference, though, for the KDE login manager.
</EM></FONT></STRONG></P>
<P><STRONG><FONT COLOR="#000066"><EM>
My RedHat 7.1 install has resisted all efforts to switch it from its
default Gnome login manager to the KDE one. This isn't a big deal but
where is this managed and how do I make the change?
-- Best Regards, Jim
</EM></FONT></STRONG></P>
<P>
Try running the program "switchdesk".  It might be on the GNOME menu,
but you can run it from a command-line quicker.  It will let you switch
default desktops and even different desktops for different displays
(although that tends to be a bit problematic).
</P>
<P>--
Regards,
<br>
Faber Fedor
</P>

<!-- 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">3d linux</FONT></H3>
Mon, 16 Jul 2001 22:04:19 +0200
<BR>Zdenko Podobny (<a href="mailto:linux-questions-only@ssc.com">zdpo from mailbox.sk</a>)


<!-- sig -->

<P>
Hello!
</P>
<P>
This week I found some interesting programs that can help (a little bit) to
Philippe CABAL.
</P>
<dl>
<dt>K-3D
<dd><A HREF="http://freshmeat.net/redir/k-3d/4976/url_tgz/k3d-0.1.29.0-src.tar.gz"
	>http://freshmeat.net/redir/k-3d/4976/url_tgz/k3d-0.1.29.0-src.tar.gz</A>
</dl>
<p>It is frontend(Opensource, GPL) to render engines that are available to
linux and win:</p>
<dl>
<dt>BMRT, 
<dt>RDC 
<dd>(<A HREF="ftp://ftp.dotcsw.com/rdc32lnx.tar.gz"
	>ftp://ftp.dotcsw.com/rdc32lnx.tar.gz</A> -&gt;demo)
<dt>and 3Delight 
<dd>(<A HREF="http://www.3delight.com"
	>http://www.3delight.com</A> - I didn't try it)
</dl>
<P>
BTW: K-3D is one of the best applications I have seen on linux. Also no
other application need so much time and memory resources for
compiling like K-3D
</P>
<P>
<A HREF="http://www.dotcsw.com"
	>http://www.dotcsw.com</A> have perfect page with links. There is lof of
rendering staff (also many that are just expected)
</P>
<P>
I hope this help.
</P>
<P>
Zdeno
</P>

<!-- end 16 -->
<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> 2001
<BR>Published in issue 69 of <I>Linux Gazette</I> August 2001</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 ======================================================= -->
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_answer69.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="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="collinge.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 ========================================================= -->