Re: [SLUG] lowercasing file names, directory names, how ?
Alexander Samad said: > On Wed, Aug 11, 2004 at 08:45:16PM +1000, Peter Miller wrote: > or a thought why not a recursive find command ! thanks, everyone and, now the user told me to leave his files in MIXed caSE, as that's how his programme outputs it... anyhow, at least I know how to do it re my other query, unable to open PDFs in IE/Acrobat on 'doze, aparently it's a known problem, and, not to do with miXED caSe path/file names, but some glitches in Acroabt/IE/doze -- Voytek -- 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] lowercasing file names, directory names, how ?
On Wed, Aug 11, 2004 at 08:45:16PM +1000, Peter Miller wrote: > On Wed, 2004-08-11 at 20:15, [EMAIL PROTECTED] wrote: > > >>"find > > You have to make sure you move the directory AFTER you move file files > within it... the -depth option. > > You also have to ensure that you only apply the tr command to the LAST > filename component, not the whole path. > > All this, AND coping with spaces in filenames, is a pain in a shell > script. Try perl. Or do what I did, and write just a few lines of C... > hint: ftw(3). Sorry, I tossed it, it was so small. or a thought why not a recursive find command ! > > -- > Peter Miller <[EMAIL PROTECTED]> > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html signature.asc Description: Digital signature -- 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] Laptops and Linux
On Thu Aug 12, 2004 at 12:59:09 +1000, Dennis M. Gray wrote: >I am going to be purchasing a new laptop soon and would like some >recommendations about brands and models that work well with Linux (Fedora >Core specifically). > Can't go past the PowerBook. I find the keyboard, battery life, robustness an bright screen on mine great. The only time I have an issue with performance is large compiles and simulation. Any other time it is way fast enough. If you happen to be a student a student the price is quite reasonable (I couldn't find a cheaper intel based machine.) Benno -- 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] Laptops and Linux
On Thu, 2004-08-12 at 12:59 +1000, Dennis M. Gray wrote: > I am going to be purchasing a new laptop soon and would like some > recommendations about brands and models that work well with Linux (Fedora > Core specifically). I'm currently using an HP NC4000, largely on the recommendation of Bdale Garbee. He's got a page up about it: http://www.gag.com/~bdale/nc4000/ I really like it because it's incredibly light. It doesn't have an optical drive though, so if that's a requirement, then it's probably not the machine for you. The inbuilt wireless works well - I'm using the madwifi driver, which I've found fedora packages for in the past (though I'm running Mandrake Cooker on it). The bluetooth worked without me doing anything at all. I bought mine for the low, low price of $1795, which I thought was pretty good. HTH, James. -- James Gregory <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part -- 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] Laptops and Linux
My preference currently for robustness, speed and great keyboard. IBM Thinkpads. I use the SFF myself 12" screen but others like 15" w. the works. I set mine to dual boot which for visits to companies stuck on Windows is handy. I've heard/seen lots of great things about Apple iBooks and Powerbooks as well. If you don't have any legacy apps from windows days, these are probably my next favourite. HTH Stu On Thu, 2004-08-12 at 12:59, Dennis M. Gray wrote: > I am going to be purchasing a new laptop soon and would like some > recommendations about brands and models that work well with Linux (Fedora > Core specifically). > > Regards > > > -- > Dennis M. Gray > Far East Information Resources Pty. Ltd. > 91 Queen Street > BEACONSFIELD NSW 2015 > AUSTRALIA > Sydney Phone: (02) 9310 7907 > Sydney Fax: (02) 9310 7917 > Mobile: (0418) 646267 > Canberra Phone: (02) 6258 7917 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Laptops and Linux
I am going to be purchasing a new laptop soon and would like some recommendations about brands and models that work well with Linux (Fedora Core specifically). Regards -- Dennis M. Gray Far East Information Resources Pty. Ltd. 91 Queen Street BEACONSFIELD NSW 2015 AUSTRALIA Sydney Phone: (02) 9310 7907 Sydney Fax: (02) 9310 7917 Mobile: (0418) 646267 Canberra Phone: (02) 6258 7917 -- 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] e2label
I thought that 'disk label' is written on the partition disk as part of the 'Boot Block'. Disk label, of course, is optional. As you may know 'disk partition' has three (3) parts, namely: 1. Boot Block 2. Inode-List or 'Data Structure' Block 3. Data storage Block. Luke (Terry) Vanderfluit wrote: Hi, Adding a new hard drive to an existing system... OK! Adding an entry to /etc/fstab in the form of: /dev/hdb /mnt/storage foo bar etc and so on then using e2label to be able to use a LABEL to refer to a hdd. LABEL=/storage /storage ext3defaults1 2 Somewhere some files must get modified by the 'e2label' command, can anyone tell me which files? What exactly happens when I use e2label? thanks, kind regards, Luke -- 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] e2label
I thought it wrote something on the physical disk label blocks (not a file as such) for the disk controller to read. Cheers, Jill. -Original Message- From: Luke (Terry) Vanderfluit [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 August 2004 11:26 AM To: [EMAIL PROTECTED] Subject: [SLUG] e2label Hi, Adding a new hard drive to an existing system... OK! Adding an entry to /etc/fstab in the form of: /dev/hdb /mnt/storage foo bar etc and so on then using e2label to be able to use a LABEL to refer to a hdd. LABEL=/storage /storage ext3defaults1 2 Somewhere some files must get modified by the 'e2label' command, can anyone tell me which files? What exactly happens when I use e2label? thanks, kind regards, Luke -- Luke (Terry) Vanderfluit Mobile: 0421 276 282 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- IMPORTANT NOTICES This email (including any documents referred to in, or attached, to this email) may contain information that is personal, confidential or the subject of copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties. This email is intended only for the named addressee. Any privacy, confidence, copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties, is not lost because this email was sent to you by mistake. If you received this email by mistake you should: (i) not copy, disclose, distribute or otherwise use it, or its contents, without the consent of Aristocrat or the owner of the relevant rights; (ii) let us know of the mistake by reply email or by telephone (+61 2 9413 6300); and (iii) delete it from your system and destroy all copies. Any personal information contained in this email must be handled in accordance with applicable privacy laws. Electronic and internet communications can be interfered with or affected by viruses and other defects. As a result, such communications may not be successfully received or, if received, may cause interference with the integrity of receiving, processing or related systems (including hardware, software and data or information on, or using, that hardware or software). Aristocrat gives no assurances in relation to these matters. If you have any doubts about the veracity or integrity of any electronic communication we appear to have sent you, please call +61 2 9413 6300 for clarification. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] e2label
Hi, Adding a new hard drive to an existing system... OK! Adding an entry to /etc/fstab in the form of: /dev/hdb /mnt/storage foo bar etc and so on then using e2label to be able to use a LABEL to refer to a hdd. LABEL=/storage /storage ext3defaults1 2 Somewhere some files must get modified by the 'e2label' command, can anyone tell me which files? What exactly happens when I use e2label? thanks, kind regards, Luke -- Luke (Terry) Vanderfluit Mobile: 0421 276 282 -- 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] OT. raid failure 36Gb in place of 9Gb?
On Thu, 2004-08-12 at 07:26, Ben Donohue wrote: > Hi Slugs, > Sorry for the OT post. > I've a raid 5 array with four 9.1GB disks. Can't find a 9GB disk to > replace it but have a 36Gb disk handy. > It's the same SCSI type and pins. Would putting a 36gb in a 9GB RAID > array work as in the RAID uses this disk and rebuilds even if only 9GB > of it. > It's only a temp solution and a new server is coming to replace it > anyway. just has to last a couple of weeks. Yes it will work, and as you describe you only get 9GB. You will take a performance hit if the news disk's rotational speed (the "RPM") is less than that of the other units in the raidset. You might take a hit from other minor differences too (which is why the disks in a raidset are usually exactly the same). -- Glen Turner Tel: (08) 8303 3936 or +61 8 8303 3936 Australian Academic & Research Network www.aarnet.edu.au -- 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] OT. raid failure 36Gb in place of 9Gb?
I think you would have trouble rebuilding that raid, I have never gone down the path of trying to rebuild a harddrive with different size disks. Hi Slugs, Sorry for the OT post. I've a raid 5 array with four 9.1GB disks. Can't find a 9GB disk to replace it but have a 36Gb disk handy. It's the same SCSI type and pins. Would putting a 36gb in a 9GB RAID array work as in the RAID uses this disk and rebuilds even if only 9GB of it. It's only a temp solution and a new server is coming to replace it anyway. just has to last a couple of weeks. Ben -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] OT. raid failure 36Gb in place of 9Gb?
Hi Slugs, Sorry for the OT post. I've a raid 5 array with four 9.1GB disks. Can't find a 9GB disk to replace it but have a 36Gb disk handy. It's the same SCSI type and pins. Would putting a 36gb in a 9GB RAID array work as in the RAID uses this disk and rebuilds even if only 9GB of it. It's only a temp solution and a new server is coming to replace it anyway. just has to last a couple of weeks. Ben -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] troubleshooting ftp
I have RH with ProFTPD, I need to trouble shoot some missing files/directories (IOW, the user deleted his web sub directory, and, claims, 'why are my files missing ?') apart from /var/log/xfer and mssg, does ftp log anywhere else ? is there an easy way to grep for 'delete' or 'rmdir' in xfer log ? -- Voytek -- 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] lowercasing file names, directory names, how ?
On Wed, 2004-08-11 at 20:15, [EMAIL PROTECTED] wrote: > >>"find You have to make sure you move the directory AFTER you move file files within it... the -depth option. You also have to ensure that you only apply the tr command to the LAST filename component, not the whole path. All this, AND coping with spaces in filenames, is a pain in a shell script. Try perl. Or do what I did, and write just a few lines of C... hint: ftw(3). Sorry, I tossed it, it was so small. -- Peter Miller <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part -- 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] lowercasing file names, directory names, how ?
Alexander Samad wrote: sorry missed the -printf, the point I was trying to get to was the quoting to get around the white spaces OK, got that. The '"' as you put in your suggestion would be "eaten" already by the shell from which this find is executed. You'd have to pass them through to the shell which is executed by find itself. That's what my correction tries to do. find ... -exec mv '"{}"' '"$(changecase \'\"{}\"\')"' \; and I suspect even these quoting of quotation marks might not work still. Cheers, --Amos --Amos -- 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] lowercasing file names, directory names, how ?
On Wed, Aug 11, 2004 at 01:15:22PM +0300, [EMAIL PROTECTED] wrote: > Alexander Samad wrote: > > >On Wed, Aug 11, 2004 at 08:49:23AM +0300, [EMAIL PROTECTED] wrote: > > > > > >>Looks like you covered it well, except for white space in files. > >> > >>Just one more thing to consider is that file names might > >>be in non-ascii character set(?). > >>So use "tr [:upper:] [:lower:]" to cover this option. > >> > >>You can probably get the same effect as the use of "tac" > >>with find's "-depth" switch. > >> > >>I'd put your script in a file and run it with > >>"find ... -print0 | xargs -0 your-move-script" > >> > >> > > > >couldn't you do find ... -print0 -exec mv "{}" "$(changecase "{}")" \; > > > > > This doesn't make sense - the "-print0" would just output file names > with \0 between them > to the standard output and the "-exec" will pass the shell command line > arguments of "mv" > without the quotes (and therefore mv will get each white-space separated > part of the file name > as a file name by itself). At the least, drop the "-print0" and try to > pass the double-quotes > through find into the shell command line, like: sorry missed the -printf, the point I was trying to get to was the quoting to get around the white spaces > > find ... -exec mv '"{}"' '"$(changecase \'\"{}\"\')"' \; > > and I suspect even these quoting of quotation marks might not work still. > > Cheers, > > --Amos > > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > signature.asc Description: Digital signature -- 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] lowercasing file names, directory names, how ?
Alexander Samad wrote: On Wed, Aug 11, 2004 at 08:49:23AM +0300, [EMAIL PROTECTED] wrote: Looks like you covered it well, except for white space in files. Just one more thing to consider is that file names might be in non-ascii character set(?). So use "tr [:upper:] [:lower:]" to cover this option. You can probably get the same effect as the use of "tac" with find's "-depth" switch. I'd put your script in a file and run it with "find ... -print0 | xargs -0 your-move-script" couldn't you do find ... -print0 -exec mv "{}" "$(changecase "{}")" \; This doesn't make sense - the "-print0" would just output file names with \0 between them to the standard output and the "-exec" will pass the shell command line arguments of "mv" without the quotes (and therefore mv will get each white-space separated part of the file name as a file name by itself). At the least, drop the "-print0" and try to pass the double-quotes through find into the shell command line, like: find ... -exec mv '"{}"' '"$(changecase \'\"{}\"\')"' \; and I suspect even these quoting of quotation marks might not work still. Cheers, --Amos -- 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] lowercasing file names, directory names, how ?
On Wed, Aug 11, 2004 at 08:49:23AM +0300, [EMAIL PROTECTED] wrote: > Looks like you covered it well, except for white space in files. > > Just one more thing to consider is that file names might > be in non-ascii character set(?). > So use "tr [:upper:] [:lower:]" to cover this option. > > You can probably get the same effect as the use of "tac" > with find's "-depth" switch. > > I'd put your script in a file and run it with > "find ... -print0 | xargs -0 your-move-script" couldn't you do find ... -print0 -exec mv "{}" "$(changecase "{}")" \; > that way you cover for white space in file names and such. > (or, if I read sh(1) right then you can read output of > "-print0" with "read -d\\0") > > Cheers, > > --Amos > > Simon Bowden wrote: > >On Wed, 11 Aug 2004, Simon Bowden wrote: > > > >>Possibly only lowercase relative links: > >>if [ -L "$file" -a "${file:0:1}" != "/" ]; then > >> ... > > > > > >Oops, I'm going to be pedantic. This should be: > >mv "$file" "$newname" > >if [ -L "$file" ]; then > >target=$(ls -l "$file" | sed 's/^.* -> //' > >if [ "${target:0:1}" != "/" ]; then > >newtarget=$(echo "$target" | tr A-Z a-z) > >ln -sf "$newtarget" "$newname" > >fi > >fi > > > >Since $file is the symlink name, not the target name. > > > >Extra pedant - I also realised we should use a raw read: > >find ... | while read -r file ; do ... > > > >since then the filenames with backslash escapes in them (which probably > >wouldn't be there, but still...). > > > >Errr, k, nuff now :) Fun with shell. > > > >Cheers, > > > > - Simon > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > signature.asc Description: Digital signature -- 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] Doors and sockets
Rowling, Jill wrote: I note that the current Solaris implementation has status "evolving" so it seems to be a newish thing anyway. It was there in 1999 already. I wonder how would a good implementation affect performance of X11 or GNOME's/KDE's Corba-based communications... --Amos -- 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] Running Gnome in Xnest
On Wed, 11 Aug 2004 09:03:11 +1000 Jan Schmidt <[EMAIL PROTECTED]> wrote: > Which sounds like Nautilus isn't running - it is responsible for drawing the > icons on the desktop and providing the root window popup menu. Well done Thaytan. That was indeed the problem. Cheers, Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ "Some people don't want genitalia shoved down their throats." -- Rex Mossop, Australian football commentator and morals crusader -- 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] Doors and sockets
On Wed, 11 Aug 2004 06:52:35 +0100 (IST) Dave Airlie <[EMAIL PROTECTED]> wrote: > > > > Anyone know if doorfs has been ported to Linux? Or, for that matter, why > > are doors supposed to be more efficient than sockets? > > never used it but http://www.rampant.org/doors/ > > Also I'm not sure on Linux doors would be more efficient than local UNIX > sockets, Solaris might have its own reasons but they probably don't apply > to Linux.. Yep, Solaris sockets (at least pre-Solaris 10 [0]) used streams which had a detrimental affect on socket throughput. Doors might be a way of avoiding that. Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ "No Silicon Heaven? Preposterous! Where would all the calculators go?" -- Kryten, Red Dwarf -- 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] Doors and sockets
On Wed, 11 Aug 2004 15:39:29 +1000 Gavin Carr <[EMAIL PROTECTED]> wrote: > On Wed, Aug 11, 2004 at 03:23:49PM +1000, Rowling, Jill wrote: > > Anyone know if doorfs has been ported to Linux? > > Expermental version: http://www.rampant.org/doors/ > > > Or, for that matter, why are doors supposed to be more efficient than > > sockets? > > Doors are local only, aren't they? As are PF_UNIX domain sockets (as opposed to PF_INET/PF_INET6 domain). Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ "These are the finest moments in (post)modern life, when satire is completly indistinguishable from reality... I usually have to rely on the presidential elections for such dada." -- frenomulax on Jesux a christian Linux distro. -- 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] Doors and sockets
This link has some interesting diagrams -- seems to be a student exercise in implementing doorfs or doors on Linux or whatever OS the student is running. http://www.math.luc.edu/~ppetrov/CourseWork/CS410_AdvancedOS/Fall_2000/WWW/l ecture8/examples/doors.htm The reason why I was interested is just out of curiosity; the oldish version of Veritas Netbackup I'm running (on Solaris) is a bit chatty about doors and I wondered why there was nothing about it on the Linux box here. I note that the current Solaris implementation has status "evolving" so it seems to be a newish thing anyway. Cheers, Jill. -- Jill Rowling, System Administrator Eng. Systems Dept, Aristocrat Technologies Australia Level 2, 55 Mentmore Ave Rosebery NSW 2018 Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: [EMAIL PROTECTED] -- -- IMPORTANT NOTICES This email (including any documents referred to in, or attached, to this email) may contain information that is personal, confidential or the subject of copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties. This email is intended only for the named addressee. Any privacy, confidence, copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties, is not lost because this email was sent to you by mistake. If you received this email by mistake you should: (i) not copy, disclose, distribute or otherwise use it, or its contents, without the consent of Aristocrat or the owner of the relevant rights; (ii) let us know of the mistake by reply email or by telephone (+61 2 9413 6300); and (iii) delete it from your system and destroy all copies. Any personal information contained in this email must be handled in accordance with applicable privacy laws. Electronic and internet communications can be interfered with or affected by viruses and other defects. As a result, such communications may not be successfully received or, if received, may cause interference with the integrity of receiving, processing or related systems (including hardware, software and data or information on, or using, that hardware or software). Aristocrat gives no assurances in relation to these matters. If you have any doubts about the veracity or integrity of any electronic communication we appear to have sent you, please call +61 2 9413 6300 for clarification. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html