Re: [SLUG] FW: Script help

2005-09-22 Thread Vino Fernando Crescini
If you want a list of all "invalid" usernames in smbpasswd that is not in allusers.txt, this way might be easier: cut -d: -f1 smbpasswd | while read name; do grep -q "${name}\$" /tmp/list || echo $name done oops. that's allusers.txt instead of /tmp/list. the output of this can then be fed

Re: [SLUG] gzip from perl script

2005-09-22 Thread Jacinta Richardson
Voytek wrote: > I just need to force a 'y' here, or pass to gzip > > ...screen snip--- > gzip: /backup/mysql/postfix-20050922.sql.gz already exists; do you wish to > overwrite (y or n)? > ... I guess there's alway -f -f --force Force com

butfirst (was Re: [SLUG] gzip from perl script)

2005-09-22 Thread Jacinta Richardson
Erik de Castro Lopo wrote: > One thing thats been bugging me for a while about Perl is the > lack of a butfirst keyword. This would be *really* useful for > constructs like: > > { ># Huge chunk of code > } > butfirst > { ># Second huge chunk of code to be executed

Re: butfirst (was Re: [SLUG] gzip from perl script)

2005-09-22 Thread Mark Johnathan Greenaway
On Thu, Sep 22, 2005 at 05:20:23PM +1000, Jacinta Richardson wrote: > > One thing thats been bugging me for a while about Perl is the > > lack of a butfirst keyword. This would be *really* useful for > > constructs like: > > > > { > ># Huge chunk of code > > } > > butfirst > >

Re: butfirst (was Re: [SLUG] gzip from perl script)

2005-09-22 Thread Del
Erik has strong views on programming languages, and he's trolling you. At least he's giving those of us who don't completely despise C++ a break for once. I'm glad someone said that. For a while there I was worried. Still, everyone here at the office had a good laugh about it. -- Del -- SLU

Re: butfirst (was Re: [SLUG] gzip from perl script)

2005-09-22 Thread Erik de Castro Lopo
Mark Johnathan Greenaway wrote: > Erik has strong views on programming languages, and he's trolling you. Guilty as charged :-) > At > least he's giving those of us who don't completely despise C++ a break for > once. Yeah, I needed a five minute break :-). Erik -- +---

Re: butfirst (was Re: [SLUG] gzip from perl script)

2005-09-22 Thread Jeff Waugh
> Mark Johnathan Greenaway wrote: > > > Erik has strong views on programming languages, and he's trolling you. > > Guilty as charged :-) Someday you'll catch someone unsuspecting, and they'll end up with intercal. Let me know when it happens - I'll buy the beer. - Jeff -- UbuntuBelowZero in

Re: butfirst (was Re: [SLUG] gzip from perl script)

2005-09-22 Thread Erik de Castro Lopo
Jeff Waugh wrote: > Someday you'll catch someone unsuspecting, and they'll end up with intercal. > Let me know when it happens - I'll buy the beer. http://www.catb.org/~esr/intercal/iperl.html Erik -- +---+ Erik de Castro Lopo +

[SLUG] LVM and software RAID

2005-09-22 Thread Raphael Kraus
G'day, We're trying to set-up a host with software RAID (mirroring) and LVM at work (for a backup server). Just trying to install Debian with RAID partitions is proving painful. Anyone done this before? Any recommendations, tips, suggested methods? I'm thinking I should install to one drive put

[SLUG] Printer not detected

2005-09-22 Thread Ken Caldwell
'Morning All, I have just acquired an HP PSC 1610 All-In-One printer and am having trouble establishing communication between the computer and printer. The computer is running Ubuntu "Breezy". The packages hplip, hplip-base, hplip-data and hplip-ppds are all installed. System > Administration > P

Re: [SLUG] LVM and software RAID

2005-09-22 Thread Trevor D. Manning
* Raphael Kraus ([EMAIL PROTECTED]) wrote: > G'day, > > We're trying to set-up a host with software RAID (mirroring) and LVM > at work (for a backup server). > > Just trying to install Debian with RAID partitions is proving painful. > > Anyone done this before? Any recommendations, tips, suggest

Re: [SLUG] gzip from perl script

2005-09-22 Thread telford
On Thu, Sep 22, 2005 at 02:50:13PM +1000, Erik de Castro Lopo wrote: > One thing thats been bugging me for a while about Perl is the > lack of a butfirst keyword. This would be *really* useful for > constructs like: > > { ># Huge chunk of code > } > butfirst > { >#

RE: [SLUG] FW: Script help

2005-09-22 Thread Simon
Thanks everyone, all sorted -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vino Fernando Crescini Sent: Thu, 22. September 2005 5:01 PM Cc: 'SLug Users' Subject: Re: [SLUG] FW: Script help > If you want a list of all "invalid" usernames in smbpasswd th

[SLUG] Re: LVM and software RAID

2005-09-22 Thread Matthew Palmer
On Thu, Sep 22, 2005 at 09:08:52PM +1000, Raphael Kraus wrote: > We're trying to set-up a host with software RAID (mirroring) and LVM at > work (for a backup server). > > Just trying to install Debian with RAID partitions is proving painful. > > Anyone done this before? Any recommendations, tips,

Re: [SLUG] Re: LVM and software RAID

2005-09-22 Thread Rafael Kraus
Eh? You just create a RAID partition, and then lay LVM on the md device.[1] The kernel/initrd just works it all out and you've got /dev/mapper/vg-lv to play with once the system's booted. You can even put your root partition on it (although you do need to have a non-LVM /boot partition, but that

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-22 Thread Raphael Kraus
G'day Oscar, >> Have you grown too technical and too old to have a sense of humour >> anymore? > You've nothing to say constructive, so don't say it here. The words themselves were said with a smile and tounge-in-cheek. :) I think I did have something constructive to say - having a sense of h

Re: [SLUG] Re: LVM and software RAID

2005-09-22 Thread Raphael Kraus
Matt, Rafael Kraus wrote: So... you've done this in Debian Sarge...? hrmm... and pray tell exactly how? Probably a bit over-reactive here. Apologies. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-22 Thread Erik de Castro Lopo
Raphael Kraus wrote: > I think I did have something constructive to say - having a sense of > humour and being able to relate to a sense of humour is an important > part of our profession that is often lacking. > Anyway the point is that Paul J Fenwick and Jacinta Richardson make I missed P

[SLUG] Re: LVM and software RAID

2005-09-22 Thread Matt Palmer
On Fri, Sep 23, 2005 at 09:36:03AM +1000, Rafael Kraus wrote: > >Eh? You just create a RAID partition, and then lay LVM on the md > >device.[1] > >The kernel/initrd just works it all out and you've got /dev/mapper/vg-lv to > >play with once the system's booted. You can even put your root partiti

Re: [SLUG] LVM and software RAID

2005-09-22 Thread Ricky
don't think you need LVM for your /boot partition (in fact, it may not even be possible), if you want to be super safe just partition it with 100MB or something assuming you've created 4 partitions, and used fdisk to change its type to Linux raid auto (0xfd) mdadm --create /dev/md0 --level=5 --ra

Re: [SLUG] Re: LVM and software RAID

2005-09-22 Thread Raphael Kraus
Matt, it unused. Make partitions on the rest of both HDDs and mark them as being used for RAID (can't remember the exact wording, but you get to it by selecting the option which, by default, says "Ext3 filesystem"). Return to I think you'll be suprisingly disappointed if you try this in Debi

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-22 Thread O Plameras
Raphael Kraus wrote: G'day Oscar, >> Have you grown too technical and too old to have a sense of humour >> anymore? > You've nothing to say constructive, so don't say it here. The words themselves were said with a smile and tounge-in-cheek. :) You have a bile sense of humour. -- O Plame

[SLUG] Mail filtering with .forward, procmail and perl.

2005-09-22 Thread l cheung
Dear list, I've been using procmail to filter my mail. However I'm getting more and more emails with a "Reply-To" header (a web-based support program that I have no control on). It's pointless to reply to a program and I can't sort my mail by Sender. So my question is: Is there a way to pipe my

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-22 Thread Raphael Kraus
G'day... The words themselves were said with a smile and tounge-in-cheek. :) You have a bile sense of humour. Green and dripping... yeah probably... -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

[SLUG] Re: LVM and software RAID

2005-09-22 Thread Matthew Palmer
On Fri, Sep 23, 2005 at 10:27:57AM +1000, Ricky wrote: > don't think you need LVM for your /boot partition (in fact, it may not even > be possible), if you want to be super safe just partition it with 100MB or > something You can't have your kernels/initrds stored in an LVM if you want to use GRUB

Re: [SLUG] Mail filtering with .forward, procmail and perl.

2005-09-22 Thread John Clarke
On Fri, Sep 23, 2005 at 11:23:32 +1000, l cheung wrote: > Is there a way to pipe my mail through a filter before/after procmail There's no need to do it before or after procmail, you can pipe a message through and filter at any point in your .procmailrc, like this: :0 fW | filter_program

Re: [SLUG] Re: LVM and software RAID

2005-09-22 Thread Terry Collins
Matt Palmer wrote: > Off the top of my head: > > Create a partition on the first HDD of about 100MB in size, > select /boot as the mount point. > Make a partition on the first HDD of the same size, leave > it unused. Err, that second "first HDD" should be second HDD" no? If you are using lilo,

[SLUG] Printer problem

2005-09-22 Thread Leslie Katz
Hello, Ken. Please excuse what may be a very silly question. Have you tried to print anything other than the test page? When I set my printer up, it wouldn't print the test page either, but it happily printed the page with the "print test page" button on it (and anything else I've asked it to

[SLUG] Re: Re: LVM and software RAID

2005-09-22 Thread Matthew Palmer
On Fri, Sep 23, 2005 at 12:31:02PM +1000, Terry Collins wrote: > Matt Palmer wrote: > > > Off the top of my head: > > > > Create a partition on the first HDD of about 100MB in size, > > select /boot as the mount point. > > Make a partition on the first HDD of the same size, leave > > it unused.

Re: [SLUG] Mail filtering with .forward, procmail and perl.

2005-09-22 Thread l cheung
> Use formail as a filter. Akarumba! What do you know? procmail and formail is all I need. I ended up having something like this: # .procmailrc :0 h REPLYTO=|formail -x"Reply-To" :0 fw * ^From.*that_address | formail -i"From:$REPLYTO" -IReply-To. Thanks John. -- SLUG - Sydney Linux User's Gro

[SLUG] network cards with KDE 3.3

2005-09-22 Thread dimitri
i just installed debian and run KDE 3.3 with it. i can't find anywhere to access my networkcards. i have one card for the ADSL modem and one for the home network. i am a newbee, but i had redhat before and could easy access in KDE the network cards, make my settings etc... i did try the ADSL

[SLUG] request contact from computerbank

2005-09-22 Thread Taryn East
apologies for using this forum, but I am looking to get in contact with one of the computerbank people and I know some have shown up at SLUG meetings... we have attempted to google for contact information but come up blank - the cbnsw website is not very intuitive in how to get in contact and the

Re: [SLUG] request contact from computerbank

2005-09-22 Thread QuantumG
Taryn East wrote: anyway - hopefully the right somebody will see this message and respond offlist :) I'd like to hear from them too, my partner comes into a lot of old (pentium II/III) systems which the company she works for just throws away. She's started to bring them home but we don't