Date: Sun, 26 Aug 2007 01:24:37 +0000
From: "Douglas A. Tutty" <dtutty@porchlight.ca>
To: debian-user@lists.debian.org
Subject: Re: what is /command directory?
Message-ID: <20070826012437.GA10503@titan.hooton>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sun, Aug 26, 2007 at 12:52:30AM +0100, 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.
>
Are you saying that there are directories in /root that you didn't put
there and you don't know what they are, or are you saying that there are
/command, /package, /service directories (none of which are in the FHS).
Try apt-file search (on a non-full system) to see to whom they belong.
Otherwise, move them to somewhere safe (USB stick, floppy, another
computer with scp or rsync, whatever)
If you're using LVM, do you have any free space?
Since we don't know your system, send the output of:
/bin/df -h
(shows amount of free space on each partition)
/sbin/pvdisplay
(shows all your physical volumes used for LVM with amount of free
extents).
/usr/bin/du -c -h --max-depth=1 /*
(shows the amount of space taken up by the top two directory levels;
tells you where your space has gone.
Also tell us what filesystem you're using. If its ext2/3 it can be
resized. For example, since you're using LVM, if one LV has lots of
free space while your / LV is full, if you have no free extents in
/'s VG, you can reduce the oversize LV and its ext2/3 filesystem and
extend /'s LV.
Good luck,
Doug.
Date: Sat, 25 Aug 2007 21:26:36 -0400
From: Wayne Topa <linuxone@intergate.com>
To: debian-user@lists.debian.org
Subject: Re: Cannot open root device "hda1" or unknown-block(0,0)
Message-ID: <20070826012636.GA9289@buddy.mtntop.home>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Francois Duranleau(xiao.bai.xiong@gmail.com) is reported to have said:
> 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.
I don't see anything obivous. I take it you compiled your own kernel.
Did you use make-kpkg or the older make dep, etc? If you used kpkg
then I would suggest you enable CONFIG_BLK_DEV_INITRD=y and try it
again. I used to compile the old way but find that kernel-package
is the better method, now.
If you have already done that, all I can suggest is that you try
installing a debian 2.6.18 image. I don't recall what your running
but I think etch is at 2.6.18-4 now. Testing just upgraded to
2.6.21-2.
Sorry for the late reply. I had a wedding to atten today and just got
back.
Wayne
--
Real computer scientists don't program in assembler. They don't write
in anything less portable than a number two pencil.
_______________________________________________________
Date: Sat, 25 Aug 2007 21:42:18 -0400
From: Wayne Topa <linuxone@intergate.com>
To: debian-user@lists.debian.org
Subject: Re: Cannot open root device "hda1" or unknown-block(0,0)
Message-ID: <20070826014217.GA9710@buddy.mtntop.home>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Francois Duranleau(xiao.bai.xiong@gmail.com) is reported to have said:
> 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.
Francois
Just looked at the config file you listed for the 2.1.18 kernel.
It looks different then mine in the Block Device section.
# Block devices
#
CONFIG_BLK_DEV_FD=m
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_CRYPTOLOOP=m
CONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_UB is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
CONFIG_BLK_DEV_INITRD=y
CONFIG_CDROM_PKTCDVD=y
CONFIG_CDROM_PKTCDVD_BUFFERS=8
CONFIG_CDROM_PKTCDVD_WCACHE=y
# CONFIG_ATA_OVER_ETH is not set
This is from the /boot/config-2.6.18y that does not use initrd. Maybe
you could try adding some of these to your 2.6.18 config file.
I have found that using the latest image file works great and saves me
all that compiling time. YMMV
Regards
Wayne
--
The problem with program verifiers is that they tend to cheat at toy
problems in order to get results.
_______________________________________________________
Date: Sat, 25 Aug 2007 21:19:34 -0500
From: Owen Heisler <owenh000@gmail.com>
To: debian-user@lists.debian.org
Subject: Re: How to create like-official CD from list of packages
Message-ID: <20070826021934.GA1808@owenh.hopto.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0"
Content-Disposition: inline
--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, 2007.08.23 21:20, cls@truffula.sj.ca.us wrote:
> In article <8VxSm-5z6-1@gated-at.bofh.it>, Owen Heisler wrote:
> > On Tue, 2007.08.21 10:00, abdelkader belahcene wrote:
> >> you want to create CD exacly like the Offical CD, same arborescence,
> >> pool/main/a, pool/main/b, ... packages and son on,
> >> in one word, I need the script ( to customize of course for me) used
> >> by the debian developpers to generate the CD.
> >
> > Have you looked at the debian-cd package? Perhaps it can help.
>=20
> I know it is the custom to answer only exactly the question that
> was asked, and I know the reason is that answers which are only
> puzzle pieces encourage newbies to become self sufficient,
> while volunteering additional advice they didn't know to ask for
> teaches them bad habits.
> But in this case, sending abdelkader to the debian-cd package
> is just setting him up for failure. That's cruel.
I apologize. I know nothing about creating CDs or maintaining a mirror, but
had noticed the debian-cd package before and wanted to mention it having not
noticed such in this thread already. Perhaps (by my knowledge when I wrote=
the
message) abdelkader had overlooked the package and it was exactly what he
needed.
> So I have some different advice for abdelkader.
> 1. Capitalize the leading characters in your name. Writing
> your name all in lower case is an irritating affectation.
> And thanks for "arborescence." I learned a new word I'll
> probably use.
Ah, this will help! ;)
--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG0OM29XC8Sh1vpNARAjmyAJ4wtYNFrkmPefqd805TVOtBckpmQQCfbjgh
whqRbg10y1BLPfCMEKXQD4Q=
=oW2r
-----END PGP SIGNATURE-----
--k+w/mQv8wyuph6w0--
Date: Sat, 25 Aug 2007 22:40:19 -0400
From: Wayne Topa <linuxone@intergate.com>
To: debian-user@lists.debian.org
Subject: Re: Pcmcia express card
Message-ID: <20070826024019.GB9289@buddy.mtntop.home>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
[L]ash(lash@semailer.com) is reported to have said:
> Il giorno Sat, 25 Aug 2007 09:56:24 -0400
> Wayne Topa <linuxone@intergate.com> ha scritto:
>
> > Ethernet controller: 3Com Corporation 3cXFEM656C 10/100 LAN+Winmodem
> > CardBus [Tornado]
> >
> > 3Com Megahertz 10/100 LAN Cardbus
> >
>
> but are this pcmcia express card? My notebook don't have the support
> for normal pcmcia card, only the express.
Sorry, I missed the 'express' in your question. I don't know if I
have ever even heard of pcmcia express before.
I don't know but Google could tell you, if your interested.
Wayne
--
Never say "OOPS!" always say "Ah, Interesting!"
_______________________________________________________
Date: Sat, 25 Aug 2007 11:57:55 -0700
From: David Brodbeck <brodbd@u.washington.edu>
To: List Debian User <debian-user@lists.debian.org>
Subject: Re: big brother yahoo
Message-Id: <FEDBC6D2-E3F8-43B5-83BC-FC1A2D526F7B@u.washington.edu>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Content-Transfer-Encoding: 7bit
On Aug 25, 2007, at 11:29 AM, Paul Johnson wrote:
>> I am able to watch videos athttp://video.yahoo.combut that might
>> be because I changed general.useragent.extra.firefox to
>> Firefox/2.0.0.6
>
> I think the ultimate point is that we shouldn't have to emulate some
> other software to browse the web.
Ultimately the problem is there's no way to easily distinguish
between "Mozilla-style" and "IE-style" browsers, I suppose. I think
it's a little unreasonable to expect them to have a list of the ID
strings of every single niche browser someone might happen to be using.
Date: Sat, 25 Aug 2007 11:59:02 -0700
From: David Brodbeck <brodbd@u.washington.edu>
To: List Debian User <debian-user@lists.debian.org>
Subject: Re: Good fdisk Practices
Message-Id: <35F6F5D6-1184-457A-9A69-1FCC440B4B5E@u.washington.edu>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Content-Transfer-Encoding: 7bit
On Aug 25, 2007, at 5:23 PM, s. keeling wrote:
> Ron Johnson <ron.l.johnson@cox.net>:
>>
>> On 08/24/07 11:16, David Brodbeck wrote:
>>>
>>> Also, is there any good reason to have a separate /boot on a modern
>>> system? I always thought /boot was just a kludge to get around old
>>> BIOSes that couldn't load anything that wasn't on the first part
>>> of the
>>
>> I doubt it. I still do it, though, from tradition I guess.
>
> There may be good reason for it still in terms of security. /boot
> doesn't need to be mounted on a running system. I'm not sure if that
> adds a lot of security though.
I'm thinking no. To alter any of the kernel files you'd need root
privileges, and if you have that, you can do 'mount /boot'.
Date: Sat, 25 Aug 2007 22:26:16 -0500
From: John Hasler <jhasler@debian.org>
To: List Debian User <debian-user@lists.debian.org>
Subject: Re: Good fdisk Practices
Message-ID: <87r6lr563r.fsf@toncho.dhh.gt.org>
Content-Type: text/plain; charset=us-ascii
David Brodbeck writes:
> I'm thinking no. To alter any of the kernel files you'd need root
> privileges, and if you have that, you can do 'mount /boot'.
True for an intelligent cracker, but a trojan trying to patch the kernel
isn't going to know to mount anything.
--
John Hasler
Date: Sun, 26 Aug 2007 03:52:48 +0000
From: "Douglas A. Tutty" <dtutty@porchlight.ca>
To: debian-user@lists.debian.org
Subject: Re: Good fdisk Practices
Message-ID: <20070826035248.GA11477@titan.hooton>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Aug 25, 2007 at 11:59:02AM -0700, David Brodbeck wrote:
> On Aug 25, 2007, at 5:23 PM, s. keeling wrote:
> >Ron Johnson <ron.l.johnson@cox.net>:
> >> On 08/24/07 11:16, David Brodbeck wrote:
> >>>
> >>>Also, is there any good reason to have a separate /boot on a modern
> >>>system? I always thought /boot was just a kludge to get around old
> >>>BIOSes that couldn't load anything that wasn't on the first part
> >>>of the
> >>
> >> I doubt it. I still do it, though, from tradition I guess.
> >
> >There may be good reason for it still in terms of security. /boot
> >doesn't need to be mounted on a running system. I'm not sure if that
> >adds a lot of security though.
>
> I'm thinking no. To alter any of the kernel files you'd need root
> privileges, and if you have that, you can do 'mount /boot'.
On the other hand, having /boot separate could be more robust in the
event of an unclean shutdown. The system won't boot at all if the
kernel file gets corrupted, so having /boot separate, and perhaps
mounted ro helps protect it. Having all the other usual directories
split off leaving a 300M / helps to protect / in a similar fashion.
I was going to say that its also nice to have a static-linked shell for
those times when you need init=/bin/sh, however:
# ldd /bin/sash
/usr/bin/ldd: line 171: /lib/ld-linux.so.2: No such file or directory
ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)
IMHO a shared library should not have an unknown exit code; ldd should
know all exit codes of shared libraries.
So what about busybox-staic? The kernel depends on initramfs-tools
which depends on busybox which conflicts with busybox-static.
initramfs-tools doesn't give the option of busybox-static. It does give
an option of busybox-cvs-static but it doesn't seem to be available on
amd64.
Sheesh.
So perhaps having /boot separate doesn't matter (unless otherwise using
LVM) since there's nothing for the kernel to boot if the shared
libraries get corrupted.
Doug.
Date: Sun, 26 Aug 2007 05:19:21 +0100
From: Jose Paulo Matafome Oleiro <linuxhome@sapo.pt>
To: Ms Linuz <ms.linuz@gmail.com>
Cc: debian-user@lists.debian.org
Subject: Re: Just flaming....
Message-Id: <1188101961.4188.13.camel@localhost>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
S=C3=A1b, 2007-08-25 =C3=A0s 12:46 +0700, Ms Linuz escreveu:
> http://www.microsoft.com/windowsserver/compare/default.mspx
Microsoft simply trying to cheat.
Okay $2,499 maybe a little, but when they say "Free" they are trying to
include Linux itself and not only Red Hat to be the Target but specially
Linux. But to be a true TCO, and comparison Microsoft should had do de
comparison between their operating system and all Linux distributions to
be a 100% true comparison, in the price to the software, and include the
price of support. Okay, but when to kick Microsoft ass?
But the big mistake well, if we go to
https://www.redhat.com/apps/store/server/ Red Hat tells:
Red Hat Enterprise Linux Advanced Platform
(Unlimited sockets)
Well Unlimited sockets it's the number of cpu's, but if we read the EULA
of Microsoft operating systems they're licensed under a number of cpu's,
if you want more you need to pay more to Microsoft.
Well now to Reliability, or may I say in the way of Microsoft, HOLES?
Well Easy configuration and management, okay it's just click next, next,
next in buttons and everything works just fine, but when we need a
customization? How I can do? Click next? and follow the instructions?
Well no way dude.
Interoperability
Open Standards =E2=89=A0 Open Source
Well it's easy to implement Open Standards in Open Source, then the
OpenXML implemented by Microsoft in Office 2007 tries to be a Open
Standard for Documents, when the Open Source Open Document Format, it's
a Open Standard. And to use Open XML from Microsoft we will need some
closed source components made by Microsoft, so what this means?
Well Microsoft just trying to create a Open Standard using closed
programs in this way they're preventing the evolution of Open Standards
as a true Open Standard.
So my conclusion....
Don't believe in what you read from Microsoft it's just trash lies...
Sincelery
Jos=C3=A9 Paulo Matafome Oleiro
Date: Sun, 26 Aug 2007 07:46:01 +0200
From: Jonathan Kaye <jdkaye10@yahoo.es>
To: debian-user@lists.debian.org
Subject: Re: Search for string in files
Message-ID: <far42l$mqp$1@sea.gmane.org>
Content-Type: text/plain; charset=us-ascii
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?
>
> Thanks a lot in advance,
>
> Johannes
>
> --
> Johannes Tax
> jo.ey@gmx.at
Hi Johannes,
If you don't mind a non-cli-solution you can use the Find File built into
Konqueror. It's in the Tools menu. You just specify your filter and then go
into the Contents tab where you can specify which text your looking for.
You get the results in a nice clickable pane. Maybe other file managers
have a similar feature.
Cheers,
Jonathan
--
Registerd Linux user #445917 at http://counter.li.org/
Date: Sat, 25 Aug 2007 23:47:52 -0700
From: Jon Leonard <jleonard@oasis.slimy.com>
To: debian-user@lists.debian.org
Cc: Jon Leonard <jleonard@slimy.com>
Subject: Re: Search for string in files
Message-ID: <20070826064752.GL31306@oasis.slimy.com>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sun, Aug 26, 2007 at 07:46:01AM +0200, Jonathan Kaye wrote:
> 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?
> >
> > Thanks a lot in advance,
> >
> > Johannes
> >
> > --
> > Johannes Tax
> > jo.ey@gmx.at
> Hi Johannes,
> If you don't mind a non-cli-solution you can use the Find File built into
> Konqueror. It's in the Tools menu. You just specify your filter and then go
> into the Contents tab where you can specify which text your looking for.
> You get the results in a nice clickable pane. Maybe other file managers
> have a similar feature.
And if you're interested in sticking with the command line, the invocation
you probably want is:
find . -name '*.c' | xargs grep 'a_certain_function'
The xargs command is almost essential for this sort of activity: It
takes its standard input and uses it as additional arguments to the
command. It also avoids various limits as to the length of argument
lists. The version with 'cat' above could well fail if you have too
many findable .c files.
The find above takes advantage of grep's default of listing filenames in
matches if there's more than one on the command lines. I'm more likely
to use a variant like:
find . -type f | xargs grep -li pattern
That'll search all ordinary files, case insensitive, and only give the
names of the matching files. The man pages for find and grep can be
very helpful for fine-tuning this kind of search.
Jon Leonard
Date: Sun, 26 Aug 2007 09:55:57 +0100
From: Bob King <g3ase@waitrose.com>
To: debian-user@lists.debian.org
Subject: wmv
Message-Id: <1188118557.6884.1.camel@bob-laptop>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Please how do I play wmv files on ubuntu?
Bob
Date: Sun, 26 Aug 2007 04:35:44 -0500
From: Ron Johnson <ron.l.johnson@cox.net>
To: g3ase@waitrose.com
Cc: debian-user@lists.debian.org
Subject: Re: wmv
Message-ID: <46D14970.8000704@cox.net>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/26/07 03:55, Bob King wrote:
> Please how do I play wmv files on ubuntu?
What do the Ubuntu forums say?
(I can tell you how to do it on Debian, but Ubuntu is... different
in subtle ways.)
- --
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)
iD8DBQFG0UlwS9HxQb37XmcRAgwuAKDD041iGlBuNEA48FIBdL6QSUWYIgCgi7Z8
k/PIrsDHJJ86BZncvGP4u3k=
=Cv55
-----END PGP SIGNATURE-----
Date: Sun, 26 Aug 2007 11:06:14 +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: <44094.83.67.89.134.1188122774.squirrel@www.the-place.net>
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
On Sat, August 25, 2007 23:27, Florian Kulzer wrote:
[...]
> 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 kee=
p
> 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 authenticatio=
n
I have set up the alias for ssh, and created a key for authentication.
> and to use ssh-agent, to avoid having to type your password whenever yo=
u
> send mail.
I read the man page for ssh-agent, but am not much the wiser. Still, I
figure I can try without it for now...
> 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 sen=
d
> 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.
I find the whole mail process absurdly confusing, and nobody seems to
have written a lucid explanation of how the bits fit together. I read
mail by connecting to the IMAP server. When I write mail, mutt sends
it to my local sendmail, is that right? And the local sendmail is
specified in ~/.muttrc thus:
set sendmail=3D"/usr/lib/sendmail"
which is really my local exim4. So that needs to be set up to send via
port 2525. How?
Or is that all wrong?
Sorry to be so slow.
--=20
richard
Date: Sun, 26 Aug 2007 11:37:27 +0100 (BST)
From: "Richard Lyons" <richard@the-place.net>
To: "debian-user " <debian-user@lists.debian.org>
Subject: Re: what is /command directory?
Message-ID: <37346.83.67.89.134.1188124647.squirrel@www.the-place.net>
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
On Sun, August 26, 2007 01:13, Ron Johnson wrote:
> On 08/25/07 18:52, Richard Lyons wrote:
>> I just noticed with a sinking feeling that my root partition is 96%
>> full.
[...]
> If /var is not in it's own partition, then "apt-get autoclean" will
> free up a lot of space.
Yes, thanks, I have done that, but in this case it doesn't help as
/var is in a separate partition.
--=20
richard
End of debian-user-digest Digest V2007 Issue #2253
**************************************************
Received on Sun Aug 26 07:10:13 2007