Re: Debian Font Guide for Newbies and the Confused

2003-10-22 Thread Ken Irving
On Wed, Oct 22, 2003 at 02:23:02AM -0400, [EMAIL PROTECTED] wrote:
> On Tue, 21 Oct 2003 [EMAIL PROTECTED] wrote:
> > ...
> > One issue I have problems with is solving font problems with specific
> > applications.  It think that's due to my general lack of understanding
> > of fonts, and that there's more than one font system in use.
> > ...
> ...
> I'd second that! I'd like to know what which font management is used by
> App X, so that I know how to address font problems. Maybe it could be
> added to packages like: readme.font-config or added to the pkg info like
> 'installed-size'. Better font info and thus handling would go a long way
> to makeing gnu/linux and debian better accecpted.

I've been trying to change to different fonts in the xfig app, but
it seems to compile-in all its fonts, even to the point of presenting
fonts in its menus which don't exist on the system.  I've installed some
additional fonts on my system (woody), but have yet to figure out how
to get xfig to use them, and AFAICT there's no way to do so.

Looking at xfig's source, it uses standard XLib functions to manipulate
fonts, but apparently hard-codes the list of fonts to use.  plotutils also
seems to do hard-code its fonts, at least according to a quick glance at
the source.  I wonder if there's something special about these apps that
dictate this, perhaps performance?  I'd prefer to have greater flexibility
(in font selection) over performance, but maybe there are other reasons.

Ken

PS, OT: Bracing myself for a new swen onslaught triggered by posting this,
now that the last "attack" has slowed to 5 or so per day after a couple
posts some weeks ago.

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Illegal characters in cron

2003-10-28 Thread Ken Irving
On Wed, Oct 29, 2003 at 05:46:59AM +0800, csj wrote:
> I'm having trouble getting the following to work in my crontab:
> 
> 30 1 * * *mailfilter -M ~/.mailfilterrc -L 
> ~/autosave/log/mailfilter/mailfilter-`date +%Y%m%d%H%M`.log

>From crontab(5):

The ``sixth'' field (the rest of the line) specifies the command to be
run.   The  entire  command  portion of the line, up to a newline or %
character, will be executed by /bin/sh or by the  shell  specified  in
the SHELL variable of the cronfile.  Percent-signs (%) in the command,
unless escaped with backslash (\), will be changed into newline  charĀ­
acters,  and all data after the first % will be sent to the command as
    standard input.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Has SWEN finally died?

2003-10-29 Thread Ken Irving
On Wed, Oct 29, 2003 at 05:39:05PM -0700, Paul E Condon wrote:
> On Wed, Oct 29, 2003 at 04:23:51PM -0500, Marc Shapiro wrote:
> > I opened this hotmail account specifically for posting to this list.  This 
> > is my fourth post in 2 days.  So far, no spam, including no SWEN.  Could we 
> > finally be seein the end of this mess?
> > 
> 
> I'm getting one every 2 or 3 hrs. Down from ~5/hr three days ago. 
> Theory: If you don't post to this list for many days, the infected machines
> which have your email address in their lists of targets gradually get disinfected, 
> and your incoming swen gradually goes to zero. But, if you post, you run the
> risk of a new wave of swen. 
> 
> Just a theory.

I've only posted rarely, and had a pretty good dose of swen after a post
or two a month ago, now down to about 0.  I posted once a few days ago
and got no swen from that.  Maybe the address harvesting mechanism is
no longer looking at usenet new-posts (or whatever it was doing)?

The end result is that my filtering (using procmail) is a tad more
complicated and time-consuming, still looking for swen mails, when
apparently the problem is past.   The patterns in .procmailrc are
potentially still useful for other MS executables, but in general 
this sort of solution is going to add cruft to my mail processing.
I.e., the swen worm attack has a lasting impact, however small.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Can't install networking.

2003-10-31 Thread Ken Irving
On Fri, Oct 31, 2003 at 06:17:52PM -0800, Mark Healey wrote:
> On Fri, 31 Oct 2003 18:03:59 -0700, Monique Y. Herman wrote:
> ...
> 
> >It all comes down to specific hardware configuration.  Every system has
> >some hardware that it won't be prepared to use right out of the box.
> 
> The Broadcom 4400 is hardly rare.

I haven't been following this saga, but googling for Broadcom 4400 seems
to suggest that the support for this chipset might be a very recent thing.
Perhaps you could get another network card for which drivers do exist,
get the system running, and then resume your effort to get the Broadcom
working.

It is reasonable to expect some difficulties in building a system with 
barely supported hardware, however non-rare it might be.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Can't install networking.

2003-10-31 Thread Ken Irving
On Fri, Oct 31, 2003 at 07:26:39PM -0800, Mark Healey wrote:
> On Fri, 31 Oct 2003 18:08:05 -0900, Ken Irving wrote:
> 
> >On Fri, Oct 31, 2003 at 06:17:52PM -0800, Mark Healey wrote:
> >> On Fri, 31 Oct 2003 18:03:59 -0700, Monique Y. Herman wrote:
> >> ...
> >>
> >> >It all comes down to specific hardware configuration.  Every system has
> >> >some hardware that it won't be prepared to use right out of the box.
> >>
> >> The Broadcom 4400 is hardly rare.
> >
> >I haven't been following this saga, but googling for Broadcom 4400 seems
> >to suggest that the support for this chipset might be a very recent thing.
> >Perhaps you could get another network card for which drivers do exist,
> >get the system running, and then resume your effort to get the Broadcom
> >working.
> >
> >It is reasonable to expect some difficulties in building a system with
> >barely supported hardware, however non-rare it might be.
> 
> I thought of that but it is a dual boot setup (controled with a
> physical switch) and I would have to reconfigure the other OS.
> 
> The broadcom is also on the mobo which means extra hassle.

I've done this sort of thing (adding extra network cards) under both
Windows and Linux without much difficulty.  You shouldn't need to
do anything to the on-board interface, and could probably disable the
add-on one under Windows (assuming you're running that OS), if necessary,
while using it to get networking running under a Debian distro and default
kernel.

Otherwise, I wouldn't expect it to be easy, but that's your decision.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Partitioning

2003-11-02 Thread Ken Irving
On Sun, Nov 02, 2003 at 10:13:17PM +0100, Andreas Janssen wrote:
> wsa (<[EMAIL PROTECTED]>) wrote:
> > Alvin Oga wrote:
> > 
> >> /boot is NOT needed ... - /boot was needed in the old days to
> >> guarantee that the
> >> boot kernel was occupying the 1st 1024 cylinders
> >>
> > So where do the kernels go when you don't have a /boot partition?
> > I'm now using a seperate /boot partition but it's full now.
> > So is it possible to change this?
> 
> Unmount your /boot partition (maybe you have to stop klogd first),
> remount it somewhere else, copy the files to the /boot dir on your root
> partition, change your fstab and reinstall your boot loader. The
> disadvantage is that if /boot is on the root partition, you can't have
> /boot read-only.

I recently installed a system using a woody cd and configured a /boot
partition of 50MB, but it was too small when I tried to apt-get install
another kernel.  I copied /boot to /boot.new, then booted knoppix and 
renamed /boot.new to /boot (on the / partition), edited /etc/fstab to 
remove the /boot mount, chrooted to the / partition and ran lilo.  Also
needed to run cfdisk to make the / partition bootable, then was back in
business.

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Browsers that *don't* support about:blank

2003-11-03 Thread Ken Irving
On Mon, Nov 03, 2003 at 09:15:31AM -0800, Tom wrote:
> I filed a wishlist bug against "links" asking for it to support 
> about:blank (highly useful in frames pages as a default for the "body" 
> frame).
> 
> Maintainer closed it as a nonstandard feature, but asked me I could 
> point to a standard.  Do you know of any significant graphical browsers 
> that don't support "about:blank" by returning a blank page?  I know they 
> all handle other "about:xxx" commands differently.

He asked you to come up with a standard, so why aren't you looking
for that?  Might be nice to come up with a list of "browsers that do"
and "browsers that don't", but you're still going to need to point to
an RFC to have a convincing argument.  Good on the maintainer for 
adhering to standards and not giving in to creaping feeturitus.

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Partitioning

2003-11-03 Thread Ken Irving
On Sun, Nov 02, 2003 at 01:42:32PM -0900, Ken Irving wrote:
> On Sun, Nov 02, 2003 at 10:13:17PM +0100, Andreas Janssen wrote:
> > wsa (<[EMAIL PROTECTED]>) wrote:
> > > Alvin Oga wrote:
> > > 
> > >> /boot is NOT needed ... - /boot was needed in the old days to
> > >> guarantee that the
> > >> boot kernel was occupying the 1st 1024 cylinders
> > >>
> > > So where do the kernels go when you don't have a /boot partition?
> > > I'm now using a seperate /boot partition but it's full now.
> > > So is it possible to change this?
> > 
> > Unmount your /boot partition (maybe you have to stop klogd first),
> > remount it somewhere else, copy the files to the /boot dir on your root
> > partition, change your fstab and reinstall your boot loader. The
> > disadvantage is that if /boot is on the root partition, you can't have
> > /boot read-only.
> 
> I recently installed a system using a woody cd and configured a /boot
> partition of 50MB, but it was too small when I tried to apt-get install

 That was actually 10MB nominally in cfdisk, but turning
out to be more like 7MB with overhead (I guess).  Don't know what I was
thinking, and no surprise that it didn't support an upgrade, but I posted
here just to show a step-by-step way to resolve the matter. 


> another kernel.  I copied /boot to /boot.new, then booted knoppix and 
> renamed /boot.new to /boot (on the / partition), edited /etc/fstab to 
> remove the /boot mount, chrooted to the / partition and ran lilo.  Also
> needed to run cfdisk to make the / partition bootable, then was back in
> business.
 
-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Going to give it another shot-need more help

2003-11-04 Thread Ken Irving
On Mon, Nov 03, 2003 at 10:45:09PM -0800, Mark Healey wrote:
> Many of you have read my saga of trying to install Debian and
> witnessed my frustration.
> 
> The main problem is that my onboard nic isn't supported by the kernel
> on the CD and there is no module for it installed either.
> 
> This left me with no networking so I couldn't use any of the clever
> debian install utilites.
> 
> I recieved many suggestions to remedy the problem, non of them easy.
>
> ...

Adding a $15 nic isn't easy?   I've had problems with particular cards
and have done this a number of times.  It seems reasonable to expect 
you could be up and running, networking included, just with the default
CD, then upgrade away after that.  But maybe there's no PCI or ISA slots, 
or I'm obviously missing something.  Good luck!

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: firewall setup xdsl: eth0/eth1/ppp0?

2003-11-05 Thread Ken Irving
On Wed, Nov 05, 2003 at 09:52:42AM +0100, Andreas Bohnert wrote:
> Hi,
>I don't know how to setup my firewall for my new xdsl connection. I 
> saw some posting concerning adsl, so maybe there are some 
> people, who know how to handle this.

I'm not sure what you're talking about, with xdsl and lokal, but I'd
recommend the shorewall firewall.  It takes a bit of configuration, but
pretty minimal, and straightforward if you follow the docs and examples.
I've used it for a dsl connection with pppoe on interface eth0, internal
network on eth1.  The woody/stable package is not exactly current, but
very workable and the docs and examples are available for it.  I'm sure
unstable is at the latest version, so might be preferable especially
if you feel the need to request help (most questions on the shorewall
list are answered by the developer, often to implore folks to read
and follow the docs).

Maybe this is off the mark for your situation, I don't know.  Good luck!

Ken

> 
>here is my situation:
> 
>eth0 is connect to my private network (192.168.0.1).
>my eth1 gets an lokal ip from my xdsl router (subnet 10.x.x.x).
>than I have to build up a tunnel connection with my router with pptp.
>now I have ppp0, which is my xdsl interface.
>   
>this works fine, but now I have to setup my firewall!
>   
>I know ppp0 is my external interface now, but what about eth1 (which 
> is connect to my router)?
>I looked around and some people say, they setup the firewall like this:
>eth0 (private)   = FW_DEV_INT
>eth1 (connect to router) = FW_DEV_INT !!
>ppp0 (xdsl)  = FW_DEV_EXT
>   
>but somehow I think, eth1 should be FW_DEV_EXT as well, because it's 
> phyiscally connected to the internet.
>also, what about the firewall between ppp0 and eth1 - it shouldn't 
> block communication.
>   
>so, what do you think, if I configure eth1 as external?
> 
>thanks for any advice!
> 
> andreas
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: file creation permissions

2003-11-11 Thread Ken Irving
On Tue, Nov 11, 2003 at 08:38:38PM -0800, Mike Egglestone wrote:
> Quoting Michael Kahle <[EMAIL PROTECTED]>:
> 
> > Hello,
> > 
> > How would I force a newly created file by userA to have the permissions set
> > automatically to userB, groupB 775?
> > 
> > What I am trying to do is when a user uploads a file to our ftp server
> > (proftpd) it does not create the file using their username as the group and
> > owner of the newly created file.  I would like instead if they uploaded to
> > dirA it to have a predefined owner and group for the file created.  If they
> > upload to dirB a different owner and group etc.  Any thoughts?  Please
> > point
> > me to documentation, examples, etc.  I do not know where to start with
> > this.

I do something like this to move files to an nfs mount as a user known to 
the remote system.  Run a script as the target user to copy the file from 
a temporary spool.  You could do this using shell scripting, perl, etc.
Set the umask appropriately for the desired permissions (I find umask 
confusing, as its value is sort of the opposite of what you want to end up
with).

Ken

> 
> I don't know if its possible to modify the ownership of a newly created file.
> He who creates, becomes owner. You can use the sgid bit to modify the group 
> permission to follow that of the parent directory.
> You may want to re-think your upload plan. Perhaps there is a way to accomplish 
> what you want with the existing rules of linux permissions.
> Why do you want to change ownerships?
> 
> Mike

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: sed, bash script

2003-09-17 Thread Ken Irving
On Wed, Sep 17, 2003 at 04:22:15AM -0700, Ric Otte wrote:
> On Wed, Sep 17, 2003 at 11:40:31AM +0100, Karsten M. Self wrote:
> > on Wed, Sep 17, 2003 at 08:08:26AM +0800, csj ([EMAIL PROTECTED]) wrote:
> > > At Tue, 16 Sep 2003 17:08:51 +0200,
> > > Matthias Czapla wrote:
> > > > 
> > > > On Tue, Sep 16, 2003 at 07:39:39AM -0700, Ric Otte wrote:
> > > > > Hi, I would like to run all of the files in some directories
> > > > > through sed, in order to edit the files.  I can do it for
> > > > > individual files by typing: cat filename|sed command>filename
> > > > > But that requires me to run that command for each file.  I
> > > > > was wondering if anyone could 1) give me a reference to a
> > > > > simple bash tutorial that will explain how to set up a script
> > > > > to do things like this,
> > > > 
> > > > http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
> > > > 
> > > > > and 2) tell me how to do it.
> > > > 
> > > > for f in *; do tmp=`tempfile`; cat $f | sed command > $tmp ; mv $tmp $f; done
> > > 
> > > Is there anything intrinsically wrong with:
> > > 
> > > find directory -name "*.foo" | xargs sed -i -f sed_script
> > 

Perl also provides the -i option to change files in place and optionally 
save a backup copy, e.g.,

  $ perl -i -pe 'command' *.foo
  $ perl -i.bak -pe 'command' *.foo

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: print HTML in "B" size

2003-09-17 Thread Ken Irving
On Wed, Sep 17, 2003 at 03:20:37PM -0400, Derrick 'dman' Hudson wrote:
> I want to print a certain web page[1], which includes color and
> images, on "B" size paper (aka "Ledger", 11"x17").  My printer can
> handle 11x17 just fine, but I don't know how to convert the HTML to PS
> for the printer.  Neither galeon nor mozilla allow choosing that paper
> size, nor do they let me choose an arbitrary size.
> 
> What tool(s) will fit the bill here?

In galeon I usually replace the printer command with:

psnup -n 1 > preview.ps

where psnup is in the psutils package.  Other options can be used to set
the output paper size, or the psresize command can be used to change the
target size.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: sed, bash script

