RE: [SLUG] Netfinity 5600 and Linux with RAID 5
Aah Damn!! It didn't boot off the raid.. just asked for the floppy disk. Tried to boot off the floppy but crashed with a kernel panic not being able to access or write or read the / partition, but I created it. Is there a limit of the partitions being larger than 30GB? This is for data only and not something stupid like / or /boot. Also when creating swap space, what happens if you put somethign large like 1000MB as swap? Could that have been the problem as I remember 128MB was the limit but this time it didn't complain?? thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 3:33 PM To: George Vieira Cc: 'Howard Lowndes'; Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 AAaha Got it.. I ran Bleeding Edge 6.2 which has a working raid support but found that I needed to patch the firmware on this server to 4.30 and download the 4.30 drivers for linux. Im a big fan of roll your own (if you have the time) =) I booted the CD and typed `linux dd` and when it found the files it worked beautifully. Funny thing though it sees it as a very large /dev/hda (or was it sda) 34GB drive and not a mda0 like a normal raid would... I think it's because it's running hardware raid not software. sda hda is for ide, and mda is only used with software raid, with hardware raid the system sees the device as your run of the mills block device (basically) hence hardware raid =) Sean -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Netfinity 5600 and Linux with RAID 5
I beleive ext1 had a limit on it. But i dont know why youd be running ext1 a 30gb partition is probably not a great idea as youll lose *alot* of space. (the whole allocation size thingy) as for swap space, you can have more than one swap drive, so even if there is a size limit, you can just break it up and the kernel will use them all happily Dean "Useless Waffle" Hamstead George Vieira wrote: Aah Damn!! It didn't boot off the raid.. just asked for the floppy disk. Tried to boot off the floppy but crashed with a kernel panic not being able to access or write or read the / partition, but I created it. Is there a limit of the partitions being larger than 30GB? This is for data only and not something stupid like / or /boot. Also when creating swap space, what happens if you put somethign large like 1000MB as swap? Could that have been the problem as I remember 128MB was the limit but this time it didn't complain?? thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 3:33 PM To: George Vieira Cc: 'Howard Lowndes'; Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 AAaha Got it.. I ran Bleeding Edge 6.2 which has a working raid support but found that I needed to patch the firmware on this server to 4.30 and download the 4.30 drivers for linux. Im a big fan of roll your own (if you have the time) =) I booted the CD and typed `linux dd` and when it found the files it worked beautifully. Funny thing though it sees it as a very large /dev/hda (or was it sda) 34GB drive and not a mda0 like a normal raid would... I think it's because it's running hardware raid not software. sda hda is for ide, and mda is only used with software raid, with hardware raid the system sees the device as your run of the mills block device (basically) hence hardware raid =) Sean -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Netfinity 5600 and Linux with RAID 5
George Vieira wrote: Also when creating swap space, what happens if you put somethign large like 1000MB as swap? Could that have been the problem as I remember 128MB was the limit but this time it did I think the way it works is not matter how bug the swap partition is only teh first 128MB gets used, but you can have up to 8 swap partitions. If the system won't even boot from the HDD then the problem may lie with the boot loader. Have you tried to reinstall LILO? (Or your boot loader of choice - I've only ever used lilo) - Doug -- _ Network Operations Engineer - Big Pond Advance Satellite Ericsson Australia - Level 5, 184 The Broadway, Sydney 2000 Ph: +61-416-085-390 Email: [EMAIL PROTECTED] -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
RE: [SLUG] Netfinity 5600 and Linux with RAID 5
OK. I got it to boot but failed at failed to exec /sbin/modprobe -s -k block-major-8, ernno=2 VFS: Cannot open root device 08:08 Kernel Panic: VFS: Unable to mount root on 08:08 Any ideas, OK a little hint: I notice alot of messages about /lib/ips.o being unable to resolve symbols to a whole heap of names... is this a clue or is it like you said "the filesystem is ext1" ??? Getting Desperate, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 4:29 PM To: George Vieira Cc: Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 I beleive ext1 had a limit on it. But i dont know why youd be running ext1 a 30gb partition is probably not a great idea as youll lose *alot* of space. (the whole allocation size thingy) as for swap space, you can have more than one swap drive, so even if there is a size limit, you can just break it up and the kernel will use them all happily Dean "Useless Waffle" Hamstead George Vieira wrote: Aah Damn!! It didn't boot off the raid.. just asked for the floppy disk. Tried to boot off the floppy but crashed with a kernel panic not being able to access or write or read the / partition, but I created it. Is there a limit of the partitions being larger than 30GB? This is for data only and not something stupid like / or /boot. Also when creating swap space, what happens if you put somethign large like 1000MB as swap? Could that have been the problem as I remember 128MB was the limit but this time it didn't complain?? thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 3:33 PM To: George Vieira Cc: 'Howard Lowndes'; Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 AAaha Got it.. I ran Bleeding Edge 6.2 which has a working raid support but found that I needed to patch the firmware on this server to 4.30 and download the 4.30 drivers for linux. Im a big fan of roll your own (if you have the time) =) I booted the CD and typed `linux dd` and when it found the files it worked beautifully. Funny thing though it sees it as a very large /dev/hda (or was it sda) 34GB drive and not a mda0 like a normal raid would... I think it's because it's running hardware raid not software. sda hda is for ide, and mda is only used with software raid, with hardware raid the system sees the device as your run of the mills block device (basically) hence hardware raid =) Sean -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Is this a routing problem?
On Thu, Oct 12, 2000 at 12:01:11PM +1000, George Vieira wrote: Did you notice that Neuro has the IP for ETH0 but it's not listed in the routing table? I think that seems a little weird... not sure if it's OK or not.. I checked my box and it doesn't have the host route either. I have seen a problem twice now with old isa ne2000 clones where it would go to sleep, it couldn't be pinged from a remote box until you generated some traffic locally. I ended up putting something like `ping -qi10 somebox ` in a startup script somewhere. Eventually the card was changed and the problem went away. -- chesty -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
RE: [SLUG] Netfinity 5600 and Linux with RAID 5
Just checking my other systems and by default they are ext2. So I guess this one would be too... thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 4:29 PM To: George Vieira Cc: Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 I beleive ext1 had a limit on it. But i dont know why youd be running ext1 a 30gb partition is probably not a great idea as youll lose *alot* of space. (the whole allocation size thingy) as for swap space, you can have more than one swap drive, so even if there is a size limit, you can just break it up and the kernel will use them all happily Dean "Useless Waffle" Hamstead George Vieira wrote: Aah Damn!! It didn't boot off the raid.. just asked for the floppy disk. Tried to boot off the floppy but crashed with a kernel panic not being able to access or write or read the / partition, but I created it. Is there a limit of the partitions being larger than 30GB? This is for data only and not something stupid like / or /boot. Also when creating swap space, what happens if you put somethign large like 1000MB as swap? Could that have been the problem as I remember 128MB was the limit but this time it didn't complain?? thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 3:33 PM To: George Vieira Cc: 'Howard Lowndes'; Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 AAaha Got it.. I ran Bleeding Edge 6.2 which has a working raid support but found that I needed to patch the firmware on this server to 4.30 and download the 4.30 drivers for linux. Im a big fan of roll your own (if you have the time) =) I booted the CD and typed `linux dd` and when it found the files it worked beautifully. Funny thing though it sees it as a very large /dev/hda (or was it sda) 34GB drive and not a mda0 like a normal raid would... I think it's because it's running hardware raid not software. sda hda is for ide, and mda is only used with software raid, with hardware raid the system sees the device as your run of the mills block device (basically) hence hardware raid =) Sean -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Win4Lin on RH6.2
Peter Rundle wrote: Sluggers, Has anyone managed to get Win4Lin running on RH6.2? There isn't a kernel for 6.2 on the CD so I tried to roll my own following the patch guidelines. When I did make menuconfig the Trelos support came up and I selected it. The kernel made ok, and I booted off it. However NFS failed to start and when I then tried to install win4lin it said I wasn't running a win4lin supported kernel. Weird !!! Trelos used to have prebuilt kernels available for download, they don't appear to be at their new web site. Contact me privately if you want me to send the one a downloaded when purchased win4lin. Regards Mehmet Ozdemir -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Re: Open Source mail virus scanners
\begin{Howard Lowndes} I would be interested to know what OSS Linux/sendmail email virus scanners folks are using out there. i've been very happy with procmail-sanitizer at: http://www.impsec.org/email-tools/procmail-security.html i liked it enough to package it: http://www.cse.unsw.edu.au/~gusl/debian/procmail-sanitizer-1.117-1_all.deb -- - Gus -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Re: Netfinity 5600 and Linux with RAID 5
\begin{Dean Hamstead} as for swap space, you can have more than one swap drive, so even if there is a size limit, you can just break it up and the kernel will use them all happily "mkswap -v1" and a 2.2 kernel allows you to use swap partitions 128Mb see mkswap(8) -- - Gus -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Netfinity 5600 and Linux with RAID 5
On Thu, Oct 12, 2000 at 04:33:01PM +1100, Dean Hamstead wrote: I booted the CD and typed `linux dd` and when it found the files it worked beautifully. Funny thing though it sees it as a very large /dev/hda (or was it sda) 34GB drive and not a mda0 like a normal raid would... I think it's because it's running hardware raid not software. sda hda is for ide, and mda is only used with software raid, with hardware raid the system sees the device as your run of the mills block device (basically) hence hardware raid =) I've setup a compaq smart array and you don't use /dev/sda directly, if you did that, you wouldn't be using the hardware raid. Instead you use /dev/ida/c0d0. I would guess its a similar situation with other raid cards, but it probably isn't /dev/ida, but something else, like /dev/rd. What sort of raid card is it? cat /proc/pci should list it. VFS: Cannot open root device 08:08 08:08 is /dev/sda8 I think, is that your root partition? -- chesty -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Netfinity 5600 and Linux with RAID 5
Hi, On Thu, Oct 12, 2000 at 05:37:12PM +1000, George Vieira wrote: OK. I got it to boot but failed at failed to exec /sbin/modprobe -s -k block-major-8, ernno=2 VFS: Cannot open root device 08:08 Kernel Panic: VFS: Unable to mount root on 08:08 You said you downloaded the device drivers. That means you downloaded modules. The root device cannot be built as a module, but rather must be compiled into the kernel. From what I gathered, it worked previously coz that was the installation disk, and the raid disk was not the root partition during installation. The error message is due to the kernel trying to load a raid driver from a raid drive. Kinda like a chicken and egg problem. Try to get the sources and compile it into the kernel. -- Ho Ming Shun Any ideas, OK a little hint: I notice alot of messages about /lib/ips.o being unable to resolve symbols to a whole heap of names... is this a clue or is it like you said "the filesystem is ext1" ??? Getting Desperate, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID:0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 4:29 PM To: George Vieira Cc: Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 I beleive ext1 had a limit on it. But i dont know why youd be running ext1 a 30gb partition is probably not a great idea as youll lose *alot* of space. (the whole allocation size thingy) as for swap space, you can have more than one swap drive, so even if there is a size limit, you can just break it up and the kernel will use them all happily Dean "Useless Waffle" Hamstead George Vieira wrote: Aah Damn!! It didn't boot off the raid.. just asked for the floppy disk. Tried to boot off the floppy but crashed with a kernel panic not being able to access or write or read the / partition, but I created it. Is there a limit of the partitions being larger than 30GB? This is for data only and not something stupid like / or /boot. Also when creating swap space, what happens if you put somethign large like 1000MB as swap? Could that have been the problem as I remember 128MB was the limit but this time it didn't complain?? thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 3:33 PM To: George Vieira Cc: 'Howard Lowndes'; Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 AAaha Got it.. I ran Bleeding Edge 6.2 which has a working raid support but found that I needed to patch the firmware on this server to 4.30 and download the 4.30 drivers for linux. Im a big fan of roll your own (if you have the time) =) I booted the CD and typed `linux dd` and when it found the files it worked beautifully. Funny thing though it sees it as a very large /dev/hda (or was it sda) 34GB drive and not a mda0 like a normal raid would... I think it's because it's running hardware raid not software. sda hda is for ide, and mda is only used with software raid, with hardware raid the system sees the device as your run of the mills block device (basically) hence hardware raid =) Sean -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED][EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] mail list acceptable use guidelines
On Thu, 12 Oct 2000, Dave Fitch wrote: just bounce all attachments, whatever their type. Strip is probably easier than bounce... maybe repeat offenders (within a certain timeframe) should be put on a list of people who can't post without manual approval? Sounds like you are volunteering for this job? ;-) I would have thought we had better things to do than police a list in this manner. Probably (a) a hassle for the list maintainers, and (b) pointless anyway with free web email accounts etc. Quite true. Something that bugs me every now and then is when people include the previous message verbatim. We are all rather intelligent and all that should be necessary is a mind jogger... I also have been noticing that replies usually go to the list as a whole. I have started doing it as well to try to reduce the number of followups on the list. Really, what should happen is that these should end up in the archives somehow without cluttering the list - does that sound feasible? tom. Consultant AUSSECPhone: 61 4 1768 2202 339 Blaxland Rd., Ryde NSW 2112 Email: [EMAIL PROTECTED] -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] sendmail replacement
At some point around Thu, Oct 12, 2000 at 02:50:35 +1100, Jeff Waugh said: [EMAIL PROTECTED] said something along the lines of: i want to get rid of sendmail and put in an easier to configure equivelant. Okay, that bit is easy - if you want to replace your MTA, try Exim or Postfix. They are much easier to configure than sendmail, and at least Postfix has a lot of good documentation to read. www.exim.org has more documentation than you could shake a small tree at :-) i also want to transfer the current emails that are read through sendmail. so, can anyone suggest an easy to configure, secure, imap, email server other than sendmail? Aha - now you're asking for something different. sendmail is called sendmail because it does just that - it sends mail, usually between Internet email hosts. It doesn't care how you collect or read that email, however. It sounds like you're after a different beast - an IMAP server. There are a few around - the University of Washington one, Courier, Cyrus, actually there's a whole lot! The university of washington one is evil... I had a look at it when trying to decide which server to use, and it was pretty obvious a post grad had knocked it up in about half an hour, and no-one had looked at it since... ;-) Have a look at: http://freshmeat.net/appindex/daemons/imap.html There's a list of about 13 there. Most include some form of sercure connection protocol, however you might find that your email clients don't support these. Bummer, huh? i hope i'm making sense with this. Mostly! ;) I guess the question now (and one that I'm interested in) is... Which IMAP server is the best in which situations? I "implemented", well "apt-get install cyrus-imapd "'d at my last job, when it was decided that we didn't want to use Novel's groupware a month after paying the *exorbitant* licensing fees, and it worked out of the box first time. As far as I'm aware, that box (exim/cyrus imap) has been running quite happily since I left the company 9 months ago, which is lucky as no-one else there has a clue! The novel box, which is still in use as a file share, has an uptime of a week or so *at best*, and that's an actuall Dell Server box, as opposed to a crappy old workstation that got pressed into service ;-) -Thom -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] mail list acceptable use guidelines
tom burkart said something along the lines of: I also have been noticing that replies usually go to the list as a whole. I have started doing it as well to try to reduce the number of followups on the list. Really, what should happen is that these should end up in the archives somehow without cluttering the list - does that sound feasible? You want to reply to emails, have the valuable answers in those emails go into the archives, but don't want them going out to the list? The archives archive only what is sent to the list. If you have a good answer, it's much more important to send that to the list so everyone knows about it. The archives are for finding answers to questions that have been asked before - the list is for a) helping out others with stuff you know about, and b) finding out stuff you never even thought to ask for! :) - Jeff -- [EMAIL PROTECTED] --- http://linux.conf.au/ -- Ye shall be cursed to fall in love so easily, and yet be so cold of heart as never to express it. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Netfinity 5600 and Linux with RAID 5
On Thu, Oct 12, 2000 at 04:35:24PM +0800, Ho Ming Shun wrote: You said you downloaded the device drivers. That means you downloaded modules. The root device cannot be built as a module, but rather must be compiled into the kernel. From what I gathered, it worked previously coz that was the installation disk, and the raid disk was not the root partition during installation. The error message is due to the kernel trying to load a raid driver from a raid drive. Kinda like a chicken and egg problem. Try to get the sources and compile it into the kernel. Or use initrd, which I think redhat uses for its default kernels. I'm starting to think this raid card does use /dev/sda, etc, for its logical drives, its a bit different from the smart array. -- chesty -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Script to fix filenames
I keep getting batches of jpegs without the .jpeg extension (or any other permutation). What area of scripting should I look to in order to add the extension. Is sed able to work on filenames in a directory as it doeson words in a file? I've got over 200 of these and there are more to come. Thanks Nick -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Script to fix filenames
On Thu, Oct 12, 2000 at 09:31:05PM +1100, Nick Croft wrote: I keep getting batches of jpegs without the .jpeg extension (or any other permutation). What area of scripting should I look to in order to add the extension. Is sed able to work on filenames in a directory as it doeson words in a file? I've got over 200 of these and there are more to come. for a in `file * | grep JPEG | grep -v .jpg | awk -F ":" {'print $1'}` ; do mv $a $a.jpg ; done I'm not very good with awk, but I think you can get rid of the greps and use one awk statement. -- chesty -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Keeping the list on topic - a simple solution
OK, so maybe I'm stating the bleeding obvious here, but here's a suggestion for keeping this list at least mostly on-topic. DON'T REPLY TO OFF-TOPIC POSTS!! Don't reply in public Don't reply in private Don't flame in public Don't flame in private Just don't reply at all!! Eventually (or most likely quite quickly) people will begin to get the idea. The problem we have at the moment is that the SLUG list contains a wide cross-section of the IT industry. That means that when you ask a NT question, odds are that someone will reply with the answer in short order. Once that happens to you once (or once you see it happen for someone else), then next time you've got a question, why not post it to the list that got results last time? The same goes for SPAM. SLUG (and other lists, but SLUG seems the worst of the ones I'm on) seem to get about 10 replies for each spam msg sent to the list (even the ones in Japanese!). So instead of having to delete just one messages, people have to put up with an entire thread on it. So I call on everyone, IGNORE the OT's, IGNORE the SPAM's, and lets keep the list on-topic (where it actually seems to have been for the past few weeks!) Scott. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Keeping the list on topic - a simple solution
On Thu, 12 Oct 2000, Scott Howard wrote: The problem we have at the moment is that the SLUG list contains a wide cross-section of the IT industry. That means that when you ask a NT question, odds are that someone will reply with the answer in short order. Once that happens to you once (or once you see it happen for someone else), then next time you've got a question, why not post it to the list that got results last time? I think the problem is that most of the people on this list can't resist replying if they know how to help somebody in any area. It's a chance to show off after all. :-) And as you said, there's a wide spread of knowledge here, so just about any tech related question asked, somebody will know something about it. Combine the knowledge and the willingness to help of the people on this list, and you end up with a list thats an all purpose hackers knowledge base, the Linux basis maintained just because Linux is an interesting thing to hack at at the moment. I think the only way to really stop this is to make sure that only Linux related posts make it to the list in the first place, because people are likely to respond if they see something they can help with, no matter what it's about. Thing is, people using Linux are likely to be interested in poking around inside computers in general, and interested in helping others do the same. Personally I don't mind postings that aren't directly about Linux so long as they have this curiosity about tech thing going. Though how curious can you really get about NT? :-) -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] dvd
I'm thinking of getting a dvd-rom. Last time I looked up on the subject Linux dvd players were software only and you needed a hefty box to get decent performance. Have things changed at all? Anyone got suggestions on brands or whatever? -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] dvd
On Thu, 12 Oct 2000, Steven Blunt wrote: I'm thinking of getting a dvd-rom. Last time I looked up on the subject Linux dvd players were software only and you needed a hefty box to get decent performance. Have things changed at all? Anyone got suggestions on brands or whatever? For just data, I think any brand will work OK. If you want to watch DVD movies you might want to look at the hardware lists at http://www.linuxvideo.org. I've been able to watch DVD's using the OMS player from here (sound's kind of bad, but it's watchable). Or you can use DeCSS and pipe it to an MPEG player. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] sendmail replacement
Okay, that bit is easy - if you want to replace your MTA, try Exim or Postfix. They are much easier to configure than sendmail, and at least Postfix has a lot of good documentation to read. www.exim.org has more documentation than you could shake a small tree at :-) I think iread in the linux journal articel recently on postfix that it could use sendmails config files. You can't get much more of a drop in replacement than that. Then you can just learn the postfix config as you go. Jason -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] monitoring stuff
Hey sluggers, Wondering if anyone has decent recommendations on monitoring software. I'm trialing mon, spong, bandmin and looking at mrtg and big brother atm. I know they all have different usages, and i have a few different needs, so i guess I'll end up with more than one of those that become useful. One thing I need to monitor right now, is a CPU usage threshold. I have qpage setup to page/sms stuff ok i think, I just need to trigger it. I have dug into the above packages, not sure which one is easiest to say set a rule that says; If cpu exceeds x% for y time then send alert. The modules that come with some of the best candidates above don't seem to say that. Is there anything out there I can use for this sort of rule? Is it easy to write a custom daemon that does it? Or is it an inherently flawed way - ie to intensive itself? Thanks, Dave __ solutionsFirst.net Consulting http://solutionsfirst.net Ph: (02) 9413 9604 Fax: (02) 9413 9719 Mob: 0413 022 143 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
RE: [SLUG] Script to fix filenames
ls | gawk '{print "mv " $1 " " $1 ".jpeg"}' | sh :) -- David Zverina Alt Key Pty. Ltd. http://www.altkey.com PO Box 3121, Parramatta, 2124, Australia -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Croft Sent: Thursday, 12 October 2000 21:31 To: [EMAIL PROTECTED] Subject: [SLUG] Script to fix filenames I keep getting batches of jpegs without the .jpeg extension (or any other permutation). What area of scripting should I look to in order to add the extension. Is sed able to work on filenames in a directory as it doeson words in a file? I've got over 200 of these and there are more to come. Thanks Nick -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] monitoring stuff
On Fri, Oct 13, 2000 at 12:16:37AM +1000, Dave Kempe wrote: Hey sluggers, Wondering if anyone has decent recommendations on monitoring software. I'm trialing mon, spong, bandmin and looking at mrtg and big brother atm. Checkout http://www.netsaint.org very configurable supports SNMP and interacts with a few other decent tools like mrtg etc. -- John The difference between a good man and a bad one is the choice of cause - William James -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] monitoring stuff
You can add to that list swatch. I think for what you seem to be wanting then a bit of cron, awk work might be wanted. You need to determine: what is the CPU usage threshold how frequently are you going to sample it how long are you going to allow it to over limit before it triggers -- Howard. __ LANNet Computing Associates http://www.lannet.com.au On Fri, 13 Oct 2000, Dave Kempe wrote: Hey sluggers, Wondering if anyone has decent recommendations on monitoring software. I'm trialing mon, spong, bandmin and looking at mrtg and big brother atm. I know they all have different usages, and i have a few different needs, so i guess I'll end up with more than one of those that become useful. One thing I need to monitor right now, is a CPU usage threshold. I have qpage setup to page/sms stuff ok i think, I just need to trigger it. I have dug into the above packages, not sure which one is easiest to say set a rule that says; If cpu exceeds x% for y time then send alert. The modules that come with some of the best candidates above don't seem to say that. Is there anything out there I can use for this sort of rule? Is it easy to write a custom daemon that does it? Or is it an inherently flawed way - ie to intensive itself? Thanks, Dave __ solutionsFirst.net Consulting http://solutionsfirst.net Ph: (02) 9413 9604 Fax: (02) 9413 9719 Mob: 0413 022 143 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] monitoring stuff
David, off list reply. Have a look at this script. I use it on my border router to monitor the health of my client's sites. You might get some clues from it to adapt it to your needs. Use swatch on the /var/log/messages file, or use the output directly to trigger your qpage server. Runs from root cron every 6 minutes. Please do not publish it. -- Howard. __ LANNet Computing Associates http://www.lannet.com.au #!/bin/sh LINKS=" gw.alb2.Albury.telstra.net" LINKS=${LINKS}" janus.lannet.com.au" LINKS=${LINKS}" keep.lannet.com.au" LINKS=${LINKS}" hero.lannet.com.au" LINKS=${LINKS}" scribe.lannet.com.au" # LINKS=${LINKS}" guru.lannet.com.au" LINKS=${LINKS}" acay.aircentre.com" LINKS=${LINKS}" ac.aircentre.com" LINKS=${LINKS}" acbth.aircentre.com" # LINKS=${LINKS}" saxon.af.com.au" # LINKS=${LINKS}" murray.af.com.au" LINKS=${LINKS}" scout.auf.asn.au" LINKS=${LINKS}" stratos.auf.asn.au" LINKS=${LINKS}" skydart.auf.asn.au" # LINKS=${LINKS}" gw.skills.asn.au" # LINKS=${LINKS}" rsi.skills.asn.au" # LINKS=${LINKS}" sit.skills.asn.au" LINKS=${LINKS}" cwsvr.caterworld.com.au" LINKS=${LINKS}" cway.caterworld.com.au" LINKS=${LINKS}" cwbdg.caterworld.com.au" LINKS=${LINKS}" cwglg.caterworld.com.au" LINKS=${LINKS}" cwml.caterworld.com.au" LINKS=${LINKS}" cwsht.caterworld.com.au" LINKS=${LINKS}" cwwg.caterworld.com.au" # LINKS=${LINKS}" atelal.atel.com.au" # LINKS=${LINKS}" atelwd.atel.com.au" # LINKS=${LINKS}" atelwg.atel.com.au" # LINKS=${LINKS}" atelwn.atel.com.au" # Add additional sites above here (note leading space in string) ## ### # Nothing to change below here # Mods register # 25 Feb 00 - change crontab cycle from 5 to 6 minutes # 25 Feb 00 - change log count before blowing whistle from 3 to 2 # 25 Feb 00 - the link down alarm response time is now reduced # from 1015 mins to 612 mins # PATH=/bin:/usr/bin:/sbin:/usr/sbin docheck() { # try twice more before we log it ping -qnc1 $i /dev/null PINGERROR=$? if [ ${PINGERROR}x != 0x ]; then # first retry ping -qnc1 $i /dev/null PINGERROR=$? if [ ${PINGERROR}x != 0x ]; then # time to take some action like logging it date -u +"%Y-%m-%d %H:%M:%S %Z" /tmp/$i if [ `wc -l /tmp/$i | awk '{print $1}'`x = 2x ]; then # this is the second logging (6 failures) so blow the whistle MSG="LINK DOWN ALARM $i" logger -i -t `basename $0` ${MSG} mail -s "** ${MSG}" [EMAIL PROTECTED] . /dev/null sendmail -q fi fi fi } for i in ${LINKS}; do ping -qnc1 $i /dev/null PINGERROR=$? if [ ${PINGERROR}x = 0x ]; then # the machine is talking to us if [ -e /tmp/$i ]; then # we had a problem but all is now well if [ `wc -l /tmp/$i | awk '{print $1}'`x = 2x ]; then # if we sent an alarm we must cancel the alarm MSG="CANCEL ALARM $i" logger -i -t `basename $0` ${MSG} mail -s "** ${MSG}" [EMAIL PROTECTED] . /dev/null sendmail -q fi # get rid of the logging file rm -f /tmp/$i fi else if [ -e /tmp/$i ]; then # we have already had some failures if [ `wc -l /tmp/$i | awk '{print $1}'`x != 2x ]; then # but not yet enough to blow the whistle docheck fi else docheck fi fi done -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
RE: [SLUG] Netfinity 5600 and Linux with RAID 5
That sounds correct as those unresolved symbols sounded like the kernel didn't have or was missing something. Sounds great people giving suggestions but how do I compile things into the kernel when I can't even boot? That's another chicken and the egg. I have to get into the system to give it the raid module support but I have to get there first.. Is there a way at boot time to load the module? -Original Message- From: Ho Ming Shun [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 6:35 PM To: Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 Hi, On Thu, Oct 12, 2000 at 05:37:12PM +1000, George Vieira wrote: OK. I got it to boot but failed at failed to exec /sbin/modprobe -s -k block-major-8, ernno=2 VFS: Cannot open root device 08:08 Kernel Panic: VFS: Unable to mount root on 08:08 You said you downloaded the device drivers. That means you downloaded modules. The root device cannot be built as a module, but rather must be compiled into the kernel. From what I gathered, it worked previously coz that was the installation disk, and the raid disk was not the root partition during installation. The error message is due to the kernel trying to load a raid driver from a raid drive. Kinda like a chicken and egg problem. Try to get the sources and compile it into the kernel. -- Ho Ming Shun Any ideas, OK a little hint: I notice alot of messages about /lib/ips.o being unable to resolve symbols to a whole heap of names... is this a clue or is it like you said "the filesystem is ext1" ??? Getting Desperate, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID:0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 4:29 PM To: George Vieira Cc: Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 I beleive ext1 had a limit on it. But i dont know why youd be running ext1 a 30gb partition is probably not a great idea as youll lose *alot* of space. (the whole allocation size thingy) as for swap space, you can have more than one swap drive, so even if there is a size limit, you can just break it up and the kernel will use them all happily Dean "Useless Waffle" Hamstead George Vieira wrote: Aah Damn!! It didn't boot off the raid.. just asked for the floppy disk. Tried to boot off the floppy but crashed with a kernel panic not being able to access or write or read the / partition, but I created it. Is there a limit of the partitions being larger than 30GB? This is for data only and not something stupid like / or /boot. Also when creating swap space, what happens if you put somethign large like 1000MB as swap? Could that have been the problem as I remember 128MB was the limit but this time it didn't complain?? thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -Original Message- From: Dean Hamstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2000 3:33 PM To: George Vieira Cc: 'Howard Lowndes'; Sydney Linux Users Group in Sydney (E-mail) Subject: Re: [SLUG] Netfinity 5600 and Linux with RAID 5 AAaha Got it.. I ran Bleeding Edge 6.2 which has a working raid support but found that I needed to patch the firmware on this server to 4.30 and download the 4.30 drivers for linux. Im a big fan of roll your own (if you have the time) =) I booted the CD and typed `linux dd` and when it found the files it worked beautifully. Funny thing though it sees it as a very large /dev/hda (or was it sda) 34GB drive and not a mda0 like a normal raid would... I think it's because it's running hardware raid not software. sda hda is for ide, and mda is only used with software raid, with hardware raid the system sees the device as your run of the mills block device (basically) hence hardware raid =) Sean -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED][EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing
Re: [SLUG] monitoring stuff
Damn it, sorry about that. Please scrub it. -- Howard. __ LANNet Computing Associates http://www.lannet.com.au On Fri, 13 Oct 2000, Howard Lowndes wrote: David, off list reply. Have a look at this script. I use it on my border router to monitor the health of my client's sites. You might get some clues from it to adapt it to your needs. Use swatch on the /var/log/messages file, or use the output directly to trigger your qpage server. Runs from root cron every 6 minutes. Please do not publish it. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Keeping the list on topic - a simple solution
Or better still... have no LIST at all. On Thu, 12 Oct 2000, Scott Howard wrote: OK, so maybe I'm stating the bleeding obvious here, but here's a suggestion for keeping this list at least mostly on-topic. DON'T REPLY TO OFF-TOPIC POSTS!! Don't reply in public Don't reply in private Don't flame in public Don't flame in private Just don't reply at all!! Eventually (or most likely quite quickly) people will begin to get the idea. The problem we have at the moment is that the SLUG list contains a wide cross-section of the IT industry. That means that when you ask a NT question, odds are that someone will reply with the answer in short order. Once that happens to you once (or once you see it happen for someone else), then next time you've got a question, why not post it to the list that got results last time? The same goes for SPAM. SLUG (and other lists, but SLUG seems the worst of the ones I'm on) seem to get about 10 replies for each spam msg sent to the list (even the ones in Japanese!). So instead of having to delete just one messages, people have to put up with an entire thread on it. So I call on everyone, IGNORE the OT's, IGNORE the SPAM's, and lets keep the list on-topic (where it actually seems to have been for the past few weeks!) Scott. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Netfinity again
Hi Sluggers, I have gotten to the stage where I think the only way to fix this is to boot ont he 6.2 CD and mount the drives manually (as I used the `linux dd`) command to load the device driver and hopefully to mount the /dev/sda8 drive and patch/modify what is needed. I also noticed that IBM have a patch sh file for existing systems and all it does is (this is what the script has): Variables in script $i= the module version eg. 2.2.16-3 in this case $MKINITRD= changed to /mnt/root/sbin/mkinitrd as it is found there SCRIPT info: cp /tmp/$i/ips.o /lib/modules/$i/scsi /dev/null 21 LC_ALL=C $MKINITRD -f /boot/initrd-$i.img $i Now, the thing is I always get "file or directory not found" running the MKINITRD command. I tried mounting the REAL root drive using mount /dev/sda8 /mnt/root and then modified the LC command to LC_ALL=C /mnt/root/sbin/mkinitrd -f /mnt/boot/initrd-2.2.16-3.img 2.2.16-3 but fails with this "file not found" crap. I have no idea if it's mkinitrd reporting this or its the shell not finding it.. I can however ls -l the file to be 40KB or so.. Sorry if this is vague but I'm running out of time and typing a million miles an hour.. I hate boot problems, never deal with kernel stuff much... thanks, George Vieira Network Administrator http://www.citadelcomputer.com.au PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C PGP KeyID: 0x38A9A10C -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] sendmail replacement
On 0, Russell Davies [EMAIL PROTECTED] wrote: ; i want to get rid of sendmail and put in an easier to configure ; equivelant. i also want to transfer the current emails that are read ; through sendmail. ; ; so, can anyone suggest an easy to configure, secure, imap, email server ; other than sendmail? http://cr.yp.to/qmail.html http://www.glasswings.com.au/qmail/top.html http://Web.InfoAve.Net/~dsill/lwq.html Another addition to the above list of URLs. http://pws.prserv.net/truemax/OS/Qmail.html Hope that will get you started smoothly into Qmail. Good Luck. -- Subba Rao [EMAIL PROTECTED] http://pws.prserv.net/truemax/ -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] dvd
Last time I looked up on the subject Linux dvd players were software only and you needed a hefty box to get decent performance. Well, it would have to be software only, unless if you had an mpeg card. Afaik, only some of the Hollywood mpeg cards have (very limited) linux support. Last time I checked, you could only get the tv-out working but not overlay mode so youd have to have either an additional tv or a tv-tuner card as well. Livid, the only real dvd playing software for linux is now actually usable... a friend of mine is using it on his celeron 333@417MHz. However, it does jerk every once in a while and the audio skips ahead etc. IMO, a dvd player that is "watchable" but not seamless is worthless. I am waiting till Livid gets better or a commercial player is released and then ill buy a DVD drive. Arunava -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] perl quicky
how do i get the name of current directory (basically pwd) in perl? Dean -- BONG: http://www.bong.com.au EMAIL... [EMAIL PROTECTED][EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] perl quicky
On Fri, Oct 13, 2000 at 02:42:12PM +1100, Dean Hamstead wrote: how do i get the name of current directory (basically pwd) in perl? [johnc@dropbear ~]$ perl -e 'print `pwd`' /home/johnc -- whois [EMAIL PROTECTED] -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] perl quicky
how do i get the name of current directory (basically pwd) in perl? use Cwd; $dir = getcwd; this is in my opinion better than $dir=`pwd`; chomp $dir; kind of solutions. perldoc Cwd for the whole story. Stuart. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] perl quicky
On Fri, 13 Oct 2000, Dean Hamstead wrote: how do i get the name of current directory (basically pwd) in perl? chop($cwd = `pwd`); or perl -e 'use Cwd; print "You are in the " . cwd . " directory\n";' You are in the /home/rodos directory Easy. Rodos -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] perl quicky
Rodos wrote: On Fri, 13 Oct 2000, Dean Hamstead wrote: how do i get the name of current directory (basically pwd) in perl? chop($cwd = `pwd`); or perl -e 'use Cwd; print "You are in the " . cwd . " directory\n";' You are in the /home/rodos directory Easy. Friday afternoon blues #!/usr/bin/perl # only works on Linux :) $pid = `ps | grep $0 | grep perl | grep -v grep | cut -d " " -f 1`; chomp($pid); print `ls /proc/$pid -l | grep cwd | sed -e 's/.*cwd - //g'`; Matthew -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] network printer not seeing filter
G'day printing gurus, hopefully a quickie. I currently have a box acting as a print server for a bunch of other local machines. printcap is p|PostScript|PostScript:lp=/dev/lp0:sd=/var/spool/lpd:lf=/dev/console:ft=$$c$$p$$r$$f:hl#2:fl#3:ht=$$c$$n$$r$$t:mx#0:sh:if=/usr/local/magicfilter-1.2/filters/ljet3-filter with local machines having lp:lp=:rm=remote-machine-name:rp=lp:sd=/var/spool/lpd:mx#0 This all works fine (prints postscript etc) Now I bought me an ethernet print server thingy (D-link DP-101). Set that up and can talk to it etc. I figured that all I need to do is to put in a rm=name of DP-101 in the printcap of the server and it should work. It does except that it prints crap for postscript files and hence it appears that it is not looking at the if=... line (ie the filter). Any clues? TIA, Dave. -- David Ryan - [EMAIL PROTECTED]http://www.snowy.net.au Smart Radio Systems Phone: 02 6452 Fax: 02 64524317 Cooma, NSW 2630, Australia Secretary Cooma Bushfire Brigade -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Re: sendmail replacement
\begin{Jason Rennie} I think iread in the linux journal articel recently on postfix that it could use sendmails config files. err.. not quite.. postfix will read all the same /etc/aliases, ~/.forward files, etc but it won't read sendmail.cf just yet ;) (hell, humans with practice and a reference book or two have trouble reading that) You can't get much more of a drop in replacement than that. this is one of its big plusses over qmail. the users (and most admin tasks) don't notice any difference to sendmail. -- - Gus -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Re: Script to fix filenames
\begin{Nick Croft} I keep getting batches of jpegs without the .jpeg extension (or any other permutation). What area of scripting should I look to in order to add the extension. Is sed able to work on filenames in a directory as it doeson words in a file? for f in *; do test -z "${f##*.*}" || mv $f $f.jpeg done or something.. -- - Gus -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug