Re: eliminating implicit rules in makefiles

2006-06-27 Thread David Kirchner

On 6/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

How can I disab;e *all* the default rules in my Makefiles?


GNU 'make' has a '-r' flag that does this. It seems to work, in my
limited testing.

--
David 'dpk' Kirchner


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: arp syntax help

2006-05-08 Thread David Kirchner

On 5/8/06, S t i n g r a y [EMAIL PROTECTED] wrote:

Can you please share the syntax for

manually adding ip  MAC address permenantly

i am doing

arp -s 10.0.0.1 22:33:55:gf:34:22 permenent


permanent is implied, so you can drop that argument.


also how to delete one MAC entry

arp -d 10.0.1.17
 but its not deleting the whole entry


Is the host still online, and on the network? It's possible it's
re-arping after you delete it. You can confirm this by running
tcpdump -ln arp after you delete the arp entry.

--
David 'dpk' Kirchner



Re: RAID Sizes (was Re: Why do people in the UK put a u in the word color?)

2006-04-14 Thread David Kirchner
On 4/14/06, Andrei Popescu [EMAIL PROTECTED] wrote:
 On Wed, 2006-04-12 at 12:32 -0400, Matthias Julius wrote:
 Yes, there is.  As example here is part of the output of mdadm:

   Array Size : 468872448 (447.15 GiB 480.13 GB)
   Device Size : 156290816 (149.05 GiB 160.04 GB)
   ^^^^^

 Note there is GiB (gibibyte) which is 1024 MiB (mebibyte) and there 
 is
 GB (gigabyte) which is 1000 MB (megabyte).
 It was just right. This is more in detail:

 156290816(kiB) * 1024 = 160041795584 bytes

 160041795584/1000/1000/1000 ~= 160.04 GB

 or

 160041795584/1024/1024/1024 ~= 149.05 GiB

This is an example of how just slightly better command output or
logging could save many man-hours of confusion or explanation. Since
the mdadm program displays the values in two human readable forms (GB
and GiB), it could also print the first number as a raw count of bytes
(with the suffix bytes) to make the size of the array entirely clear
and precise to the user.



Re: ATTN: Barbara Oncay

2006-04-14 Thread David Kirchner
On 4/14/06, Steve Lamb [EMAIL PROTECTED] wrote:
 Andrew Sackville-West wrote:
  Huh, look at that. It doesn't show up in any of the attachments
  either. Just not there. Good eye Gene.

 Not true, here's the unsub instructions from the message I am replying to:

 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


 It's there.