2003-09-18 Thread Ken Irving
On Fri, Sep 19, 2003 at 05:14:15AM +0800, csj wrote:
...
> > 
> > >>On Tue, Sep 16, 2003 at 07:39:39AM -0700, Ric Otte wrote:
> > >>
> > >>
> > >>>Hi, I would like to run all of the files in some directories
> > >>>through sed, in order to edit the files.  I can do it for
> > >>>individual files by typing: cat filename|sed command>filename
> > >>>But that requires me to run that command for each file.  I
> > >>>was wondering if anyone could 1) give me a reference to a
> > >>>simple bash tutorial that will explain how to set up a script
> > >>>to do things like this,
...
> 
> sed -i -f sed_script *.foo
> 
> ...

That's nice, but the version of sed available with woody/stable doesn't
provide that option.  What version are you using?

$ sed -i 
sed: invalid option -- i
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
...
$ dpkg -l sed
...
ii  sed 3.02-8  The GNU sed stream editor.
$ sed -V
GNU sed version 3.02

Copyright (C) 1998 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.

>From a search on packages.debian.org:

Release  Package (size)
stable sed 3.02-8   (100.4k)
      The GNU sed stream editor.
testing sed 4.0.7-1   (184k)
  The GNU sed stream editor
unstable sed 4.0.7-1   (184k)
  The GNU sed stream editor

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: [OT] Pointer for data aquisition over serial port

2002-11-04 Thread Ken Irving
On Mon, Nov 04, 2002 at 07:13:27PM +0100, Michael Naumann wrote:
> On Monday 04 November 2002 16:31, Rob Weir wrote:
> > On Mon, Nov 04, 2002 at 09:32:14AM +0100, J?rg Johannes wrote:
> > > Hi List
> > >
> > > The subject says it (nearly) all: I have an old spectrophotometer which
> > > has a serial port. According to the manual, it reads commands in
> > > cleartext, and outputs its measured data in clear text as well. So what I
> > > need is a software that allows me to send such commands to the serial
> > > port, and read the results back over serial port into a file. Any
> > > pointers (or ready programs :)) ?
> >
> > Couldn't you just pipe things in to and out of /dev/ttySn?
> 
> Or simply use minicom. It also lets you configure baudrate and alike.
> IIRC, you have to set it up as root with 'minicom -s'

Or... if you want to automate the interface I'd recommend the Net::Telnet
module for perl.  Despite the name it can work with any filehandle,
and supports various methods for sending commands and receiving (and
waiting for) responses.

I've also used cu (part of the uucp distribution) under perl's Expect
module to do this sort of thing, where cu handles the comm channel
and expect the timeouts and automating the interactive stuff, but find
Net::Telnet a simpler solution.

Ken

-- 
Ken Irving <[EMAIL PROTECTED]>


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




Re: ntpdate from cron -- DON'T DO THAT!

2002-12-29 Thread Ken Irving
On Sat, Dec 21, 2002 at 04:14:32PM -0800, Bill Moseley wrote:
> ...
> 
> The other possibility, brought up by someone on this list, is that that
> machine is used for burning CDs and that may cause the clock to get slow.
> I have not check this, though.

I'll second that warning, as I saw just that behavior on a time-critical
system.  Yes, it's dumb to be running such processes on a workstation,
and I'm currently fixing that, but I'm satisfied that burning CDs can 
drastically slow the clock.  The last time it happened I easily made the
connection between the CD burn operation and ntpdate's actions, but the 
first time I had no idea, panicked, and replaced ntpd with ntpdate. After
reading this thread I'll go back to ntpd.

-- 
Ken Irving <[EMAIL PROTECTED]>


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




Re: ntpdate from cron -- DON'T DO THAT!

2002-12-30 Thread Ken Irving
On Sun, Dec 29, 2002 at 02:18:18AM -0800, alan brown wrote:
> I may be wrong but I think it's more generic than burning CD's.  I've
> heard it's related to SCSI drives.  Just hearsay.  Throw it into the
> mix...

On the victim machine I'm using IDE drives with SCSI emulation for the
CD writer, no actual SCSI hardware, and cdrecord to do the writing. In
the course of writing two CDs with about 300 MB the clock slowed by 97 
seconds, as subsequently reset by ntpdate. FWIW.

Ken

> -----Original Message-
> From: Ken Irving
> 
> On Sat, Dec 21, 2002 at 04:14:32PM -0800, Bill Moseley wrote:
> > ...
> > 
> > The other possibility, brought up by someone on this list, is that > that
> > machine is used for burning CDs and that may cause the clock to get > slow.
> > I have not check this, though.
> 
> I'll second that warning, as I saw just that behavior on a time-critical
> system.  Yes, it's dumb to be running such processes on a workstation,
> and I'm currently fixing that, but I'm satisfied that burning CDs can 
> drastically slow the clock.  The last time it happened I easily made the
> connection between the CD burn operation and ntpdate's actions, but the 
> first time I had no idea, panicked, and replaced ntpd with ntpdate.  > After
> reading this thread I'll go back to ntpd.
> 
> -- 
> Ken Irving <[EMAIL PROTECTED]>
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 

-- 
Ken Irving <[EMAIL PROTECTED]>


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




Re: Set group seting to multiple files

2002-09-12 Thread Ken Irving

