Linux-Misc Digest #739, Volume #27 Sun, 29 Apr 01 13:13:03 EDT
Contents:
Re: Writing a little script (help with sed) (Mojo Nichols)
Re: How to remove the hd noise? (Anders Braathen)
Mandrake 8.0 and Mathematica 4.01 (Ronald Bruck)
Re: Writing a little script (help with sed) ("Michael Pye")
Re: How to remove the hd noise? (Ian Northeast)
Re: How to start httpd (Manbo)
Re: Writing a little script (help with sed) ("Michael Pye")
Re: repartition the disk (John Thompson)
Re: Writing a little script (help with sed) ("Michael Pye")
Re: Writing a little script (help with sed) ("Peter T. Breuer")
Re: Good linux mail client
Re: Writing a little script (help with sed) ("Peter T. Breuer")
Re: Writing a little script (help with sed) ("Michael Pye")
Re: Writing a little script (help with sed) ("Michael Pye")
Re: Writing a little script (help with sed) ("Michael Pye")
Re: How to start httpd (Markku Kolkka)
PCMCIA modem / Lucent / Dynalink / ltmodem568.o (David Nowak)
Re: Mapping un-used keys (Dances With Crows)
Re: How to remove the hd noise? (Anders Braathen)
----------------------------------------------------------------------------
From: Mojo Nichols <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 09:51:27 -0500
Reply-To: [EMAIL PROTECTED]
I believe that date's -s option requires an =
date -s="Sun Apr 29 09:45:37 CDT 2001"
to work. So perhaps a script called new_date.sh
/bin/sh
date | sed s/"1994"/"2001"/ | read new_date
date -s="$new_date"
EOF
will work. There must be a better way of getting the machine to not lose time
though, I have a similar problem except that my time is off by about 8 hours,
so everytime I reboot I have to reset the clock. Does anybody now the
"correct" way to solve this problem? Thanks
Mojo
Michael Pye wrote:
> OK, I have a problem with a machine which likes to remember the year as 1994
> when I turn it on. I am looking for a way to automate the change from 94 to
> 2001.
>
> So far I have a script looking a bit like this:
>
> date > /tmp/olddate
> sed s/"1994"/"2001"/ /tmp/olddate > /tmp/today
>
> now, that works fine, but how can I get it back into the date command?
>
> I have tried
>
> date -s < /tmp/today
>
> and
>
> sed s/"1994"/"2001"/ /tmp/olddate | date -s (instead of the above one)
>
> but neither work. Date just complains about a lack of arguments. How can I
> get date to read the date from the stdin so I can use "<" or pipe the date
> into it?
>
> Thanks
>
> MP
--
=======================================
This email is powered by the white
hot bitterness of long term MS use.
=======================================
------------------------------
From: Anders Braathen <[EMAIL PROTECTED]>
Subject: Re: How to remove the hd noise?
Date: Sun, 29 Apr 2001 15:03:54 GMT
Definately from my HD. I have two, I've tried installing on them both. I've
come to notice that it seems to stop, or quiet down after some time...I've
tried almost anything within hdparm.
------------------------------
From: Ronald Bruck <[EMAIL PROTECTED]>
Subject: Mandrake 8.0 and Mathematica 4.01
Date: Sun, 29 Apr 2001 08:09:19 -0700
I downloaded and installed the new Mandrake 8.0, but have encountered a
problem: the key bindings in Mathematica 4.01 are now screwed up.
For example, the "Delete" key seems to send a space! As does the
forward delete key. This makes the GUI interface to Mathematica almost
unusable.
Does anybody know why key bindings which work in other apps would "gang
aft agley" in just one app? Mathematica worked fine in Suse 7.1 (my
previous installation) and Mandrake 7.2 (the one just before that).
--Ron Bruck
--
Due to University fiscal constraints, .sigs may not be exceed one
line.
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 16:30:33 +0100
"Mojo Nichols" <[EMAIL PROTECTED]> wrote
> will work. There must be a better way of getting the machine to not lose
time
> though, I have a similar problem except that my time is off by about 8
hours,
> so everytime I reboot I have to reset the clock. Does anybody now the
> "correct" way to solve this problem? Thanks
Possibly you suffer from a flat clock battery. Just have a check. Is the
time when you turn on the same as it was when you turned off?
It didn't need an equals last time I used it.
Nope, just checked the man pages. Definitely no "="...
MP
------------------------------
From: Ian Northeast <[EMAIL PROTECTED]>
Subject: Re: How to remove the hd noise?
Date: Sun, 29 Apr 2001 16:42:53 +0100
Anders Braathen wrote:
>
> Definately from my HD. I have two, I've tried installing on them both. I've
> come to notice that it seems to stop, or quiet down after some time...I've
> tried almost anything within hdparm.
How much memory do you have? What do vmstat and top show?
Regards, Ian
------------------------------
From: Manbo <[EMAIL PROTECTED]>
Subject: Re: How to start httpd
Date: Sun, 29 Apr 2001 15:48:51 GMT
==============F8B5EB69BCF091726D5B72BB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Thanks a lot. It works now.
--
Chris Leahy wrote:
> Mike Song wrote:
>
>> Hello;
>>
>> After installing RedHat Linux, httpd is not automatically.
>> I can manually start httpd by:
>>
>> /sbin/service httpd start
>>
>> How can make httpd automatically?
>> I see no entry for httpd in /etc/xinet.d directory.
>>
>> Thanks in advance.
>> Manbo
>
> If you are running x windows, try typing (in an x terminal)
>
>
> [root@samplehost /root]# control-panel
>
> This will bring up a tried and true python app for system config
> select the button that looks like a traffic light, this is called the
> run level editor.
> For Redhat 7.0 and 7.1 the default run level is 5.
> From the "Available" column on the left, select httpd in the window
> and click the "Add" button
> This brings up another window whee you need to check the "Start httpd"
> radio button, check the "5" radio button
> click the "done" button.
> The next window just shows you the number its assigned for httpd
> just stick with what its given you and click the "add" button.
>
> From the file menu select "quit"
>
> Youre all done.
>
> Next reboot you will see httpd running when yer all booted up.
>
>
> Cheers
>
>
> --
> ----------------------------------------------------------
> Christopher Leahy | [EMAIL PROTECTED]
> UNIX Systems Administrator | http://www.zoltanium.com
> Zoltanium (aka /dev/null) | Voice (610)408-0151
> ----------------------------------------------------------
>
>
==============F8B5EB69BCF091726D5B72BB
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Thanks a lot. It works now.
<br>--
<p>Chris Leahy wrote:
<blockquote TYPE=CITE>Mike Song wrote:
<blockquote TYPE=CITE>Hello;
<p>After installing RedHat Linux, httpd is not automatically.
<br>I can manually start httpd by:
<p> /sbin/service httpd start
<p>How can make httpd automatically?
<br>I see no entry for httpd in /etc/xinet.d directory.
<p>Thanks in advance.
<br>Manbo</blockquote>
If you are running x windows, try typing (in an x terminal)
<br>
<p>[root@samplehost /root]# control-panel
<p>This will bring up a tried and true python app for system config
<br>select the button that looks like a traffic light, this is called the
run level editor.
<br>For Redhat 7.0 and 7.1 the default run level is 5.
<br>From the "Available" column on the left, select httpd in the window
and click the "Add" button
<br>This brings up another window whee you need to check the "Start httpd"
radio button, check the "5" radio button
<br>click the "done" button.
<br>The next window just shows you the number its assigned for httpd
<br>just stick with what its given you and click the "add" button.
<p>From the file menu select "quit"
<p>Youre all done.
<p>Next reboot you will see httpd running when yer all booted up.
<br>
<p>Cheers
<br>
<pre>--
==========================================================
Christopher
Leahy |
[EMAIL PROTECTED]
UNIX Systems Administrator | <a
href="http://www.zoltanium.com">http://www.zoltanium.com
</a> Zoltanium (aka /dev/null) | Voice (610)408-0151
==========================================================</pre>
</blockquote>
</html>
==============F8B5EB69BCF091726D5B72BB==
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 16:41:31 +0100
"William Burrow" <[EMAIL PROTECTED]> wrote
> Haven't tested it, but try:
>
> date -s "`date | sed s/1994/2001/`"
Cheers, I'll give it a try.
> The single quotes are back ticks, found above the TAB key.
>
> BTW, I think there is a fix for broken BIOSes out there, search
> Google.com for it.
It was actually in the middle of such a y2k fix that this one broke. The fix
was incomplete so the board can handle two digit year after the millennium
fine, but it can't remember them after powerdown...
Very strange, but it's still a useful machine for experimentation...
MP
------------------------------
From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: repartition the disk
Date: Sun, 29 Apr 2001 06:15:47 -0500
Hung-Hsien Chang wrote:
> I have two partitions on the disk: Window and Linux.
>
> Is there a way to add more disk space to Linux without having
> to re-install both the Window and Linux?
You mean something besides adding another HD? You could use
Partition Magic or GNU-parted to shrink your Windows partition
and add the freed space to the linux partition.
--
-John ([EMAIL PROTECTED])
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 16:51:06 +0100
"William Burrow" <[EMAIL PROTECTED]> wrote
> Haven't tested it, but try:
>
> date -s "`date | sed s/1994/2001/`"
I get
bash: unexpected EOF while looking for "`"
bash: command substitution: line 2: syntax error
Any ideas
MP
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 17:42:49 +0200
In comp.os.linux.misc Michael Pye <[EMAIL PROTECTED]> wrote:
> Possibly you suffer from a flat clock battery. Just have a check. Is the
Mine is also flat. Are spherical ones better?
;)Peter
------------------------------
From: <[EMAIL PROTECTED]>
Subject: Re: Good linux mail client
Date: Sun, 29 Apr 2001 15:52:47 +0000 (UTC)
Michael Perry <[EMAIL PROTECTED]> wrote:
> On Sun, 29 Apr 2001 00:35:06 +0000 (UTC),
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> If you're a gnome guy, try balsa. evolution is still in beta and probably is the
>wasy to go
>> in the future but maybe not yet.
>>
>> I've also been happy with mahogany. tkrat is a very mature program and is supposed
>to be the
>> standard by which all are judged.
> Hmmm. I used TKrat and I enjoyed it. But its the standard from which all
> are judged? Thats a lofty claim. I could say that pine is a standard also.
Then you've used it more than I have. I've just tried it breifly. That's why I said
its
_supposed_ to be the standard by which all others are judged. Also notice that I
didn't say
it was the best (it's not for me). Only that its been around such a long time that
its the
client that many people use to compare others with.
> Its been around awhile I think. However, I also think that there are others
> like sylpheed and pronto which are pretty nice.
Very nice. I could recommend both.
> But for me the thing that
> holds the most interest is finding a good console-based email client which I
> can dress up in a pretty Eterm frame. For me, mutt is the standard.
For consol, I think it is (the original poster said GUI). I've tried most of the more
popular
clients out there and I always end up coming back to pine, myself. I really liked
mutt as
well. It seemed to perhaps have more features than pine but I thought pine was easier
in the
end. Both have their advantages.
slrn is about the only newsreader I ever use.
Among the reasons I keep going back to text based readers are exactly those you
mentioned. I
telnet into my computer at work from where ever I am and read my mail while keeping it
in one
place. I can even do it from any windows machine.
Besides that, I hate to use the mouse for anything. And both of the mail pograms have
been
around a long time and most of the bugs have been worked out.
> I think TKrat though is pretty cool all in all. YOu could not go wrong with
> using it or perhaps sylpheed or pine or pronto. You could just be "right"
> and use mutt :)
Hmmm. I'm getting the itch. Maybe its time I went back and tried it again ;)
Tom
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 18:07:17 +0200
In comp.os.linux.misc Michael Pye <[EMAIL PROTECTED]> wrote:
> "William Burrow" <[EMAIL PROTECTED]> wrote
>> Haven't tested it, but try:
>>
>> date -s "`date | sed s/1994/2001/`"
> I get
> bash: unexpected EOF while looking for "`"
> bash: command substitution: line 2: syntax error
> Any ideas
Type correctly. (Suspect yourself before blaming others).
Peter
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 17:08:27 +0100
"Michael Pye" <[EMAIL PROTECTED]> wrote
> > Haven't tested it, but try:
> >
> > date -s "`date | sed s/1994/2001/`"
>
> I get
>
> bash: unexpected EOF while looking for "`"
> bash: command substitution: line 2: syntax error
>
I've sorted it. Thanks.
I prefer the "$(date | sed...)" form though, I find it less confusing...
Thanks for your help.
MP
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 17:09:21 +0100
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote
> Mine is also flat. Are spherical ones better?
>
> ;)Peter
Gosh, aren't we a comedian! ;)
I think you'll find the alternatives are cylinders actually...
MP
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Writing a little script (help with sed)
Date: Sun, 29 Apr 2001 17:20:30 +0100
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote
> Type correctly. (Suspect yourself before blaming others).
He did say it wasn't tested.
Though you were right, turns out I put the slashes in the wrong way
around...
My lesson in humility. ;)
MP
------------------------------
From: Markku Kolkka <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.redhat
Subject: Re: How to start httpd
Date: 29 Apr 2001 19:08:35 +0300
Mike Song <[EMAIL PROTECTED]> writes:
> After installing RedHat Linux, httpd is not automatically.
> I can manually start httpd by:
>
> /sbin/service httpd start
>
> How can make httpd automatically?
/sbin/chkconfig httpd on
--
Markku Kolkka
[EMAIL PROTECTED]
------------------------------
From: David Nowak <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: PCMCIA modem / Lucent / Dynalink / ltmodem568.o
Date: Sun, 29 Apr 2001 17:46:59 +0100
Hi,
When I 'insmod' the module ltmodem568.o, it does not work and write:
ltmodem568.o: init_module: Device or resource busy
Hint: this error can be caused by incorrect module parameters, including
invalid IO or IRQ parameters
What does it mean? What can I do?
Technical details:
I have a Dynalink PCMCIA 56K Fax Modem. The command 'cardctl ident'
returns:
product info: "V90&K56Flex PCMCIA FAX MODEM", "", "", ""
Under Windows, the driver file is called LTMODEM.VDX. That is why I
think I need to use a Lucent driver (I use ltmodem-5.78e.tar.gz).
According to Windows, it uses ports 2F8-2FF and irq 3. Also my kernel
version is 2.2.17.
Thanks in advance for any help,
--
David
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Mapping un-used keys
Reply-To: [EMAIL PROTECTED]
Date: 29 Apr 2001 16:51:59 GMT
On Sun, 29 Apr 2001 12:43:59 GMT, Ashwin R. Bharambe staggered into the
Black Sun and said:
>Quoth Zainul, on 29 Apr 2001 11:02:01 GMT (allegedly):
>> I've noticed that for Redhat 6.2.4 and Redhat 7.0+, that the left
>> winstart key has been mapped to change to (current tty - 1) and the
>> right winstart key has been mapped to (current tty + 1). The right
>> click key is mapped to (toggle between two recently visited ttys).
>
>Yeah. But how to remap ? Maybe it is possible just to manage it for an
>X session ? Changing the XKeymap ? How to find out what scan code the
>key sends in to the Xserver ?
To find out the keycodes that a particular key is sending (as well as a
bunch of other possibly-useful info), start X, then run "xev" from an
xterm/eterm/konsole. I saw something on freshmeat that said it was
designed to allow you to configure the unused keys to run arbitrary X
programs, but the thing required a bunch of odd libraries and I never
got it to compile. http://freshmeat.net/projects/hotkeys/ if you want
to try it out.
--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com / Workin' in a code mine, whoops!
=============================/ I hit a seg fault....
------------------------------
From: Anders Braathen <[EMAIL PROTECTED]>
Subject: Re: How to remove the hd noise?
Date: Sun, 29 Apr 2001 17:04:34 GMT
128meg physical adn roughly one gig swap.
# vmstat
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
1 0 0 48436 2744 1804 38552 2 4 13 3 158 617 56 3 41
# top (a little cluttered)
7:05pm up 4:04, 6 users, load average: 1.34, 1.32, 1.36
94 processes: 87 sleeping, 3 running, 0 zombie, 4 stopped
CPU states: 95.8% user, 4.1% system, 0.0% nice, 0.0% idle
Mem: 126704K av, 124604K used, 2100K free, 0K shrd, 1748K buff
Swap: 1104728K av, 48436K used, 1056292K free 38308K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
2162 root 20 0 5664 12 8 R 87.6 0.0 100:22 perl
796 root 9 0 109M 98M 1648 R 5.0 79.6 17:38 X
2372 root 10 0 7576 7392 6428 S 3.1 5.8 0:01 kdeinit
2156 root 9 0 3648 3004 736 S 1.5 2.3 0:23 perl
2394 root 16 0 1068 1068 840 R 1.5 0.8 0:00 top
2155 root 9 0 4456 3460 2292 S 0.5 2.7 0:28 kdeinit
2241 root 9 0 19428 15M 7536 S 0.5 12.9 2:23 konqueror
2367 root 9 0 12528 12M 8792 S 0.1 9.8 0:26 knode
1 root 9 0 108 52 52 S 0.0 0.0 0:04 init
2 root 8 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 9 0 0 0 0 SW 0.0 0.0 0:00 kapm-idled
4 root 9 0 0 0 0 SW 0.0 0.0 0:06 kswapd
5 root 9 0 0 0 0 SW 0.0 0.0 0:00 kreclaimd
6 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush
7 root 9 0 0 0 0 SW 0.0 0.0 0:00 kupdated
8 root -1 -20 0 0 0 SW< 0.0 0.0 0:00 mdrecoveryd
70 root 9 0 0 0 0 SW 0.0 0.0 0:00 khubd
383 root 9 0 124 4 4 S 0.0 0.0 0:00 pump
452 root 9 0 228 172 164 S 0.0 0.1 0:00 syslogd
457 root 9 0 576 4 4 S 0.0 0.0 0:00 klogd
471 rpc 9 0 92 4 4 S 0.0 0.0 0:00 portmap
486 rpcuser 9 0 120 4 4 S 0.0 0.0 0:00 rpc.statd
564 root 8 0 68 4 4 S 0.0 0.0 0:00 apmd
613 root 9 0 132 44 44 S 0.0 0.0 0:00 automount
------------------------------
** 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 by posting to comp.os.linux.misc.
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
******************************