In gmail, it is only available while viewing the original source (IE
raw email with all headers). This may be a failing of gmail. I'm not
sure. What does the email specification demand when someone sends a
multipart/* message, and then includes text outside of the multipart
parts?

Maybe the Debian list software should detect that and encapsulate the
unsubscribe details in an attachment. For all I know that could break
the signature's validity.



Re: Debian security.

2006-04-03 Thread David Kirchner
On 4/3/06, Surachai Locharoen [EMAIL PROTECTED] wrote:
 Is there any body guarantee debian security. I want to install debian as
 my server instead of redhat as3 server which just attack by Phishing.

 Kan

As stated already, this sort of problem usually comes about because of
some insecure PHP or CGI script or script suite rather than through
the underlying OS's security, so Debian isn't going to offer you more
security than Redhat in that sense.

The best defense against this sort of attack is to a) understand
everything you install, how it works, how to spot when it's not
working, how to interpret the logs it generates, etc, and/or b) hire
someone trustworthy who is skilled to understand it for you (which can
include using hosted services). It's not enough to install a script
and leave it be forever. You have to upgrade them immediately after a
new version comes out, or at least shut off the old version while you
review your options. It's a real pain having to maintain a busy server
online, which is why b) can be a great option.



Re: lists.debian.org vs google groups

2006-04-03 Thread David Kirchner
On 4/3/06, Pascal Hakim [EMAIL PROTECTED] wrote:
 Some people leak headers into the body of their email.

gmail does by default, apparently.

I do wonder if there really is a point to masking out the email
addresses in the archive. If I were a spammer, one of the first things
I'd do is sign up to receive mail from a few thousand heavily
trafficked mailing lists (using email-usenet/web gateways to
determine traffic levels), and then just add each user that I see to
my lists. I would probably sign up for the digests, to make it
basically a once-a-day (or whatever the frequency) thing.

Aside from modifying the email addresses in the posts re-mailed to
each subscriber, I can't see a sure way this could be detected.

Plus, I doubt there's only one debian-users archive out there. It'd be
hard, if not impossible, to convince them all to change their ways.



Re: CC Solutions Spamming Debian-User List

2006-03-23 Thread David Kirchner
On 3/23/06, C.C.S. [EMAIL PROTECTED] wrote:
 We never signed up for any debian mailing lists. Is there any way to
 determine what email addresses from our domain are on that list?

It should be in the headers of this message, when you receive it. Look
for Received for lines until you find one for your domain.



Re: Someone get rid of this stupid thing.

2006-03-18 Thread David Kirchner
On 3/18/06, Gene Heskett [EMAIL PROTECTED] wrote:
 3. There is no way short of a customized subject message sent
 individually to every name on the mailing list, one at a time, FROM a
 mailng list user, waiting each time to see if it generates this
 response.

This seems like the most reasonable solution. As long as the sender is
not already on UOL's allow list, it should work well. You wouldn't
have to wait too long -- the autoresponse comes in quickly, and you
can keep sending to the other users while you wait.

But, yeah, it is something the list managers would have to do.



Re: Re: Progress meter on copying

2006-03-15 Thread David Kirchner
On 3/15/06, Ted Gilchrist [EMAIL PROTECTED] wrote:
 I thought I could capture the progress status of scp to a file:

  % scp -r html [EMAIL PROTECTED]: 1mylog  21

 but the result is an empty file. Can someone tell me how to do this?

scp is automatically detecting that the standard output is not a tty,
so it's not sending the progress bat. You can capture it in other ways
though -- 'screen' has a 'screenlog' option (^AH) and 'script' will
log everything output by the specified program to a specified file.



Re: Newcomers to Debian downloading/ordering full CD-set

2006-03-14 Thread David Kirchner
On 3/14/06, Andrei Popescu [EMAIL PROTECTED] wrote:
 A quick peak at debian-cd shows that there are discussions about having a
 Desktop install with as few CDs as possible. This is the development part. The
 site developers should present this accordingly. Something like: For a 
 Desktop  install you need at least CD1 and 3. Other suggestions?

 Andrei

I think it'd probably be best to have any CDs necessary for an install
be called install-N.iso, while the rest could be extra-N.iso.



Re: Debian not recognizing 1 of my 2 CPUs and sees only 16k cache =(

2006-03-08 Thread David Kirchner
On 3/8/06, Yu,Glen [Ontario] [EMAIL PROTECTED] wrote:
 Hi everyone,

 Thanks for you replies, I've installed the smp kernel 
 (kernel-image-2.4.27-2-686-smp) but now cat /proc/cpuinfo lists 4 cpus!  
 However my supervisor has informed me that they should be single-core, rather 
 than dual-core Xeons, so I don't how Debian 3.1 is registering 4 cpus!  I 
 there a different smp kernel I should be installing instead?

 Thanks,

 Glen Yu | [EMAIL PROTECTED]

You probably have HyperThreading enabled in your BIOS. You should be
able to disable it there, and then see 2 CPUs. The benefits of
HyperThreading appear minimal, and it actually has a negative impact
for a lot of people, so it's probably better turned off unless you
have specific tests showing that your applications run faster with it
on. 2 cents.



Re: [EMAIL PROTECTED]: RE: ...]

2006-03-08 Thread David Kirchner
On 2/26/06, Magnus Therning [EMAIL PROTECTED] wrote:

 Are other people receiving emails like the one I've attached after
 posting to debian-user?

 Is it possible to track down the person who's causing this and tell
 him/her to make sure the spamfilter skips postings from debian-user?

The person on the list that is causing these to be sent out is
apparently either a jerk, or MIA. However, it should be very easy to
find the culprit. The autoresponder keeps the subject line intact. A
unique code in the subject header sent to every member of the list
should end up revealing the problem address.

Assuming the person sending the codes isn't already on the allow
list for this jerk, of course.



Re: Stupid shell script question about read

2006-03-02 Thread David Kirchner
On 3/2/06, Kevin B. McCarty [EMAIL PROTECTED] wrote:
 Hi list,

 Could someone tell me why the following works in zsh but not in
 bash/posh/dash?

 benjo[3]:~% echo foo bar baz | read a b c
 benjo[4]:~% echo $a $b $c
 foo bar baz

 If I try the same with bash (or other sh-compatible shells), the
 variables $a $b and $c are unset.  From the bash man page:
 ...
 So read claims to read from the standard input, but it doesn't
 actually seem to happen when a pipe is involved.

What's happening here is that the pipe is causing a subshell to be
spawned, which is then parsing the command read a b c.

 Posh and dash behave like bash in this respect, so I guess that this is
 not a bug, and that what zsh does is actually an extension.  So, what is
 the correct POSIX-compatible way to get read to work as I want?

Yeah, I would guess that zsh is doing something really funky to make
this work -- passing variables from a subprocess back up to the
parent, or not actually spawning a subprocess with the pipe, or
something like that.

I'm not sure of the POSIX way to use read in this manner, but I found
this on Google/A9:

http://linuxgazette.net/issue57/tag/1.html

The example he gives, with the  () syntax, worked in bash, but not
in Debian or FreeBSD's /bin/sh.



Re: apache config question - China IP's

2006-02-21 Thread David Kirchner
On 2/20/06, Kevin Coyner [EMAIL PROTECTED] wrote:
 221.226.124.109 - - [20/Feb/2006:16:17:10 -0500] GET
 http://1-shops.com/prx.php?p=q1w2e3r4t5y6u7i8o9p0*a-b HTTP/1.1 404
 288 http://www.google.com/intl/en-us/; Mozilla/4.0 (compatible;
 MSIE 6.0; Windows NT 5.0; Crazy Browser 1.0.5)


 I interpret this as follows:

 Client IP:
 221.226.124.109

 Page attempted:
 http://1-shops.com/prx.php?p=q1w2e3r4t5y6u7i8o9p0*a-b

 HTTP error code:
 404

They're hoping that your stats are publicly available, and you use a
stats program that displays it as a clickable link. Basically, they're
hoping your Google PageRank will help direct more traffic to their
URLs.

http://www.spywareinfo.com/articles/referer_spam/



Re: binary output from ls

2006-02-15 Thread David Kirchner
On 2/15/06, Ivan Glushkov [EMAIL PROTECTED] wrote:
 Hi,
 if I issue ls .  filelist.txt
 as user I get:
 a binary file like:

 ESC[0mESC[0mAcro3nKTzaESC[0m
 ESC[0mfilelist.logESC[0m
 ESC[01;34mgconfd-glushkovESC[0m
 ESC[01;34mkde-glushkovESC[0m
 ESC[01;34mkeyring-CXhOCWESC[0m
 ESC[01;34mksocket-glushkovESC[0m
 ESC[01;35mmapping-glushkovESC[0m
 ESC[01;34morbit-glushkovESC[0m
 ESC[01;34mssh-mmCRYB8783ESC[0m
 ESC[01;35mxmms_glushkov.0ESC[0m
 ESC[0mzmanImD0upESC[0m
 ESC[m
 ...

 if I do that like root, I get the list of files as expected.
 What is the difference? Both root and the user are using the same shell.

Unfortunately, by default, ls uses colors to highlight directories and
executables (and others). The default alias provided in .bashrc, with
a stock install, is 'ls --color=auto'. auto is supposed to tell ls to
ensure it is connected to a tty (instead of a file) before spitting
out colors. If that alias is 'ls --color=always', it will always use
colors, regardless of the output.

The solution will be found in your .bashrc file -- either change the
alias to 'ls --color=auto' or remove it entirely, and it should work
OK.



Re: help with quoting/expansion in bash

2006-02-13 Thread David Kirchner
On 2/12/06, David Berg [EMAIL PROTECTED] wrote:
 I'm trying to write a for loop that descends into a list ofdirectories and 
 runs a command.  I can't seem to get the quoting rightthough.  Most of the 
 directories have spaces and they are makingthings difficult for me.  Here is 
 what I have:
 for DIR in dir\ 1 dir\ 2 dir\ 3; docd $DIRpwdcd ..done
 The spaces in $DIR aren't escaped.
 Any help, including a pointer to the relevant part of TFM, is much 
 appreciated.
 --Dave

Putting quotes around the $DIR variable is the solution here, however
there's another option which may come in handy: you can use while
loops instead of for loops. The problem with this option is that if
the programs within the loop take over stdin for any reason, the loop
will terminate prematurely (ssh does this, for example).

cat list.txt | while read DIR
do
cd $DIR; pwd; cd ..
done

(Btw: I'd recommend wrapping the cd with a if [ -d $DIR ]; then; fi
set of directives because while the cd $DIR may not always succeed,
cd .. always will.)



Re: Re: [PHP-DB] Help getting php up and running

2006-02-11 Thread David Kirchner
On 2/11/06, CasperLinux [EMAIL PROTECTED] wrote:
 Anyone have any input? I am googling till my fingers hurt and everything I
 find says it should be running.  Whenever I try to open a test.php file all I
 get is the web browswer trying to save the file instead of serving up the php
 content.

 On Friday 10 February 2006 21:28, CasperLinux wrote:
  LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
  LoadModule includes_module /usr/lib/apache2/modules/libphp4.so

That should probably be php4_module or something along those lines. It
needs to match whatever the .so was built for; it's not arbitrary.



Re: rsync and chown

2006-02-08 Thread David Kirchner
On 2/8/06, Ken Irving [EMAIL PROTECTED] wrote:
 I'm using rsnapshot, which uses rsync over ssh, and pull backups to
 the backup server running as root, but I connect to the backup machines
 as an ordinary user.  I use keychain to help automate ssh-agent for
 authentication, so I need to connect to the backup host after it boots in
 order to authenticate the keys.  By connecting as a regular user I don't
 get backups of files that aren't world-readable (other than that user's of
 course), but ownership and permissions are preserved on the backup host.

 Ken

I do the opposite. I let the remote servers log in, using a modified
rsnapshot, as regular users, and built a .so (LD_PRELOAD'd) that
remaps the various chown, chmod, rename, chdir, etc functions so you
can write them out to a file. This way you can back up every file from
multiple servers without giving out root access to everyone. It ain't
perfect -- specifically, rsync chown's and chmod's temporary files
before renaming them into place, so you have to figure out the real
filename for the chown/chmod commands. That's just a perl script away,
but I haven't done that yet.

It's a total hack, but rsnapshot is a pretty slick way to do snapshots.



Re: how to change number of saved lines on console

2006-02-06 Thread David Kirchner
On 2/6/06, Lubos Vrbka [EMAIL PROTECTED] wrote:
 hi guys,

 is it possible to change (increase) the number of lines that are saved
 on console? i would like to be able to scroll through the whole boot
 process history. right now it allows me to go approximately one and half
 pages back...

 thanks,

I don't have the answer to your question, but you can run dmesg to
view the console messages. The buffer is limited in size, so you'll
want to run it immediately after boot. I prefer to use a init.d
script, set up to run last, to run dmesg  /var/run/dmesg.boot, so I
have a copy handy at all times.



Re: Mixing SSI and PHP

2006-02-06 Thread David Kirchner
On 2/6/06, Bill Wohler [EMAIL PROTECTED] wrote:
 Is it possible to mix both SSI and PHP in a .shtml file? If so, do you
 have any configuration suggestions?

I've tried various Apache configuration options and have not been able
to get this to work. Some searching suggests that the only way to do
it is by creating SSI pages that include PHP:

!--include virtual=foo.php--

It's too bad there isn't a way to tell PHP to try and parse SSI. Heh.



Re: How much hassle to upgrade from 2.4.27 to 2.6.*?

2006-02-02 Thread David Kirchner
On 2/2/06, Adam Funk [EMAIL PROTECTED] wrote:
 I've got a Debian testing/unstable system running a 2.4.27-2-386 or
 2.4.27-2-386 kernel, booted from LILO, and I'm thinking of upgrading
 to 2.6.something.  I had originally planned to wait until I had a new
 computer but I haven't got around to picking one out yet.

http://kerneltrap.org/node/3385

describes a bizarre situation that, as far as I know, still exists today.



Re: Missing public keys in aptitude

2006-02-02 Thread David Kirchner
On 2/2/06, Andreas Janssen [EMAIL PROTECTED] wrote:
 man apt-secure, man apt-key

Neither are found on my Sarge install, and I don't see them in aptitude.

 Install the 2006 archive signing key. This has been explained plenty of
 times on the list, search the archive if you need a longer explanation.

I've been watching the list, reading most of these threads. I've seen
plenty of people having trouble with it but few solutions. Can you
send a link to the archived post that includes a solution?



Re: Running a remote graphic program

2006-01-28 Thread David Kirchner
On 1/27/06, Matt Zagrabelny [EMAIL PROTECTED] wrote:
 *) instead tunnel everything through ssh
i turn that on by default for my ssh server:

$ grep X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes
(restart the server for this to take affect,
 /etc/init.d/ssh restart)

and for the client:

$ grep ForwardX11 /etc/ssh/ssh_config
ForwardX11 yes
ForwardX11Trusted yes

 *) or use xauth

I haven't tried ForwardX11Trusted yet, but I have noticed that you
need xauth installed on the remote server for ForwardX11 to work. That
was a real tricky problem to track down.



Re: aol art files:

2006-01-27 Thread David Kirchner
On 1/24/06, Richard Lyons [EMAIL PROTECTED] wrote:
 But the odd thing is that this is a recurring theme.  Where does it
 sprout from, I wonder?

I suspect an old default Apache home pages installed with packages
from older versions of Debian that come up from time to time when
administrators misconfigure their servers.



Re: switching / to lvm

2006-01-26 Thread David Kirchner
On 1/26/06, Mike McCarty [EMAIL PROTECTED] wrote:
 You can play with things as you like, but I wouldn't do it.
 I had problems with LVM and got rid of it. Over on Fedora,
 I've only seen one say I'm glad I used LVM, but on a regular
 basis someone gets bitten.

Agreed. I haven't used LVM, but if you're having problems with a flaky
drive, adding another layer of complexity (LVM, software RAID, etc)
won't usually end up helping.

What will more likely help is a transparent layer, such as a
hardware RAID card.



Re:

2006-01-24 Thread David Kirchner
On 1/24/06, Igor Milovanovic [EMAIL PROTECTED] wrote:
 I have this file:

 -rwx--   1 f13o f13o 7.1K 2003-06-12 14:08 ppmtolss16

 and i can't (?!) chmod it to 755 as user f13o?

 This hasn't happened to me... please, help.

What error do you get? Is there only one f13o userid in /etc/passwd ?
Are there any attributes on the file which may prevent this (check
with lsattr)?



Re: File system overhead

2006-01-19 Thread David Kirchner
On 1/19/06, Tony Heal [EMAIL PROTECTED] wrote:

 anyone have a good link that explains why/what the ext3 overhead is. I have
 a partition that looks like it has 8GB taken up by the OS and I need to
 explain this.
 FilesystemSize  Used   Avail   Use% Mounted on
 /dev/sda9 219G  168M  208G   1% /opt

Check out: http://lwn.net/Articles/81357/



iptraf is not reporting all UDP packets

2006-01-18 Thread David Kirchner
I haven't been able to find anyone else with this problem after
searching Google and others. I'm wondering if I'm just doing something
wrong.

I have two hosts, connected via crossover cable, and I am running:

dd if=/dev/zero bs=131072 | nc -u 10.0.0.3 8000

on one and

nc -l -p 8000 -s 10.0.0.3 -u  /dev/null

on the other. netstat -i and ifconfig both show packet counts
increasing, and on both ends tcpdump shows either the packets leaving
the host or coming to the host, respectively.

On neither host does iptraf report anything more than one or two UDP
packets in IP Traffic monitor, General interface statistics,
Detailed interface statistics or Statistical breakdowns. It does
see the traffic when using LAN Station monitor mode. There are no
filters applied in the iptraf Filters menu (specifically, it says
All UDP visible).

It's missing around 800Mbit/s, according to the stats dd gives when you ^C it.

Both hosts are identical, and are running kernel 2.6.14.3 and Debian
Sarge, using the Intel 82541GI/PI NIC, negotiated at 1000Mbps. Here's
a snip of what tcpdump is seeing:

18:07:32.039438 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039458 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039559 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039577 IP 10.0.0.2.32769  10.0.0.3.8000: UDP, length: 8192
18:07:32.039686 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039704 IP 10.0.0.2.32769  10.0.0.3.8000: UDP, length: 8192
18:07:32.039815 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039818 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039934 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039937 IP 10.0.0.2  10.0.0.3: udp
18:07:32.039954 IP 10.0.0.2.32769  10.0.0.3.8000: UDP, length: 8192



Re: FAQ on debian newcomer list

2006-01-10 Thread David Kirchner
On 1/10/06, kamaraju kusumanchi [EMAIL PROTECTED] wrote:
 I would appreciate any feedback/corrections/suggestions etc., (however
 trivial you think they are) on the following FAQ on debian-user. The
 final corrected version will be uploaded to
 http://people.cornell.edu/pages/kk288/du-guidelines.html . I am posting
 the initial version for your kind consideration.

 Thanks in advance
 raju

I think there should also be something addressing the underlying
problem(s). It seems to me that the main reason people want a
debian-newcomers list is because they don't want to see so many newbie
questions come along on this list. The actual problem is that the
system is not quite newbie-proof.

We, the experienced, ought to try and improve the processes and the
documentation, which would lead to less newbie frustration.

There's certainly a limit to how much you can document and hand-hold a
user, but we're not even close to that point yet.



Re: [Way OT] #!/bin/bash changes working directory

2006-01-05 Thread David Kirchner
On 1/5/06, Luis Finotti [EMAIL PROTECTED] wrote:
 Dear all,

 I realize that this should be way off topic, so sorry about that...

 I've been working on a bash script, but when I run something like:
 ---
 #!/bin/bash

 echo $(pwd)
 
 I always get $HOME, not the current working directory.  I'd need to
 continue in the working directory from where the script was called to
 work on the files there.  (I'd like it to be portable too, so although
 it seems to work in my home machine running sarge, it doesn't work
 with Fedora or OSX...)

Do you have some sort of cd $HOME type statement in your .bashrc or
.bash_profile or .profile file (or similar)?



Re: 2 eth and boot

2006-01-03 Thread David Kirchner
On 1/3/06, Enrique Morfin [EMAIL PROTECTED] wrote:
 Hi!

 Happy new year!

 I have a box with 2 eth (1 intel, 1 3com)

 each time it boot, eth0 and eth1 are different:

 boot one: intel=eth0 3com=eth1
 boot two: intel=eth1 3com=eth0

 well, not alwais change, it seams to be random.

 How i make to alwais be the same?

Warning: Hack follows.

You could try installing 'ifrename' and then create a startup script
that calls it before the interfaces are brought up. I'd suggest
finding the hardware address of each nic and then naming the
interfaces after them in some way (ie: eth00132096C267). Then there'd
be no doubt which interface was which.

Of course, it could be a real pain if you ever installed a new NIC.

Maybe it'd be better to use 'lspci' to decide the name of the NIC. I
dunno. Lots of options here.



Re: Determine system ver (Debian vs. other Linuxes) at runtime?

2006-01-01 Thread David Kirchner
On 12/30/05, Matt England [EMAIL PROTECTED] wrote:
 So I'm left with figuring out much harder ways to tell system revs
 apart.  I'm guessing I'm going to have to make an application which does
 nothing but evaluate a system and report it's variant (Redhat vs SuSE vs.
 Debian) and revision (Debian Woody/3.0, Sarge/3.1, etc).

I don't know of an API method for this (it may be that there is none)
but one way you can try to tell is by running:

strings /lib/libc.so.6 | egrep ^Compiled by. On Debian sarge you see:

Compiled by GNU CC version 3.3.5 (Debian 1:3.3.5-12).

and on RedHat 7.3:

Compiled by GNU CC version 2.96 2731 (Red Hat Linux 7.3 2.96-113).

Dunno about the rest of the distributions.



Re: Why does Debian default to Gnome?

2005-12-28 Thread David Kirchner
On 12/28/05, John Hasler [EMAIL PROTECTED] wrote:
 The Gnome package is a dummy.  It pulls in its components by depending on
 them.  Thus when you remove any of its components it gets removed as well.
 However, since it has no contents, removing it does no harm.  This
 obviously needs to be better documented.

Or, better yet, modified so that removing an application doesn't cause
the user to be presented with the scary demand that they also remove
gnome. I'm not too familiar with the packages, but I understand
there's an optional type as opposed to a required type. If
Evolution was optional would it force the user to confirm removing
gnome as well?



Re: unsubscribe

2005-12-20 Thread David Kirchner
On 12/20/05, Almut Behrens [EMAIL PROTECTED] wrote:
 Sometimes I'm wondering whether it's that very REQUEST being
 capitalized that's confusing people -- and whether simply using
 [EMAIL PROTECTED] would make it appear more like a regular
 email address after all.

IMO, it would be a good demonstration of our problem solving skills if
we could manage to program the list processor to honor (or at least
not pass on to the general membership) messages with the subject
unsubscribe. It's clear to us what this person wanted, and it ought
to be a simple matter for a perl script or whatever to handle it.

It seems to me that the only reasons this isn't done already are:

a) The list population enjoys reading and replying to frequent
messages from newbies who simply want to be done with the mailing
list.

b) The filter could catch something it shouldn't, such as someone
asking for aptitude help but using the subject unsubscribe to do it.

IIRC, the unsubscribe address autoresponds asking for confirmation, so
adding a note there instructing the user how to avoid getting caught
by the filter may be sufficient to handle the second case.



Re: dselect: unable to open/create access method lockfile

2005-12-16 Thread David Kirchner
On 12/16/05, Brian C [EMAIL PROTECTED] wrote:
 dselect: unable to open/create access method lockfile

 but I still get the same error. Can anyone explain how to allow dselect
 to create the lockfile it wants to?

I'm not sure where it would put the lockfile, but you may be able to
find out using 'strace'. strace will show you the system calls the
process is attempting, including what files it's trying to read.
'strace -o foo dselect' and then 'grep access foo' or 'grep open foo'
may give you the answer.



Re: all my email vanished -- again

2005-12-02 Thread David Kirchner
On 12/2/05, Hendrik Boom [EMAIL PROTECTED] wrote:
 Yes, last night all the massages I had left in /var/mail/hendrik
 vanished *again*.  Just like the night before.  Of course, by the
 time I got to look at my mail, a few new ones had arrived.

 I'm starting to think it's not just a fluke.

Do you have some sort of IMAP/POP server installed, and could a client
be fetching and then deleting all mail? Maybe a long shot.



Re: BASH Scripting Question

2005-11-25 Thread David Kirchner
On 11/25/05, Metrics [EMAIL PROTECTED] wrote:
 Hi all,

 Can someone explain to me the following behaviour? I have this script

 #!/bin/sh

 LISTS=('debian-user' 'security-basics' 'hostap' 'pen-test' 'ntbugtraq' 
 'ion-general' 'vim' 'madwifi');
 LIST_COUNT=${#LISTS}
 echo $LIST_COUNT

 for ((i=0;i$LIST_COUNT-1;i++)); do
 echo /home/bhillis/Maildir/.${LISTS[${i}]}/
 done

11 is the length of the string 'debian-user'.

LIST_COUNT=$((${#LISTS[*]}+1))

will give you the right number.



Re: hanging web pages

2005-11-22 Thread David Kirchner
On 21 Nov 2005 23:01:59 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Many of the web pages I visit cause the browser to hang for
 significant periods of time (a minute or more in many cases).  Until
 the page finishes loading, the window does not update, and mouse
 clicks have no effect.  This happens with every browser I've tried
 (mozilla, firefox, galeon, ephiphany, konqueror).  I thought it might
 be a java thing, but it seems to also happen with java and javascript
 turned off.

 How can I find out what's causing this, and how can I prevent it?  It
 seems to be happening more and more, and it's really annoying.

 -David

Try watching top in another window or some other tool that lets you
watch memory use. Modern browsers require significant amounts of RAM,
and you may be running out, forcing the system to swap unused pages to
disk.

If you have less than 256MB of RAM, you may have a much better
experience if you increase it to 512MB or more.



Re: Antispam UOL spam from [EMAIL PROTECTED]

2005-11-18 Thread David Kirchner
On 11/18/05, Henrique de Moraes Holschuh [EMAIL PROTECTED] wrote:
 Not to mention that you should have received only one message per post you
 made to mailing lists the loser with AntispamUOL is part of.

 Maybe you are seeing the results of a spammer forging your address?

I received over 20 (I stopped counting at 20) immediately after
posting on the list. I doubt it's because of a spammer, unless someone
on the list is watching for posts and then forging 20+ emails to the
C/R address.

It really does look like this problem can either only be solved by UOL
fixing their servers (since it is their code that C/R's Bcc:'d email)
or by the Debian moderators removing everyone that uses UOL from the
list.

Since UOL is ignoring our complaints (I'm betting I'm not the only one
that sent a explanation of what's going wrong), the only option
remaining is to have the moderator remove the UOL users,
unfortunately. Could start by checking if [EMAIL PROTECTED]
is on the list. (I also wonder if petsupermarket.com.br is related,
maybe it's [EMAIL PROTECTED]).



Re: spam howto

2005-11-17 Thread David Kirchner
On 11/17/05, kamaraju kusumanchi [EMAIL PROTECTED] wrote:
 In order to get rid of all the spam that I get due to posting to public
 archived mailing lists etc., I subscribe to mailing lists through a
 gmail account. Gmail spam filtering is quite effective and filters
 almost 95% of the spam. But the gmail web interface is not that great
 (no thread view, cannot easily delete emails etc.,). So I use pop
 functionality of gmail account and read these emails by using
 thunderbird (you can also use other email clients such as mutt etc.,)

Unfortunately gmail sends about 1/2 to 1/3 of my legitimate mail to
the spam folder. That number is lower recently, but is accurate up
until a few days ago at least. It may be because I'm using my own
domain instead of my gmail.com address, but I'm not sure. Basically
what I've been telling people is if you switch to gmail be prepared to
check the spam folder frequently.



Re: Antispam UOL spam from [EMAIL PROTECTED]

2005-11-17 Thread David Kirchner
On 11/17/05, Rogério Brito [EMAIL PROTECTED] wrote:
 I don't know if that's exactly a black hole, but you can also try to address
 your messages to, at least, two other addresses:

 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

whois also suggests sending complaints to [EMAIL PROTECTED] . It
would probably be best for customers of UOL to complain to them about
this, as they're in the best position to convince UOL to stop this
sort of behavior.



Re: redirecting the output with sudo

2005-11-16 Thread David Kirchner
On 11/16/05, kamaraju kusumanchi [EMAIL PROTECTED] wrote:
 I have tried

 $sudo wajig doc  /root/wajig_doc.txt

 But it does not work. Using Debian sid, bash 3.00.16(1).

 regards
 raju

The reason the above doesn't work is because wajig doc are the only
arguments sent to sudo. Your current shell interprets the 
/root/wajig_doc.txt arguments.

Your best bet is to find out if wajig has some sort of output flag, so
you can do:

wajig -flag wajig_doc.txt doc

(I don't know if it has any flags).



Re: redirecting the output with sudo

2005-11-16 Thread David Kirchner
On 11/16/05, Carl Fink [EMAIL PROTECTED] wrote:
 Why not use script?

That's certainly another option. I was assuming the sudo configuration
was restricted to running that particular program. If sudo allows any
string to be passed to it, script is a good solution. As are the
suggested sudo sh -c foo  bar lines. However if the sudo user is
able to redirect output to arbitrary files, as root, the primary
function of sudo (restricted root privileges) seems to be bypassed.
IMO.



Re: looking for a transparent hardware RAID controller for debian

2005-11-15 Thread David Kirchner
On 11/14/05, Michelle Konzack [EMAIL PROTECTED] wrote:
 Du you have used SATA drives with PATA Hardware or WD Raptor WD360GD
 and WD740GD which have real SCSI-Hardware. They run with 10.000 RpM.

We haven't tried Raptors yet. We're waiting for the capacities to
approach that of the other SATA drives. As it is now the pricing on
the Raptors isn't low enough compared to identically sized SCSI disks
for us to use them instead. I've definitely wanted to experiment with
them though.



Re: SSH X11Forwarding not working - what am I doing wrong.

2005-11-11 Thread David Kirchner
On 11/11/05, Alan Chandler [EMAIL PROTECTED] wrote:
 But nothing is happening.  Firstly, I would have expected on the remote
 machine for the DISPLAY variable to have been set to localhost:10.0, but it
 is unset, but even if I set it manually, there doesn't seem to be a channel
 there (X programs complain they can't connect to the display)

 My guess is that there is some other configuration (PAM or something like
 that) that I should also be tweaking to allow this.  Anyone any ideas what?

What does ssh -v say when you try to connect? I'm guessing it's something like:

debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Remote: No xauth program; cannot forward with spoofing.

If so, you'll need to install the xbase-clients package to get xauth.

There may be some way to do this without authentication spoofing,
but I don't know it.



Re: looking for a transparent hardware RAID controller for debian

2005-11-10 Thread David Kirchner
On 11/9/05, Ron Johnson [EMAIL PROTECTED] wrote:
 Last week on the list someone mentioned possible problems with
 the 3ware 9xxx cards and newer kernels.  Maybe it's been resolved,
 maybe not.

Yeah, someone was having trouble with kernel panic -- the VFS cannot
mount root one indicating that the card wasn't being recognized by the
kernel. Haven't heard if he got it resolved or not, though. I can
personally confirm that the 2.6 kernel can see 9xxx series cards, at
least the 9500S-12:

# uname -a
Linux raid 2.6.13.2 #1 SMP Fri Sep 30 16:42:38 PDT 2005 i686 GNU/Linux
# ./tw_cli info

Ctl   ModelPorts   Drives   Units   NotOpt   RRate   VRate   BBU

c09500S-12 12  12   1   04   4   OK
c19500S-12 12  12   1   04   4   OK



Re: looking for a transparent hardware RAID controller for debian

2005-11-10 Thread David Kirchner
On 11/10/05, Ron Johnson [EMAIL PROTECTED] wrote:
 The issue was performance, though.  Are you getting good speed?

I must have missed that email then, sorry about that. We use RAID5 on
this Linux box, RAID5 on FreeBSD (old driver) and RAID1 and 10 on
FreeBSD (old and new driver). Overall our impression has been that the
RAIDs are reasonably fast, but not as fast as 15k RPM SCSI drives,
specifically with random access. MySQL databases seem to perform much
better on single fast SCSI disks than on 7200RPM SATA RAIDs, at this
time, for us.

The added reliability and reduced concern over total data loss is
worth the reduced speed for most applications -- especially web
servers. (Of course, data loss is still possible, but restores of this
magnitude take a long time, so anything to avoid that is a big win.)

Specifically regarding the RAID5 server mentioned previously, which is
a dual 2.8Ghz Xeon 2MB cache w/ 4GB RAM 3ware 9500S-12 2.6.13.2 kernel
(for the archives), and /data2-2 being one of the auto-carved slices
of the larger RAID, here's the output of a 'dd' command:

$ dd if=/dev/zero of=/data2-2/bigfile bs=131072 count=10
10+0 records in
10+0 records out
1310720 bytes transferred in 119.269480 seconds (109895675 bytes/sec)

and bonnie++ -d /data2-2/tmp -s 1024m -u nobody:

Version  1.03   --Sequential Output-- --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
raid 8G 40076  99 93772  18 29379   6 29792  68 185058  18 314.2   0
--Sequential Create-- Random Create
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
  files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
 16  4043  20 + +++  2964  14  3603  18 + +++  2024   9
raid,8G,40076,99,93772,18,29379,6,29792,68,185058,18,314.2,0,16,4043,20,+,+++,2964,14,3603,18,+,+++,2024,9

Note that this server is actually in active (but light) production use
while running these commands.



the Debian way to sync apt-get and aptitude

2005-11-10 Thread David Kirchner
Is there a Debian way to sync apt-get and aptitude data files? We just
had a problem where aptitude decided to programs that were installed
by apt-get immediately prior. This is on Sarge stable.

Specifically, the steps to reproduce this were:

apt-get install flac
aptitude
  Press 'g' and you'd see 2 held back packages (cpio, libssl) and 4
packages to be removed (flac and its dependencies).

If you removed flac+deps with aptitude and then reinstalled them with
apt-get, aptitude would still want to remove flac.

This could not be reproduced on another Sarge stable server, so I
suspect the aptitude/apt-get data files got corrupted in some way.

Upgrading 'cpio' and 'libssl' packages took care of this particular
problem, but that doesn't make a lot of sense, since they're not
dependencies or conflicts to flac.

(I have searched Google for this, but I find a lot of documentation
for aptitude instead. I'm fine with being pointed at documentation if
someone written about this somewhere.)



Re: looking for a transparent hardware RAID controller for debian

2005-11-09 Thread David Kirchner
On 11/9/05, enediel gonzalez [EMAIL PROTECTED] wrote:
 Hello

 I'm looking for a transparent hardware RAID controller to implement a RAID1
 for the debian,
 ?Is it possible to find a RAID controller on the market (no matter for IDE,
 SATA, SCSI hard drives) that at the moment of the debian installation, it
 will see one hard drive on the box
 ?

 We tested a few motherboards with RAID controller included, etc, etc, etc,
 but until today we don't have the right answer for this question.

 I'll appreciate if somebody give me the controller model that finally we
 help us solve this question.

 Thanks in advance for any help

 Best regards
 Enediel

The 3ware 8xxx and 9xxx IDE/SATA series cards work very well in our
experience -- better than any SCSI RAID card I've ever used (although
admittedly I haven't spent thousands on a single card yet). The 9xxx
is supported when you install Sarge with the 2.6 kernel, out of the
box.



aic7xxx driver floppy for sarge

2005-11-09 Thread David Kirchner
Hi All,

This may sound like a stupid question, answered in some FAQ somewhere,
but I just can't find it. Does anyone know which Sarge floppy image
contains the aic7xxx SCSI driver?



Re: kernel panic - trying to build 2.6.x for Dell PowerEdge 850

2005-11-07 Thread David Kirchner
On 11/7/05, Mark Hansen [EMAIL PROTECTED] wrote:
 I'm getting this error and can't boot the 2.6.9 kernel that I built:

 VFS: Unable to mount root fs on unknow-block(8,2).

 I'm NOT a linux admin by any stretch.  This box boots using 2.4.31.  I
 think maybe it has something to do with the SATA drive??  Any help will
 be appreciated.

Yeah, it probably does. I see you are using a 3ware controller. Could
it be a 9xxx series rather than one of the 8xxx SATA boards? The 9xxx
are more common, I think. They use a different driver.



Re: Serial ATA Hardware RAID recommendations?

2005-11-04 Thread David Kirchner
On 11/4/05, Chris Boot [EMAIL PROTECTED] wrote:
 Hi all,

 I'd like to probe the list to see what hardware RAID solutions people
 can recommend that will:

 1. Take 5/6 SATA disks for RAID 5/6/10
 2. Allow them to be hot-plugged (with or without Jeff Garzik's
 in-progress SATA hotplug patches)
 3. Do the work in hardware
 4. Be fast and reliable

 All I've done previously is software RAID 10 which I'm happy with, but
 I'm now building a high-performance database / file server and don't
 want the machine spending time calculating parity and so on.

 Many thanks,
 Chris

I've used 3ware SATA RAID cards (8xxx and 9xxx series) for a long
time, in several servers, and I love 'em. They work far better than
any SCSI RAID cards I've used (except for raw speed, of course. SCSI 
SATA) and are supported very well under Linux and FreeBSD.

I don't know how well they work with Linux hotplug stuff, but I do
know that you can hot swap the drives within RAIDs easily, as that's
all handled by the card itself.



Re: How to lock user in his home.

2005-09-13 Thread David Kirchner
On 9/13/05, Leonardo Marques [EMAIL PROTECTED] wrote:
 i want the user can do everything they can do by default minus browse
 accross the file system.

Unfortunately this is not easily done. The user will need read access
to the directories containing the binaries, such as /bin for the
previously mentioned 'ls' program.

If you're willing to restrict them further, and only allow them to
change files within their home directory and subdirectories, but not
allow them to run any programs, you could set them up with a FTP-only
login. You'll need to consult your FTP server documentation to
determine how to do this.



Re: Starting background process in ssh session

2005-09-01 Thread David Kirchner
On 9/1/05, Roberto C. Sanchez [EMAIL PROTECTED] wrote:
 However, when I log out of the machine, the ssh process on my local
 machine blocks.  I guess that it is becuase the remote still has jobs
 running.  Is there a way to get it start the process in the background
 and then detach from the shell?  I have already tried this:

ssh -f should do what you want, and then you don't need to send the
. ssh will still be running, but it will be forked off into the
background.