On Thu, Sep 12, 2002 at 11:28:00AM -0400, Travis Crump wrote:
> martin f krafft wrote:
> >one warning:
> >
> >  NEVER, i repeat *N*E*V*E*R* use the -R flag to chmod/chgrp/chown if
> >  the final argument is not a directory. for instance
> >
> >chown -R pierre /music/mp3/*
> >
> >  will eventually change *your entire filesystem* to be owned by
> >  pierre!
> >
> 
> Can someone else confirm this because this doesn't make any sense to me 
> and I have never encountered it.  I just tried a couple of tests trying 
> to confirm this and was unable to reproduce it.

I did this once, then panicked and halted the process when I heard 
a lot of disk activity.  The problem is (I think) that the wildcard
matches the .. file and the process recurses back into the parent
directory, etc.

I'd recommend using find for this sort of thing, as it allows you to 
select files and directories with a lot of flexibility, view them 
before doing anything, then do the job a file at a time.

$ find /music/mp3  # ... view & check the list of files 
$ find /music/mp3 -exec echo chown -R pierre {} \; # ... check commands
$ find /music/mp3 -exec chown -R pierre {} \; # ... do it

This is probably a lot slower than using recurse options in commands,
but I feel it can be safer.

-- 
Ken Irving <[EMAIL PROTECTED]>


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




Re: Set group seting to multiple files

2002-09-12 Thread Ken Irving

On Thu, Sep 12, 2002 at 05:20:48PM +0100, Colin Watson wrote:
> On Thu, Sep 12, 2002 at 08:07:24AM -0800, Ken Irving wrote:
> > I did this once, then panicked and halted the process when I heard 
> > a lot of disk activity.  The problem is (I think) that the wildcard
> > matches the .. file and the process recurses back into the parent
> > directory, etc.
> 
> '*' doesn't match .. in normal (POSIX) shells. '.*' does, though.

I'm pretty sure I used the latter construct, since (I dimly recall)
I was trying to operate on files with a '.' in the name.  Thanks for
the clarification.  This defuses martin's warning to an extent, but
it's a gotcha that got me, and a learning experience.

-- 
Ken Irving <[EMAIL PROTECTED]>


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




Re: apt-getting source for my kernel

2003-11-25 Thread Ken Irving
On Sun, Nov 23, 2003 at 11:53:49PM -0800, Mark Healey wrote:
> I need to compile the nic driver for my Broadcom bcm4401.  I have the
> source but it needs the kernel source.  I installed from disk 5 which
> means I have kernel 2.4.18-bf2.4.  I tried apt-getting
> kernel-source-2.4.18-bf2.4 and was told it doesn't exist.
> 
> Without networking how do I get it.  Or if it is under a different
> name what is it?

See if apt-cache knows about it, e.g.,

$ apt-cache search kernel | grep 2.4.18-bf2.4

Look on your set of cds, e.g.,

$ find /cdrom -name 2.4.18-bf2.4

Ask a friend to let you use their machine with networking and google
for it.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Newbie installation query

2003-11-26 Thread Ken Irving
On Wed, Nov 26, 2003 at 09:51:18AM -0800, Stephen A. Witt wrote:
> 
> apt-get also works fine, you just don't get the feedback of the effect of
> adding/removing a package that you get with dselect, but of course it
> does the same conflict/dependency resolution.

With the -s option for apt-get you can preview what packages will be
removed or installed (and configured), so that dselect-like feedback
is available.  Use apt-cache show to get information about any of the
packages, and I think the end result is equivalent to what you get from
dselect, if a bit more hands-on.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: recommended Virus Scanner?

2003-11-28 Thread Ken Irving
On Thu, Nov 27, 2003 at 06:57:18AM -0800, Tom wrote:
>
> I have a friend who is 1000 times smarter about Unix than me, and he has
> told me the whole history of Sendmail exploits, Bind exploits, and
> horriblly crufty design decisions and gaffs and el crapo code all
> throughout the history of Unix.  His personal opinion is that Linux is a
> mere distraction written by amateurs; FreeBSD is closer to the ideal.

So what?

>From my perspective those various exploits exposed problems which were
then addressed, with the end result of strengthening unix systems,
not weakening them.   Certainly the code comprising kernels, operating
systems, and applications are very complex and subject to screwups and
mistakes, but they also evolve and change, in large part in response to
problems which occur.  The fact that your intelligent friend can even
know about those "crufty design decisions and el crapo code" is to me,
the whole point of open source.

>
> I'm not advocating his belief, it's just that (1) the history of Unix as
> a cracker proof platform is not true; (2) most of the professional Unix
> community views Linux as a largely amateurish attempt relative to their
> "heavy duty code", and (3) we're all human.

Who claims "Unix as a cracker proof platform" anyway?  It's simply
a pragmatic effort to make computers do useful work, and thinking
it's perfect or "ideal" is a delusion.  Problems can't be fixed until
they're either anticipated or exposed, and with open source even the
practictioners of professional, closed source systems can watch what's
going on and jeer if it makes them feel better.

>
> I believe all of your statements I snipped are destined to be crow one
> day we will all eat.

... and having digested that, we'll move on the better for it.  I think
your basic premise is flawed, that Linux is claimed to be perfect and
immune from exploits.


On the subject (Re: recommended Virus Scanner?), I recently included one
in my .procmailrc (http://www.freshmeat.net/yavr/) after seeing it on
this list, and it's got a quite a list of specific exploits to check for
(a lot of them Windows based, I'm sure).  It's caught all of my Sven 
hits at least.  From the top of the code:

  # - features
  #  - trap e-worms with base64 signatures (most known like Klez, Hybris, BugBear...)
  #  - iframe html exploit
  #  - CLSID hidden extensions exploit
  #  - xml codebase exploit
  #  - generic executable trap for bat, pif, vbs, vba, scr, lnk, com, exe
  #  - generic macro detection for doc,dot,xls,xla files
  #  - generic detection for most of nigeria scam e-mails (most of them)
  #(please remember to configure nigeria scam filter. default is ON)

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: man files to text editor

2003-12-17 Thread Ken Irving
On Wed, Dec 17, 2003 at 11:26:27PM +0100, Jan Minar wrote:
> On Wed, Dec 17, 2003 at 04:55:29PM -0500, Lou Losee wrote:
> > > > Try man xxx | col -b > text-filename
> > > 
> > > This actually should not work, you have to tell man(1) it should send the
> > > formatted manpage to stdout, instead of messing with the pager.
> > > Replace `foo' with the desired program name.
> > > 
> > > $ man --pager cat foo | col -b > text-filename
> 
> > Well perhaps it should not work, but it does.  I have used the construct
> > for years now.  In chasing down the man pager, it appears to default to
> > 'less'.
> 
> Actually, it depends on certain environment variables, few configfiles,
> etc.  In the default Debian setup, it won't work.

I think less is smart enough to know that it's being piped and so runs
as a filter, but it's probably not the default pager (since it's not 
installed by default on a base install).

Ken

> 
> > Try it you may like it - simple and quick.
> 
> I meant ``it shouldn't work for you''--of course I tried it first ;-)



-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Getting CPU load (from /proc/?)

2000-09-27 Thread Ken Irving
On Thu, Sep 28, 2000 at 12:09:40AM +0100, Colin Watson wrote:
> On Thu, 28 Sep 2000 at 07:48:01 +1200, C. Falconer wrote:
> > 
> > Rememebr heisenberg's uncertanty principle - you can't measure an attribute 
> > of the system without affecting the system attribute you are measuring.
> 
> If quantum theory affects Linux to a degree where a userspace process
> can measure its effects then I shall be quite scared. :)
> 
> > Running vmstat means there is a running process - which means the machine 
> > might never be idle enough to suspend
> 
> While telling me about the existence of vmstat, somebody at work said
> that it excluded itself from its measurements. This might be rubbish,
> though, as I've never actually looked at the code ...

>From the manpage:

   These reports are intended to help identify system bottleĀ­
   necks.  Linux vmstat does not count itself  as  a  running
   process.

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: painful mail/fetchmail problems

2000-07-25 Thread Ken Irving
On Tue, Jul 25, 2000 at 02:25:33PM -0700, Jim Ray wrote:
> I would delete that message manually and see if the problem goes away.  I 
> have seen certain messages cause this problem but I have never figured out 
> why this happens.
> 
> jim ray
> 
> On Tue, Jul 25, 2000 at 07:53:20PM +, Paul Phillips wrote:
> > Under debian frozen, kernel 2.2.15.
> > 
> > Somewhere around a week ago, fetchmail started hanging on me.  After
> > fairly thorough investigation I'm still not sure just what changed to
> > cause this, or even whether it's client side or server; though, I think
> > it's something on the server, because I didn't change anything that I'm
> > aware of, and a different pop server looks to be working.  If it is the
> > server, I still need to work around it...
> > 
> > The behavior is this:
> > 
> > orbit:~> fetchmail --all 
> > 79 messages for paulp at pop.ricochet.net (325997 octets).
> > reading message 1 of 79 (3312 octets) . [and now hang here]

When this happens to me, either /var/log/message or /var/log/mail shows
that the Sender: field failed to validate.  I think this results from the
message showing a local domain name as sender instead of a valid internet
name. (Note: this was on a non-debian system.)

> > 
> > Eventually it times out.  The first message gets delivered locally at that
> > point, but not deleted from the server.  I thought it might have something
> > to do with the message itself, but I manually deleted the first one that
> > caused this from the pop server and it didn't help.

Hmm, that's "fixed" the problem in my experience.

-- 
Ken Irving
Trident Software
[EMAIL PROTECTED]



dropped out of potato install sequence

2001-01-17 Thread Ken Irving

This is probably not a bug, but my careless fingers caused the 2.2r2
installation sequence to bail, leaving me at a login prompt.  I'm 
sending this note in the interest of maybe improving the installation
sequence for other clumsy new* users. (* new to Debian; I've used SuSE 
and RedHat for a few years.)

This was just after going through the package select, then anXious
dialogs, at a prompt which said I'd chosen 49 MB of packages which would
take 100 MB disk space, and ended with the prompt "(Yn)?". I typed "y",
then saw that "Y" was in caps; hit "Y", so now had "yY"; tried backspace
which did nothing; tried Ctl-H, which landed me at a login prompt.

I'm not sure how to recover/restart the install, and don't see a
troubleshooting section in the fine manual that covers this contingency.
Running dselect shows a much more detailed package listing than was 
displayed during the install dialogs. Is it possible to run a command
to run through the install profiles (tasks) from the command line?

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: concatenate eps files

2001-06-18 Thread Ken Irving
On Mon, Jun 18, 2001 at 05:31:44PM +0200, MaD dUCK wrote:
> hey,
> does anyone know how i can take an eps file and print it onto a page
> 2x5, so that the initial eps file is on the page 10 times, preferably
> without any margins in between?

http://sourceforge.net/projects/cardstock/

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: networking (offlist)

2001-07-25 Thread Ken Irving
(now on-list)
On Wed, Jul 25, 2001 at 04:41:52PM -0400, Michael Cole wrote:
> Ok,  I am trying to get to the internet.  I have changed my network address
> to 192.168.0.0.  I sort of understand what you are saying about the address
> of the network was a host and I guess having it as the address of the
> gateway didn't help.  But I don't understand what you mean by the
> 192.168.x.x address not being routable.  I have already tried to reach the
> router/internet with this change in the network address and no luck.  Do I
> really need an address there?  I don't have NAT as far as I know, but I will
> look around.

I'd strongly suggest reading up on networking, e.g., Linux Netowrk
Administrator's Guide by Olaf Kirch, or other sources.  The topic is
not _that_ complicated, but there are terms and issues that make a lot
of sense with some study, and little sense without.  By virtue of what
you're trying to do, you _are_ a network administrator.

There are a few address ranges that are defined for local use, meaning
that routers should not forward them (i.e., not routable), and that 
includes anything beginning with 192.168.  Valid Internet addresses are
unique; if you connect to an ISP via dialup (or cable, I suppose), you'll
be given a unique, valid address to which other machines can reply. You 
can setup a Linux box making such a connection to do NAT for other machines
on your local, private network, so that they can access the Internet; outgoing
packets get the NATer's address, and incoming ones are unNATed so that they 
get back to the originating host.

Your gateway may be such a machine connecting to an ISP (etc.), or it must
have some other (e.g., permanent) connection to the Internet (or to another
gateway that does).  It'll have an address on the local network, and that's
what your routing tables must identify.  Your local host uses the netmask
to see if a given destination address is on the local network; if not, the
packet is directed to the gateway for routing.

Beyond that I'm not sure of what you need.  Good luck!

Ken

> Thank you,
> Michael
> 
> - Original Message -
> From: "Ken Irving" <[EMAIL PROTECTED]>
> To: "Michael W. Cole" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 25, 2001 3:14 PM
> Subject: Re: networking (offlist)
> 
> 
> > On Wed, Jul 25, 2001 at 02:47:15PM -0400, Michael W. Cole wrote:
> > > I am using linux 2.2.19-20010521 on a IIci and am trying to have it
> > > recognize my router so that I can start to upload the software to
> > > complete the system.  I am using this version because the earlier
> > > versions would not acknowledge my ethernet card.  This one seems to but
> > > I have set up the network but I can't get it to ping the router or any
> > > of the other computers (Mac PPC and a Windoze) that are also connected
> > > to the router.  I have followed the HOW-TO's for networking etc.
> > > /etc/network/interfaces is as follows:
> > > iface lo inet loopback
> > >
> > > iface eth0 inet static
> > > address192.168.0.3
> > > netmask255.255.255.0
> > > network192.168.0.1
> > > broadcast192.168.0.255
> > > gateway   192.168.0.1
> > >
> > > I followed the route commands that were in the How-To
> > > ie route add -net 192.168.0.3 netmask 255.255.255.0 eth0
> > > route add default gw 192.168.0.1 eth0
> > >
> > > and these things seem to work they reshowed when route was reentered.
> > >
> > > What do I need to read now?  I would like to be able to use my cable
> > > modem which is connected to the router and is accessible to the other
> > > two computers on this network.
> > > Any help would be greatly appreciated.
> >
> > It's not clear to me whether you want to get out to the Internet or not,
> > but if so you'll need an address other than on the 192.168.x.x network,
> > since those addresses are not routable.  Also the network addr shown is
> > a host address rather than a network; network addresses end in 0. If the
> > gateway is also capable of NAT (network address translation) then what
> > you have may work, since the NAT host changes outgoing packets to a valid
> > internet address.
> >
> > --
> > Ken Irving <[EMAIL PROTECTED]>
> >
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: inetd vs xinetd

2001-11-30 Thread Ken Irving
On Thu, Nov 29, 2001 at 03:20:38PM -0800, nate wrote:
> 
> in my experience .
> 
> pros to xinetd:
>  ...
> cons:
> - any change in xinetd requires a RESTART. kill -HUP won't do it. and
> this can cause problems if you have sockets in use(e.g. you run a mail
> server). sometimes ive had to shut xinetd down and all services for 20
> minutes waiting for sockets to clear, inetd doesn't care it just fires
> up anyways.- uses it's own hosts allow/deny that is inside xinetd.conf, which 
> you
> have to restart xinetd to change anyways so

I haven't used xinetd, but just read (1) that it'll reread
its config files from a USR2 signal.  Does that not work, or
perhaps is it not sufficient?

Just curious.

Ken


(1) ...in an article linked from lwn.net, somewhere on IBM
developerWorks, titled: "Cultured Perl: Using the xinetd 
    program for system administration", by T. Zlatanov.

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: How to handle whitespace in filenames ???

2001-12-19 Thread Ken Irving
On Wed, Dec 19, 2001 at 12:26:05PM -0600, Michael D. Schleif wrote:
> 
> More and more, *nix developers are following the dark path of using
> whitespace in directory and filenames -- something which I've always
> detested, from an sa standpoint ;<
> 
> For example, on my upgraded potato box I may want to do something this
> simple:
> 
>   grep pump `find /etc/ -type f`
> 
> ...
> 
> How do others handle this?

The -exec option under find should't care what the name looks like:

$ find /etc/ -type f -exec -H pump {} \;

The -H option to grep is needed since grep is run on a single file,
so doesn't report the name by default.

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: How to handle whitespace in filenames ???

2001-12-20 Thread Ken Irving
On Wed, Dec 19, 2001 at 09:46:41PM -0800, Erik Steffl wrote:
> ...
> 
>   let's note that it's mostly the shell, basically all other tools
> handle any characters properly (not talking about shell scripts, those
> all depend on how careful the author was).

The only reason the shell is special in this regard is that it's
the middleman in the user-application transaction.  It's parsing
the user's input into neat packets based on conventions and clues,
one of which is that whitespace delimits stuff.  If the shell were
to auto-quote, say, filenames with spaces, then I suspect that
special treatment would be lost if the shell was part of a pipeline
of commands.  The receiving application typically doesn't want
to deal with quote characters, after all, and those are handily,
simply, and thankfully removed by the shell.

In HTML they defined a space-looking character (sequence) to fix this
sort of problem, but that'd be hell for every shelled application to
have to deal with.  So then maybe the last shell process in a pipe
unspecializes the special space...  sounds ugly to me. (I've always
figured the underscore was that special space-looking character,
and it works quite nicely as it is.)

>   so we are not talking about how unix handles space in filenames but
> how shell handles space in its variables, that's really the main
> discussion (filename are influenced by that, but so are any other
> strings).

But the instigating case was of filenames arriving from backtics
enclosing a find command, so I don't see how variables apply here.
find conveniently presents its output with each filename on a
separate line; the backtics screw that up, as I suppose does xargs,
by glomming them all on a line delimited by spaces.  I think the
appropriate answer is "don't do that", and not "fix the shell",
but that's just my opinion.

Ken

-- 
Ken Irving <[EMAIL PROTECTED]>



using Woody vs testing

2002-02-27 Thread Ken Irving

I'm wondering about the difference between using "woody" vs "testing"
in apt-sources.  I currently have "testing" in my systems, but perhaps
"woody" might be preferable.  Assuming woody (as current testing) does
what I need, it ought to continue being sufficient once it becomes 
stable.  What happens to testing when woody becomes stable? Does sid
(suddenly?) become testing?   I'm sure the answers to these questions
are in the documentation, so any pointers (RTFM) will be appreciated.

Ken

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: pasting text into bash without use of mouse

2001-04-04 Thread Ken Irving
On Wed, Apr 04, 2001 at 08:40:32PM -0400, Chris Matta wrote:
> ...
> c> Hmm, does this really mean I have to really vi? Actually I was 
> c> thinking of something like "cat file.txt > /dev/ttyX" which however 
> c> pastes the thing not just on the screen but on the command line 
> c> itself. Is there such a linuxian function?
> 
> you can use shift+insert to paste into bash

That seems to be a function of xterm rather than bash, but
thanks for pointing it out.  (Probably doesn't help the original
poster, since it's still in X, but I might find a use for it.)

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: app for making cards?

2001-04-23 Thread Ken Irving
On Sun, Apr 22, 2001 at 04:58:39PM +0200, Andre Berger wrote:
> * Ron Farrer <[EMAIL PROTECTED]>, 2001-04-22 14:13 +0200:
> > 
> > Anyone know of an app that will make calling/business cards? I've
> > searched freshmeat, linuxapps, google, etc. and none of the results
> > were exactly what I want. Basically there are 2 columns, 5 rows on
> > each 8.5" x 11" sheet of paper. I would like to create an image (via
> > the gimp or whatever) and put this image in the correct spot in 10
> > places on the sheet. I don't want to create 10 images and put them
> > manually in the right places. Something that will work with avery
> > stock #5371 (or similar) would be perfect. Does anyone have any ideas?

I couldn't find anything either, and wrote a Perl script to
do the job, learning a little postscript along the way. The
script takes eps images and puts them in the postscript output,
scaling to fit. 

http://www.mosquitonet.com/~jkirving/pub/cardstock.html

The database is pretty limited, with only Avery #5376 in it,
but it would be simple to define other entries.  I guess 5371
is identical in layout anyway.

Ken

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: How to remove messages from mbox based on relative date?

2001-04-23 Thread Ken Irving
On Mon, Apr 23, 2001 at 07:53:07PM -0700, Mike Fedyk wrote:
> On Mon, Apr 23, 2001 at 09:33:30PM -0500, John Patton wrote:
> > On Mon, Apr 23, 2001 at 06:05:07PM -0700, Mike Fedyk wrote:
> > > Hi,
> > > 
> > > I have a .procmailrc and am filtering, but now I don't want to have to
> > > delete my messages when they get old in certain mbox files.
> > > 
> > > Can I run procmail with another conf file and have it send messages with a
> > > "delivered" date older than N days?  Is procmail even the right tool, I'm
> > > not so sure...

I'm not sure what it is that you want to do, but maybe formail 
could do it.  From formail(1):

   formail is a filter that can be used to  force  mail  into
   mailbox  format,  perform `From ' escaping, generate auto-
   replying headers, do simple header  munging/extracting  or
   split  up  a mailbox/digest/articles file.  The mail/mailĀ­
   box/article contents will be expected on stdin.

-- 
Ken Irving <[EMAIL PROTECTED]>



Re: Sounds off in bash

2004-10-20 Thread Ken Irving
On Wed, Oct 20, 2004 at 07:57:48PM +0200, Otto Wyss wrote:
> In bash rather many time the speaker sounds. Unfortunately my speaker is
> so loud I had to disconnect it. Since that isn't a permanent solution is
> does anyone know how to disable any sound in bash?
> 
> There is a readline variable "bell-style" but I can't figure out how to
> us it. I can't find the file "inputrc.

You can create that file yourself, e.g., 

$ cat .inputrc
# used by the bash shell to control readline behavior

# ... default for bell-style is audible:
# set bell-style audible
# set bell-style none
set bell-style visible

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: vi globally append question

2004-07-15 Thread Ken Irving
On Thu, Jul 15, 2004 at 12:06:07PM -0400, David Turetsky wrote:
> 
> David Turetsky wrote:
> 
> >>:%s/^[a-z]:[0-9]/#/g
> 
> > Try something like:
> 
> >   %g!/^#/s/^/#/
> 
> > Steve Lamb replied:
> 
> >Personally I'd do it this way:
> >%s/\(.*\)/#\1/g
> 
> David responded:
> 
>   Steve's approach would put a # in the front of ALL
>   lines whether or not they initially contain an existing
>   # to begin with
> 
>   If that is what you wanted to do, you could:
> 
>     %s/^/#/

Then follow that with %s/^##/#/ to end up with the desired result, I 
think...

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Wish to network my home computers but don't know Jack about it

2003-12-19 Thread Ken Irving
red internet) available
> together in one box?  Can it share dial up?  (Likely danged slow)

Each network is supported on a single "interface" on a linux host,
usually ppp0 for the dial-up and eth0 for the local ethernet.  Run 
/sbin/ifconfig to view these interfaces; you should see a valid Internet
address assigned to you under the entry for ppp0, and your local network
address under eth0.  (There'll also be the "loopback interface", lo, which
allows your linux box to talk to itself using the same networking routines
in the kernel.)


> I'm starting to feel as if I've not done sufficient googling.

I'd highly recommend killing a tree and getting a decent book on the 
basics of networking... can't find my old reference, and it doesn't
seem to show up on google/oreilly/amazon, but something like "Network
Administration for Unix". 

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: What utility to post my gateway's IP?

2004-08-24 Thread Ken Irving
On Mon, Aug 23, 2004 at 10:24:26AM -0700, Dave Hathaway wrote:
> I am using a D-Link router as the gateway between my cable modem and
> my home network.  If I want to remotely access my Woody computer, I
> need to know the address assigned the gateway by the ISP's DHCP
> server.  I could then configure an open port in the gateway router so
> I could access the server.
> 
> Long ago, when I was using SLIP and PPP dialup, I used a Windoze
> utility to post the IP on a server using FTP.  I could then look at
> this file on the server to see what the current IP was, thus accessing
> my home computer remotely.
> 
> How does one do this using Debian?  I gather I would invoke a process
> from cron, but what utility does this?

I have about the same setup, and have found a workable solution by simply
sending an email (e.g., once an hour) from the home workstation to work,
then looking in the headers for the cable modem's address.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: DSL problem (possibly OT)

2004-02-26 Thread Ken Irving
On Thu, Feb 26, 2004 at 04:09:36PM -0500, Jeff Elkins wrote:
> ...
> About three weeks ago I noticed when performing apt-get updates and installs, 
> that my download speeds dropped to 30 KB/s and below. I blew it off as a 
> temporary network issue but the problem is not going away.
> ...

Maybe have a look at the mss setting?

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Grep only mail headers via STDIN?

2004-03-05 Thread Ken Irving
On Fri, Mar 05, 2004 at 10:37:01AM +0100, Jens Benecke wrote:
> Hi,
> 
> I want to create a script that greps for a specific mail header coming from
> STDIN. "mailgrep" and "mboxgrep" don't work, they need files to work on,
> but the mail comes via STDIN.
> 
> So I need to write something like
> 
> | condredirect [EMAIL PROTECTED] egrep "^X-Spam-Flag: YES" 
> 
> BUT where grep would "exit 1;" and not search any further when it encounters
> the first empty line (the end of the mail headers)
> 
> 
> Backgroud: I want to filter SPAM but I don't want to filter attached SPAM
> that people forward to me to analyze. So I can't just grep for
> "X-Spam-Flag:".

A grepish program that doesn't work on stdin sounds odd.  Have you tried
using '-' as the filename?  From grepmail(1) on woody:

 If no mailbox is specified, takes input from stdin,
 which can be compressed or not. grepmail's behavior is
 undefined when ASCII and binary data is piped together
 as input.

Otherwise, if mailgrep et al otherwise work, you might consider fixing them
(i.e., hack the source) to support input on stdin.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Grep only mail headers via STDIN?

2004-03-05 Thread Ken Irving
On Fri, Mar 05, 2004 at 09:55:43AM -0900, Ken Irving wrote:
> On Fri, Mar 05, 2004 at 10:37:01AM +0100, Jens Benecke wrote:
> > Hi,
> > 
> > I want to create a script that greps for a specific mail header coming from
> > STDIN. "mailgrep" and "mboxgrep" don't work, they need files to work on,
> > but the mail comes via STDIN.
> > 
> > So I need to write something like
> > 
> > | condredirect [EMAIL PROTECTED] egrep "^X-Spam-Flag: YES" 
> > 
> > BUT where grep would "exit 1;" and not search any further when it encounters
> > the first empty line (the end of the mail headers)
> > 
> > 
> > Backgroud: I want to filter SPAM but I don't want to filter attached SPAM
> > that people forward to me to analyze. So I can't just grep for
> > "X-Spam-Flag:".
> 
> A grepish program that doesn't work on stdin sounds odd.  Have you tried
> using '-' as the filename?  From grepmail(1) on woody:
> 
>  If no mailbox is specified, takes input from stdin,
>  which can be compressed or not. grepmail's behavior is
>  undefined when ASCII and binary data is piped together
>  as input.
> 
> Otherwise, if mailgrep et al otherwise work, you might consider fixing them
> (i.e., hack the source) to support input on stdin.

Support for reading on stdin was added to mboxgrep at v0.7.7,
see http://sf.net/projects/mboxgrep/.  Woody's mboxgrep is at
v0.7.6.something.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Permission change - recursive

2004-03-13 Thread Ken Irving
On Sat, Mar 13, 2004 at 09:46:06AM -0800, Curtis Vaughan wrote:
> I just noticed that for an entire directory of files and folders, the 
> permissions are not really right.
> 
> Or maybe it doesn't matter.  I went ahead and changed all permission 
> recursively, but feel that permissions should be as follows: for all 
> files 660, whereas for all directories 770.  Has anyone written a 
> script that will drill through a directory and change all the 
> permissions in such a manner?

There are recursive options to chmod, but I prefer using find to do this
sort of thing, e.g.,

   $ find some_dir -type d -exec echo chmod 0770 {} \;
   $ find some_dir -type f -exec echo chmod 0660 {} \;

The echo is there so that the actions can be inspected before actually 
doing them.

Ken

-- 
Ken Irving
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Set title bar name

2004-03-16 Thread Ken Irving
On Tue, Mar 16, 2004 at 04:59:45PM -0800, Bill Moseley <[EMAIL PROTECTED]> wrote:
> ...  Is there a program to set
> the title bar name that I can use as a wrapper script for nano -- set it
> to the file I'm editing, start nano, then on exit reset to "xterm".

Here's a shell script I've been using to set the window title...

$ cat `which title`
#!/bin/sh
    # 27jul99 kci, 07feb2000, by Ken Irving <[EMAIL PROTECTED]>

if [ "$1" == "-h" ]; then # online help message
echo \
' Set X terminal title bar
 Usage:
 $ title any text   ... specify a title
 $ title... use/restore the default title
 Export the TITLE shell variable for the default title, e.g,:
 $ export TITLE=...; title'
exit
fi

if [ $# -eq 0 ]; then
if [ -z "$TITLE" ]; then
TITLE='no title (see title -h)'
fi
echo -ne "\033]0;${TITLE}\007"
exit
fi

echo -ne "\033]0;[EMAIL PROTECTED]"

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Phone dialer for Linux

2004-02-12 Thread Ken Irving
On Wed, Feb 11, 2004 at 11:46:38PM -0500, David P James wrote:
...
> > David P James wrote:
> > > I've searched and searched and I just can't seem to find a simple,
> > > command-line phone dialer for use with pulse/rotarty (ie non-touch
> > > tone) phone lines. I find it amazing that I can send out faxes via
> > > my modem in linux but can't just dial a number. I've never used PPP
> > > but obviously one has to dial out there too. So, I'm a bit
> > > perplexed.
...
> Right... but what I'm looking for is just a way to pass a phone number
> as a command line parameter so that I can then pick up the telephone
> handset and start chatting away with the person or answering machine on
> the other end. My understanding of PPP is that it will then attempt to
> make a connection with a remote machine, something I do not want to do.

I did something like this for a while to enter calling card numbers and
codes, but used minicom and entered the commands manually.  I thought I had
also done it using echo ... > /dev/ttySn, but can't find any hint of how
to get that working.  (It might be necessary to use setserial or something
to control the DTR line on the modem to allow it to remain off-hook?)

You might try it manually using minicom just to see how/if it works.
Normally, minicom (or other serial comms program) would dial a number
to establish a modem-to-modem connection.  The trick to just dialing a
number and not doing the modem thing is to end the dial string with a
semicolon, which places the modem back in command mode.  (This assumes
your modem uses the Hayes/AT command set, and supports pulse dialing.)

ATDP5551212;

Some options might be useful, e.g., M0 to keep the modem speaker off,
X0 to ignore wierd dial tones, etc.:

ATM0X0DP5551212;

In other cases I've used cu (bundled with uucp) with expect or Perl's
Expect module to automate phone and modem applications.  cu is smaller
and simpler than minicom, easier to use as a tool.  One such app was
a dialer using perl/tk, with various buttons to control it, numeric
keypad, etc.  These use the same semicolon trick to keep the modem from
proceeding to its modem handshake mode.

Ken

--
Ken Irving, [EMAIL PROTECTED]


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



Re: Stable, Unstable, Testing

2004-03-30 Thread Ken Irving
On Wed, Mar 31, 2004 at 06:22:18AM +0200, Matthijs wrote:
> ...
> I think I'm as much a newbie as you are and recognize you're problem
> with the package management. I'm used to a windows environment. You
> want a new application? Go to the website, download the setup.exe and
> execute - you're done.
> 
> I'm not here to start an OS-war (I would probably lose... :-), but
> switching to the package management system from Debian is quite a big
> step.

I've had the opposite impression, that the debian system makes it very
simple to install (and remove) applications.

Step 1, if you want to try application "APP", use 

$ apt-cache search APP

to see what, if any, packages are available.  Odds are, your APP may
be supported, meaning that one of the many volunteer debian minions has
packaged it.  If it's a new, cutting edge application then it's not likely
to be in stable, but it may well be available under unstable or testing.

Step 2, choose one one of those packages, i.e., APP_PACKAGE.

Step 3, install it using 

$ sudo apt-get install APP_PACKAGE

(or su to root and use 

# apt-get install APP_PACKAGE

if you haven't set up sudo yet).

Step 4, figure out how to run it.  Sometimes it's obvious, and "man APP",
"APP -h", or (sigh) "APP --help" may be sufficient to get the syntax down.
In many cases it might be good to see what executables are included,
so something like

$ dpkg -L APP_PACKAGE | grep bin

will produce a list of runnable programs.  In some cases there may be an
assoicated APP-doc package to haul in the relevant documents, to be found
under /usr/share/doc/APP/ or similar.

Step 5, when you find you don't want it, use 

$ sudo apt-get remove APP_PACKAGE

or 
$ sudo apt-get --purge remove APP_PACKAGE

and it's gone.  Unless you use the --purge option, any configuration
adjustments you've made are retained, usually in /etc/APP_PACKAGE.conf
or some similar location.

The debian package system, as dictated by Policy, will identify and install
any dependent packages that might be needed.  It will also leave the app in
a usable state, e.g., already up and running if it's a server app in many
cases.

If I'm not mistaken, using the "go to the website, download the setup.exe
and execute" method, you'll also need to do a bit of research and find and 
install any dependencies yourself.  Maybe it's just me, but

$ sudo apt-get install SOMETHING

seems simpler than that.

ACTUALLY, THOUGH, I'd really use

$ sudo apt-get install SOMETHING -s

where the -s option (aka --simulate, --just-print, --dry-run, --recon,
--no-act) lets you know what apt-get is going to do before you do it.

Good luck!

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Stumped with a Posix/Perl Question

2004-04-01 Thread Ken Irving
On Thu, Apr 01, 2004 at 02:10:46PM -0800, William Ballard wrote:
> Given:
> 
> A - 1
> A - 2
> B - 1
> B - 2
> 
> what's the simplest command or perl script to print it as:
> 
> A (1, 2)
> B (1, 2)
> 
> or something equivalent.

Hmm, one of the zillions of ways of doing something equivalent, with the
data in file tmp/msg-data:

  $ perl -nae '{push @{$x{$F[0]}},$F[2]}END{foreach(sort keys %x){print "$_ ("; print 
join(", ",@{$x{$_}});print ")\n"}}' tmp/msg-data 
  A (1, 2)
  B (1, 2)

or perhaps a bit more legibly:

#!/usr/bin/perl -w
use strict;

my %x;

while (  ) {
chomp;
my @F = split;
push @{$x{$F[0]}}, $F[2]
}

foreach ( sort keys %x ) {
print "$_ (";
print join(", ",@{$x{$_}});
print ")\n"
}

__END__
A - 1
A - 2
B - 1
B - 2

This builds a hash keyed on the first space-delimited token on a line,
with the hash value being an array reference to which the 3rd token
is pushed.  Afterwards the hash is iterated for printing, and the arrays
pretty-printed using join.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: xwatch or root-tail for remote server?

2004-04-12 Thread Ken Irving
On Mon, Apr 12, 2004 at 03:56:49PM -0400, Kevin Coyner wrote:
> 
> I recently started running root-tail on my box to track some of my log
> files.  
> 
> Does anyone know of something similar to root-tail or xwatch that allows
> me to see the log files of a remote server in my workstation here in the
> office?

Perhaps something like:

$ ssh [EMAIL PROTECTED] tail -f /var/log/syslog

Run this in a transparent xterm and it sounds like it would be close
to what root-tail does.

$ apt-cache show root-tail
...
Description: Displays select log files in the X root window.
 Root-tail, is a program that displays one or more log files,
 on the X root window, through the use of transparent windows.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: Before going with debian questions.

2004-04-18 Thread Ken Irving
On Sat, Apr 17, 2004 at 07:39:19PM -0700, Karsten M. Self wrote:
> on Fri, Apr 16, 2004 at 09:26:53AM -0700, Robin Lynn Frank ([EMAIL PROTECTED]) wrote:
> > ...
> > 
> > 1) What are debian's strong and weak points as a server?
> > 2) What are debian's strong and weak points as a desktop workstation?
> 
> The "Why Debian Rocks" patge at TWikIWeThey, which I administer, has
> already been mentioned.  Manoj Srivastava (Debian Project Secretary)
> also has a very good page up on the topic (referenced above IIRC).
> 
> Basic benefits:
> 
>   ...
> 
>   - Choice of stability / currency tradeoff points with different Debian
> releases:  stable (old but rock solid), testing (equivalent to most
> other distro's current release), ...

This statement seems at odds with recent list discussions of the nature
of testing, which point out that testing may break for various reasons
and is slow to get security updates.  

> ... unstable (usually works, but watch
> the release notes / upgrade lists), experimental (unofficial, *will*
> stab you in the face, given the opportunity.  My basic
> recommendation is 'stable' for servers, 'testing' for workstations,

Is this still your recommendation?  I've used testing in the past for
workstations, but from the recent discussions thought that unstable
would be the preferred choice when stable won't cut it.

> until you understand packaging tools.  After which point you want to
>     look at pinning.

I'll have to look into pinning.  I prefer running stable, but want some
packages not available there.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Debian /etc/hosts Behavior

2004-04-18 Thread Ken Irving
On Sun, Apr 18, 2004 at 09:33:11AM -0700, Marc Wilson wrote:
> On Sat, Apr 17, 2004 at 10:32:29AM -0700, [EMAIL PROTECTED] wrote:
> > ---
> > 127.0.0.1   kas localhost
> > ---
> > This realized, it was a quick fix:
> > ---
> > 127.0.0.1   localhost
> > ---
> > 
> > If this entry prevents "hostname -f" and "hostname -d" from working, 
> > why does Debian create it?
> 
> Debian doesn't, on any of my machines:
> ...
> Personally, what YOU had in /etc/hosts looks like something that was added
> locally.

I had the same thing on one machine running unstable (hostname before
localhost), but not on others running stable.  I recently used the
hostname command (followed by some grepping and editing other files
under /etc) to change the host's name; maybe that was responsible for
this format?

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: daylight savings time

2007-03-13 Thread Ken Irving
On Tue, Mar 13, 2007 at 10:20:17PM -0400, Marty Landman wrote:
> Only problem is that I am getting the time as an hour earlier than it 
> really is, since the new daylight savings time here in the US went 
> into effect over the weekend. I have my timezone set to EST.

EST, Eastern Standard Time, should not be affected by daylight savings
time.  Maybe change that to EDT?

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: rcs file

2007-03-19 Thread Ken Irving
On Mon, Mar 19, 2007 at 04:57:59PM -0400, Tony Heal wrote:
> I am trying to initialize and update an rcs file manually. Here is what I am 
> trying to do.
> 
> Debian woody
> rcs v 5.7-13
> TWiki - 24 Nov 2001
> 
> I am using the xconf plugin to parse an xconf file. This works fine.
> 
> I want to create an access page that will show each object in our
> object dictionary. I already have this part figured out.
>
> My problem is one I create this page I have to manually edit it in
> TWiki 2 times to get it formatted correctly. In the background editing
> it twice creates the rcs revision file. I want to script this part
> also. I can create the initial rcs file, but I can not figure out
> how to update that file after I have updated the source file with my
> script. The initial rcs file is created without a rev number in it.
> Here are the steps I am doing
> 
> rm /var/www/twiki/data/Trash/ObjectModel.txt*
> echo "---++ Objects in $branch" > /var/www/twiki/data/Trash/ObjectModel\.txt
> rcs -i -b1 -t-"" /var/www/twiki/data/Trash/ObjectModel.txt
> for i in $Objects ; do
>   echo "%XCONF{myprogram, $i}" > /var/www/twiki/data/Trash/$i\Object\.txt
>   echo > "   * $i""Object">> /var/www/twiki/data/Trash/ObjectModel\.txt
> done
> 
> rcsdiff -r1 /var/www/twiki/data/Trash/ObjectModel.txt
> 
> the last line does NOT create an updated revision file. That is my problem.
> 
> Anyone know how to fix this?

(Quoted text formatted to fit and to try to understand it...).

I'm don't follow what you're trying to do, but I frequently use rcs for
quick & dirty versioning of individual files, and just use 'ci -l file'.
This creates the initial rcs file and leaves the file there to continue
normal use.  It'll ask for a comment, so you may want to provide that
as well.

-- 
Ken Irving


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



Re: when you do an apt-get upgrade, does it matter it you do it as 'root'?

2007-03-21 Thread Ken Irving
On Wed, Mar 21, 2007 at 11:13:13AM -0700, tom arnall wrote:
> On Wednesday 21 March 2007 10:42, Greg Folkert wrote:
> > On Wed, 2007-03-21 at 10:41 -0700, tom arnall wrote:
> > > when you do an apt-get upgrade, does it matter it you do it as 'root'?
> >
> > Please ask a better question.
> > --
> what is the problem with this one?
> ;o)

Maybe the implication was that you could have just tried it, and perhaps
noted what happened, in your query.   That's just a a guess, as my
mind-reading skills are still lacking despite many years of marriage...

In general, the debian packaging system requires root permissions to
make changes.  At one point (probably in the archives) I wondered if it
should be possible for a user to apt-get install a package as a user,
e.g., in some limited, user-local location.  This seems reasonable,
but the packaging system just isn't set up to do it.  It could be,
but it isn't.

Ken

-- 
Ken Irving


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



Re: loading huge number of rules in iptables (blocklist)

2007-03-21 Thread Ken Irving
On Wed, Mar 21, 2007 at 04:39:57PM -0400, H.S. wrote:
> I am not going to follow up on my current method. A better one is
> definitely needed.

Googling on the shorewall home page yielded the following:

http://www.shorewall.net/ipsets.html
...
...Ipsets provide an effecient way to represent large sets
of addresses and you can maintain the lists without the need to
restart or even refresh your Shorewall configuration.

Ken

-- 
Ken Irving


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



Re: deleting content of /tmp

2007-03-24 Thread Ken Irving
On Sat, Mar 24, 2007 at 06:40:01PM +, andy wrote:
> Hi all
> 
> Can someone advise me on the pros and cons of deleting the contents of 
> /tmp/ as part of general security conscious non-paranoia. I was thinking 
> that it would be an okay thing to do periodically (or at logout, etc.) 
> using a overwriting/shredding program. But, before I committed myself, 
> decided it was prudent to ask.

It's been my experience that this happens by default on all of my debian
(various flavors) systems.  I'm not sure if it's done on shutdown or
startup.  I think this may be specified/suggested in the FHS, or maybe
elsewhere.  Try googling on "delete /tmp" or something...

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: deleting content of /tmp

2007-03-24 Thread Ken Irving
On Sat, Mar 24, 2007 at 10:50:45AM -0800, Ken Irving wrote:
> On Sat, Mar 24, 2007 at 06:40:01PM +, andy wrote:
> > Hi all
> > 
> > Can someone advise me on the pros and cons of deleting the contents of 
> > /tmp/ as part of general security conscious non-paranoia. I was thinking 
> > that it would be an okay thing to do periodically (or at logout, etc.) 
> > using a overwriting/shredding program. But, before I committed myself, 
> > decided it was prudent to ask.
> 
> It's been my experience that this happens by default on all of my debian
> (various flavors) systems.  I'm not sure if it's done on shutdown or
> startup.  I think this may be specified/suggested in the FHS, or maybe
> elsewhere.  Try googling on "delete /tmp" or something...

I think I misunderstood the question, and confused logout w/ shutdown... 

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Media Wiki 1.7 - Set-up / Install Help

2007-07-02 Thread Ken Irving
On Mon, Jul 02, 2007 at 09:19:15AM +0100, Nick Adie wrote:
> Hi
>  
> I have installed MediaWiki 1.7 from the archive.
>  
> The read me file is very confusing as it talks about a file that does not 
> exist and a symbolic link
> that appears to have no relevence.
>  
> Has anyone experience of the installation/set-up of MediaWiki, and if so 
> could I have a few
> pointers please.

I installed MediaWiki last week on a stable/etch system, and didn't seem
to have those problems.  I did have some trouble with apache v1.3, ended up 
removing it and installing apache v2; I'm not certain now that that was 
really related to MediaWiki, though.  My main confusion was in getting mysql
installed and (minimally) configured, but once I set the mysql root password
-- and gave it to the mediawiki installer -- the mediawiki installation 
completed without more headaches.

There's a note to the effect that (for some reason...) mediawiki has to 
install under /var/lib/mediawiki1.7/, and that's where the wiki repository is.

There's a config/ directory in the repository, and that's where the installation
web page sits; once the installation is done that directory can be deleted.

I was a bit taken aback by a particular sentence in the install page, related
to the mysql configuration:

This account will not be created if it pre-exists. If this is the
case, ensure that it has SELECT, INSERT, UPDATE and DELETE permissions
on the MediaWiki database.

"Pre-exists"?  Is that different from "exists"?  I think the "pre-" could 
be omitted for the intended purpose.  In any case, this refers to having 
the mediawiki installer set up the database, for which it needs the db's root
password; if so inclined & able, you could "pre-" set this up and so not
need to hand over that root password.

Maybe the confusion is here:

To complete the installation, please do the following:

1. Move /var/lib/mediawiki1.7/config/LocalSettings.php to
   /var/lib/mediawiki1.7/LocalSettings.php for normal install,
   root of your install for multisite, with rights 640

There's presumably somem reason this isn't done automatically by the 
installer, but here you're just relocating the setup script generated
by the installer.  Somewhere else there's a suggestion to create a 
symlink to this setup script into /etc/mediawiki1.7/; this just puts
the script into the more conventional /etc/ tree, which makes sense
-- not sure why this isn't done automatically, but maybe it has to do
with single- or multi-wiki sites...

Hope this helps...

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Media Wiki 1.7 - Set-up / Install Help

2007-07-03 Thread Ken Irving
On Tue, Jul 03, 2007 at 08:33:38AM -0500, John W. Foster wrote:
> On Monday 02 July 2007 12:04, Ken Irving wrote:
> > On Mon, Jul 02, 2007 at 09:19:15AM +0100, Nick Adie wrote:
> > >
> > > The read me file is very confusing as it talks about a file that does not
> > > exist and a symbolic link that appears to have no relevence.
> > >
> > > Has anyone experience of the installation/set-up of MediaWiki, and if so
> > > could I have a few pointers please.
> >
> > ...
> > 1. Move /var/lib/mediawiki1.7/config/LocalSettings.php to
> >/var/lib/mediawiki1.7/LocalSettings.php for normal install,
> >root of your install for multisite, with rights 640
> >
> > There's presumably somem reason this isn't done automatically by the
> > installer, but here you're just relocating the setup script generated
> > by the installer.  Somewhere else there's a suggestion to create a
> > symlink to this setup script into /etc/mediawiki1.7/; this just puts
> > the script into the more conventional /etc/ tree, which makes sense
> > -- not sure why this isn't done automatically, but maybe it has to do
> > with single- or multi-wiki sites...
> > ...
> ---
> I had the same problem as Nick when I recently installed Mediawiki as a 
> single 
> user system on a etch box. I did something similar to Ken's suggestion, only 
> I used syslinks (which were there but not properly connected) instead of 
> moving the files. I did also have a disconnected syslink after I got MW 
> working to AdminSettings.php. I have been unable to figure out what/where I 
> should link this to. Any ideas? I have seen this problem only rarely and an 
> explanation in the Readme file would be very helpful (hint,hint, to 
> developer)
> Thanks!

I see a "dead" symlink at /usr/share/mediawiki1.7/AdminSettings.php
pointing back to /var/lib/mediawiki1.7/AdminSettings.php which doesn't
exist.  A number of other .php files in /var/lib/mediawiki1.7/ are
symbolic links back to (existing) files in /usr/share/mediawiki1.7/.

I did what was described in the installation script, and ended up with
a working system.  The LocalSettings.php file I moved was generated by
the installation script, at the end of which are instructions to move
it to /var/lib/mediawiki1.7/; my guess is that that generated script
is what might be intended as the target of the dead AdminSettings.php
link, but the instructions were to call it "LocalSettings.php".

The /etc/mediawiki1.7/README file explains (the arcane reasons)
why things are located in /var/lib/mediawiki1.7, and *suggests*
setting this symbolic link:

  ln -s /var/lib/mediawiki1.7/LocalSettings.php 
/etc/mediawiki1.7/my-site.org.config

Again, LocalSettings.php must be moved to that location from the
config/ directory, or it won't exist.  The my-site.org.config file
in /etc/ is suggested for convenience, putting the main config file
for the wiki in a sensible place.

I have no idea why things seem so obtuse, kind of rare for debian
packages, but it does work if you follow the directions.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



[OT] bash HISTCONTROL=ignorespace; was Re: libraries in debian BROKEN...

2007-07-20 Thread Ken Irving
On Fri, Jul 20, 2007 at 12:33:34PM -0700, David Brodbeck wrote:
> rm is like a table saw.  rm with the "-f" switch is like a table saw with 
> the blade guard removed.  Sometimes you have to use it that way, but you'd 
> better be extra-careful or you'll cut your fingers off. :)

There's a very useful feature of bash that can also help a little bit 
when doing this sort of thing, unfortunately (IMHO) not the default,
where such dangerous commands can at least be kept out of the command
history buffer by preceding the command with a space.  From bash(1):

  HISTCONTROL
If  set to a value of ignorespace, lines which begin with a space char-
acter are not entered on the history  list.   If  set  to  a  value  of
...
  
If you use the command history a lot (e.g., with the arrow keys or ^R),
having commands like that lurking in the history is, well, like having that
un-guarded table saw sitting there ready to accidentally cut again. Or
something...

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Script of the ftp

2007-07-20 Thread Ken Irving
On Fri, Jul 20, 2007 at 03:37:27PM -0500, Ron Johnson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 07/20/07 14:42, MƔrcio Luciano Donada wrote:
> > This is for the snakes in scripts. I am making one scripts that it
> > uses the bow will be for sending archives of different varios
> > directory for ftp, only that I am having a problem of
> > 
> > My scripts is:
> > 
> > !/bin/bash
> > users=`ls /home/relatorios/`
> > for user in $users; do
> > cd /home/relatorios/$user
> > ftp -n 200.228.43.6< > user blablablabla "blabla"
> > bin
> > prompt
> > cd /home/$user/ARQUIVOS
> > bye
> > EOF
> > done
> > 
> > erro is: end of file expetend,
> 
> That's not how you do "anonymous" files.
> 
> And try ncftp.  It's got a utility called ncftpput which should help
> you in this circumstance.

Also see netrc; a .netrc file can contain the user & password for
ftp sites, so they don't need to be in your scripts.

Ken
-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: CUPS: unable to configure printer

2007-07-27 Thread Ken Irving
On Fri, Jul 27, 2007 at 11:18:26PM -0500, Russell L. Harris wrote:
> * Thomas Beresford <[EMAIL PROTECTED]> [070727 22:49]:
> >Hello,
> > 
> >I tried to setup my HP PSC 1315 printer today on my Debian Etch running
> >CUPS 1.2.12. So I used hp-setup to configure my printer and it was all
> >right, but when I tried to configure its parameters at the CUPS admin
> >page, it asked for a user/password, and I used my root username/password
> >but it didn't work for my surprise. 
> 
> "...my my root username/password..." ???  The username of root is "root".
> 
> On my system, this works:
> 
> username:  root
> password:  the_password_of_root
 
I'm unable to find where this is documented, but add your user to the
'lpadmin' group, and you can use your regular user password for the cups
admin web pages.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: CUPS: unable to configure printer

2007-07-27 Thread Ken Irving
On Fri, Jul 27, 2007 at 10:16:28PM -0800, Ken Irving wrote:
> On Fri, Jul 27, 2007 at 11:18:26PM -0500, Russell L. Harris wrote:
> > * Thomas Beresford <[EMAIL PROTECTED]> [070727 22:49]:
> > >Hello,
> > > 
> > >I tried to setup my HP PSC 1315 printer today on my Debian Etch running
> > >CUPS 1.2.12. So I used hp-setup to configure my printer and it was all
> > >right, but when I tried to configure its parameters at the CUPS admin
> > >page, it asked for a user/password, and I used my root 
> > > username/password
> > >but it didn't work for my surprise. 
> > 
> > "...my my root username/password..." ???  The username of root is "root".
> > 
> > On my system, this works:
> > 
> > username:  root
> > password:  the_password_of_root
>  
> I'm unable to find where this is documented, but add your user to the
> 'lpadmin' group, and you can use your regular user password for the cups
> admin web pages.

Still looking...

  $ zless cupsys-common/changelog.Debian.gz
...
CUPS SystemGroup is 'lpadmin'. You need to add users who are allowed
to add/modify/remove printers/jobs/classes.


-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: bash vs. python scripts - which one is better?

2007-08-07 Thread Ken Irving
On Tue, Aug 07, 2007 at 04:23:28PM -0700, David Brodbeck wrote:
> To do this with find, I'd try something like this:
>
> find . -name "*.wav" -exec lame -h -b 160 \{\} \{\}.mp3 \;
>
> It's possible spaces will bite you here, too ... If you actually attempt 
> this on filenames with spaces, test it first and see if you need to add 
> another level of quoting.  Note that you have to escape the curly brackets 
> and the semicolon so find sees them, instead of bash trying to interpret 
> them.  Find's syntax for the "exec" action is kind of awkward-looking, but 
> ...

A minor point, but I use find a lot and never see the need to escape the
curly brackets under bash. I suppose this may take (mis)advantage of the
following statement in bash(1), under Brace Expansion:

   A  correctly-formed  brace  expansion must contain unquoted opening and
   closing braces, and at least one unquoted comma  or  a  valid  sequence
   expression.   Any incorrectly formed brace expansion is left unchanged.
   A { or , may be quoted with a backslash to prevent its being considered
   part  of  a brace expression.  To avoid conflicts with parameter expan-
   sion, the string ${ is not considered eligible for brace expansion.

So, for what it's worth, I'd write the above as:

find . -name \*.wav -exec lame -h -b 160 {} {}.mp3 \;

> Note that find -exec can also do a lot of damage in a hurry.  If you're 
> doing anything remotely destructive, you might want to substitute "echo 
> \{\}" for your command the first time you run it, just to make sure find is 
> only finding the stuff you want it to!   Also, before you start thinking of 

Good advice, but I often do this even for non-destructive commands, just to
make sure what's going to happen. You really only need to insert 'echo' in
front of the command, and will see the expanded command in the output. E.g.,
the previous command would be:

find . -name \*.wav -exec echo lame -h -b 160 {} {}.mp3 \;

If it looks good remove the 'echo', or maybe pipe the resulting list of 
commands into xargs.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: How to make phone call using modem in Linux

2007-08-11 Thread Ken Irving
On Fri, Aug 10, 2007 at 11:20:20PM -0700, Jeff D wrote:
> On Sat, 11 Aug 2007, Kieu Minh Thang wrote:
>>
>> I have install dtmfdial, but it seems my Debian doesn't have driver for
>> modem. But I see that dtmfdial is very simple program, just a binary file,
>> no config file. How does this know what device used to dial, where can I
>> config modem device for it ?
>>
> you might want to check out wvdial, I've used it before with good results.

Minicom is useful to manually control a modem, also cu and probably
others, by typing commands to the modem.  The serial interface, or
"driver", to the modem is well built into the Linux system

An automated "phone dialer" probably exists as a package or project;
I'd try googling for those terms, use 'apt-cache search ...', look on
sourceforge and other software development sites.

I wrote a simple and not very flexible "phone dialer" as an exercise
to learn Perl/Tk one time, using the perl Expect module to handle
the interactive nature of the problem, and cu as the backend to talk
to the modem.  It presents a few buttons in a window to connect to a
phone voice message system, listen and delete messages, and disconnect,
and optionally puts up a keypad.  I suspect you might be looking for
something like this, and you're welcome to it, but there are also likely
more fully featured and configurable gizmos out there.

You described what you wanted by saying it was "like" some other program;
without being familiar with that program, it's hard to know what you want.

(Hmm, reminds me of the Microsoft approach to "office" software
standards...)

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Command touch and irregular file names

2007-08-14 Thread Ken Irving
On Tue, Aug 14, 2007 at 08:54:33PM -0400, - Tong - wrote:
> Hi, 
> 
> How to let command touch to work with irregular file names?
> 
> In my script I have 
> 
>  touch -r "$file1" "$file2"
> 
> the file1/2 can be anything file, ../path/file, /root/file, etc.
> 
> The problem is when file1/2 are irregular file names. E.g., -test.file1/2.

I've always had trouble with leading dashes in file names, very difficult
to escape properly or sufficiently.  An alternative might be to do the
operation from a perl (or whatever language) script.

Ken

> 
> I.e., anyway to make the following touch command works?
> 
>  $ touch -r "-test.file1" "-test.file2"
>  touch: invalid date format `est.file2'
> 
> FYI, I tried this but didn't work:
> 
>  $ touch -r -- "-test.file1" "-test.file2"
>  touch: invalid date format `est.file1'
> 
> I think if the touch command uses the standard gnu getopt lib, then
> the above code should work, shouldn't it?
> 
> Thanks
> 
> tong

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: view the exit status from command line

2007-08-15 Thread Ken Irving
On Wed, Aug 15, 2007 at 04:21:17PM +0200, Sven Joachim wrote:
> Kamaraju S Kusumanchi <[EMAIL PROTECTED]> writes:
> 
> >>> I want to know if the command exited with status zero or non-zero. Can
> >>> this be done in a simple way?
> >> 
> >> $test -x debian/rules; echo $?
> >> 
> >
> > Thanks. Exactly what I am after!
> 
> Here's a $0.02 recipe from my ~/.bashrc:
> 
> if [ "$PS1" ]; then
>PROMPT_COMMAND='echo -n "$? "'
> fi
> 
> This way, an interactive bash will print the exit status of the last
> command before its prompt, so you can _always_ see it.  Very handy,
> IMO. :-)

Thanks for this great idea!

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: view the exit status from command line

2007-08-15 Thread Ken Irving
On Wed, Aug 15, 2007 at 09:42:16PM +0200, HƄkon Alstadheim wrote:
> Ken Irving wrote:
>> On Wed, Aug 15, 2007 at 04:21:17PM +0200, Sven Joachim wrote:
>>   
>>> Kamaraju S Kusumanchi <[EMAIL PROTECTED]> writes:
>>>
>>> 
>>>>>> I want to know if the command exited with status zero or non-zero. Can
>>>>>> this be done in a simple way?
>>>>>>   
>>>>> $test -x debian/rules; echo $?
>>>>>
>>>>> 
>>>> Thanks. Exactly what I am after!
>>>>   
>>> Here's a $0.02 recipe from my ~/.bashrc:
>>>
>>> if [ "$PS1" ]; then
>>>PROMPT_COMMAND='echo -n "$? "'
>>> fi
>>>
>>> This way, an interactive bash will print the exit status of the last
>>> command before its prompt, so you can _always_ see it.  Very handy,
>>> IMO. :-)
>>> 
>>
>> Thanks for this great idea!
>>
>>   
>
> You don't need a command (at least with the versions of bash I've used the 
> last 10 years), just make sure the variable does not get expanded before it 
> is assigned to PS1. Like so: PS1='$?\$ '. now try executing /bin/true and 
> /bin/false.

Right, I was referring to including the exit value in the prompt.
I usually prefer to have a two-line prompt so I can see my current path,
which sometimes gets unwieldy; e.g.,

PS1='[EMAIL PROTECTED]:\w/\n$?\$ '

results in

[EMAIL PROTECTED]:~/proj/source/perl/thinobject/tob-lib/BaseClass/
0$ 

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: nslookup from behing router/modem

2007-08-16 Thread Ken Irving
On Thu, Aug 16, 2007 at 04:15:45PM +0100, michael wrote:
> On Thu, 2007-08-16 at 15:40 +0100, michael wrote: 
> > On Thu, 2007-08-16 at 15:08 +0100, Liam O'Toole wrote:
> > > On Thu, 16 Aug 2007 13:47:30 +0100
> > > michael <[EMAIL PROTECTED]> wrote:
> > > 
> > > > I have just replaced my USB modem with a router/modem and things seem
> > > > to be working find on my Debian box behind the router, except for
> > > > nslookup. Is there something I need to amend to get it to work. Note
> > > > I can still access the e-World from my Debian box:
> > > > ...
> > > > 
> > > > [EMAIL PROTECTED]:~$ less /etc/resolv.conf
> > > > search
> > > > nameserver 158.152.1.58
> > > > nameserver 158.152.1.42
> > > 
> > > The empty 'search' list looks wrong. Try removing the line altogether.
> > 
> > Yes, if I delete that line then it works fine. Upon rebooting I see
> > that /etc/resolv.conf which is a sym link to /etc/ppp/resolv.conf gets
> > updated:
> > ...
> ...
> 
> but somehow /etc/ppp/resolv.conf is being created at boot time with
> correct nameservers but an empty search string...
> 
> any ideas? something to do with /etc/ppp/ip*d/usepeerdns
> but I've no idea how/when they are used and why?!?

Probably best to browse the various manpages and such, but another approach
is to just look around for clues to the settings, e.g.,

  $ sudo find /etc/ppp -type f -exec grep -H search {} \;
  /etc/ppp/ip-up.d/0dns-up:# 'search' or 'domain' directives or additional 
nameservers.  Read the 

That file (on my system) may have some leads to follow:

  $ sudo less /etc/ppp/ip-up.d/0dns-up
  ...
  # 0dns-up sets up /etc/resolv.conf for the provider being connected to.  In
  # conjunction with pppd's usepeerdns option it also handles dynamic dns.
  # It expects to be passed the provider name in PPP_IPPARAM.
  
  # Pppconfig creates a file in /etc/ppp/resolv for each provider for which the
  # administrator chooses 'Static' or 'Dynamic' in the 'Configure Nameservers'
  # screen.  The files for providers for which 'Static' was chosen contain the
  # nameservers given by the administrator.  Those for which 'Dynamic' was 
chosen
  # are empty.  0dns-up fills in the nameservers when pppd gets them from the
  # provider when the connection comes up.  You can edit these files, adding 
  # 'search' or 'domain' directives or additional nameservers.  Read the 
  # resolv.conf manual first, though. 
  ...

Anyway, maybe such an approach could turn up an empty 'search' entry in some
file on your system... 

Good luck!

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: How to make phone call using modem in Linux

2007-08-17 Thread Ken Irving
On Fri, Aug 17, 2007 at 10:26:31AM +0700, Kieu Minh Thang wrote:
> testing again, wvdial can make phone call too but quality is not good. the 
> sound too noise.
> just modify config file. provide phone, username, password (don't care about 
> username/password
> here)
> 
> Thang Kieu

I'm not really sure what you're trying to do, but I guess you want to have
the computer dial and then use the voice phone, maybe over the computer
speaker.  I sometimes use this for checking voice mailbox messages,
but you can also use a regular telephone handset after the computer dials.

You'll probably need to search/google for the appropriate AT commands for
your modem and/or telephone host system if you want to do anything fancy.
I sometimes need to dial in spite of a "pulsing" dial-tone due to pending
messages, suspend call-waiting interruptions, etc., and there are code
sequences to do those kinds of things.

The main "trick" in using the computer as a dialer is to end the AT command
sequence with a semicolon (I think) in order to return the modem to "command
mode".  Otherwise, the default behavior of the modem is to progress to 
negotiating with a modem on the other end, with all the funny-sounding tones
and beeps.

In general, I find it's best to first figure out how to do something manually,
as you're doing with wvdial or minicom, before trying to automate it.

Ken

> 
> On 8/17/07, Kieu Minh Thang <[EMAIL PROTECTED]> wrote:
> 
> Hi all,
> That's great, I have tried with minicom and looking around for some AT 
> commands.
> Have been successful to dial with minicom.
> connect to modem.
> ATDT 
> quality is good enough
> 
> Thang Kieu
> 
> 
> On 8/17/07, Kieu Minh Thang < [EMAIL PROTECTED]> wrote:
> 
> I have checked wvdial and have use minicom before.
> wvdial seems to used to dialup connect, not to make phone call
> I have used minicom to handle some circuit (it's likely to 
> HyperTerminal on Windows), I
> think this can be use to dial because it handle modem with AT 
> commands. If I know AT
> commands, I can make phone call too.
> Maybe dtmfdial is a solution too, but I don't know how to configure 
> it yet.
> 
>     any other idea, who have make phone call using modem on Linux before? 
> Please let me know.
> 
> Thank you all. ;)
> 
> Thang Kieu
> 
> 
> On 8/11/07, Ken Irving < [EMAIL PROTECTED]> wrote:
> 
> On Fri, Aug 10, 2007 at 11:20:20PM -0700, Jeff D wrote:
> > On Sat, 11 Aug 2007, Kieu Minh Thang wrote:
> >>
> >> I have install dtmfdial, but it seems my Debian doesn't have 
> driver for
> >> modem. But I see that dtmfdial is very simple program, just a 
> binary file,
> >> no config file. How does this know what device used to dial, 
> where can I
> >> config modem device for it ?
> >>
> > you might want to check out wvdial, I've used it before with 
> good results.
> 
> Minicom is useful to manually control a modem, also cu and 
> probably
> others, by typing commands to the modem.  The serial interface, or
> "driver", to the modem is well built into the Linux system
> 
> An automated "phone dialer" probably exists as a package or 
> project;
> I'd try googling for those terms, use 'apt-cache search ...', 
> look on
> sourceforge and other software development sites.
> 
> I wrote a simple and not very flexible "phone dialer" as an 
> exercise
> to learn Perl/Tk one time, using the perl Expect module to handle
> the interactive nature of the problem, and cu as the backend to 
> talk
> to the modem.  It presents a few buttons in a window to connect 
> to a
> phone voice message system, listen and delete messages, and 
> disconnect,
> and optionally puts up a keypad.  I suspect you might be looking 
> for
> something like this, and you're welcome to it, but there are also 
> likely
> more fully featured and configurable gizmos out there.
> 
> You described what you wanted by saying it was "like" some other 
> program;
> without being familiar with that program, it's hard to know what 
> you want.
> 
> (Hmm, reminds me of the Microsoft approach to "office" software
> standards...)
> 
> Ken
> 
> --
> Ken Irving, [EMAIL PROTECTED]

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: /sys/power/state question with sudoers!

2007-08-19 Thread Ken Irving
On Sun, Aug 19, 2007 at 01:58:10PM +0300, Andrei Popescu wrote:
> On Sun, Aug 19, 2007 at 11:36:03AM +0200, Gilles Mocellin wrote:
>  
> > I've just read the manpage of sudo, and here's what it says :
> > 
> > To make a usage listing of the directories in the /home partition.  Note 
> > that 
> > this runs the commands in a sub-shell to make the cd and file redirection 
> > work.
> > 
> > $ sudo sh -c "cd /home ; du -s * ??? sort -rn > USAGE"
> > 
> > So, you can do it in on command, sudo is lauching a shell, which is 
> > responsible of redirections, pipes, chaining commands...
> 
> Please correct me if I'm wrong, but this defeats the purpose of 
> restricting sudo to a certain set of commands.

The command here is 'sh', so this could be restricted as usual.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: /sys/power/state question with sudoers!

2007-08-19 Thread Ken Irving
On Sun, Aug 19, 2007 at 07:56:07PM +0300, Andrei Popescu wrote:
> On Sun, Aug 19, 2007 at 07:09:29AM -0800, Ken Irving wrote:
>  
> > > > $ sudo sh -c "cd /home ; du -s * ??? sort -rn > USAGE"
> > > > 
> > > > So, you can do it in on command, sudo is lauching a shell, which is 
> > > > responsible of redirections, pipes, chaining commands...
> > > 
> > > Please correct me if I'm wrong, but this defeats the purpose of 
> > > restricting sudo to a certain set of commands.
> > 
> > The command here is 'sh', so this could be restricted as usual.
> 
> Of course you could, but if you're able to run sh what prevents you from 
> using it to run anything else?

I'm probably misunderstanding something (not sure what the OP's question
was), but my point was just that you can prevent someone from running
sh in the first place -- i.e., they wouldn't be able to do the above
operation.

Any command/program that is allowed to be run under sudo could be misused
if it allows the user to run a shell from within that program.

I don't have much experience with using sudo to *carefully* grant
privileges to untrusted users, but I would think one could put something
like the above in a script which the user is allowed to run (as I think
someone else may have suggested).

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: DHCP renewal..

2007-08-19 Thread Ken Irving
On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>
> Running a liveCD system.
>
> At the first boot ip-address is obtained via DHCP
> The ip-address is changed to a static ip-address
> (does work)
>
> After sometime, the system renews the DHCP lease,
> is there a way to stop this renewal?

You can do what you want, but I think most DHCP servers expect the clients
to comply with periodically re-upping the lease.  I'm not sure, but I think
the lease period is probably specified by the server when the ip is granted.
Read the manpages for client and servers to find out more.

You could, for instance, simply change your network to use a static address
with the ip you receive from the dhcp server -- but of course this would 
seriously violate the whole reason for having dynamic addresses.  I would 
not recommend this; eventually the server would probably give that ip to 
another system, and then you'll be screwing up that other user as well as
yourself.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: DHCP renewal..

2007-08-19 Thread Ken Irving
On Sun, Aug 19, 2007 at 03:04:34PM -0400, ISHWAR RATTAN wrote:
> On Sun, 19 Aug 2007, Ken Irving wrote:
>> On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>>>
>>> Running a liveCD system.
>>>
>>> At the first boot ip-address is obtained via DHCP
>>> The ip-address is changed to a static ip-address
>>> (does work)
>>>
>>> After sometime, the system renews the DHCP lease,
>>> is there a way to stop this renewal?
>>
>> You can do what you want, but I think most DHCP servers expect the clients
>> to comply with periodically re-upping the lease.  I'm not sure, but I 
>> think
>> the lease period is probably specified by the server when the ip is 
>> granted.
>> Read the manpages for client and servers to find out more.
>>
>> You could, for instance, simply change your network to use a static 
>> address
>> with the ip you receive from the dhcp server -- but of course this would
>
> I did that but the client still goes for renewal. Temporary solution I have
> is to kill the DHCP client (not allow it to run). I am sure that there is
> a sane solution avaiilable in this group.

You are expected to comply and renew the lease; why not just do that?

What I (hesitantly) suggested is to change the network config to static,
not dynamic, at which point you'd have fixed (and stolen?) the IP you
were provided.  I'm not familiar with a Debian LiveCD system (I have
used Knoppix and Ubuntu, both based on debian), so not sure of the details,
but presumably /etc/network/interfaces would exist in a RAM filesystem
and could be edited as needed.   Alternatively, you could probably come up
with ifconfig commands to do this more directly.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Source of Debian wisdom

2007-08-19 Thread Ken Irving
On Sun, Aug 19, 2007 at 03:31:19PM -0500, Mumia W.. wrote:
> On 08/19/2007 02:25 PM, Manon Metten wrote:
>> Hi Douglas,
>> On 8/19/07, Douglas A. Tutty <[EMAIL PROTECTED]> wrote:
>> Note that many of the horror stories about aptitude involved
>>> people using it as a CLI replacement for apt-get instead of using its
>>> curses interface.
>> Are you saying I should NOT use aptitude as a replacement for
>> apt-get, like this: "aptitude install new-package" ?
>> I've been using aptitude like this all the time ever since I installed 
>> etch
>> with no problems whatsoever.
>> What's the problem of doing so and not using it's user interface?
>> Manon.
>
> I almost exclusively use aptitude under Sarge. Both the curses and command 
> line interfaces work perfectly, and I've never had or heard of a horror 
> story involving aptitude*.
>
> And aptitude is clearly the most advanced interface to the packaging 
> system.
>
> I only use apt-get when I need to install from the source (which aptitude 
> cannot do).

I wonder why that is; the source packages are independent of binary ones.

> I'm also curious about what problems other people are having with aptitude.

I haven't tried aptitude for some time, and apparently the problem I
had with it (where it wanted to remove a lot of stuff) has been fixed.
I think that, even before that fix, it would work reasonably (i.e., no
surprises)  as long as it was used exclusively.  I normally use apt-get,
and tried aptitude after seeing that it was going to be the default,
but have since shied away from it.

> * However, I never do anything at the command line that hasn't been 
> verified as safe. I always use the curses interface to find out what is 
> going to happen before I enter a command at the command line.

I'm pretty sure that aptitude will provide a detailed list of packages
that it intends to remove, and unless you use the -y or --yes option
(assuming there is one), it was and is safe to at least try it out on
the command line.

Not sure I can explain why, but I prefer the command line interface over
an "environment" that you get into and navigate and control from within
(and sometimes may have trouble finding a way out of...).  I do use
and have learned vi/vim, so I'm not unwilling to do this kind of thing,
but plan to stick with apt-get on the command line until there's some
compelling reason to do so.

I also tried wajig, which is a wrapper around apt-get and some other
commands, but find that I prefer using the "real thing" directly.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: chroot: cannot run command `/bin/bash': No such file or directory

2007-08-20 Thread Ken Irving
On Mon, Aug 20, 2007 at 10:33:20PM +0200, Gerard Robin wrote:
> On Mon, Aug 20, 2007 at 02:44:31PM -0400, Neil Watson wrote:
>> On Mon, Aug 20, 2007 at 08:40:09PM +0200, Gerard Robin wrote:
>>>> First post:
>>>>> ldd  /bin/bash
>>>>>  libncurses.so.5 => /lib/libncurses.so.5 (0x2b2d9014f000)
>>>>>  libdl.so.2 => /lib/libdl.so.2 (0x2b2d9039b000)
>>>>>  libc.so.6 => /lib/libc.so.6 (0x2b2d9059f000)
>>>>>  /lib64/ld-linux-x86-64.so.2 (0x2b2d8ff31000)
>>>>
>>>> I don't see the last entry in the results of the find command.
>>> yes but it's a symbolic link to ld-2.6.1.so:
>>>
>>> ls -la /lib64/ld-linux-x86-64.so.2 :
>>> lrwxrwxrwx 1 root root 11 2007-08-07 23:08 /lib64/ld-linux-x86-64.so.2 -> 
>>> ld-2.6.1.so*
>>
>> I doubt the process would know that.  It may look for the link name and
>> fail if it is not found.  Create the link in your jail and try again.
>
> ok, now I have:
> ls -l /f:
> drwxr-xr-x 2 root root  72 2007-08-20 20:10 bin/
> drwxr-xr-x 2 root root 216 2007-08-20 22:07 lib/
> lrwxrwxrwx 1 root root   6 2007-08-20 22:00 lib64 -> /f/lib/

Seems to me that symlink target ought to be lib/ or /lib/, since /f/lib/
won't be visible when you chroot to /f/.

Ken

> ls -l /f/lib:
> -rwxr-xr-x 1 root root 121K 2007-08-20 15:50 ld-2.6.1.so*
> lrwxrwxrwx 1 root root   11 2007-08-20 22:07 ld-linux-x86-64.so.2 -> 
> ld-2.6.1.so*
> -rwxr-xr-x 1 root root 1,4M 2007-08-20 15:50 libc.so.6*
> -rw-r--r-- 1 root root  15K 2007-08-20 15:50 libdl.so.2
> -rw-r--r-- 1 root root 304K 2007-08-20 15:50 libncurses.so.5
>
> and always:
>
> chroot /f:
> chroot: cannot run command `/bin/bash': No such file or directory

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Serial port connection (null modem) not working

2007-08-23 Thread Ken Irving
On Thu, Aug 23, 2007 at 03:06:45PM +, Douglas A. Tutty wrote:
> On Thu, Aug 23, 2007 at 03:37:00PM +0200, Fili Wiese wrote:
> > I'm having trouble setting up a serial connection between two servers
> > using a null modem cable.
> > ...
> > 
> > Maybe the (brand-new) null-modem cable is not wired properly but how do
> > I find that out?
> > 
> ... 
> I have yet to find a ready-made null-modem cable that is actually wired
> correctly for use by UNIX.  How it should be wired can be found in
> several places accessible as packages on Debian.

I've never had any trouble with null modem cables purchased off-the-shelf,
though that may be due to simple requirements.   Unless you're doing
something fancy, or maybe using high data rates, many applications really
only need a 3-wire connection, and the other pins shouldn't matter.
I normally disable hardware handshaking, don't need the ring or the
other wired (and swapped) signals.

Other things to check are the ownership and baud rates. stty can be used
to view and change port/terminal settings, but probably the easiest way
to check out the connection is by using minicom on both ends.

Ken

> 
> Serial-HOWTO
> Modem-HOWTO, both in the doc-linux-HOWTO package
> Hardware book, available in the hwb package.
> 
> Also, in book form:
> Unix System Administration Handbook.  Nemeth, Evi, et.al.
> 
> The actual wireing of the cable can be verified with an ohm-meter if you
> have both ends of the cable in your hand, or by putting a wrap plug on
> one end.  The functioning of the link can be verified with minicom.  If
> you put a wrap plug on one end, and the other end on one of the servers,
> you can use minicom and talk to yourself.  The signal goes down the
> wire, through the wrap plug and back you your box.
> 
> Then you can run minicom at both ends an talk.
> 
> Setting up ppp or something over the wire is a possibility but it won't
> provide any further details if you don't need ppp.  If you _do_ need
> ppp, then the PPP-HOWTO will tell you how to setup a link.  Its really
> quite easy.  Basically you set up mgetty on one box and have ppp on the
> other box access it.  Since there's no modem, there are no dialing
> strings.
> 
> Doug.

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Command to see ip address on etch stable

2007-08-23 Thread Ken Irving
On Thu, Aug 23, 2007 at 04:02:46PM -0500, Michael Kerwin wrote:
> Is there a command on debian etch stable that you can run to see what ip 
> address you are?

The command ifconfig can be used, but note that by default it's not in a
regular user's path, so use /sbin/ifconfig.  This will show the settings
for each interface; you can alternatively specify the interface you want
to see, e.g,.

  $ ifconfig eth0

If you're behind a NAT router (or even if not), there are websites that
can show you the Internet IP you're on, e.g., perhaps checkmyip.com.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Serial port connection (null modem) not working

2007-08-24 Thread Ken Irving
On Fri, Aug 24, 2007 at 09:14:21AM -0700, David Brodbeck wrote:
> As an alternative to minicom, 'screen' also makes a useful serial terminal 
> program.  At least on OS X, I often do something like this to talk to 
> routers and the like:
> screen /dev/tty.usbserial 9600
>
> "Ctrl-A Shift-K" will exit.  "Ctrl-A i" will give you a nice little display 
> of what the serial control lines are doing.
>
> I haven't tried it under Linux, but it should work the same.  Of course 
> you'd substitute /dev/ttyS0 or whatever device you're using for 
> /dev/tty.usbserial.

I tried it on a sid box, but just end up with screen showing a shell on
the local host, i.e., the same as without those arguments.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Serial port connection (null modem) not working

2007-08-24 Thread Ken Irving
On Fri, Aug 24, 2007 at 08:48:42AM -0800, Ken Irving wrote:
> On Fri, Aug 24, 2007 at 09:14:21AM -0700, David Brodbeck wrote:
> > As an alternative to minicom, 'screen' also makes a useful serial terminal 
> > program.  At least on OS X, I often do something like this to talk to 
> > routers and the like:
> > screen /dev/tty.usbserial 9600
> >
> > "Ctrl-A Shift-K" will exit.  "Ctrl-A i" will give you a nice little display 
> > of what the serial control lines are doing.
> >
> > I haven't tried it under Linux, but it should work the same.  Of course 
> > you'd substitute /dev/ttyS0 or whatever device you're using for 
> > /dev/tty.usbserial.
> 
> I tried it on a sid box, but just end up with screen showing a shell on
> the local host, i.e., the same as without those arguments.

I googled for the Mac OS X screen manpage thinking it must be different,
but it's identical to the one on my linux box.  Any other hints on how 
that works or where/how it's documented?

-- 
Ken Irving, [EMAIL PROTECTED]


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



broken old installer?

2007-08-24 Thread Ken Irving
I'm somewhat CD-writing-impaired, and have always installed debian systems
using outdated installers.  For a long time I used a woody net install cd,
but since mid-2005 I've been using a sarge net install cd, as recently
as a month ago, without problems.  Now I'm seeing the install fail.
Unfortunately, the first error screen indicating a problem is quickly
(~ 1 second maybe) replaced with an information-free curses page saying
that there were errors...

I found an 'installer-report-template', and I'll try to fill that out and
mail it to the indicated address, in case it might be useful.  I've tried
several variations from my usual practice, e.g., select the desktop task
where I usually don't select any, tried a different source repository,
but no joy.  I'll probably next try a different box.

I'll also try to update my installer CD, in case that might be the
problem.  One of the great aspects of debian is that I've always been
able to install any old system, but then easily and immediately update
it to the latest stable or unstable version.

On thing I haven't tried is to do the install completely off the CD,
and do the net upgrades later.

Should I not be using my trusty old installer?

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: broken old installer?

2007-08-24 Thread Ken Irving
On Fri, Aug 24, 2007 at 10:21:17AM -0800, Ken Irving wrote:
> I'm somewhat CD-writing-impaired, and have always installed debian systems
> using outdated installers.  For a long time I used a woody net install cd,
> but since mid-2005 I've been using a sarge net install cd, as recently
> as a month ago, without problems.  Now I'm seeing the install fail.
> Unfortunately, the first error screen indicating a problem is quickly
> (~ 1 second maybe) replaced with an information-free curses page saying
> that there were errors...
> 
> ...
> On thing I haven't tried is to do the install completely off the CD,
> and do the net upgrades later.

... which of course didn't work from the *net install* cd.  I was able
to proceed after upgrading aptitude (and related libraries) from another
console.

> Should I not be using my trusty old installer?

I guess not.

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: broken old installer?

2007-08-24 Thread Ken Irving
On Sat, Aug 25, 2007 at 12:51:29AM +, Douglas A. Tutty wrote:
> On Fri, Aug 24, 2007 at 12:49:52PM -0800, Ken Irving wrote:
> > > but since mid-2005 I've been using a sarge net install cd, as recently
> > > as a month ago, without problems.  Now I'm seeing the install fail.
> > ...
> > > Should I not be using my trusty old installer?
> > 
> ...
> Note, however, that Woody was 3.0 and Sarge was 3.1.  Sure there was
> some difference, but the upgrade was handled well by aptitude.  I never
> owned a Sarge CD.  The upgrade from Sarge to Etch (4.0) is not smoothe.
> Do yourself a favor and get Etch's netinst.iso for your arch (i386,
> amd64, S390??).  Assuming that you have access to a debian box with a
> burner, any problems you have can be solved here.

Right.  I've always figured that was the "purpose" of major revision
number changes, to warn of major changes and potential system-breaking
incompatibilities.  I guess I last did an install of the old sarge net
cd, ending up with an etch stable system, in early July, which I thought
was after the stable freeze.  No need to pursue it, though; I'll just
grab a new cd image or two.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Search for string in files

2007-08-25 Thread Ken Irving
On Sat, Aug 25, 2007 at 11:16:37PM +0200, 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?

  find . -name \*.c -type f -exec grep -H a_certain_function {} \;

The -H option to grep makes it output the filename; that ought to help 
with your command above.

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: ssh-agent (was: using a remote IMAP server and smarthost)

2007-08-30 Thread Ken Irving
On Thu, Aug 30, 2007 at 01:00:44AM +0200, Florian Kulzer wrote:
> On Tue, Aug 28, 2007 at 20:09:03 +0100, Richard Lyons wrote:
> > But, again if I understand Florian's earlier post, Method 2 requires the
> > use of sssh-agent.  And I cannot see fromt he man page how to use it or
> > configure it.
> > 
> > IF I simply let mutt run the script as above, I get
> > 
> >   ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory^M
> >   ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory^M
> >   ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory^M
> >   Permission denied (publickey,keyboard-interactive).
> >   
> > So I think I really need the ssh-agent.  Help anybody?
> 
> Ssh-agent is part of the openssh-client package. It should be started
> with every X session by the /etc/X11/Xsession.d/90x11-common_ssh-agent
> script. (See "ps -e | grep ssh-agent".)
> 
> However, ssh-agent needs a frontend to handle the interaction with the
> user when a passphrase for a private key has to be entered. This seems
> to be what you are missing. Install one of the packages that provide
> "ssh-askpass":
> ...

You can also explicitly provide a shell to ssh-agent, authorize using
ssh-add, and then ssh to any host on which you've placed your public
key(s) in .ssh/authorized_hosts.  I do that sometimes from consoles on
hosts not running X, for instance, e.g.,

$ ssh-agent bash
$ ssh-add  # ... prompts for passphrase
$ ssh somehost
$ ...

The keychain package can help when it comes to running cron jobs and
such by providing a script which you source to set a few variables to
the authorized keys.  You need to connect to the host once to authorize
those keys, but after that the jobs can run autonomously.  Not sure if
this is relevant...

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Need to remove a ghost file, but can't because it doesn't exist

2006-11-15 Thread Ken Irving
On Wed, Nov 15, 2006 at 08:54:15PM +, J.A. de Vries wrote:
> On 2006-11-15 @ 11:20:46 (week 46) Ralph Katz wrote:
> 
> > How about:
> > 
> > # rm -f 1141914051.*
> > 
> > No promises...  but something like that worked once for me in a similar
> > mysterious situation.
> 
> Ah, hadn't tried that yet. Too bad it didn't work.
> 
> $ rm -i 1141914051.*
> rm: cannot lstat
> `1141914051.M484859P8695V0309Ip0007553_0.draupnir,S=3707:2,S':
> No such file or directory

See if find sees the file, e.g.,

find -name 11419\*

and if it does, then something like

find -name 11419\* -exec rm {} \;

or
find -name 11419\* -exec mv {} somename \;

if you'd like to have a look at it.
 
There might be a problem with special characters in the name getting
fouled up when the shell interprets it.  If so, it might be possible to
use rm if you escape those characters.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: Which firewall?

2006-11-22 Thread Ken Irving
On Wed, Nov 22, 2006 at 10:27:36PM +0100, Grzegorz wrote:
> Mirto Silvio Busico napisa?(a):
> >Hi all,
> >I have to setup a firewall for a little network.
> >The firewall machine will have multiple ip addresses for a physical lan
> >card (eth0 eth0:1 eth0:2).
> >
> >Looking to the packages (for Etch) I see some firewall; so there is the
> >question:
> >Can anyone recommend to use (or to avoid) any of the following?
> >
> >fireflyer
> >fwbuilder
> >kmyfirewall
> >shorewall
> >
> >Any information will be greately appreciated.
> >
> >Mirto
> >  
> iptables
> (isn't some of the mentioned above firewalls just GUI for iptables?)

I'd call it (shorewall anyway) more of a wrapper than a GUI, but yes.
The actual firewall is the kernel and iptables, but shorewall provides
a way to configure that.

I seem to recall a thread about this a month or two back, where the
position was put forth that the KISS principle would argue for directly
using iptables instead of one of the wrappers, since the poster claimed to
be able to put up a working firewall in 5 or 6 lines vs 10's or 100's that
may result from shorewall.  From my standpoint, I only need to mess with
5 or 6 lines (if that) in shorewall to get a working system, but would
need to master a bunch of "fine" manuals to fully understand iptables,
so kiSS still has me using shorewall.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: UNSUSCRIBE

2006-11-22 Thread Ken Irving
On Wed, Nov 22, 2006 at 10:01:28PM +, Dave Ewart wrote:
> On Wednesday, 22.11.2006 at 20:44 +, Brad Rogers wrote:
> 
> > A suitable mailto link is on the bottom of *every* mail on the list.
> > The OP only had to click on it.
> 
> s/every/every non-PGP-MIME/
> 
> Messages, such as yours and mine, which as PGP-MIME signed do *not*
> display the list info at the end.  This is either a bug or a feature of
> the mailing list software.

It's been reported as a bug, and could be fixed, but that's up to
the list managers.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: quick scripting question - finding occurrence in many lines

2006-11-29 Thread Ken Irving
On Wed, Nov 29, 2006 at 02:32:37PM +, michael wrote:
> I guess a complete rephrase is best. 
> 
> What I want is "how many processors does each WAITING job in lsf queues
> require?". From 'bhist' I get outputs such as below (see whitespace
> anywhere in "num Processors") and cannot determine a sure way of always
> parsing it...

In the brute force perl solution previously shown, just add whitespace
to the character class, [\s\n-], which is inserted between every target
character in the regular expression.  This would be similar in awk, sed, 
grep, or other tool using regular expressions.

#!/usr/bin/perl -w
use strict;   
my $source = join '', <>;  # get all the data into a string
my $t = '[\s\n-]'; # define a regexp character class
print "$1\n" while #   to be between each character
$source =~ m/(\d+)\s+P$t*r$t*o$t*c$t*e$t*s$t*s$t*o$t*r/msg;

Other schemes previously shown would probably work with trivial changes,
e.g., using tr to delete (-d) or squeeze (-s) runs of spaces or newlines,
etc.

Unless this is a one-off task (which it seems like it isn't), I'd
suggest looking into fixing whatever is generating the screwed-up output
in the first place. Failing that, use tr/sed/python/perl/ruby/BASIC
whatever to filter the output to something more sensible, i.e., normalize
it, and don't try to do it in one step.

Ken

> 
> Thanks, Michael
> 
> EXAMPLES:
> 
> 
> 
> ~/bin$ bhist -l 10418;bhist -l 10587;bhist -l 10601
> 
> Job <10418>, Job Name <3d>, User , Project , Command
> <#BSUB 
>  -n 128;#BSUB -W 6:00;#BSUB -J 3d;#BSUB -o %
> J.out;#BSUB -w 
>  'ended(10417)';./cont>
> Tue Nov 28 21:35:48: Submitted from host , to Queue ,
> CWD <$
>      HOME/scratch/3d_newgc>, Output File <%J.out>, 128
> Processo
>  rs Requested, Dependency Condition ;
> 
>  RUNLIMIT
> ...

-- 
Ken Irving, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


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



Re: How to switch my timezone configure

2006-11-29 Thread Ken Irving
On Wed, Nov 29, 2006 at 01:51:21PM -0600, Owen Heisler wrote:
> On 11/28/06, Paul E Condon <[EMAIL PROTECTED]> wrote:
> >On Tue, Nov 28, 2006 at 11:57:14AM -0600, Martin McCormick wrote:
> >>   I just talked with a Windows-XP user to get things
> >> straight, so here is what I found out.  You can either set your
> >> Windows time to local wall-clock time or UTC.  You can have it
> >> with or without Daylight Saving Time either way.  Obviously, if
> >> you pick UTC, for your windows time, you must also select a world
> >> time zone.  The concept is identical to setting up a *NIX system,
> >> but you have a nice pretty world map to help you.  So, if you
> >> click the DST box and choose the right geographic location for
> >> you, you may use both Linux and Windows and the time will be
> >> right either way.  Since Windows lets you choose UTC, that sounds
> >> like the way out of the dilemma.
> >
> >The last time I checked on Windows, it expected to have the internal
> >(BIOS) clock in the computer set to local time. Admittedly, I can't
> >remember when I last checked, perhaps some time late last century. If
> >Windows people have recently improved their system to make it capable
> >of handling UTC, good for them. I think I am not alone in being unaware
> >of recent twists and turns in Windows.
> 
> With the regular GUIs in Windows (XP), I don't think it is possible to
> use BIOS UTC time... but maybe (probably) there is some very well
> hidden, badly named registry key that magically makes Windows read UTC
> time from the BIOS.  If someone knows what it is, I'd be interested.

Someone else pointed this out, maybe in another thread, and after
some googling it appears to be RealTimeIsUniversal. Someone found this
registry string by using the strings utility on an XP (or something)
image, and it's not documented.  Typical.  This seems
to have been included pretty far back in the Windows bloodline, maybe
to accomodate AIX (an old MS *nix variant?) or something, but while it
apparently remains, it is not well or properly supported.

This page discusses the issue:

  http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html

Sounds promising, but it doesn't actually work.

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: How to switch my timezone configure

2006-11-29 Thread Ken Irving
On Wed, Nov 29, 2006 at 02:11:38PM -0600, Owen Heisler wrote:
> On 11/29/06, Ken Irving <[EMAIL PROTECTED]> wrote:
> >On Wed, Nov 29, 2006 at 01:51:21PM -0600, Owen Heisler wrote:
> >> With the regular GUIs in Windows (XP), I don't think it is possible to
> >> use BIOS UTC time... but maybe (probably) there is some very well
> >> hidden, badly named registry key that magically makes Windows read UTC
> >> time from the BIOS.  If someone knows what it is, I'd be interested.
> >
> >Someone else pointed this out, maybe in another thread, and after
> >some googling it appears to be RealTimeIsUniversal. Someone found this
> >registry string by using the strings utility on an XP (or something)
> >image, and it's not documented.  Typical.  This seems
> >to have been included pretty far back in the Windows bloodline, maybe
> >to accomodate AIX (an old MS *nix variant?) or something, but while it
> >apparently remains, it is not well or properly supported.
> >
> >This page discusses the issue:
> >
> >  http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html
> >
> >Sounds promising, but it doesn't actually work.
> 
> You tried it, eh?  Or did I miss that on that page...

No, I eventually found a response from an MS developer who seemed to
have a plausible explanation of where it came from and how it works.
Apparently applications can choose to ignore it, and some/many do.
I couldn't find that post just now, but it's "out there".

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: shell script and variable problem

2006-12-01 Thread Ken Irving
On Fri, Dec 01, 2006 at 03:42:18PM -0800, John L Fjellstad wrote:
> I have the following script I use for backup:
> ###
> #!/bin/sh
> 
> BACKUPLIST=/etc/backup.lst
> HOSTNAME=`hostname`
> YEAR=`date +%Y`
> MONTH=`date +%B`
> BACKUPDIR=/srv/misc/backup/${YEAR}/${MONTH}
> DATE=`date +%Y%m%d`
> 
> mkdir -m 2775 -p $BACKUPDIR
> 
> for entry in `cat $BACKUPLIST`; do
> name=`echo $entry | cut -d':' -f1`
> startdir=`echo $entry | cut -d':' -f2`
> bkdir=`echo $entry | cut -d':' -f3`
> exlist=`echo $entry | cut -d':' -f4`
> if [ -n $exlist -a -f $exlist ]; then
> cd $startdir; tar -X $exlist -cf - $bkdir | bzip2 -c > 
> ${BACKUPDIR}/${HOSTNAME}-${name}-${DATE}.tar.bz2
> else
> cd $startdir; tar cf - $bkdir | bzip2 -c > 
> ${BACKUPDIR}/${HOSTNAME}-${name}-${DATE}.tar.bz2
> fi
> done
> ##
> 
> Now, /etc/backup.lst has a list of directories I want to backup, and
> looks like this
> john:/home:john:/home/john/backupex.lst
> vcs:/srv:/srv/vcs:
> 
> That is, some entries have 4th field, some has not.
> The problem is that my test
> if [ -n $exlist -a -f $exlist ]
> does not work.  For some reason, this always evaluate to true, and then
> the tar command fails.  Why is this?

Not sure, but it'll work if you enclose the variable in quotes.

> My understanding is -n will check if $exlist is empty or not, and if it
> is, it will fail.  And even if it doesn't, -f $exlist should fail since
> it wouldn't be able to find that file.

My guess is that the variable expands to nothing, and then the -n
test is applied to the next token it sees, perhaps the -a?

I've run into the same issue recently, and would like to somehow become
less baffled by the ins and outs of shell (bash) scripting.  Presumably
there's a statement in bash(1) that would clarify what's going on.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: shell script and variable problem

2006-12-01 Thread Ken Irving
On Fri, Dec 01, 2006 at 06:51:05PM -0900, Ken Irving wrote:
> > The problem is that my test
> > if [ -n $exlist -a -f $exlist ]
> > does not work.  For some reason, this always evaluate to true, and then
> > the tar command fails.  Why is this?
> 
> Not sure, but it'll work if you enclose the variable in quotes.
> 
> > My understanding is -n will check if $exlist is empty or not, and if it
> > is, it will fail.  And even if it doesn't, -f $exlist should fail since
> > it wouldn't be able to find that file.
> 
> My guess is that the variable expands to nothing, and then the -n
> test is applied to the next token it sees, perhaps the -a?
> 
> I've run into the same issue recently, and would like to somehow become
> less baffled by the ins and outs of shell (bash) scripting.  Presumably
> there's a statement in bash(1) that would clarify what's going on.

This may be off the mark, but browsing the bash source I see this 
comment in subst.c:

  /* Partially and wholly quoted strings which expand to the empty
 string are retained as an empty arguments.  Unquoted strings
 which expand to the empty string are discarded.  The single
 exception is the case of expanding "$@" when there are no
 positional parameters.  In that case, we discard the expansion. */

