Content-Type: text/plain
debian-user-digest Digest Volume 2007 : Issue 2252
Today's Topics:
Re: Networking problems [ "Dr. Jennifer Nussbaum" ]
Re: using a remote IMAP server and s [ "Richard Lyons" ]
Re: Unsolved Scanner Problem [ Felix Karpfen ]
Re: using a remote IMAP server and s [ Florian Kulzer ]
Re: Search for string in files [ - Tong - ]
Re: Cannot open root device "hda1" o [ "Francois Duranleau" <xiao.bai.xion ]
Re: Re: Re^4: Lenny, X, dead mouse [ Peter Easthope <peasthope@shaw.ca> ]
Date: Sat, 25 Aug 2007 14:13:03 -0700 (PDT)
From: "Dr. Jennifer Nussbaum" <bg271828@yahoo.com>
To: debian-user@lists.debian.org
Subject: Re: Networking problems
Message-ID: <452731.93391.qm@web53411.mail.re2.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
> Please don't Cc: me, I am subscribed to the list.
Sorry, on some other lists im on its considered polite
to cc the posters.
And i know im breaking threading by responding now
with a new message. I have to stop the digest
subscription, sorry....
> On Sat, 2007-08-25 at 11:08 -0700, Dr. Jennifer >
Nussbaum wrote:
>> Also, theres still the (probably bigger) problem
that
>> 2.6.18-5 doesnt find my wireless interface at all.
And
>> that even though i upgraded to 2.6.18-6, this isnt
>> given to me as an option when i boot. Any thoughts
>> about those?
>
>Let's see which kernel versions are installed
>actually, please post the
r>esult of:
>
>$ dpkg -l linux-image-2.6*
Sorry about the formatting.
- begin included ---
~ $ dpkg -l linux-image-2.6*
Desired=3DUnknown/Install/Remove/Purge/Hold
|
Status=3DNot/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=3D(none)/Hold/Reinst-required/X=3Dboth-problems
(Status,Err: uppercase=3Dbad)
||/ Name Version =20
Description
+++-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
un linux-image-2.6 <none> =20
(no description available)
ii linux-image-2.6-686 2.6.18+6etch2 =20
Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4
ii linux-image-2.6.18-4-686 2.6.18.dfsg.1-12etch2 =20
Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4
ii linux-image-2.6.18-5-686 2.6.18.dfsg.1-13etch1 =20
Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4
- end included ---
I dont know where 2.6.18-6 is--the update applet on
the panel told me there was an update, i ran it, it
said
that 2.6.18-6 was ready, i installed it, but now its
not there, i guess.
>What is your Wi-Fi chip? Maybe you don't have the
>driver module
>installed for the newer kernel version.
Its an Intel PRO/Wireless 3945ABG. From my dmesg in
the 2.6.18-4 kernel:
---
ipw3945: Intel(R) PRO/Wireless 3945 Network Connection
driver for Linux, 1.1.2dmpr
ipw3945: Copyright(c) 2003-2006 Intel Corporation
---
But i didnt get any message about this driver being
out of date.
Thank you again!
Jen
=20
_________________________________________________________________________=
___________
Moody friends. Drama queens. Your life? Nope! - their life, your story. P=
lay Sims Stories at Yahoo! Games.
http://sims.yahoo.com/ =20
Date: Sat, 25 Aug 2007 14:09:34 -0700
From: Mike Bird <mgb-debian@yosemite.net>
To: debian-user@lists.debian.org
Subject: Re: Search for string in files
Message-Id: <200708251409.34572.mgb-debian@yosemite.net>
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Saturday 25 August 2007 14:34, Johannes Tax wrote:
> On [Sat, 25.08.2007 13:15], Mike Bird wrote:
> > grep -l 'a_certain_function' $(find . -name '*.c')
>
> That's exactly what I need. It also shows that I have to investigate the
> grep command a little bit further ...
BTW, unlike backquote, dollar-paren nests. If you need
to edit those files with e.g. emacs you can:
emacs $(grep -l 'a_certain_function' $(find . -name '*.c'))
--Mike Bird
Date: Sat, 25 Aug 2007 22:09:58 +0100 (BST)
From: "Richard Lyons" <richard@the-place.net>
To: "debian-user " <debian-user@lists.debian.org>
Subject: Re: using a remote IMAP server and smarthost
Message-ID: <41162.83.67.89.134.1188076198.squirrel@www.the-place.net>
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
On Sat, August 25, 2007 18:56, Florian Kulzer wrote:
> On Sat, Aug 25, 2007 at 17:30:12 +0100, Richard Lyons wrote:
[...]
>> I have an IMAP server on a remote vm. I access it with mutt because i=
t
>> sucks least. But when I want to send mail, I have to open a webmail
[...]
> Can you log in on the vm via ssh? Is a sendmail-equivalent command
> available to you there? There are various tricks that can be played wit=
h
> ssh tunneling and/or with remotely running sendmail via ssh. (I'll be
> happy to provide more details if an ssh-based approach is feasible for
> you.)
Yes, no problem with ssh. I have also tried simply using mutt on
the server, which works but has two disadvantages: I cannot copy mail
to the local machine, and for presumably different reasons of
misconfiguration that also cannot send mail! But the tunnelling sounds
a good way forward. I did try installing stunnel once, but the guide
I was referring to was not up to my level of ignorance.
Please do tell me more...
--=20
richard
Date: Sat, 25 Aug 2007 17:10:14 +0200
From: Johannes Tax <jo.ey@gmx.at>
To: debian-user@lists.debian.org
Subject: Search for string in files
Message-ID: <20070825151014.GA4775@johannes.tax-gmbh.at>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
I'm trying to figure out how to find a certain string inside a bunch of
files. If I, for examples, look for a certain function in a large source
tree, I could do
cat `find . -name '*.c'` | grep 'a_certain_function'
but this seems quite awkward, furthermore it doesn't help that much
because I don't know in which file the string was found. Maybe there's a
tool that makes it possible to find a string in a bunch of files and
also to list in which file the string was found? Or any modification to
the command given above?
Thanks a lot in advance,
Johannes
--
Johannes Tax
jo.ey@gmx.at
Date: Sat, 25 Aug 2007 21:17:13 +0000 (UTC)
From: Felix Karpfen <felixk@webone.com.au>
To: debian-user@lists.debian.org
Subject: Re: Unsolved Scanner Problem
Message-ID: <faq68o$vvh$1@sea.gmane.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Thu, 23 Aug 2007 08:43:31 -0400, Thomas H. George wrote:
SNIP
>=20
> Thinking about this I have concluded that it is not the scanner, it is=20
> unlikely that its the sane backend (Iscan uses the sane backend so it i=
s=20
> in play for both scanners), it is unlikely that both Iscan and Xsane=20
> have the same fault, it is unlikely that it is a udev/usb problem as I=20
> have not seen myriad postings on the Debian user's list, so the problem=
=20
> must be with the kernel I complied.
>=20
> Does any one have any idea what I might have done wrong?
>=20
I ran into (unresolved) scanning-problems when I upgraded from Sarge to
Etch.=20
Epson has a bulletin-board for posting scanner problems.
Although _I_ have failed dismally in persuading this Bulletin Board to
accept my messages, hopefully you can work out how to use it.
A starting-point is:
http://avasys.jp/hp/menu000000500/hpg000000442.htm=20
Good luck
Felix Karpfen
--=20
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Date: Sat, 25 Aug 2007 17:37:05 -0500
From: Neil Gunton <neil@nilspace.com>
To: Johannes Tax <jo.ey@gmx.at>
Cc: debian-user@lists.debian.org
Subject: Re: Search for string in files
Message-ID: <46D0AF11.7030208@nilspace.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Johannes Tax wrote:
> Hi,
>
> I'm trying to figure out how to find a certain string inside a bunch of
> files. If I, for examples, look for a certain function in a large source
> tree, I could do
>
> cat `find . -name '*.c'` | grep 'a_certain_function'
>
> but this seems quite awkward, furthermore it doesn't help that much
> because I don't know in which file the string was found. Maybe there's a
> tool that makes it possible to find a string in a bunch of files and
> also to list in which file the string was found? Or any modification to
> the command given above?
I wrote a perl script that does this (and other stuff) - it's called
'deep' and available on my website:
http://www.neilgunton.com/doc/deep
In your example, you'd just do this:
shell> deep find 'a_certain_function'
And it tells you the file and line numbers where the matches were found.
As the name implies, the script recurses on directories automatically.
There are other features like replace, delete, do (cmd), etc.
/Neil
Date: Sun, 26 Aug 2007 00:27:32 +0200
From: Florian Kulzer <florian.kulzer+debian@icfo.es>
To: debian-user@lists.debian.org
Subject: Re: using a remote IMAP server and smarthost
Message-ID: <20070825222732.GA3848@localhost>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Aug 25, 2007 at 22:09:58 +0100, Richard Lyons wrote:
> On Sat, August 25, 2007 18:56, Florian Kulzer wrote:
> > On Sat, Aug 25, 2007 at 17:30:12 +0100, Richard Lyons wrote:
> [...]
> >> I have an IMAP server on a remote vm. I access it with mutt because it
> >> sucks least. But when I want to send mail, I have to open a webmail
> [...]
>
> > Can you log in on the vm via ssh? Is a sendmail-equivalent command
> > available to you there? There are various tricks that can be played with
> > ssh tunneling and/or with remotely running sendmail via ssh. (I'll be
> > happy to provide more details if an ssh-based approach is feasible for
> > you.)
>
> Yes, no problem with ssh. I have also tried simply using mutt on
> the server, which works but has two disadvantages: I cannot copy mail
> to the local machine, and for presumably different reasons of
> misconfiguration that also cannot send mail! But the tunnelling sounds
> a good way forward. I did try installing stunnel once, but the guide
> I was referring to was not up to my level of ignorance.
>
> Please do tell me more...
OK, I will outline the two methods I know, then you can decide which one
you like better. (Don't hesitate to ask for more details if necessary.)
In the following I will assume that your ~/.ssh/config is set up such
that you can use "ssh myvm" to log in on the vm. (This allows me to keep
the command syntax simple and in any case I think it is a good approach
in practice.) I would also recommend to set up public key authentication
and to use ssh-agent, to avoid having to type your password whenever you
send mail.
Method 1:
---------
You can forward a local port via ssh like this:
ssh -N -L 2525:smtp.smarthost.tld:25 myvm
This command establishes an ssh connection to myvm. Everything that is
sent to port 2525 on your local computer will be forwarded to myvm and
then myvm will pass it on to smtp.smarthost.tld, port 25. This is like a
mini-VPN for only one port; you have to run this command before you send
mail(s) and you can cancel it (CTRL-C) when you are done. Mutt (or any
other MUA) on the local computer can now simply be configured to use
localhost, port 2525 as its smtp server. To smtp.smarthost.tld, on the
other hand, it will seem as if the smtp-connection originates from myvm
and it should accept it. The connection works in both directions and all
reactions of the smarthost will be sent back to your local computer,
port 2525.
If the smarthost requires smtps connections from myvm then you have to
use port 465 instead of port 25:
ssh -N -L 2525:smtp.smarthost.tld:465 myvm
and you have to configure mutt or your local MTA accordingly.
Method 2:
---------
You can set up mutt's sendmail command to use a short script which
invokes ssh to run sendmail on myvm directly. This requires that
sendmail works on myvm, though. The advantage is that you don't have to
do anything else before you send mail (unlike with method 1). It seems
that you do not have sendmail fully operational on myvm at the moment,
so maybe you will want to stick with method 1 right now. In any case,
here is the necessary wrapper script for method 2:
---------- STARTS BELOW (this line is not part of the script) ----------
#! /bin/sh
# sendmail-via-ssh.sh
# wrapper script for mutt to use sendmail via ssh
#
# activated by this option in ~/.muttrc:
# set sendmail="/path/to/sendmail-via-ssh.sh"
cat - | ssh myvm "/usr/sbin/sendmail -oem -oi $@"
---------- ENDS ABOVE (this line is not part of the script) ----------
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Date: Sat, 25 Aug 2007 16:40:42 -0700 (PDT)
From: "Dr. Jennifer Nussbaum" <bg271828@yahoo.com>
To: debian-user@lists.debian.org
Subject: Re: Networking problem (SOLVED)
Message-ID: <251625.99861.qm@web53406.mail.re2.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
>>What is your Wi-Fi chip? Maybe you don't have the
>>driver module
>>installed for the newer kernel version.
>
>Its an Intel PRO/Wireless 3945ABG. From my dmesg in
>the 2.6.18-4 kernel:
>
>---
>ipw3945: Intel(R) PRO/Wireless 3945 Network
Connection
>driver for Linux, 1.1.2dmpr
>ipw3945: Copyright(c) 2003-2006 Intel Corporation
>---
>
>But i didnt get any message about this driver being
>out of date.
Im sorry, i looked closely at the packages and i see
now that theres a new version of the driver package to
go with the new kernel. I would have expected that
there would be some kind of automatic update, or some
way of letting me know that when i upgraded the kernel
i needed to upgrade the driver package as well.
Anyway i just installed the new version of the driver,
that goes with the -5 kernel, and its working fine.
Thank you for putting up with this newbie!
Jen
___________________________________________________________________=
_________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user pa=
nel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite=
.asp?a=3D7=20
Date: Sun, 26 Aug 2007 00:52:30 +0100 (BST)
From: "Richard Lyons" <richard@the-place.net>
To: "debian-user " <debian-user@lists.debian.org>
Subject: what is /command directory?
Message-ID: <45306.83.67.89.134.1188085950.squirrel@www.the-place.net>
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I just noticed with a sinking feeling that my root partition is 96% full.
I do wish I hadn't let the installer use LVM and choose its own sizes.
Now I am stuck trying to work round its choices. I also notice a number
of directories I've never heard of before under root:
command, package, service
'service' contains a symlink to /etc/tinydns, left over from an attempt
to install tinydns, I assume. Is it likely the others also belong to
tinydns, because if so I can delete them as it didn't run anyway.
TIA
--=20
richard
Date: Sat, 25 Aug 2007 16:54:43 -0700 (PDT)
From: Joris Huizer <joris_huizer@yahoo.com>
To: debian-user <debian-user@lists.debian.org>
Subject: Re: fresh kde install
Message-ID: <464194.42921.qm@web52711.mail.re2.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
--- "L.V.Gandhi" <lvgandhi@gmail.com> wrote:
> I have installed etch base system and th en
> installed xorg. I was
> trying to install kde
> apt-get install kde kdm
> I get msg saying
> .....
> the following packages has unmet dependencies
> kde:depends on kde-core(>=3D5.47), but it not going to
> be installed
> :depends on kde-amusements(>=3D5.47), but it not
> going to be installed
> :depends on kdeaddons(>=3D4:3.4.3), but it not going
> to be installed
> :depends on kde-pim(>=3D4:3.4.3), but it not going to
> be installed
> Whe there is this problem in even in stable?
> How to install kde
> --=20
> L.V.Gandhi
> http://lvgandhi.tripod.com/
> linux user No.205042
>=20
No idea why those won't install automatically -- maybe
they are kept in a 'hold' state for some reason.
You could run `aptitude install kde kdm`, it might try
harder to get kde installed.
Also this can be done using the gui of `aptitude`; it
will show problems it found with your requested
installation of packages
Alternatively, you might add all the packages that
"are not going to be installed" to the apt-get line,
like
`apt-get install kde kdm kde-core kde-amusements
kdeaddons kde-pim` - that way you'll probably get
around the problem too
HTH,
Joris
=20
_________________________________________________________________________=
___________
Choose the right car based on your needs. Check out Yahoo! Autos new Car=
Finder tool.
http://autos.yahoo.com/carfinder/
Date: Sun, 26 Aug 2007 01:59:16 +0200
From: Krzysztof =?UTF-8?Q?Luba=C5=84ski?= <luban@nerdshack.com>
To: Debian-user list <debian-user@lists.debian.org>
Subject: Re: Networking problems
Message-Id: <1188086356.13572.35.camel@localhost>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Sat, 2007-08-25 at 14:13 -0700, Dr. Jennifer Nussbaum wrote:
> > Please don't Cc: me, I am subscribed to the list.
>
> Sorry, on some other lists im on its considered polite
> to cc the posters.
No problem - different places, different rules. Here they are as on
http://www.debian.org/MailingLists/#codeofconduct. Possibly the
assumption is that everyone is subscribed unless he/she states
otherwise.
> And i know im breaking threading by responding now
> with a new message. I have to stop the digest
> subscription, sorry....
For me now it's not too bad - turning on fallback threading by subject
helps sometimes.
> >$ dpkg -l linux-image-2.6*
>
> Sorry about the formatting.
Right, should have advised you to grep the result.
> ii linux-image-2.6-686 2.6.18+6etch2
> Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4
> ii linux-image-2.6.18-4-686 2.6.18.dfsg.1-12etch2
> Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4
> ii linux-image-2.6.18-5-686 2.6.18.dfsg.1-13etch1
> Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4
> I dont know where 2.6.18-6 is--the update applet on
> the panel told me there was an update, i ran it, it
> said
> that 2.6.18-6 was ready, i installed it, but now its
> not there, i guess.
Hmm, on second thoughts - wasn't it the latest security update,
linux-image-2.6-686 version 2.6.18+6etch2? This "+6" can be misleading,
because this package depends on another - linux-image-2.6.18-5-686,
which contains the actual kernel. So it's still 2.6.18-5, there's no
2.6.18-6 in Etch yet. And I suppose this is what you've installed,
perfectly okay.
> >What is your Wi-Fi chip? Maybe you don't have the
> >driver module
> >installed for the newer kernel version.
>
> Its an Intel PRO/Wireless 3945ABG. [...]
Same as I have, it's pretty widespread. Probably you haven't installed
the driver module for your latest kernel (2.6.18-5). Try installing
the ipw3945-modules-2.6-686 package, it will keep your modules
up-to-date in the future. And right now it depends on
ipw3945-modules-2.6.18-5-686, which will enable the chip on your
2.6.18-5 kernel.
Maybe you've installed ipw3945-modules-2.6.18-4-686 earlier, so it
fitted the old kernel, but without the ipw3945-modules-2.6-686
"umbrella package" it just stuck at this version.
Hope this helps,
--
Krzysztof Lubanski
Date: Sun, 26 Aug 2007 02:06:10 +0200
From: Krzysztof =?UTF-8?Q?Luba=C5=84ski?= <luban@nerdshack.com>
To: Debian-user list <debian-user@lists.debian.org>
Subject: Re: Networking problem (SOLVED)
Message-Id: <1188086770.13572.40.camel@localhost>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Sat, 2007-08-25 at 16:40 -0700, Dr. Jennifer Nussbaum wrote:
> Im sorry, i looked closely at the packages and i see
> now that theres a new version of the driver package to
> go with the new kernel. I would have expected that
> there would be some kind of automatic update, or some
> way of letting me know that when i upgraded the kernel
> i needed to upgrade the driver package as well.
Just install ipw3945-modules-2.6-686, which I mentioned in the other
reply - it does just this. Sorry I haven't seen your last post before
replying to the previous.
> Anyway i just installed the new version of the driver,
> that goes with the -5 kernel, and its working fine.
Good to know!
> Thank you for putting up with this newbie!
You're welcome. It's what this list is for.
--
Krzysztof Lubanski
Date: Sat, 25 Aug 2007 19:13:59 -0500
From: Ron Johnson <ron.l.johnson@cox.net>
To: debian-user <debian-user@lists.debian.org>
Subject: Re: what is /command directory?
Message-ID: <46D0C5C7.6090308@cox.net>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/25/07 18:52, Richard Lyons wrote:
> I just noticed with a sinking feeling that my root partition is 96% full.
> I do wish I hadn't let the installer use LVM and choose its own sizes.
> Now I am stuck trying to work round its choices. I also notice a number
> of directories I've never heard of before under root:
> command, package, service
>
> 'service' contains a symlink to /etc/tinydns, left over from an attempt
> to install tinydns, I assume. Is it likely the others also belong to
> tinydns, because if so I can delete them as it didn't run anyway.
If /var is not in it's own partition, then "apt-get autoclean" will
free up a lot of space.
- --
Ron Johnson, Jr.
Jefferson LA USA
Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG0MXHS9HxQb37XmcRAtLmAKCKs4yJ9M1/dq3MYHjpUHETSVG57wCdG1oO
0PTYkWFvcKH5hNG1hg0tABw=
=+np0
-----END PGP SIGNATURE-----
Date: Sun, 26 Aug 2007 00:25:10 +0000 (UTC)
From: - Tong - <mlist4suntong@yahoo.com>
To: debian-user@lists.debian.org
Subject: Re: Search for string in files
Message-ID: <faqh96$mcl$1@sea.gmane.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Sat, 25 Aug 2007 17:37:05 -0500, Neil Gunton wrote:
>> I'm trying to figure out how to find a certain string inside a bunch o=
f
>> files. If I, for examples, look for a certain function in a large sour=
ce
>> tree, I could do
>>=20
>> cat `find . -name '*.c'` | grep 'a_certain_function'
>>=20
>> but this seems quite awkward, furthermore it doesn't help that much
>> because I don't know in which file the string was found. Maybe there's=
a
>> tool that makes it possible to find a string in a bunch of files and
>> also to list in which file the string was found? Or any modification t=
o
>> the command given above?
>=20
> I wrote a perl script that does this (and other stuff)
I wrote such a perl script as well when in Window$. But now I stick to
plain *nix solution -- why bother a script if you can do it with pure=20
*nix command. Try this:
grep -Hn 'a_certain_function' `find . -name '*.c'`
If the find command returns over hundreds of files, which might yield
command line too long error, try this:
find . -name '*.c' | xargs grep -Hn 'a_certain_function'=20
You can also substitute grep with agrep for much more advanced searches:
agrep text search tool with support for approximate patterns
See, the combination of pure *nix command can solve every possible
problems you may have, whereas in window$, you have to have thousands of
individual tools for thousands of different tasks, and even with the same
task, say rename files, you may have to choose from hundreds of tools to
pick the one that suits your needs. Yuck.
HTH
--=20
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Date: Sat, 25 Aug 2007 20:36:01 -0400
From: "Francois Duranleau" <xiao.bai.xiong@gmail.com>
To: debian-user@lists.debian.org
Subject: Re: Cannot open root device "hda1" or unknown-block(0,0)
Message-ID: <8eb883950708251736y3a9cddcdte8a5f02e30005899@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 8/24/07, Wayne Topa <linuxone@intergate.com> wrote:
> Francois Duranleau(xiao.bai.xiong@gmail.com) is reported to have said:
[snip]
> > It's an old system: AMD Athlon Thunderbird 1.1GHz with 1.25GB RAM and
> > an 80GB Western Digital drive, for sur not SATA, I bought this
> > computer in december 2000. The motherboard is an ABIT KT7 (no RAID,
> > VIA chipsets). Right now I am not using the kernel's VIA chipset
> > driver because it causes me some troubles (see
> > http://lists.debian.org/debian-user/2007/08/msg00252.html and the rest
> > of the thread).
>
> I am using the same MB with less Mem but 160G HD to write this. I
> would like to see the contents of the /boot dir.
Here it is (ls -lR /boot/):
total 3676
-rw-r--r-- 1 root root 508410 Aug 5 22:45 System.map-2.4.27
-rw-r--r-- 1 root root 521488 Aug 5 23:31 System.map-2.6.18
-rw-r--r-- 1 root root 512 Dec 31 2003 boot.0300
-rw-r--r-- 1 root root 512 Dec 31 2003 boot.0303
-rw-r--r-- 1 root root 512 Dec 31 2003 boot.0304
lrwxrwxrwx 1 root root 11 Sep 3 2005 boot.b -> boot-text.b
-rw-r--r-- 1 root root 308326 Apr 9 15:38 coffee.bmp
-rw-r--r-- 1 root root 25341 Aug 5 22:33 config-2.4.27
-rw-r--r-- 1 root root 34755 Aug 5 23:14 config-2.6.18
lrwxrwxrwx 1 root root 13 Sep 3 2005 debian.bmp -> /boot/sid.bmp
-rw-r--r-- 1 root root 153720 Apr 9 15:38 debianlilo.bmp
drwxr-xr-x 2 root root 4096 Aug 6 23:21 grub
-rw------- 1 root root 33792 Feb 16 2007 map
-rw-r--r-- 1 root root 23662 Apr 9 15:38 sarge.bmp
-rw-r--r-- 1 root root 24116 Apr 9 15:38 sid.bmp
-rw-r--r-- 1 root root 873763 Aug 5 22:45 vmlinuz-2.4.27
-rw-r--r-- 1 root root 1188132 Aug 5 23:31 vmlinuz-2.6.18
/boot/grub:
total 196
-rw-r--r-- 1 root root 197 Feb 16 2007 default
-rw-r--r-- 1 root root 30 Feb 16 2007 device.map
-rw-r--r-- 1 root root 7584 Feb 16 2007 e2fs_stage1_5
-rw-r--r-- 1 root root 7424 Feb 16 2007 fat_stage1_5
-rw-r--r-- 1 root root 8192 Feb 16 2007 jfs_stage1_5
-rw-r--r-- 1 root root 4278 Aug 6 23:21 menu.lst
-rw-r--r-- 1 root root 4278 Aug 6 23:21 menu.lst~
-rw-r--r-- 1 root root 6848 Feb 16 2007 minix_stage1_5
-rw-r--r-- 1 root root 9280 Feb 16 2007 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Feb 16 2007 stage1
-rw-r--r-- 1 root root 108360 Feb 16 2007 stage2
-rw-r--r-- 1 root root 8904 Feb 16 2007 xfs_stage1_5
> The menu.lst looks ok, if you are not using an initrd image.
I am not using such an image.
[snip]
--
Francois
Date: Sat, 25 Aug 2007 17:28:26 -0700
From: Peter Easthope <peasthope@shaw.ca>
To: debian-user@lists.debian.org
Subject: Re: Re: Re^4: Lenny, X, dead mouse
Message-id: <46D0C92A.1010209@shaw.ca>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
Andrei,
ap> Did you ever restart this machine? I mean after
installing with debootstrap. If yes then try a 'dpkg-reconfigure
linux-image-2.6.18-4-686' and then reboot
(BTW you should upgrade to 2.6.18-5-686).
Thanks. A look in deselect elaborated the problem
immediately: no kernel package. I should have
realized that debootstrap copied a kernel but
did not install the kernel package. There was
an Ethernet driver but no mouse driver.
ap> I always thought of debootstrap to be the
most "hackish" way of installing Debian. The new
installer is really great.
Given a working system able to communicate with
a deb server and an attached target storage device,
installation on the target should be straightforward
and efficient. Works well really. The third storage
medium, CD or USB or other, isn't necessary,
provided my wits are present.
ap> Could you please not start a new thread each time you answer.
Just use reply
Topic for another message.
Thanks, Peter E,
End of debian-user-digest Digest V2007 Issue #2252
**************************************************
Received on Sat Aug 25 21:41:56 2007