Re: [SLUG] removing duplicate files
Kevin Shackleton wrote: I have a directory tree with a lot of duplicate leaves. The command rm -r junkfile does not work, saying: cannot lstat 'junkfile' I even seeded the root of this tree with one of these files but still the rm command did not recurse. I know the command rm -rf * would get rid of these files with colateral damage. What am I missing please? man rm This will tell you that the -r flag is for recursively removing directories, not files: -r, -R, --recursive remove directories and their contents recursively Might I suggest using find + rm , ie. find . -name junkfile -exec rm {} \; cheers rickw p.s. I know what you mean by the vague concept of seeding. For many of the GNU shell utilities it would be nice to be able to specify that -r is to work recursively on the file/pattern specified as the argument(s), i.e. ls -R somefile currently will not list somefile unless it is a directory. I guess that what find is for :) -- _ Rick Welykochy || Praxis Services Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we. -- George W Bush, Washington DC, 20040805 (http://www.dubyaspeak.com/) -- 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] removing duplicate files
On 04/07/07, Rick Welykochy [EMAIL PROTECTED] wrote: p.s. I know what you mean by the vague concept of seeding. For many of the GNU shell utilities it would be nice to be able to specify that -r is to work recursively on the file/pattern specified as the argument(s), i.e. ls -R somefile currently will not list somefile unless it is a directory. $ ls --version ls (GNU coreutils) 5.97 ... $ ls -lR x -rw-r--r-- 1 user group 177 2007-06-29 15:52 x x is a regular file and ls lists it. What version of ls(1) are you using? 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] removing duplicate files
Amos Shapira wrote: On 04/07/07, Rick Welykochy [EMAIL PROTECTED] wrote: ls -R somefile currently will not list somefile unless it is a directory. $ ls --version ls (GNU coreutils) 5.97 ... $ ls -lR x -rw-r--r-- 1 user group 177 2007-06-29 15:52 x x is a regular file and ls lists it. What version of ls(1) are you using? Mea culpa. ls -R somefile will not list somefile in subdirectories, i.e. $ ls -lR somefile -rw-r--r-- 1 rick rick 0 2007-07-04 20:04 somefile $ find . -name somefile ./tmp/somefile ./somefile cheers rickw -- _ Rick Welykochy || Praxis Services Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we. -- George W Bush, Washington DC, 20040805 (http://www.dubyaspeak.com/) -- 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] removing duplicate files
On 04/07/07, Rick Welykochy [EMAIL PROTECTED] wrote: Amos Shapira wrote: On 04/07/07, Rick Welykochy [EMAIL PROTECTED] wrote: ls -R somefile currently will not list somefile unless it is a directory. $ ls --version ls (GNU coreutils) 5.97 ... $ ls -lR x -rw-r--r-- 1 user group 177 2007-06-29 15:52 x x is a regular file and ls lists it. What version of ls(1) are you using? Mea culpa. ls -R somefile will not list somefile in subdirectories, i.e. $ ls -lR somefile -rw-r--r-- 1 rick rick 0 2007-07-04 20:04 somefile $ find . -name somefile ./tmp/somefile ./somefile pedant In that circumstance, there's a way to do it with just ls: spindle:~/tmp polleyj$ ls -lR */somefile somefile -rw-r--r-- 1 polleyj polleyj 0 Jul 4 21:20 hello/somefile -rw-r--r-- 1 polleyj polleyj 0 Jul 4 21:20 somefile it doesn't scale though; for the general case, find is more useful, as you've said. /pedant Regarding the original question, I second your suggestion: find . -name junkfile -exec rm {} \; However, I offer the caveat that it will file if there are special characters (particularly ) in the filename. As a more robust (but more heavyweight, more forking, more cycles, more ram (but - the amounts we're talking about are trivial, except in extreme cases - just something to be aware of for the odd times when this fails because you hit one of the extreme cases)): find . -name junkfile -print0 | xargs -0 rm -- There is nothing more worthy of contempt than a man who quotes himself - Zhasper, 2004 -- 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] removing duplicate files
G'day... pedant In that circumstance, there's a way to do it with just ls: spindle:~/tmp polleyj$ ls -lR */somefile somefile -rw-r--r-- 1 polleyj polleyj 0 Jul 4 21:20 hello/somefile -rw-r--r-- 1 polleyj polleyj 0 Jul 4 21:20 somefile it doesn't scale though; for the general case, find is more useful, as you've said. /pedant Whilst we're being pedantic... $ find . -type d -name somefile Yes, you're right find is very useful... ;) All the best! Raphael -- 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] removing duplicate files
To explain more about my remove duplicate file problem . . # rm -rv somefile returns: rm: cannot lstat `somefile': No such file or directory The problem is in lstat, not rm. The problem is that it's not recursing the directories. Neither will Gnome File Browser search these directories. The problem I suspect is that over time having copied this set of directories several times through different file systems, including as a share from a Windows VMWare session, the property bits of the directory entries have been made incorrect. They are executable, as per Matthew Hannigan's post on Monday. I can cd through the directories and they appear to be correct in every other way except recursing through them. (they are mp3 data and just to be different xmms does recurse when asked to load a directory that has subdirectories) Any thoughts? And a command to fix the several hundred directories too please! Thanks, Kevin. -- 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: ISP Rebranding/ Wholesaleing question (Zenaan Harkness)
Hi Zenaan, I'm not sure that SLUG is the best forum for your question. SLUG tends to be a technically-focused list on Linux (and occasionally other Unix) issues. Have you tried asking around on the Whirlpool site, or doing a Google search on Whirlpool for reseller or similar. This is probably your best bet. Now there used to be an OZ ISP list but I believe this may now be defunct. To begin your research, you could try to get in touch with a few major ISPs/telcos (companies like Internode / Agile, People Telecom, etc spring to mind - but please don't take this as a recommendation) and discuss their partner programmes with them. You probably need to ask yourself whether you plan to set up a full ISP operation (costly and technically complex) or whether you simply plan to act as a reseller for an existing ISP (shorter time-to-market, less capital intensive, etc). All the best. Hope this helps. David Hi, I'm looking for some information on starting an ISP: 1) ISP Upstreams who provide rebranding (must include ADSL). 2) Info on ISP backoffice software as well (radius server, etc). I found eg. http://www.anime.net/linuxisp/Linux-ISP-HOWTO.html but it's from 1995! Did give me a good start to reading though... I've been doing a lot of reading on software required - dns, email, control panel, etc. Happy for recommendations. 3) Is there a forum - physical gathering slug-like forum - for small to medium ISPs, in Sydney? 4) Recommended online community for small/med ISPs? PS: I spoke to someone last Friday night, I think John - I discovered Sat night that my mailbox was full, unfortunate events... it's emptied, although Godaddy's IP addresses are right now RTBLed (couldn't post this email to slug), so hopefully gmail might work... Thanks in advance Zen -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Sound in Ubuntu
Hi, How do I tell Ubuntu to ignore the built in via sound card and use my Sound Blaster Live sound card. I can tell some programs to use it but flash and some others ignore it. Is there a way to tell ubuntu (7.0.4 btw) to completely ignore the via sound system? Heracles -- 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] removing duplicate files
On 04/07/07, Kevin Shackleton [EMAIL PROTECTED] wrote: To explain more about my remove duplicate file problem . . # rm -rv somefile returns: rm: cannot lstat `somefile': No such file or directory Is somefile the exact file name (e.g. full path name or full path between current working dir and the file?). If not then it indeed won't lookup the file in the directories underneath and you need to use find. If the file is in your current working directory and just typing rm somefile doesn't find it then I suspect the name you type is not the right one - maybe there are control characters or unicode characters in the file name? See man ls for ways to ask ls to display special characters like -b, -N, or -q. If you go the -N way then pipe the output through cat -v -t -e. The problem is in lstat, not rm. The problem is that it's not recursing the directories. It's not a problem - that's the way it's supposed to happen. See man rm. Neither will Gnome File Browser search these directories. The problem I suspect is that over time having copied this set of directories several times through different file systems, including as a share from a Windows VMWare session, the property bits of the directory entries have been made incorrect. They are executable, as per Matthew Hannigan's post on Monday. I can cd through the directories and they appear to be correct in every other way except recursing through them. How do you define recursing through them? (they are mp3 data and just to be different xmms does recurse when asked to load a directory that has subdirectories) So it can't be a permissions problem - all processes of the same user are equal in the eyes of the filesystem. Any thoughts? And a command to fix the several hundred directories too please! First let's decide what exactly is the problem before trying to hit it randomly until it breaks, shall we? Thanks, 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] Sound in Ubuntu
On Wed, 2007-07-04 at 23:21 +1000, Heracles wrote: Hi, How do I tell Ubuntu to ignore the built in via sound card and use my Sound Blaster Live sound card. I can tell some programs to use it but flash and some others ignore it. Is there a way to tell ubuntu (7.0.4 btw) to completely ignore the via sound system? Heracles I pretty much never mess with sound, so im not exactly an expert, but at a guess I would suggest running alsaconf and selecting the device you want to use. I use Debian and only use one sound card, so I may be off the mark, but it seems logical. Tuxta -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] PC cases (Towers) available - FREE :)
Hi all, I know this is not *specifically* Linux-stuff but... Following some cleaning out, I have about five PC cases - some with p/s - that I'm looking to off-load, urm... I mean, Happy to give to those in need :)) I'm in Belmore, work in Ashfield and have rels in Campbelltown. If you don't have a car but live VERY local (eg. Belmore and immediate surrounds or on the way to Ashfield), I'd be willing drop off. Regards, Patrick -- Registered Linux User 368634 -- 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] Sound in Ubuntu
Heracles wrote: Hi, How do I tell Ubuntu to ignore the built in via sound card and use my Sound Blaster Live sound card. I can tell some programs to use it but flash and some others ignore it. Is there a way to tell ubuntu (7.0.4 btw) to completely ignore the via sound system? First, run in a terminal: sudo asoundconf list which will give you a list of the names of the cards then: sudo asoundconf set-default-card name-of-card You will have to restart any sound apps running already before they use the new card. If you need to switch between cards often, apt-get install asoundconf-gtk will add a Default sound card option to your system - preferences menu Or you could just turn it off in the BIOS if you never use it. -- Felix -- 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] Re: ISP Rebranding/ Wholesaleing question (Zenaan Harkness)
The Internet Industry Association and ISOC-AU may be useful groups to check out. http://www.iia.net.au http://www.isoc-au.org.au And it wouldn't hurt to check out http://www.tio.com.au/ If you are looking to provide hosted applications, you may be best working with an existing ISP. Marghanita David Peterson wrote: Hi Zenaan, I'm not sure that SLUG is the best forum for your question. SLUG tends to be a technically-focused list on Linux (and occasionally other Unix) issues. Have you tried asking around on the Whirlpool site, or doing a Google search on Whirlpool for reseller or similar. This is probably your best bet. Now there used to be an OZ ISP list but I believe this may now be defunct. To begin your research, you could try to get in touch with a few major ISPs/telcos (companies like Internode / Agile, People Telecom, etc spring to mind - but please don't take this as a recommendation) and discuss their partner programmes with them. You probably need to ask yourself whether you plan to set up a full ISP operation (costly and technically complex) or whether you simply plan to act as a reseller for an existing ISP (shorter time-to-market, less capital intensive, etc). All the best. Hope this helps. David Hi, I'm looking for some information on starting an ISP: 1) ISP Upstreams who provide rebranding (must include ADSL). 2) Info on ISP backoffice software as well (radius server, etc). I found eg. http://www.anime.net/linuxisp/Linux-ISP-HOWTO.html but it's from 1995! Did give me a good start to reading though... I've been doing a lot of reading on software required - dns, email, control panel, etc. Happy for recommendations. 3) Is there a forum - physical gathering slug-like forum - for small to medium ISPs, in Sydney? 4) Recommended online community for small/med ISPs? PS: I spoke to someone last Friday night, I think John - I discovered Sat night that my mailbox was full, unfortunate events... it's emptied, although Godaddy's IP addresses are right now RTBLed (couldn't post this email to slug), so hopefully gmail might work... Thanks in advance Zen -- Marghanita da Cruz http://www.ramin.com.au Phone: 0414 869202 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Printer problem
Hi, I accidently (!) removed my working printer from the printer dialog on Debian Etch with Gnome. I'm trying to re-establish it. I'm getting the following messages in syslog: Jul 5 09:35:08 windy python: [4215] error: Unable to set locale. Jul 5 09:35:08 windy kernel: ppdev0: registered pardevice Jul 5 09:35:08 windy kernel: ppdev0: negotiated back to compatibility mode because user-space forgot Jul 5 09:35:08 windy kernel: ppdev0: unregistered pardevice Can anybody give me a clue as to what I should do? Many thanks, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: +61 2 4782 2670Mobile: +61 427 486 206 Fax: +61 2 4782 7092FWD: 615662 -- 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] ISP Rebranding/ Wholesaleing question
Zenaan Harkness wrote: Hi, I'm looking for some information on starting an ISP: So, looking for info to start an ISP ? There is no single public document that I know that tells the ABC of how to start and run an successful ISP. But I can say the general guidelines that one considers to run one, having started one in 1993 and sold out in 2001 to a public company for a retirement. 1. The technical aspect of starting and running an ISP is only a small part of it. 2. One needs a Business Plan to start with. Ninety-nine percent of failure in business ventures starts with NO Business Plan. A Business Plan is like a Bible to religious persons; you read it every day and implement it yourself; only you write and re-write it yourself. 3. You also need Organization, Finance, Marketing, Support structures, Project Management abilities, and lots of learning and re-learning in all of these aspects of business. I recommend you read a book called Think and Grow Rich by Nathan Hale. 4. ISP business is like other businesses; they evolve with business focus and with the markets. You have to anticipate, implement, and re-engineer when called for. Hope this helps. O Plameras Disclaimer: Do not take my word for it. You have to make your own research and on that basis make your own business decisions. 1) ISP Upstreams who provide rebranding (must include ADSL). 2) Info on ISP backoffice software as well (radius server, etc). I found eg. http://www.anime.net/linuxisp/Linux-ISP-HOWTO.html but it's from 1995! Did give me a good start to reading though... I've been doing a lot of reading on software required - dns, email, control panel, etc. Happy for recommendations. 3) Is there a forum - physical gathering slug-like forum - for small to medium ISPs, in Sydney? 4) Recommended online community for small/med ISPs? PS: I spoke to someone last Friday night, I think John - I discovered Sat night that my mailbox was full, unfortunate events... it's emptied, although Godaddy's IP addresses are right now RTBLed (couldn't post this email to slug), so hopefully gmail might work... Thanks in advance Zen -- http://www.asx.com.au/asx/floats/UpcomingFloatDetail.jsp?asxcode=TPC -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] PHP/Sugar programmer needed to finish custom CRM program in Glebe
Hi! A friend of mine from a training company (they deliver OHS training) is looking for a PHP/Sugar programmer to pick up a half-finished CRM program and finish the little beastie and get it usable. If you know anybody who might be interested, please pass this along to them. Contact: Derek at Courtnelle, phone (02) 9552-2380 -- 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] ISP Rebranding/ Wholesaleing question
O Plameras wrote: 3. You also need Organization, Finance, Marketing, Support structures, Project Management abilities, and lots of learning and re-learning in all of these aspects of business. I recommend you read a book called Think and Grow Rich by Nathan Hale. This should be by Napoleon Hill. My apologies. O Plameras http://www.asx.com.au/asx/floats/UpcomingFloatDetail.jsp?asxcode=TPC -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Printers again
Never mind. It's working. I don't know why!! -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: +61 2 4782 2670Mobile: +61 427 486 206 Fax: +61 2 4782 7092FWD: 615662 -- 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] ISP Rebranding/ Wholesaleing question
- Original Message - From: Zenaan Harkness [EMAIL PROTECTED] To: SLUG slug@slug.org.au Sent: Wednesday, July 04, 2007 3:09 PM Subject: [SLUG] ISP Rebranding/ Wholesaleing question Hi, I'm looking for some information on starting an ISP: 1) ISP Upstreams who provide rebranding (must include ADSL). 2) Info on ISP backoffice software as well (radius server, etc). I found eg. http://www.anime.net/linuxisp/Linux-ISP-HOWTO.html but it's from 1995! Did give me a good start to reading though... I've been doing a lot of reading on software required - dns, email, control panel, etc. Happy for recommendations. 3) Is there a forum - physical gathering slug-like forum - for small to medium ISPs, in Sydney? 4) Recommended online community for small/med ISPs? PS: I spoke to someone last Friday night, I think John - I discovered Sat night that my mailbox was full, unfortunate events... it's emptied, although Godaddy's IP addresses are right now RTBLed (couldn't post this email to slug), so hopefully gmail might work... Thanks in advance Zen Zennaan, The usual process in building a DSL ISP in oz is as follows: 1) Contact Telstra Wholesale and request a Layer 2 wholesale DSL service. 2) Organise AGVC links (ATM or GE) to Telstra IGR's in each state where you would like to sell services 3) These links will terminate at your premises in each state, you need to supply LNS's (these terminate PPP over L2TP from your customers) 4) Organise RADIUS (Free RADIUS) for your LNS's to talk to, this becomes your authentication and accounting platform (RADIUS will need to feed accounting records into your billing system 5) Organise DNS (BIND is fine) 6) Organise Internet transit (Telstra, Optus, etc) 7) Provide a mail platform (I don't think thats a must have these days) 8) Build a customer care portal so your customers can check their usage, change plans, etc. The hardest bit is the billing system (IMHO) Cheers, Barrie -- 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] ISP Rebranding/ Wholesaleing question
This one time, at band camp, Barrie Hall wrote: 1) Contact Telstra Wholesale and request a Layer 2 wholesale DSL service. Or, potentially, another provider with their own DSLAM network. This would, however, limit your coverage area substantially. But that might be worth doing depending on the niche you're targetting. -- Rev Simon Rumble [EMAIL PROTECTED] www.rumble.net The Tourist Engineer Because nerds travel too. http://engineer.openguides.org/ Grub first, then ethics. - Bertolt Brecht -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html