This sounds like it matches the symptoms anyway, though it still
seems odd to me.  

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



aptitude --mind-your-own-business option?

2006-12-02 Thread Ken Irving
I've periodically tried using aptitude, but always get scared off
when it seems to "run away".   I'm sure it knows what's best for my
machine ;-), but is it possible to override this behavior?

  $ sudo aptitude install wmmoonclock -s
  ...
  The following packages are unused and will be REMOVED:
groff imagemagick libconfig-inifiles-perl perlmagick python2.3 
python2.3-iconvcodec 
rcs texi2html weblint 
  The following NEW packages will be installed:
wmmoonclock 
  0 packages upgraded, 1 newly installed, 9 to remove and 0 not upgraded.
  Need to get 0B/158kB of archives. After unpacking 21.2MB will be freed.
  Do you want to continue? [Y/n/?] 

The first time I tried this I'm afraid I didn't look "very closely" at the
REMOVED lines.  Silly of me not to suspect that aptitude would choose
this time to do a clean-up of some sort, and not just install the simple
little program I asked it for.

It's odd that I can use apt-get without any hint of these problems.

Per another thread, I tried to use the "unmarkauto" command to fix things,
but apprently the need to clean things up is still there

  $ sudo aptitude unmarkauto '~M!~R~i' 
  ...
  The following packages are unused and will be REMOVED:
  ...

