Linux-Misc Digest #714, Volume #25 Sun, 10 Sep 00 02:13:02 EDT
Contents:
Mandrake problem on a HP3390 notebook ([EMAIL PROTECTED])
Re: Windows: Missing in Action (Rafael Przybyszewski)
Re: Cant login do to changes to X and XFS?? (Rafael Przybyszewski)
ideal laptop for linux? ("mmnnoo")
Re: mpeg player for linux? ("mmnnoo")
Re: # of maximum outstanding disk IO's (Johan Kullstam)
Re: Linux Performance w/ DSL??? (Hal Burgiss)
Re: Glibc 2.1 Locale trouble (Matthew Boyce)
Configure Modem and Sound???? ([EMAIL PROTECTED])
Re: efax and .ps files (Carl Fink)
Re: Gnome Xterm not reading .profile (Floyd Davidson)
Re: Linux Performance w/ DSL??? (Jem Berkes)
HylaFAX? (Jim Lee)
Re: Linux Performance w/ DSL??? (Hal Burgiss)
Removing duplicate lines from a text file (Fester)
Re: Removing duplicate lines from a text file (Akira Yamanita)
Re: Removing duplicate lines from a text file (Fester)
Re: Removing duplicate lines from a text file (Christopher Browne)
how can I delete blank line? ("choi jinhyuk")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: Mandrake problem on a HP3390 notebook
Date: Sun, 10 Sep 2000 01:59:19 GMT
Well after trying Red Hat on this thing, Mandrake seems to work o-k if I
use a default video card setting, However if I try and access a terminal
via the Fx keys, it goes into suspend mode,, Strange, I think so.
Mandrake utility also found the built in modem and sound card but I need
to finish setting them up. If anyone has any ideas on the strange
suspend problem, please let me know. Thanks David
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Rafael Przybyszewski <[EMAIL PROTECTED]>
Subject: Re: Windows: Missing in Action
Date: Sun, 10 Sep 2000 00:38:06 -0700
If you have LILO you can find the configuration file in /etc/lilo.conf
After you will make changes to that file run lilo to load the config to
lilo.
Rafael
N/A wrote:
> hello what is the name of that config file where i can add Windows as
> bootable, because windows is installed but right now i only have the
> options to boot FLOPPY and LINUX. .thank you.
>
> --
> Posted via CNET Help.com
> http://www.help.com/
------------------------------
From: Rafael Przybyszewski <[EMAIL PROTECTED]>
Subject: Re: Cant login do to changes to X and XFS??
Date: Sun, 10 Sep 2000 00:43:01 -0700
Hej!
Try to shut down the X server when it blink by pressing CTRL + ALT
+BACKSPACE or swith to other console by pressing CTRL + ALT [ F1.....F6]
You will be than in text mode. You can change that the way your system
start.
Rafael
[EMAIL PROTECTED] wrote:
> Cant login do to changes to X and XFS??
>
> I was making changes to true type fonts and I did somethig wroung and
> not after rebooting the screen just blinks. How can I get my system to
> login without using xdm if I can login???
>
> pleas email me asap at [EMAIL PROTECTED]
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: "mmnnoo" <[EMAIL PROTECTED]>
Subject: ideal laptop for linux?
Date: Sat, 9 Sep 2000 20:32:49 -0600
My ideal laptop for linux would be very inexpensive, thin, lightweight, have
good
battery life, with the biggest screen that would fit in a form factor of
about 8 1/2 x 11.
Of course, everybody wants all that... but here is where I am willing to
compromise:
1) speed (about 350 mhz would be fine) to reduce cost and improve battery
life
2) color. I would like a screen that cost significantly less, that consumed
less power,
and that could be viewed in direct sunlight . To me a b&w lcd screen (like
the screen
for a palm pilot but bigger) would be preferrable for these reasons. 3)
Speakers.
They probably don't add too much cost, weight, or size, but laptop speakers
are
always useless anyways. Just give me an integrated sb16 and headphone jack
in
case I need it.
Why do I say this would be my ideal laptop for linux in particular? I think
the
conventional text-mode unix user interface is great on laptops (for those
who are proficient with it of course). Reaching over the mouse on a desktop
machine is bad enough, but tiny trackballs, touchpads, and eraser heads are
just awful.
Also text mode apps seem to run so quickly and efficiently. I have a
thinkpad
which seems to get about twice the battery life in linux text mode as in
windows
(I should probably verify that before spouting off about it, I guess. Has
anyone
else noticed if this is really true?) Of course I would like to be able to
run X
or windows on the laptop for those apps which are truly graphical by nature
(like a pdf viewer or something).
I wish somebody would a laptop like this, which sacrifices multimedia for
gains in size, wieght, cost, and battery life. If I want to play quake
ocassionally
I can do it on a desktop machine.
Is any laptop somewhat similar to this description?
------------------------------
From: "mmnnoo" <[EMAIL PROTECTED]>
Subject: Re: mpeg player for linux?
Date: Sat, 9 Sep 2000 20:34:47 -0600
freshmeat.net is a good place to look for linux software. There's
a search feature.
Peter Bismuti <[EMAIL PROTECTED]> wrote in message
news:8p610n$ka$[EMAIL PROTECTED]...
> Are there any mpeg players for Linux?
>
> Thx
------------------------------
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development.system,comp.os.linux.hardware
Subject: Re: # of maximum outstanding disk IO's
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Sun, 10 Sep 2000 02:55:17 GMT
"Hog Rider" <[EMAIL PROTECTED]> writes:
> We are doing some performance testing of disk storage on different
> platforms, and I was wondering if Linux has a maximum number of IO's that
> can be outstanding at any given time. Translated, if the storage device is
> busy and the h/w queue is full, how many IO's will Linux queue up waiting
> for the storage device to be available again.
this is usually a limit set by your choice SCSI controller, hard disks
and other devices.
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: [EMAIL PROTECTED] (Hal Burgiss)
Crossposted-To: comp.os.linux.networking
Subject: Re: Linux Performance w/ DSL???
Reply-To: Hal Burgiss <[EMAIL PROTECTED]>
Date: Sun, 10 Sep 2000 03:21:47 GMT
On Sun, 10 Sep 2000 01:29:19 GMT, D. Abuan <[EMAIL PROTECTED]> wrote:
>Thanks alot guys...gotten consisten 890kbs from the win
>box with the RWIN tweak...
Wasn't it ol' Uncle Bill that said no one will ever need more than 28.8?
--
Hal B
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
------------------------------
From: Matthew Boyce <[EMAIL PROTECTED]>
Subject: Re: Glibc 2.1 Locale trouble
Date: Sat, 09 Sep 2000 20:01:52 -0700
NF Stevens wrote:
>
> [EMAIL PROTECTED] (Richard J. Freedman) wrote:
>
> >On Fri, 08 Sep 2000 21:45:08 GMT, NF Stevens <[EMAIL PROTECTED]> wrote:
> >>Matthew Boyce <[EMAIL PROTECTED]> wrote:
> >>
> >>>I can't seem to properly set the locale with the glibc-2.1.3 that came
> >>>with my Slackware 7.1. Though I can change the LANG environment variable
> >>>and have the other LC variables changed appropriately, programs such as
> >>>kterm or perl insist in the following manner that the locale cannot be
> >>>changed:
> >>
> >>IIRC you have to compile the locale using localedef which comes
> >>with glibc.
> >>
> >>Norman
> >
> >
> >Yes ---- but how do you do that? I cannot find any documentation for localedef.
>
> localedef --help should give details as to the parameters required but
> other than that I have no idea. Is there nothing in the glibc info
> or man pages.
>
> Norman
The truly weird thing is that not only do I have a working localedef
already, I have specially prepared LC* files for the locale ja_JP that I
ripped out of TurboLinux. The C library just refuses to switch locales
and use them. For Mr. Freedman, configuring glibc as ./configure
--enable-add-ons=localedef will result in its installation (as I wrote
above(??)).
The only documentation on installing glibc comes in the tarball, and
says little about locales except how to add localedef to configure. The
info pages for glibc only tell you that you can change the locale by
setting the LANG variable - which I can set as many times as I like
without the c library actually changing the locale. Programs such as
emacs or kterm continue to whine that they can't change the locale.
--
Matthew Boyce
[EMAIL PROTECTED]
$B<7E>$SH,5/$-(B
Fall seven times, get up eight.
------------------------------
From: [EMAIL PROTECTED]
Subject: Configure Modem and Sound????
Date: Sun, 10 Sep 2000 03:45:14 GMT
I just posted an article on my HP3390 with Mandrake. Upon issuing the
cat /proc/pci to find out the IRQ's of the modem and sound, There the
same IRQ's IRQ 5 ? I issued the setserial command for the modem and then
the Hardrake config utility lock's up. So I changed it to irq 15 for
now. Any ideas on how to set these up? I don't see KPPP on Mandrake like
Red Hat... Thanks David
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Carl Fink)
Subject: Re: efax and .ps files
Date: 10 Sep 2000 03:05:46 GMT
Reply-To: [EMAIL PROTECTED]
On Sat, 9 Sep 2000 23:58:59 +0000 David <[EMAIL PROTECTED]> wrote:
>
>I have printed a document to a postscript file. PSView and ghostscript both
>open it and show a single page. but when I use 'fax send' or 'fax make' it
>produces 22 TIFF files for, I assume 22 pages!
.
.
.
>PAGE=a4
.
.
.
>PAGE_a4="21x29.7cm"
Well, one obvious thing to check: type "which fax" and make sure
that the script that's executing is the one that you're editing.
Why assume? Use a bitmap viewer (xv or xloadimage or display from
the ImageMagick package) to actually view each TIFF and see if
they're really 22 pages, and maybe from their contents you can figure
out what size the program thinks it's using.
Can you send directly using efix/efax?
--
Carl Fink [EMAIL PROTECTED]
Manager, Dueling Modems Computer Forum
<http://dm.net>
------------------------------
From: Floyd Davidson <[EMAIL PROTECTED]>
Subject: Re: Gnome Xterm not reading .profile
Date: 09 Sep 2000 19:36:06 -0800
"Andrew N. McGuire " <[EMAIL PROTECTED]> wrote:
>On 9 Sep 2000, Floyd Davidson quoth:
>>"Andrew N. McGuire " <[EMAIL PROTECTED]> wrote:
>>>On Sat, 9 Sep 2000, Bit Twister quoth:
>>>
>>>> try putting the variables in .bash_profile
>>>> logout/login and see what you see.
...
>>>Wrong. .bash_profile is the first file bash looks to execute
>>>for a ~login shell~. If you had said .bashrc your answer would
>>>have been correct. The other solution is to invoke xterm with the
>>>'-ls' option to make it a login shell. As an alternative, he
>>>could also export those variables in his .profile, making them
>>>available to all child shells after login.
>>>
>>>[ aside: I like the .bashrc idea better as invoking xterm with
>>> '-ls' is fairly rare. ]
>>
>>It also isn't necessarily smart.
I'm afraid I was not clear enough, and you have interpreted that other
than as I was thinking as I wrote it. I am agreeing with you, and
going one step farter. The "also isn't necessarily smart" refers to
the last four words of your statement, not to the previous line.
I should have be a little more verbose to make that obvious.
>>A login shell might need
>>initialization that sub-shells do not, and those things can be
>>done from ~/.bash_profile, ~/.bash_login or ~/.profile and
>>exclude all sub-shells if the common initializations, which the
>>sub-shell should see, are done in ~/.bashrc alone. Examples
>>would be whatever stty commands might be necessary, setting PATH
>>using recursion, selecting a terminal type if the user commonly
>>logs in from a variety of different terminals or doing anything
>>which sends the terminal an init string (such as using tset(1)).
>
>You are making alot of assumptions here.
Nope, you are. Here is what the OP actually asked for:
"I have a great .profile in my home directory, however Gnome
xterm (or any xterm) won't read and implemet it. But when I
. ./.profile, su to myself or telnet in, it gets read and
implented."
>>None of those needs to be done, or should be done, for every
>>xterm or for every sub-shell.
>
>Right, and the OP wanted to know how to do something in every shell.
>(what _something_ is, we don't know, so we can't make assumptions)
>The answer, as I said is either:
That is not what he asked about. He wanted specifically to know
how to get his ~/.profile to be read by each and every xterm or
other subshell. You are correct that we do not know what is in
it, and it might well be something other than just variables.
Using "xterm -ls" will accomplish that, but it is not usually
the best or the correct way to configure shell init files.
>1. export it from .profile or equivalent.
>2. put it in .bashrc (preferred, that is what it is for)
All of the above.
>3. use 'xterm -ls'
>
>So your correction is?
Set up the init files correctly and do not use xterm with the
"-ls" option, which is unnecessary.
One workable solution (there are others) is: Use ~/.profile only
for initialization exclusive to a login shell (stty, tset,
etc.); also in that file set ENV or BASH_ENV as is appropriate;
put other items in ~/.bashrc for non-login interactive shells;
put items for non-interactive shells in $BASH_ENV (which for
simplicity can be ~/.bashrc).
--
Floyd L. Davidson [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)
------------------------------
From: Jem Berkes <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: Linux Performance w/ DSL???
Date: Sat, 09 Sep 2000 23:53:13 -0500
Wow! I used used the WinNT registry fix (RWIN change) and performance
really did increase in Windows web browsers and FTP programs.
About MTU though... I had already tweaked that on my linux box (i.e.
lowering the clamp MSS value in rp-pppoe until web pages no longer
stalled). Should I also change the MTU on my Windows machines?
Interestingly
"B. Joshua Rosen" wrote:
>
> It's Redmond, Washington not Oregon, but otherwise you are right. Goto
> the tweaking section of http://www.dslreports.com to see how to fix your
> Windows boxes. Linux is optimized right out of the box, Window's is
> pessimized right out of the box, that's why you are seeing a 30%
> difference. Microsoft has a special team that makes sure that no matter
> how hard Intel works the performance of a PC remains the same as the
> original 8088 based system.
>
> Hal Burgiss wrote:
> >
> > On Sat, 09 Sep 2000 13:47:29 GMT, D. Abuan <[EMAIL PROTECTED]> wrote:
> > >
> > >How could there be a 30% drop in speed through my network?
> > >Where is the bottleneck???
> > >
> >
> > Redmond, OR would be my guess. Have you tweaked the RWIN values for the
> > MS boxes? Duplex mismatch?
> >
> > --
> > Hal B
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > --
------------------------------
From: Jim Lee <[EMAIL PROTECTED]>
Subject: HylaFAX?
Date: Sat, 09 Sep 2000 21:47:59 -0700
This is a multi-part message in MIME format.
==============FA67DB43AA76E392D35AD24E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I use Mandrake 7.1 in a stand alone pc and get this weird message (see
attached) everytime I login as 'root'. I see 'hylafax' is at
/etc/rc.d/init.d/hylafax but not in the /etc/inetdconf. How do I get
rid of getting this e-mail to root@localhost?
==============FA67DB43AA76E392D35AD24E
Content-Type: text/plain; charset=us-ascii;
name="mbox"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mbox"
Received: by localhost.localdomain (Postfix, from userid 0)
id 4C5AA28981; Sat, 9 Sep 2000 11:06:48 -0700 (PDT)
To: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
Date: Sat, 9 Sep 2000 11:06:48 -0700 (PDT)
From: [EMAIL PROTECTED] (root)
FATAL ERROR: /var/spool/fax/etc/setup.cache is missing!
The file /var/spool/fax/etc/setup.cache is not present. This
probably means the machine has not been setup using the faxsetup(1M)
command. Read the documentation on setting up HylaFAX before you
startup a server system.
--4C5AA28981.968522812/localhost.localdomain--
==============FA67DB43AA76E392D35AD24E==
------------------------------
From: [EMAIL PROTECTED] (Hal Burgiss)
Crossposted-To: comp.os.linux.networking
Subject: Re: Linux Performance w/ DSL???
Reply-To: Hal Burgiss <[EMAIL PROTECTED]>
Date: Sun, 10 Sep 2000 05:01:41 GMT
On Sat, 09 Sep 2000 23:53:13 -0500, Jem Berkes
<[EMAIL PROTECTED]> wrote:
>Wow! I used used the WinNT registry fix (RWIN change) and performance
>really did increase in Windows web browsers and FTP programs.
>
>About MTU though... I had already tweaked that on my linux box (i.e.
>lowering the clamp MSS value in rp-pppoe until web pages no longer
>stalled). Should I also change the MTU on my Windows machines?
Somewhere rp-pppoe covers this in one of the docs nicely. If not
included in the package, it is definitely on the roaringpenguin website.
IIRC, you can either do it the way you have, or set it at each
individual interface.
--
Hal B
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
------------------------------
From: [EMAIL PROTECTED] (Fester)
Subject: Removing duplicate lines from a text file
Reply-To: [EMAIL PROTECTED]
Date: Sun, 10 Sep 2000 05:06:40 GMT
I could've sworn grep or cat had a way to do this, but I'm not seeing it
on their man pages.
What's the way to do this?
--
-- Fester
We like Roy.
======================================
------------------------------
From: Akira Yamanita <[EMAIL PROTECTED]>
Subject: Re: Removing duplicate lines from a text file
Date: Sun, 10 Sep 2000 05:17:19 GMT
Fester wrote:
>
> I could've sworn grep or cat had a way to do this, but I'm not seeing it
> on their man pages.
>
> What's the way to do this?
A search on http://google.com/linux on "duplicate lines" turned this
up.
cat filename | perl -ne 'print unless ($seen{$_}++)'
You could just redirect the output back into the file.
cat filename | perl -ne 'print unless ($seen{$_}++)' > filename
It seems to work. YMMV. The poster of the message mentions that it
could consume lots of memory if the lines are long.
------------------------------
From: [EMAIL PROTECTED] (Fester)
Subject: Re: Removing duplicate lines from a text file
Reply-To: [EMAIL PROTECTED]
Date: Sun, 10 Sep 2000 05:32:50 GMT
On Sun, 10 Sep 2000 05:17:19 GMT, Akira Yamanita
<[EMAIL PROTECTED]> wrote:
>Fester wrote:
>> What's the way to do this?
>
>A search on http://google.com/linux on "duplicate lines" turned this
>up.
>
>cat filename | perl -ne 'print unless ($seen{$_}++)'
>
>You could just redirect the output back into the file.
>
>cat filename | perl -ne 'print unless ($seen{$_}++)' > filename
>
>It seems to work. YMMV. The poster of the message mentions that it
>could consume lots of memory if the lines are long.
Thanks, that worked perfectly, and in under a second. (I was only working
with a 3000 line file)
--
-- Fester
We like Roy.
======================================
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Removing duplicate lines from a text file
Reply-To: [EMAIL PROTECTED]
Date: Sun, 10 Sep 2000 05:40:44 GMT
Centuries ago, Nostradamus foresaw a time when Fester would say:
>I could've sworn grep or cat had a way to do this, but I'm not seeing it
>on their man pages.
>
>What's the way to do this?
man uniq
--
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/linux.html>
"Whose n-grams did you use, Doctor?"
"Why, my own of course. I haven't lost my mind -- I've got it on backup
tape!"
------------------------------
From: "choi jinhyuk" <[EMAIL PROTECTED]>
Subject: how can I delete blank line?
Date: Sun, 10 Sep 2000 14:45:16 +0900
I wana delete all blank lines .
succeded in searching like this
%s/^$//g
but blank line was not deleted. how can I?
and how can I do it in sed and using grep?
thanks
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Misc Digest
******************************