I'll probably just go back to using apt-get, and probably everything
will be fine until the next time I decide to try aptitude.  Is there a
compelling reason to bother?

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: aptitude --mind-your-own-business option?

2006-12-02 Thread Ken Irving
On Sat, Dec 02, 2006 at 01:39:04AM -0900, Ken Irving wrote:
>   $ sudo aptitude install wmmoonclock -s
>   ...
>   The following packages are unused and will be REMOVED:
> groff imagemagick libconfig-inifiles-perl perlmagick python2.3 
> python2.3-iconvcodec 
> ...
> 
> Per another thread, I tried to use the "unmarkauto" command to fix things,
> but apprently the need to clean things up is still there
> ...

The keep-all command is also mentioned, but it too doesn't seem 
to fix things.

> I'll probably just go back to using apt-get, and probably everything
> will be fine until the next time I decide to try aptitude.  Is there a
> compelling reason to bother?

The fine manual offers some help, but it seems to assume use of the
interactive version:

As with any automatic process, there is a potential for things to go 
haywire. 
...
You can cancel the automatic flag at any time by pressing m...

But surely aptitude can work off the command line, right?

The man page shows this:

 &m
Mark  as having been manually installed.

So I tried 

  $ sudo aptitude install groff\&m
  ...
  The following packages are unused and will be REMOVED:
groff imagemagick ...

However, using install  without the &m suffix does appear to
work, and maybe that's enough to get aptitude -- I mean, my machine --
straightened out.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: aptitude --mind-your-own-business option?

2006-12-02 Thread Ken Irving
On Sat, Dec 02, 2006 at 05:34:23AM -0600, Russell L. Harris wrote:
> * Ken Irving <[EMAIL PROTECTED]> [061202 04:52]:
> > I've periodically tried using aptitude, but always get scared off
> > when it seems to "run away".   I'm sure it knows what's best for my
> > machine ;-), but is it possible to override this behavior?
> ...
> > I'll probably just go back to using apt-get, and probably everything
> > will be fine until the next time I decide to try aptitude.  Is there a
> > compelling reason to bother?
> 
> 
> Synaptic works.  Debian Etch installs synaptic by default.  For most
> users, it is foolish to mess around with anything else.

Does synaptic do something better than apt-get?  It doesn't appear to
be very usable on a command-line, looking at aptitude show synaptic.

>From another thread:

> From: Ralph Katz <[EMAIL PROTECTED]>
> Subject: Re: aptitude dist-upgrade removes important packages
> On 11/17/2006 01:30 PM, Russell L. Harris wrote:
> >
> > Meanwhile, Debian installs "synaptic" by default.  Use synaptic
> > instead of aptitude.
> 
> Au contraire...  The docs are quite explicit about this: use *aptitude*.

Maybe I'll just crawl back under a rock and continue using apt-get.

I thought that aptitude combined the functionality of apt-get and 
apt-cache commands, but aptitude source  didn't work, and
isn't even mentioned in the man page.  Hmm...

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: aptitude --mind-your-own-business option?

2006-12-02 Thread Ken Irving
On Sat, Dec 02, 2006 at 01:00:14PM +0100, Florian Kulzer wrote:
> On Sat, Dec 02, 2006 at 01:39:04 -0900, Ken Irving wrote:
> > I'll probably just go back to using apt-get, and probably everything
> > will be fine until the next time I decide to try aptitude.  Is there a
> > compelling reason to bother?
> 
> I like the "forbid-version" functionality (I run Sid and it is so much
> more convenient than having to remember to remove apt pins or dpkg
> holds), the interactive interface, the powerful search patterns, the
> log, the convenient way to look at changelogs before downloading, and
> the fact that I can fine-tune how recommendations are treated for
> automatic (un)installing. I also have observed aptitude acting much
> smarter in conflict resolution, for example if package "foo" gets split
> into "foo" and "foo-data" in an upgrade. With apt-get this often
> resulted in a "chicken-and-egg" problem since the new "foo-data" had
> overlapping files with the old "foo" package and "foo" could not be
> upgraded directly because the new "foo" depended on "foo-data". In such
> situations I often had to break the tie manually, for example by
> temporarily uninstalling "foo", with "--force" if necessary. Aptitude
> solves this type of problem without user intervention by going some
> clever two-step route. 
> 
> (Disclaimer: I have not used apt-get in a long time; it might have
>  learned some new tricks since I switched to aptitude.)

Nice list, but I try not to do anything fancy like pinning or forcing or
holding, and apt-get has always seemed to work well enough.  Logging is
good, but I think that was just added to apt-get.   The chicken and egg
problem during major upgrades may/seems to be a reason, but apt-get has
handled those well enough in my experience, maybe with a manual two-step.

I have the impression that I can use aptitude search if it's better, but
still use apt-get to install and upgrade without conflict.   

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: aptitude --mind-your-own-business option?

2006-12-02 Thread Ken Irving
On Sat, Dec 02, 2006 at 06:38:46AM -0600, Russell L. Harris wrote:
> * Ken Irving <[EMAIL PROTECTED]> [061202 06:26]:
> > On Sat, Dec 02, 2006 at 05:34:23AM -0600, Russell L. Harris wrote:
> > Does synaptic do something better than apt-get?  It doesn't appear to
> > be very usable on a command-line, looking at aptitude show synaptic.
> 
> Unless you are not running X, why is that a problem?

I don't have X on servers (running stable), but even on workstations 
I prefer to not "get into" an application where a simple command will
do the job.  (Some tense moments inside deselect come to mind, but
maybe that was due to my inaptitude to figure out/read/learn its
key mappings.)

> The fact is that Debian installs synaptic by default.  I have been
> using synaptic exclusively for nearly a year, and have experienced
> none of the woes others on this list say they are encountering with
> aptitude and apt-get.  
> 
> I am not a crusader regarding this matter.  Synaptic works for me and
> has been trouble-free.  And, importantly, it is not nearly as easy to
> get in trouble when using synaptic as it is when using aptitude or
> apt-get; I speak from experience.

I can appreciate that, but I'm used to using apt-get and it seems to
do what's needed.   Just figured to try aptitude (etc.) based on all
the glowing reports I've seen on the list, but I'm not convinced of
its (nor synaptic's) advantages over apt-get.

Ken

-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: aptitude --mind-your-own-business option?

2006-12-02 Thread Ken Irving
On Sat, Dec 02, 2006 at 11:59:29AM -0500, Douglas Tutty wrote:
> Aptitude may go a little 'crazy' or 'run away' when you first start
> using it until you tell it which packages are installe because _you_
> want them there and which are only installed to meet dependancies.
> After this step is done it is remarkably well behaved.

Maybe this is a perlism, but aptitude to me violates the "principle
of least surprise" in this regard.  I asked it to install a simple,
standalone program, but it was not able to do this without "fixing" things
to its own model of consistency, not mine, first.  IMHO it should do this
if necessary, but it should do so when installed, like other well-bahaved
packages with partucular needs.  Some packages install but require some
file in /etc/something to be tweaked before being fully functional.

If it isn't "safe" to use apt-get once aptitide is installed, i.e.,
apt-get conflicts with aptititude, then couldn't this be handled in the
package setup as policy?

Ken
-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: aptitude --mind-your-own-business option?

2006-12-02 Thread Ken Irving
On Sun, Dec 03, 2006 at 01:05:29AM +0100, Florian Kulzer wrote:
> On Sat, Dec 02, 2006 at 11:27:46 -0900, Ken Irving wrote:
> > If it isn't "safe" to use apt-get once aptitide is installed, i.e.,
> > apt-get conflicts with aptititude, then couldn't this be handled in the
> > package setup as policy?
> 
> It is perfectly safe to mix aptitude and apt-get. I will now perform a
> daring experiment to demonstrate this: I have here an up-to-date Debian Sid
> box, which I have upgraded daily with aptitude for the last year (before
> that I used apt-get, also daily). Now, what unspeakable horrors lie in
> wait for me if I install something with apt-get and run aptitude
> afterwards? There is only one way to find out...
> 
> First of all, an md5sum of aptitude's list of installed packages (which
> includes the "auto" flag) - I want to be able to show that I can restore
> this state:
> 
> $ aptitude search '~i' | md5sum
> 06f9da945e91f95eb2913ed081809159  -
> ...
> # apt-get install aiksaurus
> ...
> # aptitude dist-upgrade
> ...
> # apt-get dist-upgrade
> ...
> # aptitude --purge-unused purge aiksaurus
> ...
> $ aptitude search '~i' | md5sum
> 06f9da945e91f95eb2913ed081809159  -
> 
> I rest my case.

I'll take your word for it.  So once aptitude gets "synched" to my system,
I can use either aptitude or apt-get with impunity?  That sounds reasonable.

But its initial behavior still strikes me as unreasonable.  Would aptitude
be left in a broken state if it warned me of inconsistencies but still did
what I asked (e.g., install something in spite of unused packages)?  Could
not this work be postponed to some time when it is, in fact, critical?

Ken
-- 
Ken Irving, [EMAIL PROTECTED]


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



Re: aptitude --mind-your-own-business option?

2006-12-04 Thread Ken Irving
On Mon, Dec 04, 2006 at 11:17:10AM +0100, Florian Kulzer wrote:
> ... I can easily
> configure/use aptitude such that the "installation" and "garbage
> disposal" actions are carried out in separate steps, but I choose not to
> do so. 

So...  That sounds pretty much what I was trying to find, a way to do
the installation despite removals being pending.  How do you do this?

The only way I was able to figure out was to do the removals first, so
they were no longer pending.

Ken
-- 
Ken Irving, [EMAIL PROTECTED]


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



  1   2   3   4   >