Slashdot Mirror


Undelete In Linux

Manuel Arriaga writes "[To the editors: I am not a professional programmer, nor will I ever be one. My income does not depend on my computing/programming skills, and hopefully it never will. So promoting free software I wrote does not help me in any financial way, no matter how indirect. libtrash is free software (GPL2), and I distribute it for free from my website. I have nothing to gain from the increased exposure, except for knowing that I am helping others. And I know slashdot isn't freshmeat... With that out of the way:] I have seen this topic discussed in the LKML multiple times by now, and many more people asking in the newsgroups why "I can't recover my deleted file on GNU/Linux". Here is my answer to that question. libtrash gives Linux a real "trash can". And it has been doing so (with varying degrees of stability) for more than one year now. If you consider it appropriate, make this information public on slashdot."

565 comments

  1. Wake-up call by yatest5 · · Score: 1, Flamebait

    slashdot isn't freshmeat

    Yes. So let's not have software posted on the front page, eh?

    --
    • Mod parent up! [a] by Anonymous Coward (Score:5) Thurs, June 31, @13:37
    1. Re:Wake-up call by quakeroatz · · Score: 1

      Stop giving Canadians a bad name, eh?

      As if this was the first time a good Slashdot story was based on a software release. Undelete on ext2 is an important topic.

    2. Re:Wake-up call by yatest5 · · Score: 1

      canadians?

      --
      • Mod parent up! [a] by Anonymous Coward (Score:5) Thurs, June 31, @13:37
    3. Re:Wake-up call by quakeroatz · · Score: 1

      Yes. So let's not have software posted on the front page, eh?

      I thought "eh?" was a Canadian thing. Apparently it's just another thing we've let slip across the border.

      Ooops!

    4. Re:Wake-up call by Anonymous Coward · · Score: 0
      I thought "eh?" was a Canadian thing.

      No, just another thing you guys like to take credit for thinking up, even though you didn't. You know, like hockey.

    5. Re:Wake-up call by Anonymous Coward · · Score: 0

      >You know, like hockey.

      Unlike Basketball...

    6. Re:Wake-up call by IMarvinTPA · · Score: 1

      I must have missed that class where they taught me about the "you need this file" attribute.

      IMarv

    7. Re:Wake-up call by quakeroatz · · Score: 2, Interesting

      No, just another thing you guys like to take credit for thinking up, even though you didn't. You know, like hockey.

      Ahhh! I see you're just looking for a ol' Canada vs. US flamewar.

      A few notes:
      - I've never heard a Canadian say we invented Hockey, we didn't. But we do whip your ass handily at it! I can also gaurantee that your local NHL hockey team is infested with Canucks.
      - Basketball yes we invented that and reigned during the early years of pro ball (yes, a long, long time ago). But! the Raptors are looking excellent this year, and we aren't missing our 4 top guys this time (cough).

    8. Re:Wake-up call by Anonymous Coward · · Score: 0

      Thanks for clearing that up. We all feel so enlightened now Oh Great One.

    9. Re:Wake-up call by TheLlamaKnows · · Score: 1

      Your $%^&*(# brilliant, for years people have been trying to figure out how to solve this problem and you came up with the answer. Can I worship you o great one.

      You should get a job in customer support for Microsoft or some other software developer. I can see it now; Holy shit lady you want a program to type out letters! What the ^&%& is wrong with you, I have been using a pen and paper for years and it works great what more do you want?

    10. Re:Wake-up call by schon · · Score: 2

      How about STOP deleting sh!t you don't want to delete?

      OK, what about software that deletes stuff you wanted?

      I downloaded an MS update once, and it asked where to store it, so I put it on a directory on my server (running Linux), where I put all of my downloaded files.

      So as soon as it downloads, it runs, and after installing (I got no warning that it would do any of this) presents the dialog box "Would you like to delete temporary files used during the install process" - so (naturally) I say YES (since it put the damn files in the folder, and it should know which files it created.) It then proceeds to delete the entire damn folder, including all of my other files, which it DIDN'T install, and which I wanted to keep.

    11. Re:Wake-up call by Anonymous Coward · · Score: 0

      Dumbass.

    12. Re:Wake-up call by CheeseCow · · Score: 1

      Yes, what a great idea. Show me the person who NEVER MADE ONE GOD DAMN MISTAKE. We all make mistakes. If I finally get an option to recover files I deleted but shouldn't have, then I'd be glad. And if you had read the howto write god programs howto, you would have seen that any good programmer would allow the user to make mistakes, or tell them that an action is irreversible. I prefer i trash can to a message for every file.

    13. Re:Wake-up call by phorm · · Score: 2

      Hockey: It's a Canadian game. Not, it's a game Canada made, but a game Canadians love and tend to center their lives around

      Basketball: Did we really invent this? I remember something about lacrosse being originally a Native sport from Canada, never realized we invented basketball too.

      Wonder if anyone would be successful on a topic of factual "who invented what" for popular recreation and technology. Last time I heard Americans were trying to steal credit from us for the Telephone/telegraph (Mr. Bell is the man for this, sorry guys)

    14. Re:Wake-up call by critter_hunter · · Score: 1

      The telephone was invented by Antonnio Meucci, an Italian, no matter what that dumb bitch Sheila Copps says. The telegraph is another thing altogether and predates Alexander Graham Bell by a long run.

      --
      Karma: Could be worse (could be raining)
  2. See also... by PDHoss · · Score: 3, Informative
    --
    ======================================
    Writers get in shape by pumping irony.
  3. It's GNU/Trash by Anonymous Coward · · Score: 0

    Get it right...

    1. Re:It's GNU/Trash by Anonymous Coward · · Score: 0

      (Score: -1, Redundant)

  4. RE: I thought it was pretty neat by Daniel+Joannidi · · Score: 1

    I thought the idea of a linux trash can was pretty neat.

    lighten up, eh?

  5. This sounds like the solution ... by ajvtoo · · Score: 0, Redundant

    ... to this: askslashdot.

  6. Recycle Bins - don't you just hate them? by fruey · · Score: 4, Insightful
    Reasons you don't need a recycle bin:
    • Because rm doesn't take -f by default
    • Because delete means delete, not put somewhere until I decide I really don't need it
    • Because you're a Linux user and have a clue
    • Because you're sick of people who restore files from the recycle bin because they think it's some kind of temporary folder
    • Because you don't want anything to do with "recycling", you have /dev/null and you put everything there
    • Because you have a poor machine with less than 4Gb of disk and you need all the space you can get

    I can't believe how many Windows users get caught out when they dual boot my machine into Windows (have to have it for the office because others use my workstation) and find I have disabled the Recycle bin. Haha, more fool them.

    Disclaimer: take with a pinch of salt. If you have sodium issues, take with a pinch of Lo-Salt instead.

    --
    Conversion Rate Optimisation French / English consultant
    1. Re:Recycle Bins - don't you just hate them? by yatest5 · · Score: 2, Insightful

      Yes, you're right. And all the people who contributed to this discussion (http://ask.slashdot.org/article.pl?sid=02/09/29/0 2 7256 ) are wrong.

      Nice attitude.

      --
      • Mod parent up! [a] by Anonymous Coward (Score:5) Thurs, June 31, @13:37
    2. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      what is the difference between a recycle bin and a trash can, anyway? if a trash can is where you put something that's going to be thrown out, and a recycle bin is where you put something that's going to be re-used... does that mean that Windows re-assembles your old files to make your new ones? i've always wondered this, but since it's closed source, i've never been able to find out. it would explain a lot about the minimum filesize for Word documents, though...

    3. Re:Recycle Bins - don't you just hate them? by SpaceJunkie · · Score: 1

      Hmmm - You have set me thinking- why havent I disabled the trashcan on my two windows boxes(one at home and one at work). It something I am happy to be without on my linux box.

      TO be honest even my mother- a non-techie cant stand it. She deletes stuff, and considers it deleted. SO when it turns out that she has wasted 200+mb on a trash can on her low spec machine for wordprocessing - she gets upset. I think its time to disable it...

      I also think more people should be aware of right-click dragging in windows...

      --
      OrionRobots.co.uk - Robots From sol
    4. Re:Recycle Bins - don't you just hate them? by Coplan · · Score: 5, Insightful
      A friend of mine once told me that he would start using linux when they had a trash can type of thing. His reasoning was that he liked to make sure that his files weren't needed. He'd delete something, then wait about a week or so of regular computer usage before removing it from the "recyle bin". For him, this type of tool is very useful.

      If we want joe-user to use linux, we need silly stuff like this.

      For you and I (and those in the know), we know damn well that you can delete a JPEG without it affecting anything. And if we're in doubt about a file, we know to move it somewhere temporarily. If something breaks, move it back. It's not all that often that you'll be deleting system files (and even then, its usually configuration files).

      Anyhow, I guess the reality is that a tool like this only needs to be useful to someone. If it is useful to a couple of people, then its worthy of its existence. It's not like it is a default application. Don't use it if you don't want it. That's the beauty of the Open Source world...you can do what you want.

    5. Re:Recycle Bins - don't you just hate them? by Apreche · · Score: 2

      I think a recycling bin in more necessary in linux than in windows. In windows you graphically see exactly which files are being deleted, because everything is graphical.
      In linux you might do something like rm *a*b*c*.*
      That command can delete anywhere from 0 to all of your files depending on how they are named. And if you accidentally type *a*f*c*.* you might delete the wrong thing. Doesn't happen in windows, unless you are using cygwin.

      --
      The GeekNights podcast is going strong. Listen!
    6. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      His perceived attitude doesn't make him wrong. Perhaps you've lost data in the past because you the Recycle Bin was "right there" to collate some data in? There are therapists that can help you with your problem of retorting to fact with comments about "attitude".

    7. Re:Recycle Bins - don't you just hate them? by dildatron · · Score: 1

      As long as it's just an option, then I'm okay with it. I just don't want to be forced to have a trash can. When I delete things, I want them gone and not taking up space. If I am not sure if they can be deleted, then I will just mv them to a temp. location or not delete them.

      --


      If you had nuts on your chin, would they be chin nuts?
    8. Re:Recycle Bins - don't you just hate them? by Zathrus · · Score: 2

      It's an option in Windows too you know. I can't think of an OS where it wasn't an option, although I'm sure someone will dredge an esoteric example out of their hat and laugh.

    9. Re:Recycle Bins - don't you just hate them? by NMerriam · · Score: 2

      It's an option in Windows too you know.

      Sort of -- you can't tell a windows system to delete files directly AND turn off delete confirmations at the same time. I find it more annoying for the system to ask me every time I delete a file, so I set the recycle bin for 1% of the drive and turn off confirmations. When you set the size to 0%, it immediately turns on confirmations.

      (another annoying thing is that it is "precentage" of the drive rather than actual size -- even 1% of my hard disk is a couple of gigabytes, which is a total waste)

      --
      Recursive: Adj. See Recursive.
    10. Re:Recycle Bins - don't you just hate them? by cpt+kangarooski · · Score: 0, Flamebait

      So... what? Linux is incapable of ever having a log appear for the user that, by use of clever formatting, tries to convey what files were deleted, and where they were, and how many?

      I can think of some ways of doing that. I would say that any sort of Unix OS needs some serious ass kicking by HCI specialists, but frankly I think that it would be easier to dump Unix in the crapper and start over with UI as the predominant concern.

      (and no, OS X is not a Unix with a good UI, it has a craptastic UI. It gets dumped too)

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    11. Re:Recycle Bins - don't you just hate them? by SmlFreshwaterBuffalo · · Score: 1

      I've gotten used to hitting the shift key whenever I delete something in Windows.

      I find it's more effective to have a habit of doing that when you frequently use different Windows machines.

    12. Re:Recycle Bins - don't you just hate them? by cbcbcb · · Score: 1

      My solution is to do "echo *a*b*c*.*", and if the list of files is OK, then edit the command to use rm instead. I find myself more likely to click on the wrong pixel and accidentally delete the wrong file than to type an incorrect rm command

    13. Re:Recycle Bins - don't you just hate them? by MrZaius · · Score: 1

      In debian, rm does default to -f. rm is aliased to "rm -i" by default in all but the superuser account, but just plain rm (which is used by the root account) does not default to interactive mode.

    14. Re:Recycle Bins - don't you just hate them? by R.Caley · · Score: 2, Funny
      if you accidentally type *a*f*c*.* you might delete the wrong thing.

      Altogether Now:

      Don't Do That Then.

      Someone has to keep the old jokes alive you know.

      --
      _O_
      .|<
      The named which can be named is not the true named
    15. Re:Recycle Bins - don't you just hate them? by the+way,+what're+you · · Score: 0, Offtopic
      In linux you might do something like rm *a*b*c*.* That command can delete anywhere from 0 to all of your files depending on how they are named. And if you accidentally type *a*f*c*.* you might delete the wrong thing.

      Yeah, it's a bitch when you try to delete "hot_asian_blowjob_cumshot.avi", but accidentally wipe out "young_anal_fucktoy001.mpg" through "young_anal_fucktoy999.mpg".

      --
      example.org - powered by Linux!
    16. Re:Recycle Bins - don't you just hate them? by Transient0 · · Score: 5, Insightful

      It is nice to be able to have the cheap sense of superiority that comes with not needing something that someone else needs. Of your reasons, only one is valid that I see:

      >Because you have a poor machine with less than 4Gb of disk and you need all the space you can get

      But still, no matter how long you've been a linux user it's still possible to accidently type "rm core *" rather than "rm core*" and not catch it until half a second after you hit enter and realize that you have irrecoverably destroyed your project(you didn't really want to punish it for segfaulting).

    17. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 3, Informative

      At the very least, turn down the disk usage for the recycle bin. Personally, I just set it to 'use the same settings for all drives', then set 'do not move files to the recycle bin', and leave the prompt enabled just in case I accidentally hit delete, and then remove the recycle bin from my desktop (using a registry file I downloaded from OReilly in one of their Win* annoyances articles, which has worked in every version of Windows I've used from 98 to XP).

      --
      -PainKilleR-[CE]
    18. Re:Recycle Bins - don't you just hate them? by Maddog_Delphi97 · · Score: 3, Informative

      Have you tried holding down the SHIFT key at the same time you press Delete when you delete files in file explorier? I think it does what you're talking about... and you don't have to mess with the percentage settings in the trash bin.

    19. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 1

      Sort of -- you can't tell a windows system to delete files directly AND turn off delete confirmations at the same time. I find it more annoying for the system to ask me every time I delete a file, so I set the recycle bin for 1% of the drive and turn off confirmations. When you set the size to 0%, it immediately turns on confirmations.

      Not sure about other versions of Windows, but under 2k the checkbox for delete confirmations is still enabled and functions properly when you tell it not to move files to the recycle bin.

      --
      -PainKilleR-[CE]
    20. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 1

      That command can delete anywhere from 0 to all of your files depending on how they are named. And if you accidentally type *a*f*c*.* you might delete the wrong thing. Doesn't happen in windows, unless you are using cygwin.

      How does this differ from using the del command in Windows' command prompt, especially with the /Q option?

      Furthermore, given the proximity of Delete in the right-click menu for files to the Create Shortcut and Rename options (oh how many times I've hit delete when trying to rename something), how does doing this in a graphical interface help?

      --
      -PainKilleR-[CE]
    21. Re:Recycle Bins - don't you just hate them? by tomhudson · · Score: 2
      Or delete them from a command prompt.

      They go bye-bye real quick

      But really, when I delete files, I WANT them gone. Period. People are using trash cans and recycling bins as an excuse not to do proper backups!

    22. Re:Recycle Bins - don't you just hate them? by aaarrrgggh · · Score: 2
      People are using trash cans and recycling bins as an excuse not to do proper backups!
      For a single-user machine where no "production" work happens, you just might be correct. That all goes away when the machine acts as a file server! What a proper undelete function (like NetWare's Salvage) does is not replace backups, but it does provide version control. Tape backups can give you a daily snapshot of a file, but just what appears at the end of the day.

      User accidently over-writes a file they spent all day working on at 5pm? At least a lost day's productivity, but it could also mean a missed deadline! Snapshots, midday backups, etc. help with the lost productivity, but when there is a deadline crunch, the user having the ability to restore a file they JUST deleted without administrator support is HUGE!.

      The elegance of Salvage is its transparency. A "recycle bin" does some things, but how well does it handle temporary files?

      For a file server, functionality like Salvage really is essential!

    23. Re:Recycle Bins - don't you just hate them? by tal197 · · Score: 2
      But still, no matter how long you've been a linux user it's still possible to accidently type "rm core *" rather than "rm core*" and not catch it until half a second after you hit enter and realize that you have irrecoverably destroyed your project(you didn't really want to punish it for segfaulting).

      $ rm core *
      zsh: sure you want to delete all the files in /bin [yn]?

      Maybe you're using the wrong shell ;-)

    24. Re:Recycle Bins - don't you just hate them? by joss · · Score: 2

      It's not as simple as that. I believe that false sense of security created by recycle mechanisms are counter productive. It's like building extra roads to avoid conjestion. People just drive more until conjestion is just as bad as it always was. The more foolproof you try to make something, the more foolish people become.

      It's perfectly straightforard to replace rm with something that moves files to a recycle directory. People don't generally do this because it doesn't really help. At the end of the day, either you want to delete it or you don't. It's not about superiority, it's about human nature.
      When you firmly believe that deleting something will really delete it, you adjust. Now, some people have got used to having a recycle bin. For them it may be prefereable to alias rm 'mv !:* ~/trash' or whatever. It depends what you're used to. I sincerely doubt this means they will lose less data accidentally. A regular automated backup policy is usually a better option.

      --
      http://rareformnewmedia.com/
    25. Re:Recycle Bins - don't you just hate them? by Reziac · · Score: 2

      Not only that, but in my observation, it's when a person is MOST SURE that they want to delete everything per some filespec, is when they are also most likely to forget about the other files that just happen to match the filespec slated for deletion. Oooops...

      --
      ~REZ~ #43301. Who'd fake being me anyway?
    26. Re:Recycle Bins - don't you just hate them? by colinleroy · · Score: 1

      and realize that you have irrecoverably destroyed your project

      Ever heard of CVS ? ;-)

      --
      blah
    27. Re:Recycle Bins - don't you just hate them? by wilhelm · · Score: 2, Insightful

      Aliases like that are a good way to screw yourself. If you depend on that -i alias, what happens when you move to a system (or su to a user) which doesn't have that same alias? Pain, most likely.

      For some reason, Redhat systems do just the opposite of what you describe - root gets -i (on rm, cp, and mv), and everybody else doesn't. One of the first things I do on those systems is remove those aliases from root's bashrc, just to forestall any trouble.

    28. Re:Recycle Bins - don't you just hate them? by TheTomcat · · Score: 3, Insightful

      But still, no matter how long you've been a linux user it's still possible to accidently type "rm core *" rather than "rm core*" and not catch it until half a second after you hit enter

      I once typed `rm -r logs/old /` instead of `rm -r logs/old/`

      ... as root...

      ... on a production machine ...

      ... that didn't yet have the backup-unit installed (by our colo -- their problem)...

      that was a sucky weekend. (-:

      S

    29. Re:Recycle Bins - don't you just hate them? by Transient0 · · Score: 1

      root@typee [~/foo] # ls
      core core2 core3 core4 important_file.c
      root@typee [~/foo] # rm core *
      root@typee [~/foo] # ls
      root@typee [~/foo] #

      > Maybe you're using the wrong shell ;-)

      maybe... but then, there a lot of other people who use bash && debian.

    30. Re:Recycle Bins - don't you just hate them? by naasking · · Score: 2

      But still, no matter how long you've been a linux user it's still possible to accidently type "rm core *" rather than "rm core*" and not catch it until half a second after you hit enter and realize that you have irrecoverably destroyed your project(you didn't really want to punish it for segfaulting).

      Actually, different scenario for me: I was copying to and from multiple disks and I typed 'rm -rf *' in what I thought was my home directory on the destination drive. In fact it was my original drive and I didn't realize it for a good 5-10 minutes. Since the destination was incompletely copied, I lost a great deal of data. That day, I learned to look at the whole path (not just the last bit) before I type in something that serious again.

    31. Re:Recycle Bins - don't you just hate them? by thomas.galvin · · Score: 2, Insightful

      I've said it before, I'll say it again: ctrl-s saved, ctrl-d deletes. They should not be that close together.

    32. Re:Recycle Bins - don't you just hate them? by IMarvinTPA · · Score: 1

      If you single click twice slowly, it lets you rename too. I prefer this over waiting for the right click menu to find all the NEW|> options and render.

      IMarv

    33. Re:Recycle Bins - don't you just hate them? by platypus · · Score: 2

      Show your friend how much nicer it were if he could find out if something needs a certain file by knowing when had been accessed in the past, instead of moving it and waiting for random breakage.

      Then teach your friend what

      ls -lu

      means.

    34. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      I agree. I've been using Linux for a few years and still:

      shell@somewhere #:~/: tar -zxvf archive.tar.gz

      Doh it's path (usr/yada/yada) is relative. I have to rm this tree and extract from /. (no pun, it an end-of-phrase dot :)).

      shell@somewhere $:~/: rm -rf /usr

      Why does it take so... EEEEEEEEEEEEK!!!!

      ^C^C^C^C^C^C^C^C^C

      Too late, too bad.

      Yet, I still wouldn't use a trashcan or recycle bin(tm) if there was one.

    35. Re:Recycle Bins - don't you just hate them? by nege · · Score: 1

      ALWAYS run rm with alias rm -i, and then you can override if you are certain that you wont make a mistake (or are in a folder that doesnt matter like null)

    36. Re:Recycle Bins - don't you just hate them? by God!+Awful · · Score: 2

      To clean up some disk space, I once typed "rm -rf core*" in my root source directory (actually it was a script that did it). Sadly, this also deleted such files as core.c from the Linux source tree. My script now explicitly excludes the Linux source, but the next time I need to recompile my kernel is going to be a bitch.

      -a

    37. Re:Recycle Bins - don't you just hate them? by Suppafly · · Score: 2

      But really, when I delete files, I WANT them gone. Period.

      When I really really want to delete files, I right click on them and do the option for pgp to delete them and wipe them several times with random data. But maybe I'm just paranoid?

    38. Re:Recycle Bins - don't you just hate them? by Anopheles · · Score: 2, Funny

      >People are using trash cans and recycling bins as an excuse not to do proper backups!

      I've seen worse!

      I have seen users put stuff into their Recycle Bin just because it's a convenient "folder" on their desktop (And yes, the "My Documents" folder was there as well, but was completely ignored.)

      The inherent flaw in this solution was demonstrated when one of our helpdesk guys needed more disk space to install some patches, and emptied the Recycle bin - and erased months of work. Now, the obvious common-sense moral of this story should be, "If you play with fire, eventually you will get burned."

      However, common sense does not rule here. We don't educate our administrators, presumably because they're infallible. Instead a new policy was drafted saying we have to backup the Recycle Bins on all administrative boxes and the "Trash" folders in all the Mailboxes daily.

      Beauty, eh?

    39. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 1

      If you single click twice slowly, it lets you rename too. I prefer this over waiting for the right click menu to find all the NEW|> options and render.

      hmm I don't seem to get the NEW|> option when I right-click on most file types ;) Also, you have to be sure to click on the file name for the second click, or it won't do anything. Of course, the best way to handle it would be to have a key combination for rename, but I guess that's too obvious, so we end up with wonderful things like ALT+F,M rather than CTRL+R (which is refresh, something I really don't need a key sequence for).

      Frankly, with all of the other issues that come up when renaming file types that have previews in explorer, I usually just open a command prompt and use that instead for renaming (and thanks to tab-completion it's not that big a deal).

      --
      -PainKilleR-[CE]
    40. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      yeah, because it's so hard to find linux kernel sources...

    41. Re:Recycle Bins - don't you just hate them? by johnjtrammell · · Score: 1
      If "rm core *" can irrevocably destroy your project, you're doing it wrong. You need to get a clue and install a code management system (e.g. CVS) immediately.

      Oh, and use Makefiles. Biffing a 'make clean' is less hazardous than biffing a 'rm foo*'.

    42. Re:Recycle Bins - don't you just hate them? by Codifex+Maximus · · Score: 2

      Yeah, I had a waste basket on my TRS-80 Model 1 but the bag wasn't a Hefty so it leaked all the time. Played hell with the expansion unit...

      --
      Codifex Maximus ~ In search of... a shorter sig.
    43. Re:Recycle Bins - don't you just hate them? by MrZaius · · Score: 1

      I do the opposite, setting all accounts to alias -i. It's nicer that way for me, cause whenever I'm dead sure about anything, I tack the -f onto the command without thinking anyway.

      Just wanted to say that the default of GNU/rm w/o any aliases was, in fact, -f. (at least as compiled for debian)

    44. Re:Recycle Bins - don't you just hate them? by mcg1969 · · Score: 3, Insightful

      Once on an old Ultrix machine I wanted to delete some dot-files, including a subdirectory that started with a dot. So, as root, I typed

      rm -rf .*

      The problem with that was that '.*' included '..' ... so eventually it ascended into the parent directory, and began deleting every file and directory there. That was particularly unfortunate because the parent directory was the root directory!

      Before I realized what it was doing it had wiped out /bin and /etc. And this was our department's file server, so yes I had a sucky weekend too... I couldn't even give the machine a proper shutdown because I'd managed to wipe out that command!

    45. Re:Recycle Bins - don't you just hate them? by xanadu-xtroot.com · · Score: 1

      Do you realize what you just said? Reg hacking, playing with buried settings? Yea, some Joe User is going to be able to do all that.

      Wait...

      You're expecting him/her to UNDERSTAND it first...

      Gotta love Win*...

      --
      I'm not a prophet or a stone-age man,
      I'm just a mortal with potential of a super man.
    46. Re:Recycle Bins - don't you just hate them? by joggle · · Score: 1

      Of course, having a recycle bin in this case would only be marginally useful. What would happen? Move everything to the recycle bin and then, as rm proceeds, remove it to and produce a segfault? I think it would be better to improve rm so that it says something like "are you really sure you want to remove all files from the system?" And performing some recursion checking wouldn't be a bad idea either (to make sure that it doesn't start removing parent directories, this should simply be illegal to do by recursion).

    47. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 1

      Do you realize what you just said? Reg hacking, playing with buried settings? Yea, some Joe User is going to be able to do all that.

      Actually, all of that (except for the removal of the recycle bin from the desktop) is available simply by right-clicking on the recycle bin and clicking properties in the menu. The property page that it presents is fairly easy to understand in most cases, though some people may be confused by the fact that the recycle bin is actually multiple recycle bins if you have multiple drive letters for hard disks.

      These settings are hardly buried, and if people were taught more often that the settings for things are available by right-clicking them and selecting 'properties', it would be the first place they would check. It's certainly more intuitive than looking in the control panel (you'd have to know there was a control panel first, and the control panel doesn't contain settings for everything). I don't know how many times I've overheard people telling others that in order to change their colour depth (because some game requires a change usually) they need to go to the control panel, when all they really have to do is right-click on the desktop and select properties.

      --
      -PainKilleR-[CE]
    48. Re:Recycle Bins - don't you just hate them? by unapersson · · Score: 2, Informative

      You've already got this under Linux if you use Nautilus as your file manager. It has a trash can.

    49. Re:Recycle Bins - don't you just hate them? by ArsonSmith · · Score: 2

      Thats like the crontab -e (to edit your crontab) and crontab -r (to remove your crontab)

      those two are too close together as well. I havn't yet done it but I know someone who has.

      --
      Paying taxes to buy civilization is like paying a hooker to buy love.
    50. Re:Recycle Bins - don't you just hate them? by kalidasa · · Score: 2

      In linux you might do something like rm *a*b*c*.* That command can delete anywhere from 0 to all of your files depending on how they are named.

      Isn't natural selection wonderful?

    51. Re:Recycle Bins - don't you just hate them? by Mark+Bainter · · Score: 2
      But still, no matter how long you've been a linux user it's still possible to accidently type "rm core *" rather than "rm core*" and not catch it

      That's why you alias rm to rm -i for root, and get in the habit of using this wonderful thing called tab completion.

      % ls
      core1 core2 file1 file2 file3 file4 file5

      % rm -f *<tab>

      becomes:
      % rm -f core core1 core2 file1 file2 file3 file4 file5
      --
      "No nation could preserve its freedom in the midst of continual warfare."
      --James Madison
    52. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0
      People are using trash cans and recycling bins as an excuse not to do proper backups!


      Actually, I think people use these semi-delete tools as a way to prevent accidental fuck ups. I personally spent a half hour writing a shell script wrapper for rm after I did a 'rm -f * .o' instead of 'rm -f *.o'. It's definitely useful to be able to change your mind.
    53. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      zsh: sure you want to delete all the files in /bin [yn]? y

      Mouhahahaha...

    54. Re:Recycle Bins - don't you just hate them? by tomhudson · · Score: 1

      Instead of a shell wrapper script, why not a shell alias? Simpler, n'est pas? But I've gotta admit, I like your term semi-delete.

    55. Re:Recycle Bins - don't you just hate them? by geekoid · · Score: 2

      "And if we're in doubt about a file, we know to move it somewhere temporarily. "
      you mean someplace like /recycle/can/

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    56. Re:Recycle Bins - don't you just hate them? by Eil · · Score: 2


      IMHO, this is a good example of why I think many administrative things that must be done by root shouldn't be performed from a command line unless absolutely necessary. Whenever I'm working on something that involves deleting, moving, or editing files, I try to use a file manager (FileRunner) as much as possible. Not only are you less prone to mistakes, but it's faster and easier to visualize exactly what you're doing when you can actually select the files that you want to manipulate.

      Yes, it's entirely possible to select the wrong file or hit the wrong button and delete something you didn't mean to. However, you are FAR less likely to trash the whole system when it's 2AM, you're working at your command line, your vision is blurry, and your space bar seems a lot bigger and easier to hit than it normally is. Like I mentioned before, with a file manager you can see EXACTLY what you're about to do which gives you an extra chance to catch any potentially boneheaded errors.

    57. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      What, the last bit was 1 for delete and 0 for don't delete?

    58. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      # make cleen
      make: Confirmed. Ordering nuclear strike on Washington.

    59. Re:Recycle Bins - don't you just hate them? by IMarvinTPA · · Score: 1

      oops.
      It depends on if you hit the file or not for the New thing. I really should have said the "Send To" list. ICQ also adds in a "Send to ICQ" list that can be fun too.

      I see lots of people trying to run programs but end up with the rename thing because they clicked too slowly on the name. If you click as quickly on the icon, it will usually run.

      IMarv

    60. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      That's what rm -i is for.

    61. Re:Recycle Bins - don't you just hate them? by snake_dad · · Score: 2
      But still, no matter how long you've been a linux user it's still possible to accidently type "rm core *" rather than "rm core*"

      Think that's funny? We have a lot of windows only programmers, who decided to call their project Contact Registration "core". Really. All database files on unixware. core.db, core.bi, and so forth. Unixware names its coredumps core.xxxx, where x is number. Now imagine a cleanup script containing find / -name core.* -exec rm -f {} \;

      --
      karma capped .sig seeking available Slashdot poster for long-term relationship.
    62. Re:Recycle Bins - don't you just hate them? by cowens · · Score: 1

      This is why you sould always say ls *a*f*.* before saying rm *a*f*.*

    63. Re:Recycle Bins - don't you just hate them? by jgerman · · Score: 2

      User accidently over-writes a file they spent all day working on at 5pm? At least a lost day's productivity, but it could also mean a missed deadline! Snapshots, midday backups, etc. help with the lost productivity, but when there is a deadline crunch, the user having the ability to restore a file they JUST deleted without administrator support is HUGE


      I do see your point and agree in general that a trash can is not a bad thing, but in this specific example I have to disagree. If a user is in need of version control, they should be using a version control package. I use RCS for every little thing I write, just to make sure that I'm covered. Everything get's rcs'ed up until the point I check it into my CVS codebase. That's safety, and that's for home stuff that I can actually afford to lose. In a business environment it should be mandatory.

      --
      I'm the big fish in the big pond bitch.
    64. Re:Recycle Bins - don't you just hate them? by jgerman · · Score: 2
      Two words: "version control". Easy to set up, easy to use, and will save your ass.


      I won't complaing about a piece of software (un-in=stallable of course) to do the Trash Can thing though, to each his own. Linux is made to be customized, do we really need a holy war on what tools someone uses, err do we really need ANOTHER holy war on what tools someone uses?

      --
      I'm the big fish in the big pond bitch.
    65. Re:Recycle Bins - don't you just hate them? by Trevelyan · · Score: 1

      when I use windows I leave the recycle bin on, but hold shift instead (holding shift while pressing del or selecting del from menu, will bypass recyc bin and truely delete).
      My theory is, that if I dont hold shift while deleting, then I wasn't thinking clearly or in right frame of mind.
      (of course flip side is that you get into the habit of holding shift w/o thinking any way, but this is all btw since I use Linux, BSD or Solaris all the time now)

      Any way windows recyc bin is very usefull for hiding stuff, since anything in *:/recycle but not registerd as 'deleted' wont be deleted when you empty bin (or even show up) and can only be accessed if you know the path (or via dos box)

    66. Re:Recycle Bins - don't you just hate them? by damiam · · Score: 1

      So alias rm to rm -i. Problem solved.

      --
      It's hard to be religious when certain people are never incinerated by bolts of lightning.
    67. Re:Recycle Bins - don't you just hate them? by OsamaBinLogin · · Score: 1

      >If I am not sure if they can be deleted, then I will just mv
      > them to a temp. location or not delete them.

      so, see, this guy has been using Unix for quite a while - stuff like this gets embeedded in your work habits. Probably early on, he mistakenly deleted a few things, and a trash can would have helped him out during those early times. But such was not available. Short term pain, long term power (perhaps).

      For newbies, they are ALWAYS in short term mode. That's why this Trash concept is so popular. zero attention span.

      It's like back when I programmed in Fortran, I'd be extra careful to spell variable names correctly, otherwise it's auto-declared as a whole other variable; a hard bug to find. One learns the hard way to cover your butt. Since converting to C I've gotten sloppy cuz the compiler almost always catches the error. I don't think we would have it any other way - the mistakes are expensive.

      Similarly, recovering a lost file is time wasted, and time is expensive. Hard disk space is like a penny a megabyte these days (whoops, this one here's 1/4 cent per megabyte). OK so if it takes you 1 hour to recreate a file, that costs as much as several gigabytes of hard disk space. Assuming your time is worth money, and if it isn't, you aren't reading this.

      Personally, I just buy so many gigabytes that I never have to worry about actually deleting files to make room. If it saves me ONE mistake every two years, it's worth it.

      --
      Marketing-driven companies end up over-marketing their products. Engineering-driven companies end up over-engineering
    68. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      alias rm='rm -i'

      how hard was that? I always alias rm to 'rm -i' because I type too fast and not always accurately. When I'm sure I want to remove something, I just go for "/bin/rm "

    69. Re:Recycle Bins - don't you just hate them? by AvitarX · · Score: 1

      That is probably the funniest thing I have read in a long time, it is truly amaizing how dumb people really are.

      I like the recycle bin as a place to drag stuff I want to delete, the delete key just doesn't cut it for my left hand to reach, and I usually use a GUI to browse (I am so not 1337). I actually prefer to have the trash/recycle delete files, not put them in trash, but having a place to drag stuff to make it go away is great.

      Actually a Panel icon that was always on top would be preferable to a desktop one, and it should be called the woodchipper with a good icon, or perhaps the incinerator.

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    70. Re:Recycle Bins - don't you just hate them? by t · · Score: 1

      That's why you can do `ls *a*b*c*.*`, and if that looks good, do `^ls^rm` to ensure no fuckups. If you're truly paranoid about your files you can also `touch ./-i`, that way if you `rm *a*b*c*. *` (notice the extra space), rm will enter interactive mode. But, then you shouldn't have that problem if you use the ^ method.

    71. Re:Recycle Bins - don't you just hate them? by DopeRider · · Score: 1
      Nice attitude.

      He seems to be overreacting to Windows situation. The versions that I used (95-NT-98) made very difficult to actually delete a file. Not talking about groups of files.

      Sometimes I've had to go through five or six "yes to all" dialog boxes to remove a directory tree.

    72. Re:Recycle Bins - don't you just hate them? by nuggetman · · Score: 1

      (using a registry file I downloaded from OReilly in one of their Win* annoyances articles, which has worked in every version of Windows I've used from 98 to XP)

      You do know you can remove it with a checkbox in desktop properties in XP right?

      --
      ...and that's all there is to it.
    73. Re:Recycle Bins - don't you just hate them? by Max+Threshold · · Score: 1
      If we want joe-user to use linux, we need silly stuff like this.

      And if we want silly stuff like this in Linux, we need to standardize the API so it works consistently despite the wonderful flexibility of the system.

      Standardization isn't always in the spirit of Open Source, but there is a time and place for everything. I am convinced that if we ever want Linux to go truly mainstream, there needs to be a "Standard Linux" maintained by a single coherent organization. The rest of the Linux world can continue in chaos because that's where most of the innovation comes from, but somebody needs to pull out the best of everything, strip out the vestigial crap, and standardize what's left. (Pet peeves of mine: WTF is /opt for? And why isn't there a nice clean ~/etc instead of a bunch of dot-directories cluttering up my $HOME?)

      As much as some people want to believe that this coherence is going to be spontaneously born of chaos, I say it's going to take some big, evil company to get the job done. Somebody with lots of money is going to have to dedicate a bunch of programmers to audit every line of code that goes into a distro and write all those "killer apps" that Linux is supposedly missing.

      Now would be a good time for IBM or Sun or somebody to step up to the plate...

    74. Re:Recycle Bins - don't you just hate them? by nuggetman · · Score: 1

      Dammit... no you can't

      *hangs head in shame*

      --
      ...and that's all there is to it.
    75. Re:Recycle Bins - don't you just hate them? by llordsmiff · · Score: 1

      The DE's already have trashcans. At least Nautilus2 does for sure (it's the only one I use). In windows, if you delete a file from the command line, it's gone forever, if I'm not mistaken. Same thing in linux. If you use the explorer like thing, you get recycle bin; if you use command line, you get gone. I don't see why this (libtrash) is revalent. (Note: I didn't read about what libtrash does. I just made assumptions based on the name.)

      - me -

      --
      "To live" is to ignore the possibility of death.
    76. Re:Recycle Bins - don't you just hate them? by seanscottrogers · · Score: 1

      Verified that in my version as well, although the handy-dandy tooltips still say you can't have recycle bin and confirmations both disabled. It will even turn confirmations back ON when you turn recycle bin OFF. Just be persistent and turn the confirmations back OFF again. =)

      And FYI, this preference combo also gets rid of all system / hidden / read-only / executable file warnings that pop up on large directory deletions.

      So in theory, it appears Windows can be just as devastating to a (non-system) directory as UNIX.

    77. Re:Recycle Bins - don't you just hate them? by Hercynium · · Score: 2

      Isn't this the type of feature that could/should be implemented at the file system level, rather than the shell level? Granted, I don't know how it's done on the mac, but I do know that if you put some files in the trash and then try to open them in any application, they won't open. Any executables in there won't run either. I think the same goes for aliases as well.

      Anyhow, now that osx is on a unix kernel I see no reason it can't be implemented, along with revision tracking and perhaps some other nice attributes like package/application association and whatnot. Not to troll, but I have heard rumours that that type of thing will be built into the next version of windows...

      I'm beginning to ramble, but I feel like this is a good idea (I've thought of it before, but only recently have I learned enough about the linux kernel to attempt it...)

      What we need is a distro with a new filesystem... for now just base it on the standard ext*fs and add the ablilty to include in each file's attributes the package it belongs to, along with the version, et al, and perhaps even the name of the process that created the file in the first place. The extra data wouldn't interfere with any existing software, and package managers/installers could be extended to work with it. (why not? we have apt-rpm now)

      A whole bevy of tools could then be created for sysadmins who need to resolve some shared-lib incompatibility or who want to uninstall an app but the rpm database had long been munged, or better yet need to modify the files installed by a package but may want to choose whether to delete (or keep) it after uninstalling!

      Yeah, I know all this is already done by existing tools... I've just always felt them lacking in one way or another. :)

      --
      I'm done with sigs. Sigs are lame.
    78. Re:Recycle Bins - don't you just hate them? by bicho · · Score: 1

      For the average Joe user, nautilus's trash can/bin/whatever should be ok.
      I see no reason to force it into the kernel.
      worthless effort.

      Now we're in that, average Joe user shouldnt be using terminal commands if they dont have a clue of what they're doing.

      --

      errera hunamum ets
    79. Re:Recycle Bins - don't you just hate them? by quinto2000 · · Score: 2

      consider that not all files really need version control. It is a huge load on the system to use RCS for every single file...it only makes sense for files like academic papers, a movie you're working on, etc.

      --
      Ceci n'est pas un post
    80. Re:Recycle Bins - don't you just hate them? by Order · · Score: 1

      Simple -- Use a Dvorak keyboard!

      --

      I am a genius; therefore, you suck.
    81. Re:Recycle Bins - don't you just hate them? by RAMMS+EIN · · Score: 2

      ``Anyhow, I guess the reality is that a tool like this only needs to be useful to someone.''
      I beg to differ. Think about it. What does this software lead to? BLOAT.

      Features that most people don't need (actually nobody _should_ need undelete) should not be installed by default. Of course, ``most people'' depends on the distribution - a distro geared towards power users could do without undelete, whereas a distro for newbies might be better off having it included, but should probably leave out fingerd.

      --
      Please correct me if I got my facts wrong.
    82. Re:Recycle Bins - don't you just hate them? by ColaMan · · Score: 2

      Of course, the best way to handle it would be to have a key combination for rename

      In windows, pressing F2 when a file is highlighted will rename that file.
      Well, it'll go into the 'edit' mode on the filename, you actually have to rename it yourself.
      Enjoy ;-)

      --

      You are in a twisty maze of processor lines, all alike.
      There is a lot of hype here.
    83. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 1

      In windows, pressing F2 when a file is highlighted will rename that file.

      Damn, after all these years I'm just now finding this out.

      --
      -PainKilleR-[CE]
    84. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 1

      lol, yeah, it's the *only* thing you can't remove from the XP desktop without a registry edit. It was the first thing I checked when I noticed that option in XP, because I actually use the other two icons (especially right-click Network Neighborhood/My Network Places and select properties to set TCP/IP settings or My Computer to get to Device Mangler instead of going through the control panel).

      --
      -PainKilleR-[CE]
    85. Re:Recycle Bins - don't you just hate them? by sfe_software · · Score: 2

      If you single click twice slowly, it lets you rename too. I prefer this over waiting for the right click menu to find all the NEW|> options and render.

      God I hate that "feature". Especially if your mouse sucks (if you move even one pixel between clicks in a double-click, you're renaming).

      I use F2 to rename. I very rarely rename files while inside an "Open" dialog, yet, I'm constantly accidentally slow-double-clicking. Of course you can't turn this feature off (that I am aware of).

      Another one I can't stand, in Win2k at least, the "New Folder" icon is right next to the "Up Directory" icon in the Open/Save dialog. How many times I've had to delete "New Folder"...

      Not to mention Win2k's Open/Save dialog never remembers your View settings. I love "Details", and I hate the sideways-scrolling variable-width list view. But, since it never remembers I find it useless to bother changing it every time.

      But enough about that... to contribute to the topic, I think an Undelete would be good if it worked like the old Norton (IIRC) undelete:

      - Deleting a file marks it (on the filesystem) as deleted, just as always
      - The filesystem doesn't re-use that space until it has to
      - A utility lets you find such "deleted" files, view their original location etc, and "restore" them

      With this method, disk space is never really used, in that the more space you have available the more stuff you can "undelete". Perhaps this utility would also let you truly remove files (or even scramble the bits to truly wipe it).

      That would be the ultimate, as it would protect joe-average and at the same time work no differently for the rest of us. Unless we needed it.

      --
      NGWave - Fast Sound Editor for Windows
    86. Re:Recycle Bins - don't you just hate them? by doug363 · · Score: 1

      Of course, the best way to handle it would be to have a key combination for rename... F2 is rename.

    87. Re:Recycle Bins - don't you just hate them? by some+guy+I+know · · Score: 1

      Of course, the best way to handle it would be to have a key combination for rename, but I guess that's too obvious

      You mean like F2?

      --
      Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
    88. Re:Recycle Bins - don't you just hate them? by PainKilleR-CE · · Score: 1

      You mean like F2?

      Are you sure? Because, you know, I really need to hear it from 10 people before I decide to check it out, and I think we're only half way there.

      --
      -PainKilleR-[CE]
    89. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      I wrote a nice little alias for rm after the second time I accidentally rm'ed my home directory with an accidental space and a *. It moved everything to ~/.trash/ and every 3rd day a cron job would delete it. I found it to be a pain in the ass and got rid of it, and just made sure I read what was on the command prompt 3 or 4 times if it involved rm.

    90. Re:Recycle Bins - don't you just hate them? by Anonymous Coward · · Score: 0

      At the time that I made the post, there were no other posts about F2.

  7. linux on the desktop by redhotchil · · Score: 4, Funny

    now we have almost everything we need:

    [x] Trashcan support
    [ ] Easy to use Windowing system
    [ ] Standard software install system
    [ ] Easy to use Windows filesharing
    [ ] Easy support for video files and DVD
    [ ] Desktop company support

    Way to go LINUX!

    1. Re:linux on the desktop by vadim_t · · Score: 1

      Huh? Linux has almost all of that. Let's see:

      Trashcan: This article

      Windowing system: What, KDE is not easy enough? My mom said "Well, looks just like Windows". Use a Windows theme for maximum similarity.

      Installer: apt-get or RPM is much better than that buggy InstallShield thing. If something goes wrong during the initial stage InstallShield will leave a zero-size file in the installation folder, and the next time you run the installer it'll complain about not being able to initialize the uninstaller. Installation can proceed, losing the ability to uninstall. Unless you're smart enough to know about this and delete the file.

      Filesharing: I don't see what's the problem with Samba, I'm pretty sure all recent distributions have a GUI to configure it

      Video: okay, agree with you here

      Support: Commercial distributions have offered support for ages, and I'm sure some other Linux users will be glad to help.

    2. Re:linux on the desktop by Junta · · Score: 2

      Video: xine (and totem, by extension) and mplayer help a great deal. Even on my non-x86 laptop I can play nearly anything with xine... MPlayer is a tricky proposition, on some systems it works beautifully, and on others it is a resource hog more than anything else...

      I think that having totem set up by default on linux desktops would go far to dispel the 'no good media player on linux' myth...

      --
      XML is like violence. If it doesn't solve the problem, use more.
    3. Re:linux on the desktop by vadim_t · · Score: 1

      Thanks for pointing me to Xine, it looks very nice :-) Unfortunately it doesn't work. The window appears and then locks up. Which is mostly what I meant. Yeah, there's some support, but it's not very good yet.

    4. Re:linux on the desktop by Odin's+Raven · · Score: 1, Redundant

      now we have almost everything we need:

      [x] Trashcan support
      [ ] ...
      [ ] Profit!

      --
      A marriage is always made up of two people who are prepared to swear that only the other one snores.
    5. Re:linux on the desktop by Junta · · Score: 2

      You by chance using a Savage chipset? I have had to disable key features of xine on Savage to keep it from falling on its ass on Startup. Every other system but Savage Video cards I have had no troubles with...

      --
      XML is like violence. If it doesn't solve the problem, use more.
    6. Re:linux on the desktop by vadim_t · · Score: 1

      No, I just found it was the sound driver. It tries to use ALSA and hangs while opening /dev/snd/dsp (approximate name), maybe due to the crappy AC97 sound I'm using. Telling it to use artsd works fine, but then it crashes when trying to play a video. This could have something to do with that I'm using a Debian package that doesn't have Windows codecs.

      But still, that doesn't make it any better. It's not capable of starting up without extra help, and even after that has a bug somewhere. Which is why I still think it's not ready.

    7. Re:linux on the desktop by archen · · Score: 1

      It's not really trashcan support until it harasses you at LEAST 3 times in order to delete anything.

    8. Re:linux on the desktop by fstanchina · · Score: 1

      [ ] Evil Empire that decides what's good for us
      (I suppose IBM could fill this in if they really want)

  8. Where's your sense of danger??? by netphilter · · Score: 5, Funny

    Come on, recycle bins are no fun at all. Where's the fun in having the files you "delete" stored in a folder until you REALLY want to delete them. It's much more fun to delete files knowing that there's a chance you may need them in the future and have no way of retrieving them (unless you're responsible and back your files up, but then again, what's fun about being responsible?).

    --
    "Herbivores eat well cause their food never, ever runs."
    1. Re:Where's your sense of danger??? by MicroBerto · · Score: 2
      I used to live with a sense of danger. I had a bash alias so that every time i typed in 'rm', it would do 'rm -f'

      You can imagine why I'm back into interactive mode :) (and yes it does involve accidentally deleting shitloads of porn)!

      --
      Berto
    2. Re:Where's your sense of danger??? by mhesseltine · · Score: 1
      I had a bash alias so that every time i typed in 'rm', it would do 'rm -f'

      I've often wondered about aliasing 'rm' to something like 'mv $1 /tmp/trash/'. Would something like this work for CLI? (Obviously, if you have a graphical client that does its own file operations, it won't work.)

      --
      Overrated / Underrated : Moderation :: Anonymous Coward : Posting
    3. Re:Where's your sense of danger??? by Anonymous Coward · · Score: 0
      Maybe what we need is three pop-ups.

      "Are you sure you want to delete this file?"

      "No, really. Are you sure now?

      "OK, because this is the last chance. Really?"

      Or then again maybe that would just annoy the hell out of people who mean "delete" when they choose "delete".

    4. Re:Where's your sense of danger??? by p3d0 · · Score: 1

      Well, there go all my hopes that we'd finally have an article whose comments didn't mention porn.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    5. Re:Where's your sense of danger??? by russellh · · Score: 1

      Recycle bins are a lot more fun when you can attach a confetti shredder to the top, or at least a basketball net. Now that Jaguar's desktop is an OpenGL environment, we can take direct manipulation to the next level. I'm looking forward to requiring skill to toss files in the trash, and having crumpled files laying around it. But in reality, I want to finally be able to take the trashcan off the desktop and put the damn thing on the floor.

      --
      must... stay... awake...
    6. Re:Where's your sense of danger??? by archen · · Score: 2

      This reminds me of a manegement CGI script I wrote for a friend. The conversation went something like this.

      friend: [clicking around on everything]
      me: ...And as you see there you can delete things too.
      friend: [clicks delete] "Uh oh, what did that do?"
      me: you just deleted that entry
      friend: oh geeze. really?
      me: yes, that's why that big button says "DELETE"

      later I had to add some javascript for a confirm because he felt it was "too dangerous". At times I wonder if Windows doesn't make people act more stupid by treating them like idiots.

    7. Re:Where's your sense of danger??? by Chess+Cardigan · · Score: 1

      Trash can??? P-leaze!
      Whate everyone needs is this line in their .bashrc

      alias rm="rm -rf"

      Let's have none of this pansy crap.

    8. Re:Where's your sense of danger??? by Anonymous Coward · · Score: 0

      That's a basic rule for GUI's. Anything destructive that can't be undone should be confirmed.

    9. Re:Where's your sense of danger??? by Rysc · · Score: 1

      mv $@ /tmp/trash would be better.

      --
      I want my Cowboyneal
  9. Re:Here's a Handy Hint by Anonymous Coward · · Score: 1, Interesting

    I once accidentally did an rm * .~ hoping to just get rid of some emacs floaters. That really sucked, but it was the *only* time I've ever wished I had a way to get back something I deleted.

  10. So everyone is perfect? by GreyyGuy · · Score: 5, Insightful

    I don't understand why there are so many people saying this is bad or implying that people who use Linux don't need it because they are so good. I must have missed the evolutionary step that made all Linux users so perfect that they never make mistakes. That is all the Recycle Bin is.

    Sure, some people use it as temporary folder, but so what? There will always be people who use things other then the way they are intended. If it works for them, so what? If it is so painful for you to contemplate, don't look at it.

    1. Re:So everyone is perfect? by Znork · · Score: 4, Insightful

      Because a lot of us _mean_ rm when we type rm. Otherwise we would have used mv. Or used Nautilus or some other filemanager that by default puts stuff in the trashcan.

      rm means 'remove'. Not 'move to trash'. Think of it as the 'empty trashcan' command. Would you like a trashcan that moves things to yet another trashcan when you empty it?

      If you're uncertain about wether or not to remove something dont use rm. You're entirely free to rm /bin/rm if you dont want to use it. Or even mv /bin/rm /tmp if you're uncertain about wether or not to remove it permanently.

      And if you, despite knowing that rm means 'remove', make a mistake, just restore from your backups.

    2. Re:So everyone is perfect? by TechnoWeenie · · Score: 1

      There will always be people who use things other then the way they are intended.

      Back in the day, that was considered hacking (in the broadest sense of the word)... but what do I know. It cracks me up when Linux users complain about users using a computer the way they want to.

    3. Re:So everyone is perfect? by bacchusrx · · Score: 5, Funny

      Would you like a trashcan that moves things to yet another trashcan when you empty it?

      Well, that is--more or less--the way that actual trashcans operate ;)

      bacchusrx.

      --
      Life after capitalism? The participatory economics project
    4. Re:So everyone is perfect? by mr_z_beeblebrox · · Score: 1

      Sure, some people use it as temporary folder, but so what?

      So what about when someone gets a virus which infects the undelete folder. That is a common target because of all the important / retarded suits who use it as /tmp. If you need tmp storage use /tmp. Users use things wrong because devlopers waste time solving non problems with solutions that cause real problems.

    5. Re:So everyone is perfect? by abdulla · · Score: 1

      Didn't you know? Perfectionism is implied by Linux usage. :)

    6. Re:So everyone is perfect? by Anonymous Coward · · Score: 0

      Yeah, because restoring from tape is real pleasant. Seriously, this "RTFM" kind of attitude keeps people from trying linux. Some of us use Linux because it's a better OS, not because of the God complex.

    7. Re:So everyone is perfect? by Dark+Paladin · · Score: 2

      Now, personally, I think a halfway point is better here.

      For some people, "rm" means "rm" - for my wife, "rm" means "delete this", which is different, since she might want to get that back.

      So I'd simply include an undelete function by default - but let "experts" such as yourself set a flag to truly remove the file. No muss, no fuss. Everybody happy.

    8. Re:So everyone is perfect? by sckienle · · Score: 1

      Sure, some people use it as temporary folder, but so what? ... If you need tmp storage use /tmp.

      And how long before virus writers realize this and start explicitly infecting the /tmp folder?

      --
      I don't see things in black and white; I see the gray. Heck, I actually see in color, which makes things more difficult
    9. Re:So everyone is perfect? by Znork · · Score: 2

      This isnt an RTFM attitude, this is a 'use the GUI filemanager' attitude. The filemanager is there to be friendly and to help newbies. The filemanager will put things in the trashcan. There is nothing stopping anyone from adding a friendly (and most distributions have it) alias for rm either, for the shell newbies.

      But unlink(2) and rm need to do what they're meant to do or there's no end to the things you break. Applications and scripts that create loads of temporary files can fill up a filesystem in minutes or even seconds if unlink and rm suddenly arent 'really really really _delete_ this' anymore.

      There are solutions to this. Use them.

    10. Re:So everyone is perfect? by dildatron · · Score: 1

      What?! Your wife doesn't read the man pages?!!!

      --


      If you had nuts on your chin, would they be chin nuts?
    11. Re:So everyone is perfect? by Daniel · · Score: 2

      The problem that springs to mind immediately is that this can affect *every program*. (and if you preload it in .xsession or .bashrc or something, it will)

      That doesn't just count the user files you go and delete; it also counts the work file your graphics manipulation program generates, the intermediate cruft from compiles, the weirdly named checkpoints your desktop software writes out...in other words, tons of stuff that has no business being saved forever (or until the user remembers to empty the trash, which is -- to a first approximation -- the same thing)

      If nothing else, you're quite likely to watch your available disk space go up in smoke, especially if more than one person uses your computer.

      Anyway, I generally don't care; I won't be using this anyway (see above), but what other people do with their computers is their own business.

      Daniel

      --
      Hurry up and jump on the individualist bandwagon!
    12. Re:So everyone is perfect? by mr_z_beeblebrox · · Score: 2, Insightful

      And how long before virus writers realize this and start explicitly infecting the /tmp folder?

      Most undelete folders with cots products have their own default settings which are very weak that is why they are targeted. If they can target /tmp that is the admins fault, executable code does not belong in /tmp at least not with the intention of it being run.

    13. Re:So everyone is perfect? by PissedOffGuy · · Score: 0

      only if its implemented horribly, HORRIBLY wrong... intermediate cruft from compilation in windows doesnt wind up in the recycle bin.

    14. Re:So everyone is perfect? by sckienle · · Score: 1

      So why not apply the same restriction on the undelete folder. In fact it seems that the undelete folder could have even more security built on it. Because not only should executables not be run from it, but none of the files in there should really be read or modified.

      The only allowable actions on undelete folder items are to move them back out of the undelete folder or to perform the final true delete on them.

      --
      I don't see things in black and white; I see the gray. Heck, I actually see in color, which makes things more difficult
    15. Re:So everyone is perfect? by kfg · · Score: 2

      I'll even go so far as to defend the people who use it as a temp folder, * because that's what it is!* Just a temp folder with an "autorestore to its original site" script that happens to be named trash/recycle. It could be named George or Herbert, it doesn't matter.

      The people who use it as a temp folder aren't the idiot users, they're the users who are smart enough to have seen through the facade of the interface and realize what *tool* the trash/recycle bin really is.

      If it will make any if you who are bothered by this advanced insight on the part of some users any happier we can always just install *two* trashcans on every machine and name one of them "This is really another trashcan but we've named it George because some people get all bent out of shape by people using the one named trash the way it was designed to work, go figure."

      There is no such thing as sympathetic magic, things are what they *do,* names have no power and are arbitrary. Join the age of reason brother.

      KFG

    16. Re:So everyone is perfect? by Kintanon · · Score: 2

      Well, I won't complain about them using it as a tmp folder, as long as they don't complain when the first thing I do when I sit down to see why their desktop background changeed colors is empty their 750mb recycle bin.

      Kintanon

      --
      Check out JoshJitsu.info for Brazilian Ji
    17. Re:So everyone is perfect? by Suppafly · · Score: 2

      No kidding, I'm a residental network technician at my university and I empty peoples trash all the time, as well uninstalling aol and uninstalling kazaa and running adaware. Then again, we make them sign a waiver before touching anything too..

    18. Re:So everyone is perfect? by Anonymous Coward · · Score: 0

      What?! Your wife doesn't read the man pages?!!!

      She had a look for the woman pages but didn't find any..

    19. Re:So everyone is perfect? by Suppafly · · Score: 2

      So what about when someone gets a virus which infects the undelete folder.

      So what about it? The only thing you can do with the files in the trash are undelete them back to their original spot and truly delete them. I don't see this as being an overly exploitable system.

    20. Re:So everyone is perfect? by Anonymous Coward · · Score: 0

      cp /sbin/man /sbin/woman

      or whatever the path is ...

    21. Re:So everyone is perfect? by milkman_matt · · Score: 1

      This isnt an RTFM attitude, this is a 'use the GUI filemanager' attitude. The filemanager is there to be friendly and to help newbies. The filemanager will put things in the trashcan. There is nothing stopping anyone from adding a friendly (and most distributions have it) alias for rm either, for the shell newbies.

      But unlink(2) and rm need to do what they're meant to do or there's no end to the things you break. Applications and scripts that create loads of temporary files can fill up a filesystem in minutes or even seconds if unlink and rm suddenly arent 'really really really _delete_ this' anymore.

      I hadn't thought of it before reading your post.. but, I can see how some people would say "we can disable the trashcan? f'you, we shouldn't have to" which doesn't help new users.. why not have a fork in the install so new users can go one route, and experts can go another, the new users route has this (among other things) enabled, the expert route has it all off just how it is now.. It could basically be like a theme manager, one has all of the bells and whistles on by default, one has them all off by defauilt..

      -matt

    22. Re:So everyone is perfect? by geekoid · · Score: 2

      so what you are saying is "yes, I am perfect because I make no mistakes. When I do something, it is always what I intended to do, and no, I would never make a mistake is a script."
      Jeez, if you were any more perfect, they would nail you to a tree.

      You aside, most people arn't perfect.
      It is farly easy toi do, and all user who previously used windows or a mac will expect it.

      If you want people to use Linux, then Goddamn, give them the simple stuff. the fact that you won't need it is secondary, because you can turn it off. Hell, you can bypass the trash can in windows.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    23. Re:So everyone is perfect? by geekoid · · Score: 2

      God forbid some use something it wasn't intened for. I mean, what next, someone using a piece of hard for something it wasn't designed for? madness I say, Madness! ;)

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    24. Re:So everyone is perfect? by Znork · · Score: 2

      No, what I'm saying is "I dont use rm if I dont really want to delete things". I dont smash my disk with a sledgehammer either to delete files. Nor do I use shift-delete under Windows or use move-to-trash followed immediately by empty trash. rm is a sledgehammer and it's not what you should use unless you actually do want to really make sure the files are gone.

      And when I write scripts I dont use rm. I use ls or mv until I'm very sure it does exactly what I want. And then I replace the ls or mv with an rm.

      A Windows or Mac user expects 'delete' in the file manager to move to trash. And guess what; it does exactly that in Linux too. They shouldnt have to open a shell to delete a file, and in that case there is no problem.

    25. Re:So everyone is perfect? by IGnatius+T+Foobar · · Score: 2
      I don't understand why there are so many people saying this is bad or implying that people who use Linux don't need it because they are so good. I must have missed the evolutionary step that made all Linux users so perfect that they never make mistakes. That is all the Recycle Bin is.
      Well, it goes something like this:
      • Install an operating system without trashcan support
      • ??
      • Profit!
      --
      Tired of FB/Google censorship? Visit UNCENSORED!
    26. Re:So everyone is perfect? by Anonymous Coward · · Score: 0
      ln -s /usr/bin/man /usr/bin/woman
    27. Re:So everyone is perfect? by vermicious · · Score: 1

      So how long till we have 'MS Garbage Removal' where a program moves your files to the 'Microsoft Garbage Dump' located in senic redmond; just in case you need them later...

      Seriouslly tho, the trash can isnt a bad thing - but it should probably be integrated into the filesystem... (i.e. remove from the allocation table, but reserve the space until file is removed from trash)

      my 2 bits...

      -v

    28. Re:So everyone is perfect? by yuri+benjamin · · Score: 1

      Because a lot of us _mean_ rm when we type rm.

      When I really mean rm, I right-click in konq and choose shred.
      It only overwrites 35 times, I'd prefer 35,000 times to make sure the authorities can't recover the files.

      --
      You make the mistake of thinking you can educate the fundamental stupidity out of people. You can't.
    29. Re:So everyone is perfect? by mr_z_beeblebrox · · Score: 1

      The only allowable actions on undelete folder items are to move them back out of the undelete folder or to perform the final true delete on them.

      The point I was making is that usually those are set by the programmer of the undelete function. They are programming for a crowd of people who don't know if they want to delete something, not a crowd that would likely administer securities.

  11. I know you're kidding, but.... by FreeLinux · · Score: 4, Insightful

    [x] Trashcan support
    [X] Easy to use Windowing system - KDE
    [X] Standard software install system - LSB, Red Hat, Mandrake, Suse
    [X] Easy to use Windows filesharing - KDE, Samba
    [ ] Easy support for video files and DVD - No answer
    [X] Desktop company support - Red Hat, The Kompany

    1. Re:I know you're kidding, but.... by Xpilot · · Score: 2

      [X] Easy support for video files and DVD - Xine works for me like a charm :)

      --
      "Backups are for wimps. Real men upload their data to an FTP site and have everyone else mirror it." -- Linus Torvalds
    2. Re:I know you're kidding, but.... by oever · · Score: 5, Informative

      [X] Easy support for video files and DVD - mplayer

      I've installed mplayer on two SuSE 8.0 linux machines, and it's amazing. You can see DVD's, AVI's and even look at at microsoft media streams.
      e.g. 'mplayer mms://streaming.omroepbrabant.nl/live1'

      And how easy do you want it? You can easily make an icon on the desktop that starts mplayer on the dvd currently in the drive.

      So, visit www.mplayerhq.hu and rejoice.

      --
      DNA is the ultimate spaghetti code.
    3. Re:I know you're kidding, but.... by Josuah · · Score: 4, Insightful

      [X] Easy to use Windowing system - KDE

      Um, KDE is really nice and my windowing system/manager of choice under Linux. But it's really not so "easy to use" "all the time" to the degree that Windows and Mac OS are.

      [X] Standard software install system - LSB, Red Hat, Mandrake, Suse

      By listing four things here, you've gone right ahead and said that the software install system is _not_ standard. There is a very different user experience for each distribution's install, enough to make the average user think he is installing a different OS for each one. I know my mom thinks Red Hat is an OS.

      [X] Easy to use Windows filesharing - KDE, Samba

      I can't say Samba is easy to use Windows filesharing. Easy to use Windows filesharing is clicking on a button that says share files and seeing that folder show up in Network Neighborhood. It's not SWAT.

    4. Re:I know you're kidding, but.... by Fastball · · Score: 4, Funny
      [X] Easy to use Windowing system - KDE

      You mean GNOME, right?

    5. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      [x] Trashcan support
      [X] Easy to use Windowing system - GNOME2
      [X] Standard software install system - apt (dpkg/rpm)
      [X] Easy to use Windows filesharing - Nautilus, Samba
      [X] Easy support for video files and DVD - Xine/GStreamer
      [X] Desktop company support - Red Hat, Ximian

      There, see? not only is everything set, we even have two complete different sets of answers. ~,^

    6. Re:I know you're kidding, but.... by Captain+Large+Face · · Score: 2

      [x] Easy support for video files and DVD

      You could do a LOT worse than mplayer..

    7. Re:I know you're kidding, but.... by (H)elix1 · · Score: 2
      [ ] Easy support for video files and DVD - No answer

      Take a look at http://videolan.org/'s client. Easiest DVD player I've worked with...

      From the site,

      The VideoLAN Server can stream video read from a hard disk, a DVD player, a satellite card or an MPEG 2 compression card, and unicast or multicast it on a network. The VideoLAN Client can read the stream from the network and display it. It can also be used to display video read locally on the computer : DVDs, VCDs, MPEG and DivX files and from a satellite card. It is multi-plaform : Linux, Windows, Mac OS X, BeOS, BSD, Solaris, QNX, iPaq... The VideoLAN Client and Server now have a full IPv6 support.

      VideoLAN is free software, and is released under the GNU General Public License.

    8. Re:I know you're kidding, but.... by Nathan+Brazil · · Score: 1

      [X] Standard software install system - LSB, Red Hat, Mandrake, Suse

      Does anyone else find it ironic to see the word "standard" on the same line as four different options?

      Let alone the fact that the one true option, Debian, was omitted...

      --
      echo Prpv a\'rfg cnf har cvcr | tr Pacfghnrvp Cnpstuaeic
    9. Re:I know you're kidding, but.... by garcia · · Score: 2

      I don't consider "Easy support" being mplayer.

      Libraries, different configuration options (configure --with-gui), and configuration files...

      I use it daily, I love it, but I don't think most "everyday users" would think it was easy.

    10. Re:I know you're kidding, but.... by jotaeleemeese · · Score: 1

      Um, KDE is really nice and my windowing system/manager of choice under Linux. But it's really not so "easy to use" "all the time" to the degree that Windows and Mac OS are.

      And point and click is different in which sense in KDE?

      I can't say Samba is easy to use Windows filesharing. Easy to use Windows filesharing is clicking on a button that says share files and seeing that folder show up in Network Neighborhood. It's not SWAT.

      You are right. Also remember that simplicity is inversely proportional to usefulness and flexibility.

      --
      IANAL but write like a drunk one.
    11. Re:I know you're kidding, but.... by iapetus · · Score: 3, Insightful
      By listing four things here, you've gone right ahead and said that the software install system is _not_ standard.

      Then what OS would you recommend that *does* have a standard software installation mechanism? Windows certainly doesn't count - I've used three entirely different installer applications just today...

      --
      ++ Say to Elrond "Hello.".
      Elrond says "No.". Elrond gives you some lunch.
    12. Re:I know you're kidding, but.... by oever · · Score: 1

      As with many linux apps, one's it's installed properly, it's very easy.
      My roommate is no wizard at computers and she uses linux on her laptop everyday. Mostly for e-mail, www and watching dvd's and avi's.

      No problems at all once I set it up for her.
      And if the distros would do their job a bit better, multimedia support in linux wouldn't be such a big problem.

      I'm really curious how SuSE's 8.1 will use mplayer. It's finally in the distro.

      --
      DNA is the ultimate spaghetti code.
    13. Re:I know you're kidding, but.... by Nailer · · Score: 3, Informative

      "[X] Standard software install system - LSB, Red Hat, Mandrake, Suse"

      By listing four things here, you've gone right ahead and said that the software install system is _not_ standard.

      I think what the poster meant was that Red Hat, Mandrake and Suse all conform to the Linux Standards Base. Which defines the standard packaging (software install and maintenance) system for Linux. Of course, you can pick your own front end.

      "[X] Easy to use Windows filesharing - KDE, Samba"

      Easy to use Windows filesharing is clicking on a button that says share files and seeing that folder show up in Network Neighborhood. It's not SWAT

      Damn stright, I agree. But KDE does have this ability - look for ksambakonquiplugin (shit name I know) on apps.kde.com. Its too bad the distros don't ship with it turned on by default.

    14. Re:I know you're kidding, but.... by Mr.+Slippery · · Score: 1
      [X] Easy to use Windowing system - KDE


      KDE is not a windowing system. X is a window system, while KDE is a "graphical desktop environment" layered on top of X.

      X sansKDE is easy enough to use, but looks and feels very little like MS Windows or MacOS - X provides mechanism, not policy. KDE and Gnome give you a fancy-schmancy sets of applications that share the same look and feel.

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
    15. Re:I know you're kidding, but.... by ndogg · · Score: 2, Interesting

      This is not meant to be a troll, I am seriously asking a question.

      What's not so easy to use under KDE? Whenever I let people use my machine who've only used Windows, they have no problems doing so, unless I happen to have the BeOS window decorations on, but that's understandable. Now, mind you, the only things in my GUI that I concern myself with configuring are the look-n-feel elements, otherwise, I mostly just leave it to the installed defaults. Beyond that, I only concern myself with configuring things like Apache, sshd, samba, or some other such arcane Unix utility.

      --
      // file: mice.h
      #include "frickin_lasers.h"
    16. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      It's because developers are too stupid or lazy to use the Loki installer...

      we have an installer.... why we dont use it? I have no idea...

    17. Re:I know you're kidding, but.... by siskbc · · Score: 1

      I completely agree. KDE is nothing if not a cheap (expensive?) Windows knock-off. That said, I use it as my default. Gnome is OK looking, but it seemed less intuitive than KDE. Coming straight from Winblows, I found everything I needed (just about) on KDE, and generally didn't have to look long.

      --

      -Looking for a job as a materials chemist or multivariat

    18. Re:I know you're kidding, but.... by vidarh · · Score: 2

      No, I don't find it ironic, considering that all four of them use RPM. Now referring to Debian, that is ironic, considering that most distros use a different install system that it does.

    19. Re:I know you're kidding, but.... by Ececheira · · Score: 1, Flamebait

      All Windows applications that want to display the "certified for" logo are required to use Windows Installer. Mind you, Windows Installer is just the back-end; there are several applications that you can use to create a custom front-end to the installer. InstallShield and Wise are two such applications. While they are different applications, they both ultimately use the *same* MSI database and Windows Installer back-end. This allows for a single point in which to check dependencies as well as provide a rich set of uninstall/rollback features.

      One good thing about Windows Installer is that the install is an atomic procedure. That is, if it fails for any reason (file missing, user cancel, etc.), then it will completely roll-back and not leave bits of a partially installed application.

      My point is, is that while it's possible to use different front-end installers, they all use the same back-end, unlike the different Linux package systems.

    20. Re:I know you're kidding, but.... by Marc2k · · Score: 1

      It's not a matter of "point and click" is harder, it's a matter of what to point and click on. Some solutions to problems may seem counter-intuitive to a long-time Windows user.

      --
      --- What
    21. Re:I know you're kidding, but.... by kmellis · · Score: 2
      "You are right. Also remember that simplicity is inversely proportional to usefulness and flexibility."
      For example, like driving a modern automobile?
    22. Re:I know you're kidding, but.... by jd142 · · Score: 2

      Ogle.

      1) Downloaded the rpms.

      2) Did rpm -ivh *.rpm.

      3) Was watching the Fifth Element in under 5 minutes from the time I started downloading. Fast forwarded through the FBI junk even.

      The only way it could have been easier was with a single download that was executable and just by double clicking it would install everything. That wouldn't be too hard to add though.

    23. Re:I know you're kidding, but.... by dillon_rinker · · Score: 1

      That is, if it fails for any reason (file missing, user cancel, etc.), then it will completely roll-back and not leave bits of a partially installed application.

      ROTFLMAO

      (You were kidding, right?)

    24. Re:I know you're kidding, but.... by Latent+IT · · Score: 2

      That is, if it fails for any reason (file missing, user cancel, etc.), then it will completely roll-back and not leave bits of a partially installed application.

      He's not kidding. Unless the program being installed was written by a malicious bunch of idiots, Windows Installer will do exactly that. It's quite capable doing so. It's also fairly easy to put together a package to be installed.

      In fact, the only reason things get left behind at all is because things are created once the program is run for the first time that don't get put into the windows installer database. So, if you uninstall say, Starcraft, your saved games are left behind.

      Don't laugh at something you clearly don't understand, or even use properly. You sound like a smug jackass when you make laugh at something, and then like a retard to boot when you're wrong.

    25. Re:I know you're kidding, but.... by zzzmarcus · · Score: 1

      I installed Linux for the first time 2 days ago. (Mandrake 9.0)

      If file sharing is so easy, tell me why I still haven't been able to do it? I went through a LISA setup I believe it was then tried to click the network icon, nothing, tried typing in lan:/localhost (or something like that-there were instructions at the end of th LISA setup) in Konqueror and nothing... I know that it's my fault that this doesn't work, but there is no way you can say it's as easy as Windows. I can't even access files on the other hard drive of the same machine--again, my fault, and for you I'm sure it's a piece of cake, but I find myself digging through documentation to do these seemingly simple tasks.

    26. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      Exactly. It's easy to drive a modern car - but just try driving one on the sea. It sinks. An amphibious vehicle is much more flexible. Bitch to drive though - there's all these extra controls for flipping between "boat" and "car" mode, and steering, breaking and accelerating feel _very_ different in "boat" mode to "car" mode.

    27. Re:I know you're kidding, but.... by peterpi · · Score: 2, Informative
      Then what OS would you recommend that *does* have a standard software installation mechanism?

      All together now...

      FreeBSD!

    28. Re:I know you're kidding, but.... by CristianoMonteiro · · Score: 1

      Most distributions use the .rpm package format.

      The rpm utils are the same for each distribution (back-end), just the interfaces are diffrent, like GNORPM, Mandrake Control Center, etc (front-end).

      How this is different from your Windows example ?

      - Cristiano

      --
      -------------------------------------------- Se você consegue ler aqui então fala português. Óbvio
    29. Re:I know you're kidding, but.... by SirGeek · · Score: 2
      You are right. Also remember that simplicity is inversely proportional to usefulness and flexibility.

      Simplicity in programming or use ?

      To me, for training a *NIX neophite from windoze, it would be LOTS simpler to say click on the directory and say share, pick users, etc. than to say "Open an editor and edit /etc/samba/smb.conf and add the share in there, then restart samba...

      MUCH more difficult, and if we want to be an OS for many other than techies, this is going to need to be some sort of add into the Window Manager applications (I mean, is it that "tough").

      We have a bad perseptions as programmers (yes, I've been a professional software developer/designer for over 14 years) to think we know it all. We don't. We know programming but, ususally we don't know dick about what the actual end users would find useful.

    30. Re:I know you're kidding, but.... by Andrewkov · · Score: 1

      But you already know how to do it in Windows, that's why it seems harder in Linux. Somebody coming from a Mac background wouldn't think that Windows was easier, because they weren't used to it. Linux is easier for me than Windows, since I already know how to do it in Linux. Anyway, my point is that it's not a fair comparison since your already familiar with one of the OS's.

    31. Re:I know you're kidding, but.... by TheGreek · · Score: 2

      He's right. It does this. Let me know when rpm starts doing this.

      And no, pumping a listing of the package's manifest through 'xargs rm' doesn't count. Real People don't know how to do that.

    32. Re:I know you're kidding, but.... by dildatron · · Score: 1

      Did you install the sharing stuff/server packages when you installed? That might be part of the problem.

      I installed Mandrake 9 a couple of days ago and I thought it was pretty easy with mebmin installed, but I am not a newB. I could understand that it could be difficult for someone new to linux.

      If you didn't install webmin, do that. It can make samba setup really easy if mandrake doesn't have a tool to do it for you. As far as browsing a windows network, can't help you there because I don't have any windows machines, just linux and OS X (and with them I just use NFS to share).

      --


      If you had nuts on your chin, would they be chin nuts?
    33. Re:I know you're kidding, but.... by dildatron · · Score: 1

      I agree. I installed mplayer a couple of months ago, and it wasn't for beginners. There are quite a few dependencies that need to be met, and I know a newbie couldn't handle it very well.

      But, mplayer is a fabulous product, no doubt about it.

      --


      If you had nuts on your chin, would they be chin nuts?
    34. Re:I know you're kidding, but.... by Wildfire+Darkstar · · Score: 1

      The problem with mplayer, ultimately, is not a problem with the program itself, but a problem with the (former?) release policy. I've been through numerous build processes a lot more annoying than mplayer's. The difference is that, for most really annoying compiling jobs, its easy enough for joe average-user to go download a prebuilt RPM (or DEB) of the program. For the longest time, mplayer restricted distribution in this way (not that said packages didn't exist anyway, of course...).

      I *think* the policy may have been withdrawn now, though (a legal issue of some sort has been ironed out), so hopefully mplayer can get the more widespread attention it deserves.

      --
      Sean Daugherty "I have walked in Eternity -- and Eternity weeps."
    35. Re:I know you're kidding, but.... by zmooc · · Score: 2
      [ ] Easy support for video files and DVD - No answer

      mplayer. Binary distribution and integration into desktop environments needs to catch up a bit, but we're about there.

      --
      0x or or snor perron?!
    36. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      > No problems at all once I set it up for her.

      Exactly the point.

      You set it up for her. How well do you think she'd have done on her own, like a normal user?..

    37. Re:I know you're kidding, but.... by Suppafly · · Score: 2

      One good thing about Windows Installer is that the install is an atomic procedure. That is, if it fails for any reason (file missing, user cancel, etc.), then it will completely roll-back and not leave bits of a partially installed application.


      That is assuming that it doesn't decide to break your other msi installed apps leaving them unrunnable with your registry messed up.

    38. Re:I know you're kidding, but.... by Suppafly · · Score: 1, Flamebait

      Rpm doesn't work right, but apt sure does. Serious linux users don't use rpm based distro's anyway so its not a 1 to 1 comparison.

    39. Re:I know you're kidding, but.... by Suppafly · · Score: 2

      [X] Standard software install system - LSB, Red Hat, Mandrake, Suse

      Does anyone else find it ironic to see the word "standard" on the same line as four different options?


      No, not considering that its one answer with 3 options. It should have been written like this
      >[X] Standard software install system - LSB: Red Hat, Mandrake, Suse

    40. Re:I know you're kidding, but.... by RealAlaskan · · Score: 2, Insightful
      Um, KDE is really nice and my windowing system/manager of choice under Linux. But it's really not so "easy to use" "all the time" to the degree that Windows and Mac OS are.

      Since you mention Mac, you probably don't think ``easy to use'' means ``just like MSWindows''. What does ``easy to use'' mean to you?

      My four-year-old has no more problems with KDE than she does with MSWin. Both kids manage to screw up MSWindows periodically. They haven't managed to get Linux (currently RH7.3) screwed up enough to need help for quite a while. For me, Linux is easier to use as a kid's toy than is MSWindows. If it only ran Reader Rabbit!

      My wife couldn't tell which OS the kids were running until I taught her to look for the big K versus Start. She knows that our box is always running Linux, and hasn't had any problem browsing the web and reading email. I don't have to worry about her opening the viruses our goofy friends send her, either (knock on wood). If I trained her to su to root, and type ``apt-get update;apt-get -u upgrade'', she could do the system administration, too. It's not that easy on Windows.

      A friend just got a WinXP computer (on purpose, yet!). He's having terrible problems getting it into a usable state. If his mind didn't go blank at the mere thought of understanding his machine, I'd set him up with Debian, since I suspect that KDE would be easier for him to do his thing with. He liked Knoppix, but the thought that it's non-MS worried him.

      Linux presents a lot of little difficulties, but so does MSWin. The difference is that if you know what you are doing, you can fix the problems with Linux. Presetup Linux isn't ready for the desktop yet, but neither is presetup Windows.

    41. Re:I know you're kidding, but.... by ActiveSX · · Score: 1

      one's[sic] it's installed properly, it's very easy.

      Could your mom install it? No? If a normal person (as opposed to a Linux user) needs help to install something, it doesn't matter how easy the software is to use. Compare an mplayer install to the install of a DVD player under Windows. Quite contrasting experiences, as you can imagine.

    42. Re:I know you're kidding, but.... by oever · · Score: 1

      one's
      Oh my goodness, I've been reading slashdot posts for too long.

      Could your mom install it?
      No, but she wouldn't be able to install windows xp either. Especially not on a machine with linux pre-installed.

      The different distributions exist to make installing linux more easy. And with good package management, installing applications is not difficult. It's even easier than installing applications on windows.

      --
      DNA is the ultimate spaghetti code.
    43. Re:I know you're kidding, but.... by 0x0d0a · · Score: 2

      Umm...I've had decidedly nasty experiences with failed installs of IE that definitely did *not* fully roll back.

      I'm not saying the technology isn't there, but even MS doesn't use it, at least some of the time.

    44. Re:I know you're kidding, but.... by BlueGecko · · Score: 2
      hen what OS would you recommend that *does* have a standard software installation mechanism?
      Mac OS X has only one install mechanism, though arguably two procedures. In many cases, the entire application and all support files are in a bundle, so there is no real install; just, if you want, you can drag the application to whatever folder you want to run it from, but I do want to emphasize that that's not necessary if you'd rather leave it in its download folder. Almost all applications except those that need to install system files, those from Apple, and those from Microsoft fall into this category. The only official mechanism to install programs is the Installer application, which always presents not only the same UI, but the same procedure (i.e., same sequence of events) for installing applications. This is used by any application that needs to install system files, plus a few rogue apps whose creators, for one reason or another, decided they needed to force the user to use Installer. So I could make a good case that OS X has one install mechanism and two procedures.

      (Having said all that, Microsoft's Internet Explorer and Palm's PalmDesktop applications, for reasons I cannot fathom, use their own weird installers, but as far as I know, they are the only two applications that use whatever it is they're using.)
    45. Re:I know you're kidding, but.... by TRACK-YOUR-POSITION · · Score: 3, Interesting
      By listing four things here, you've gone right ahead and said that the software install system is _not_ standard. There is a very different user experience for each distribution's install, enough to make the average user think he is installing a different OS for each one. I know my mom thinks Red Hat is an OS.

      For the purpose of this complaint, your mom is basically right. Microsoft doesn't make a package management system that works on multiple corporations distributions of the OS, so why should Red Hat. Just pretend Red Hat is an OS and your complaint goes away. Just because both kernels are signed "Torvalds" doesn't mean their the same OS. Heck, Red Hat even changes the kernel anyway.

      I can't say Samba is easy to use Windows filesharing. Easy to use Windows filesharing is clicking on a button that says share files and seeing that folder show up in Network Neighborhood. It's not SWAT.

      Maybe your describing Mac OS X Windows file sharing, because it's not that easy on any Microsoft OS. Sure, that's all that you're supposed to have to do. But have the time it doesn't work. "Okay, enter this name and password to get my files." "uh--it's just asking me for a password, no name." That's if you can somehow magically get the computers to see each other.

      You can come back and say "you must have done it wrong, TRACK-YOUR-POSITION", but if there was anything for me to screw up, that just proves it's not as easy as you claim it is.

    46. Re:I know you're kidding, but.... by Codifex+Maximus · · Score: 2

      >[X] Easy support for video files and DVD - Xine works for me like a charm :)

      Never tried Xine but MPlayer does a fine job of playing just about any movie file I throw at it with nary a complaint. I got it set as the default application for playing most movies in KDE.

      As for standard installers in Windows... there ain't no such thing. Installshield is the closest thing to a standard in Windows (but that is also quite available in Linux.) I've installed not a few Linux apps using a jar file that had Installshield for the installer - some script installers too. Anyway, there are many different installers in Windows - many operate similarly enough that the user doesn't notice. The main exception is Microsoft - they always have to be different - the odd folks out.

      --
      Codifex Maximus ~ In search of... a shorter sig.
    47. Re:I know you're kidding, but.... by SalasG4 · · Score: 1

      You know what's even easier? Installing apps on OS X. Drag and Drop, baby.

    48. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      OS X? You mean the BSD with 3 package management systems? Yeah, really easy.

    49. Re:I know you're kidding, but.... by electroniceric · · Score: 2

      "[X] Easy to use Windows filesharing - KDE, Samba"

      Easy to use Windows filesharing is clicking on a button that says share files and seeing that folder show up in Network Neighborhood. It's not SWAT

      Damn stright, I agree. But KDE does have this ability - look for ksambakonquiplugin (shit name I know) on apps.kde.com. Its too bad the distros don't ship with it turned on by default.


      True, this is a nifty little extension to Konqueror, and should be shipped w/KDE. There's still a big hole it in it, though - adding shares requires (AFAICT) root access to modify smb.conf, and then restart smbd and nmbd. There ought to be a way for users to share their own files without the intervention of root.
    50. Re:I know you're kidding, but.... by Platinum+Dragon · · Score: 1

      [x] Trashcan support
      [X] Easy to use Windowing system - KDE, Gnome (my computer-braindead girlfriend uses it without any problems)
      [X] Standard software install system - LSB, Red Hat, Mandrake, Suse
      [X] Easy to use Windows filesharing - KDE, Samba
      [X] Easy support for video files and DVD - Xine is awesome, and it will even play QT5 files!
      [X] Desktop company support - Red Hat, The Kompany, etc.

      As for trashcans... as a temporary stopgap, it's not difficult to set up an alias that will move a file to $HOME/.Trash instead of deleting it, but this isn't real undelete support.

      --

      Someday, you're going to die. Get over it.
    51. Re:I know you're kidding, but.... by zonker · · Score: 0

      i know you're kidding but...

      [X] Trashcan support
      yay.
      [X] Easy to use Windowing system - KDE
      mom doesn't know how to use kde. she just figured out how to use the right mouse button.
      [X] Standard software install system - LSB, Red Hat, Mandrake, Suse
      she can barely figure out how to install a windows program, nonetheless a linux program
      [X] Easy to use Windows filesharing - KDE, Samba
      she didn't even know you could do it, but i'm sure she'd have no clue how to do it in linux
      [ ] Easy support for video files and DVD - No answer
      she'd rather watcha movie on her tv
      [X] Desktop company support - Red Hat, The Kompany
      there damn well better be someone to bitch at on the phone when things don't work.

    52. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      Some solutions to problems in Windows may seem counter-intuitive to a long-time fwvm2 user. What's your point?

      If you want Windows, use Windows and keep your filthy mitts off my GUI.

    53. Re:I know you're kidding, but.... by J.+Random+Software · · Score: 2

      Microsoft does have a standard installer framework (if you've ever seen a MSI file, this is how it works). Many products still don't use it because it wasn't bundled until WinXP and many users haven't downloaded it as an add-on. It can stub out components and then really install them on first use, which is fairly cool over a reliable network (but an awful nuisance if you installed off a CD the BOFH then locks up).

    54. Re:I know you're kidding, but.... by MarkedMan · · Score: 1

      jotaeleemeese wrote:
      >You are right. Also remember that simplicity is inversely proportional to usefulness and flexibility.

      This statement is wrong in so many ways it is hard to know where to start. Arguing by ananlogy, were automobiles that required exacting choke hand-adjustments, hand cranking, manual shifting, manual clutching, etc. more useful and flexible than a modern car. Don't get me wrong, I like manual shifting, both my cars are manuals, but I would be hard pressed to say it makes the car more useful. As for more flexible? Perhaps. On one hand, I can immediately go into the gear I want. But I can do that in most automatic transmissions too. I can use a low gear to help me go downhill. No wait, I can do that in the automatic too. Hmm... I can't think of anything... And on the other hand, a manual transmission is no fun at all in a traffic jam, resulting in shorter life on all transaxle components. And that goes double or triple if you pull a trailer.

      In a similiar vein, embedded deep in UNIX are ways to set virtually every parameter you could imagine for communications through a serial port. Is this more useful than USB? You set those parameters because of shortcomings of the serial port, not because they are intrinsically desirable.

    55. Re:I know you're kidding, but.... by der_joachim · · Score: 1

      > [ ] Easy support for video files and DVD - No
      > answer

      http://xine.sourceforge.net/

      Back on topic, here's my 2c. An early comment was adding undelete functionality would help migrate Average Joe to Linux desktops. Do we actually *want* this? OK, I'm being smug now, but everyone with half a brain (or less) and a lack of sufficient computer knowledge should *not* be migrating to Linux (yet). Linux is not ready for them and they are not ready dor Linux.

      I do like the idea of being able to undelete files and it will surely come in handy for many sysops.

      --
      Geek runner, motorcyclist and professional know-it-all
    56. Re:I know you're kidding, but.... by someonehasmyname · · Score: 1

      They'll never learn.

      --
      Common sense is not so common.
    57. Re:I know you're kidding, but.... by Da+Schmiz · · Score: 2
      peterpi writes:
      Then what OS would you recommend that *does* have a standard software installation mechanism?
      All together now... FreeBSD!
      or Gentoo.
      --

      "Anything is better than IE, and you can quote me on that." -- Wil Wheaton.

    58. Re:I know you're kidding, but.... by Ross+Finlayson · · Score: 1
      > [X] Easy support for video files and DVD - mplayer

      > I've installed mplayer on two SuSE 8.0 linux machines, and it's amazing.
      > You can see DVD's, AVI's and even look at at microsoft media streams.

      Even better, mplayer can now play open standard RTSP/RTP streams.

    59. Re:I know you're kidding, but.... by snol · · Score: 1

      This is the most tired argument. If you use windows for a day or two you're likely to figure out that any folder-specific controls are gotten by choosing "properties" from the right-click menu. Where do you choose what folders to share? Bingo. Properties, and from there it's a nice self-explanatory gui. I realize it's often more complicated than that (you might have to install an IPX protocol for instance) but all the tools are in the folder properties and the control panels.

      If you use Linux for a day or two you figure out that most settings are in /etc, and can be accessed through whatever random gui config apps your distro threw in. Where do you choose what folders to share? Hmmm. Of course you can look at the samba man pages (big help) or you could google for some gui app, or look at your distro's online support... The point is in Windows you don't even have to RTFM. I like Linux a lot but ReadingTheFuckingManual isn't what I want to do all day just so that I know how and can go and tell people that it's only hard because they don't.

    60. Re:I know you're kidding, but.... by drinkypoo · · Score: 2
      mplayer is a serious bitch to build, as are many of its requirements. Installing from a binary package is no answer, it defeats some of the purposes of an open source solution.

      Also, my K6/2-433 laptop with ATI Rage Pro LT graphics can play DVDs very cleanly at 800x600 fullscreen in windows 98, but choked horribly under linux once I got something going. It may have been possible to speed things up - I don't know - But it has to be easy on a wider variety of hardware, not just the vastly overpowered and most-supported stuff.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    61. Re:I know you're kidding, but.... by oever · · Score: 1

      Check out the gatos project for support for you Ati Rage LT.

      Works for me.

      --
      DNA is the ultimate spaghetti code.
    62. Re:I know you're kidding, but.... by dfaure · · Score: 3, Informative

      > Easy to use Windows filesharing is clicking on a button that
      > says share files and seeing that folder show up in Network
      > Neighborhood.
      Like one can do in Konqueror-3.1 (and in Mandrake-9.0's Konqueror) ?

      Yes, that box can get a checkmark now.

      David.

    63. Re:I know you're kidding, but.... by Josuah · · Score: 1

      I don't think people have a real problem with just using KDE to perform most routine GUI tasks like opening windows or browsing for files (although browsing for files can be a real adventure in itself for some people, like my mom). But another problem crops up when KDE does not behave in a consistent manner or in a manner which makes it easy for a new user to adapt.

      For example, what happens when I accidentally "delete" the trash can? What am I supposed to do? Can I no longer delete things? (I know you can't do this from the desktop, but you can do it from Konqueror.)

      How come the default is to single-click (I recently saw someone get mad about RedHat moving to a double-click default)? That makes it extremely difficult to select a file without opening it. And users won't know how to change this.

      Why can't I open my hard disk from the Desktop? KDE puts icons for the floppy and CD-ROM/DVD-ROM drives, but no hard disk? Or is it just that my installed copy of KDE and/or particular desktop configuration doesn't have the hard disk on it?

      It's little things like this which companies spend millions and millions of dollars to address. Unfortunately, KDE doesn't have the money or manpower to actually conduct a formal user interface study.

      What's not so easy to use under KDE? Whenever I let people use my machine who've only used Windows, they have no problems doing so, unless I happen to have the BeOS window decorations on, but that's understandable. Now, mind you, the only things in my GUI that I concern myself with configuring are the look-n-feel elements, otherwise, I mostly just leave it to the installed defaults. Beyond that, I only concern myself with configuring things like Apache, sshd, samba, or some other such arcane Unix utility.

    64. Re:I know you're kidding, but.... by Josuah · · Score: 1

      I just mentioned some things in a previous post. It's really the sum of little things that makes a difference. Little things which are easy to overlook and simply attribute to "I just need to get used to it" or "I didn't know better yet". That's why I also said "all the time" and not just "easy to use".

      Kids are probably the worst way to get feedback on a UI, unless you are constantly watching, because they will quickly learn the "correct" way to do something, even if it means doing things an incorrect way lots of times first. You might ask your children if there was anything they wanted to do which took them more than one try. I'm not sure they would remember, since once they've figured something out it tends to become second nature.

      You could ask the same question of your wife, but how about also asking what things about using the OS annoy her and she wishes were different? (I'm not sure children will be as quick to figure out what annoys them and what they would like to be different.) And if there's anything she wanted to do but just didn't bother to do, and why?

    65. Re:I know you're kidding, but.... by jetmarc · · Score: 1

      > [X] Standard software install system - LSB, Red Hat, Mandrake, Suse

      Well, he said "standard software install system" and not "standard system software
      install". That's a difference.

      I expect that every APPLICATION installs itself through a standard system. I am
      sick of reading an HOWTO for SpamAssassin, another HOWTO for Samba, and a
      whole portfolio for LoopAES which even gives me a free trip through the depths of
      kernel recompliation HOWTOs.

      When installing Linux applications, groups.google is your friend. Just about any question
      you might come up with, has already been asked before, because Linux is so damn
      difficult to administer.

      Windows shows the way to go. Click next to start, click next to accept license,
      click next to accept destination folder, click next to accept default installation
      type, click next to finalize, click next to reboot (if applicable - system level
      application).

      Guide a novice computer user through this process twice, and she'll be able to do it herself.

      jetmarc

    66. Re:I know you're kidding, but.... by Trogre · · Score: 1

      I use and like MPlayer for playing media files, but I've found it awful for playing DVDs (in my case anyway). As the movie progresses, the sound drops up to 2 seconds out of sync with the picture. This is on a 2000+ Athlon with UDMA enabled.

      And I don't want to have to sit with my fingers on the 'increase lag' 'decrease lag' keys while watching a movie.

      Ogle however works great, and it supports menus.
      The CVS version has full AC3 surround for multichannel cards like the SBLive 5.1 too!

      --
      "Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
    67. Re:I know you're kidding, but.... by cuyler · · Score: 1

      You should check out Xine. I've been using it for almost 6 months now for watching DVDs, DivX, mpegs and a whole bunch of things.

    68. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      > [X] Standard software install system - LSB, Red Hat, Mandrake, Suse

      The best part is that you list 4 different things here!

      I do agree that KDE is an easy to use windowing system. It's not as nice as Windows 2000, but it is pretty damn usable.

    69. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      *I* just recently installed SuSE8.0 professional -- along with the $25 pre-burned service pack -- and I can tell you that, based upon my experience with SuSE, Linux is NOT ready for video.

      1) Only *one* of the many tv/video programs can use my card's tuner (oh, I guess the ATI TVWonder ValueEdition is just OH so non-standard), and THAT is much less stable than its windoze cousin.

      2) Good luck finding an EASY guide+ for Linux -- downloading TV listings was 1/2 the reason I BOUGHT the card IN THE FIRST PLACE, but it's a game of guesswork to set it up in SuSE

      3) No, it's not as easy as you make it sound. If SuSE doesn't like your setup, you have to go in and setup the video card MANUALLY -- THAT'S RIGHT, THE PlugNPlay is *spotty*

    70. Re:I know you're kidding, but.... by Hway · · Score: 1

      In a similiar vein, embedded deep in UNIX are ways to set virtually every parameter you could imagine for communications through a serial port. Is this more useful than USB? You set those parameters because of shortcomings of the serial port, not because they are intrinsically desirable.

      Now, as USB is so easy and useful as-is, kindly describe how I can make an SPI programmer cable, which requires reset, three signal lines and ground, by using USB, easily?

      Of course, you can't. However, with RS-232 is is quite simple actually; connectors and wire (and tro resistors because processor didn't like +12VDC on it's reset pin) - and most importantly, low-level access to all lines that are there due to "shortcomings".

      Just because it (whatever "it" happens to be) happens to be "easy" in some situation doesn't mean it's easy in all cases.

    71. Re:I know you're kidding, but.... by Andrewkov · · Score: 1
      The point is in Windows you don't even have to RTFM. I like Linux a lot but ReadingTheFuckingManual isn't what I want to do all day just so that I know how and can go and tell people that it's only hard because they don't.

      Well, to each his own. I don't like troubleshooting obscure problems with Windows that often aren't documented, or take months to be fixed by MS. I find it embarasing when users ask me to fix some broken behaviour in Windows and all you can tell them is maybe it'll be fixed int the next version. Linux might take a deeper understanding of computing, but once it's set up properly it works much better than anything from MS.

    72. Re:I know you're kidding, but.... by WWWWolf · · Score: 1
      [X] Standard software install system - LSB, Red Hat, Mandrake, Suse

      Or Debian (optionally with Alien)...

      ...or the de facto standard, GNU Autotools, known among the newbies as "./configure", a potent option combined with the "it works for me" package manager, GNU Stow, the Unquestioned Rulah of /usr/local. =)

      [ ] Easy support for video files and DVD - No answer

      Xine? MPlayer? Stuff that'll be in gstreamer?

    73. Re:I know you're kidding, but.... by teqo · · Score: 1
      There, see? not only is everything set, we even have two complete different sets of answers

      If I were a moderator, I would mod him up, since this is one of the major problems for non-geek users: consistency. There is freedom in multiple, rather incompatible or at least inconsistent alternatives, but there is also complexity. Myself, I like having the choice and do not want to trade it for simplicity, but then I have to accept Linux will never be a system for people who just want to use it.

    74. Re:I know you're kidding, but.... by Anonymous Coward · · Score: 0

      There is a difference?!

      I should get back to finishing this install of RH8 ;o)

    75. Re:I know you're kidding, but.... by snol · · Score: 1

      Linux might take a deeper understanding of computing, but once it's set up properly it works much better than anything from MS.

      I do agree about that, I just would very much like to have it both ways.

    76. Re:I know you're kidding, but.... by Codifex+Maximus · · Score: 2

      MSI is a standard now? Who said?

      BOFH: Ok, let's see...what was your username again?
      USER: joeuser.
      BOFH: Ok, let's have a look see if you have any files. clikety click.
      BOFH: Nope. I don't see any files in your home directory.
      USER: What?!
      BOFH: clickety click click. I don't see a user by that name either.
      BOFH: As for the CD, it's on plain display in the secure room. Visible thru a large 3"x3" viewport.

      --
      Codifex Maximus ~ In search of... a shorter sig.
  12. Recycle Bin vs Trash Can by chill · · Score: 5, Funny

    Way back when Apple sued Microsoft for ripping off the look of their interface, Apple lost. The ONLY thing they got the judge to concede was the Trash Can was theirs. Thus, MS changed to a recycle bin -- a sideswipe at the Apple-California neo-environmental stereotype.

    The editorial cartoons of the time were great. One showed a picture of Jobs carrying a trashcan full of legal documents with someone commenting "At least the judge let you keep something to carry all that home in."

    --
    Learning HOW to think is more important than learning WHAT to think.
    1. Re:Recycle Bin vs Trash Can by Rolo+Tomasi · · Score: 1

      Sounds like an urban legend to me. The Amiga had a "Trashcan" (that was its actual name) since it was introduced (AFAIK 1985).

      --
      Did you know you can fertilize your lawn with used motor oil?
    2. Re:Recycle Bin vs Trash Can by KinkyClown · · Score: 1

      Then we will call it a "Bit Bin" in Linux :)

    3. Re:Recycle Bin vs Trash Can by chill · · Score: 1

      Amiga wasn't worth suing, as their market share was dismal. Superior though they were.

      --
      Learning HOW to think is more important than learning WHAT to think.
    4. Re:Recycle Bin vs Trash Can by Anonymous Coward · · Score: 0

      Actually, the Amiga Trash Can was crippled - each disk had its own trash can (presented to the user in that manner) - one had to install an unofficial freeware Commodity (amigaish for daemon) to merge the Trashcan across volumes into one virtual trashcan on the desktop to get the mac-like behaviour.

      It would have been the author of the freeware commodity and not CBM/Amiga that Apple would have had to go after.

  13. README? by brunes69 · · Score: 3, Insightful

    Why is there no README or any other info on your site about this thing? I want to know how it works and how it is different from alias rm='mv ~/.trash', or the KDE trashcan, before I download it. Man I hate sites like this that expect you do download the package, then untar it, just to read a README file. How hard is it to throw it on your website with a link?

    1. Re:README? by Fizzl · · Score: 1

      Use the force, read the source. ...Luke

      (Damn lazy ass, theres more comments than code in that package :))

    2. Re:README? by brunes69 · · Score: 2

      Apparantly you didn't read the comment at all... i was commenting on how incredibly lazy it is to not post a README on the web (takes all of 3 seconds) because people like me do not want to download the whole file, untar it, and view the files just to see what it does. A simple description of what it i and how works would suffice.

    3. Re:README? by entrigant · · Score: 1

      This appears to have a wider range of protection than a simple alias. Any method used to delete a file is caught and converted to use a trash can. This way if a program or script deletes the file it is still retrievable.

  14. What a drag by interstellar_donkey · · Score: 0, Troll

    I have been using computers for over 20 years. I have never, ever, ever 'accidently' deleted an important file.

    I'm smart enough to know what 'delete' does. I don't need to be asked if I'm sure. (Yeah, on second thought I don't want to delete it?). And I don't need to have a recovery system if I delete a file.

    One of the more charming aspects of *nix is that it's designed by and for people who have a clue. The more you make it easy to use by the common user, the more it becomes bastardized.

    Why do I see linux not including a command line in 5 years.

    --
    The Internet is generally stupid
    1. Re:What a drag by cpt+kangarooski · · Score: 3, Insightful

      So you must never wear a seat belt either because you've never been in a fatal car accident.

      Moron.

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    2. Re:What a drag by Dionysus · · Score: 1

      You do know you don't have to use it, right? Just don't install this utility. Or are you going to complain about people installing Xemacs next, because you only use and need vi?

      --
      Je ne parle pas francais.
    3. Re:What a drag by interstellar_donkey · · Score: 2

      I use pico. I think it's rad.

      --
      The Internet is generally stupid
    4. Re:What a drag by British · · Score: 2

      One of the more charming aspects of *nix is that it's designed by and for people who have a clue. The more you make it easy to use by the common user, the more it becomes bastardized.


      Darn, the common person isn't allowed in the Linux treehouse!

    5. Re:What a drag by Anonymous Coward · · Score: 0

      Choad.

    6. Re:What a drag by Anonymous Coward · · Score: 0

      WOW!!! your special

    7. Re:What a drag by interstellar_donkey · · Score: 2

      Ok

      You really can stop replying to this thread.

      Really.

      You might even try to do the really insane idea of instead of replying to this and telling me I'm wrong/I'm an idiot, you could start a new message and tell the world why linux needs an undelete.

      Really.

      Telling people why you're right is a heck of a lot more effective then telling me that I'm wrong.

      --
      The Internet is generally stupid
    8. Re:What a drag by Anonymous Coward · · Score: 0

      I think you mean "you're"

    9. Re:What a drag by crimoid · · Score: 3, Insightful

      >> tell the world why linux needs an undelete

      Because the world does not consist of perfect people. Most people will f*ck up from time to time and hose something that they didn't want. While I won't be installing this on any of my systems I'm sure that some of the more consumer-oriented distros might want to add this type of functionality to their products.

      That being said, I could see how something like this could be beneficial to many people, so having it as an option is a Good Thing. No one is forced to use it, but it's there for those who do.

    10. Re:What a drag by kubrick · · Score: 2

      I have been using computers for over 20 years. I have never, ever, ever 'accidently' deleted an important file.

      Unfortunately, not everyone shares your fine mental and physical coordination. Who should we be designing for -- the exceptional people such as yourself, or the lumpenuser who, on making a mistake, would like some way to easily recover it? How many more are there of them than there are of fine specimens such as yourself? Couldn't you just grit your teeth while you disable this unnecessary feature, secure in the knowledge that your momentary sacrifice has enlightened the lives of millions less fortunate than yourself?

      --
      deus does not exist but if he does
    11. Re:What a drag by jcoy42 · · Score: 2
      So you must never wear a seat belt either because you've never been in a fatal car accident.

      It's more like not wearing a seatbelt while playing GTA3.

      It's not like you actually *die* if you lose your files. It just sucks because you have to start over.
      --
      Never trust an atom. They make up everything.
    12. Re:What a drag by carlos_benj · · Score: 1

      Or are you going to complain about people installing Xemacs next, because you only use and need vi?

      vi???? Pish-posh. The genuinely cluefull among us use ed! With our eyes closed no less.

      --

      --

      As a matter of fact, I am a lawyer. But I play an actor on TV.

    13. Re:What a drag by Anonymous Coward · · Score: 0

      Wow!!!

      You are super smart with an anology like that! That must have been hard to come up with because it's so close and relevent!!!!

      Wow!!!

      I'm impressed.

    14. Re:What a drag by Anonymous Coward · · Score: 0

      Ok

      You really can stop replying to this thread.


      Why? watching you morph from an interstellar_donkey to an interstellar_ass is more fun than I think you realize :)

    15. Re:What a drag by chefren · · Score: 1

      So, you have never written a buggy makefile and then spend a looong evening sorting out exactly what 'make clean' did and did not delete? You can delete files in many exciting ways, even if you never do 'rm -rf *' in the wrong terminal window.. I would love a trashcan that cleans up on every logoff..

    16. Re:What a drag by Anonymous Coward · · Score: 0

      I hope that was a joke.

    17. Re:What a drag by Anonymous Coward · · Score: 0

      Best response in the thread! *clap clap*

    18. Re:What a drag by Anonymous Coward · · Score: 0


      I have been using computers for over 20 years. I have never, ever, ever 'accidently' deleted an important file.


      You obviously need to get out more.

      One of my most cherished memories is when I accidentally deleted my mail file under Windows 3.5. I realized the mistake a milisecond after I did it. My first (gut) reaction was "OH NO! WHAT A DISASTER!!!"

      Then, only one or two seconds later, I started to realize that all the baggage that had built up in my mail folders was gone. A wonderful feeling of well being washed over me.

      An undelete feature would have completely ruined my day.

    19. Re:What a drag by cpt+kangarooski · · Score: 2

      This is not always true. Imagine having a piece of medical hardware that's computer controlled. Or imagine skimping on simulating the design of a building due to lost files, where the building eventually collapses.

      Of course, we don't even NEED such extreme examples. If I'm working on a project and I lose my work then that's already bad enough to justify such features! Don't people claim that one of the virtues of Unix is its uptime? Well, if crashing is not a big deal because it only takes a few minutes to reboot, why all the big deal?

      Peoples' work isn't a video game. It is often serious enough to them to require GREAT care on the part of developers to keep them happy.

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    20. Re:What a drag by Anonymous Coward · · Score: 0

      WOW!!! your special

      My special what?

  15. One solution by Mr_Silver · · Score: 1
    ... is to get your users to use something like "del" instead of "rm". Yes, it's completely non-standard but could just be a simple perl script that moves those files somewhere else (ie. ~/Trashcan).

    If you wanted to be really clever about it, you move them outside of their account (so their quota does actually go down) and then clean them up automatically if they've been in there longer than 30 days.

    If they want to "restore" something, they just mv it from the Trashcan to their account.

    Of course, this is command line only stuff, but if that is all you need then it'll do.

    --
    Avantslash - View Slashdot cleanly on your mobile phone.
    1. Re:One solution by chegosaurus · · Score: 1, Troll

      > Yes, it's completely non-standard but could just be a simple perl script that moves those
      > files somewhere

      $ du -sk /opt/perl5
      20801
      $ find /opt/perl5 | wc -l
      1194

      Yep, I need 20Mb of Perl installation spread over 1194 files to do that. How elegant.

    2. Re:One solution by Mr_Silver · · Score: 2
      Yep, I need 20Mb of Perl installation spread over 1194 files to do that. How elegant.

      Oh god, that sound is the average IQ of this place dropping by another 10 points.

      If Perl is already installed and being used, then the fact it's 1194 files is immaterial.

      You could always use sh you know. Or bash, or PHP or even C. Or you as equally clueless which those as you are with your comments?

      --
      Avantslash - View Slashdot cleanly on your mobile phone.
    3. Re:One solution by chegosaurus · · Score: 2

      The point I was making, for the benefit of those who couldn't quite grasp it, was that loading into memory a great big executable, with however many shared libraries and other dependent files perl requires, is overkill. A one line shell function in everyone's .profile will do the exact same job.

      So many people, especially here on /. want to show off their leet coding skillz and solve every problem with Perl, when it so often isn't the right solution.

      Get that? Or are you equally clueless at understanding follow-up posts as you are the originals?

    4. Re:One solution by Mr_Silver · · Score: 2
      The point I was making, for the benefit of those who couldn't quite grasp it, was that loading into memory a great big executable, with however many shared libraries and other dependent files perl requires, is overkill. A one line shell function in everyone's .profile will do the exact same job.

      Except that you didn't say any of that.

      So many people, especially here on /. want to show off their leet coding skillz and solve every problem with Perl, when it so often isn't the right solution.

      You should try reading Slashdot a little more than once a month.

      Actually most people want to show off their 1337 coding skills by reinventing the wheel when something is out there that does the job just fine.

      Get that? Or are you equally clueless at understanding follow-up posts as you are the originals?

      I understood it just fine, hence my comment about using something else. Which you quite obviously missed.

      Good luck with the reading and clear writing course. Looks like you need it.

      --
      Avantslash - View Slashdot cleanly on your mobile phone.
    5. Re:One solution by Anonymous Coward · · Score: 0

      Actually most people want to show off their 1337 coding skills by reinventing the wheel when something is out there that does the job just fine.

      You mean like writting a library that overrides unlink() to do something that can be scripted with five lines in a shell?

      Then submitting it to Slashdot? Yeah, I agree, l33t!

    6. Re:One solution by chegosaurus · · Score: 2

      > You should try reading Slashdot a little more than once a month.

      I would, but things like this always end up driving me away.

      To summarise: the original poster says he'd write something in Perl that would move things to a trash directory rather than removing them.

      I point out, admittedly in a childishly sarcastic (but hey, remember where we are) way. that that's using a sledgehammer to crack a walnut.

      You point out, in a condescending, superior (but hey, remember where we are) way, exactly the same thing.

      I repeat what I just said.

      You repeat what you just said.

      Someone else chips in having completely misunderstood what we've both said.

      The internet is *even more* full of pointless crap than when we started.

      So, for what it's worth to move instead of removing, for my ksh user's I'd have an alias to a function calling mv, and in csh and derivatives, just an alias. We agree?

    7. Re:One solution by Mr_Silver · · Score: 1
      *grin*

      Can't say fairer than that :o)

      --
      Avantslash - View Slashdot cleanly on your mobile phone.
  16. Linux Undelete Project by wlugo · · Score: 2, Informative

    when I was in college some people and I did a Linux Undelete on the kernel using the ext2 filesystem. The whole procedure is described on http://amadeus.ece.uprm.edu/~undelete. The problem was we didn't found enough people to supported on greater kernels. I think it could be easily ported to ext3.

  17. There was undelete support in the Linux kernel. by shippo · · Score: 1

    Sometime during the early 2.1.x development kernel series someone added code to add an undelete facility. The last x files deleted would instead get moved to a pseudo .directory and remain there until a restart or until additional files were removed.

    This feature disappeared when 'dentry' support was added to the filesystem code circa 2.1.43.

  18. metacommentary! by fraxas · · Score: 2, Insightful

    Please ignore the idiots above -- the l1nux-l337 are always a pain in the butt about usability issues. As a response to the ask-slashdot rfe from last week, this works really well.

    As a point of note, those of you complaining about the disclaimer in the article should realize that, if the disclaimer hadn't been there, you would be complaining about how "/. isn't an advertising service, you Window$ Idiot!!111!11!!!11!!"

    Sheesh.

    1. Re:metacommentary! by Anonymous Coward · · Score: 0

      No, the point is that writting a whole library and supporting binaries to do this is completely redundent and such massive overkill that you may as well start opening walnuts with a small thermonuclear warhead.

      If all you want to do is move files into a "trash" directory when you "delete" them, you can do it with four or five lines of standard Unix. Six whole lines if you want to add a cron job to peridiocially empty the trash directories.

      When people say that Linux isn't Unix, they're not joking!

  19. Not a solution by cpt+kangarooski · · Score: 5, Insightful

    While a trash can is nice to have, this doesn't fundementally address the issue of retrivability of accidently deleted information. That is, there is still going to be a step where information is going to be classed as unretrivable even when it COULD be retrieved. (i.e. when the trash is emptied)

    Clearly users appear to want to be able to correct mistakes that they've made -- perhaps even those that were not immediately apparent as being mistakes at the time -- for as long as possible. A trash is a step in that direction, but simply does not go far enough.

    My proposal is this: 1st it should be recognized that when you delete a file, you're really only marking the space where that file was as being available to be overwritten by more data. The original data is there, but what it consisted of, and where it was, are lost.

    So, let's keep that information in a log so that we can in a very real sense undelete anything that has not yet been overwritten. This log is not especially large, and with modern drive sizes is not a serious concern.

    Then, let's order the overwriting process to favor the maximum preservation of data. So for example this might result in new writes being done to the areas of the oldest deleted files first. Important files might be considered to be worth preserving longer, with importance dervived from various factors such as number of accesses, etc. prior to deletion. There's definately work for some user testing here to determine the optimal method. That's okay.

    If fragmentation is a worry, (bear in mind most people have never heard of it) then defragging software could take into consideration the undelete log and continue to preserve as much of the deleted data as possible when it shifts information around on the disk.

    In any event, the objective is to forestall the day when you have to tell a user who wants to undelete a file for as long as possible. Not longer, which the trash solution does, but AS LONG AS POSSIBLE.

    --
    -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    1. Re:Not a solution by aug24 · · Score: 0, Flamebait

      I agreed with everything you said up till "very real". Then I wanted to kill you.

      When you have an example of doing something in an only partly real sense, let me know ;-)

      Justin.

      --
      You're only jealous cos the little penguins are talking to me.
    2. Re:Not a solution by PissedOffGuy · · Score: 0

      "While a trash can is nice to have, this doesn't fundementally address the issue of retrivability of accidently deleted information."

      isnt this exactly what it addresses? why go through all the fuss of a new filesystem when the trashcan works?

    3. Re:Not a solution by cpt+kangarooski · · Score: 1

      A trash doesn't work well enough. On the Mac there has been a trash since day one. (perhaps earlier if you consider the Lisa)

      Yet there was STILL a significant demand for undelete utilities.

      People fuck up. It's a fact of life. It happens to everyone.

      Let us then accept that accidents will happen and then make them correctable. Hell, people are willing to go through the fuss of new filesystems for journaling; that's because of a very similar concern.

      If I could be assured that every possible step was being taken to keep me from screwing myself (and I've lost important files in this manner before) than I'd appreciate that.

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    4. Re:Not a solution by Suppafly · · Score: 2

      What your talking about is almost exactly how dos handled file deletion.. a file wasn't listed by dir anymore, but unless you did a lot of file IO or ran defrag, you could easily undelete the file using the undelete command.

    5. Re:Not a solution by roukounas · · Score: 1
      While a trash can is nice to have, this doesn't fundementally address the issue of retrivability of accidently deleted information. That is, there is still going to be a step where information is going to be classed as unretrivable even when it COULD be retrieved. (i.e. when the trash is emptied)

      Even with your solution, the file will be deleted eventually (when its blocks get reused). The way I see it, both solutions have the same outcome (the file becomes unrecoverable eventually) and yours requires requires non-trivial changes to the OS.

      Besides, you can enforce some type of policy on your trashcan as well. You can assign, for example, priorities over the deleted files so non-important files are removed first from the bin.

      The big advantage of libtrash is simplicity (it's a preloaded shared library - no recompiling or modifications required) and it's user space (no changes to the US).

    6. Re:Not a solution by pmineiro · · Score: 1

      The big advantage of libtrash is simplicity (it's a preloaded shared library - no recompiling or modifications required) and it's user space (no changes to the US).

      As opposed to kernel-space changes, which do require amending the constitution of the US.

      Sad thing is, that might be true one day.

      -- p

    7. Re:Not a solution by Loki_1929 · · Score: 2

      "Even with your solution, the file will be deleted eventually (when its blocks get reused)."

      There's no solution that offers absolute recoverability 'til the end of time, but we're talking about implementing a system which will allow for maximum data integrity post-deletion without a major performance hit. Moving deleted data to the end of the drive upon deletion seems like a good way to start, especially with larger hard drives available today. The next step would be keep a catalog of sorts, listing a priority index for each deleted file so the file system knows which files to overwrite first when deleted data space needs to be reclaimed for new files. Another user pointed out that such priorities could be established by using an algorithm that looks at access frequency amoung other factors. Assuming you have a 40GB hard drive (small for a new computer), and assuming you use roughly half of that drive at peak usage, this leaves you 20GB of deleted files available for recovery on demand. This could go back months, or even years for some people without seriously hitting your disk performance, as the data currently being used should be at the "front end" of the drive. Obviously, this is a simplistic view of the system that would need to be implemented, and serious issues would still need to be addressed to make it viable; security and performance being two of them, but the fundamentals must be in place before details may be realized.

      --
      -- "Government is the great fiction through which everybody endeavors to live at the expense of everybody else."
    8. Re:Not a solution by Spy+Hunter · · Score: 2

      No, letting the user keep undeleting files as long as possible is bad. Why? Because when you know you can do something, you start to rely on it. So the user will start to be a little less careful emptying the trashcan, since he knows that he can undo it right away if he wants. Except that one time he accidentally empties the trash right before he installs a program, and then he tries to undelete and whoops! His data is gone forever. Unreliable undeletes are bad news; there are good reasons to make emptying the trash a permanent operation. There probably still is a place for undelete utilities, but it shouldn't be something that is built into the OS and is easy to access, it should be something used only out of desperation.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    9. Re:Not a solution by cpt+kangarooski · · Score: 2

      I've been thinking about this. However, I don't think that very many users would come to rely on it in a harmful way as you suggest. Particularly if it is made very plain that it is not a guaranteed thing.

      However, I'd definately suggest user testing to see how people react, rather than have us all take unsupported wild-assed guesses. Scientific method, and all that, you know.

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    10. Re:Not a solution by Anonymous Coward · · Score: 0

      Everyone will think that you're stupid unless you spell it "definitely."

  20. Announcing another level of hell... by Anonymous Coward · · Score: 0

    As it seems to be software announcement day on slashdot, I'd like to announce the project I'm working on...

    libpaperclip

    Yes, that's right - clippy comes to X Windows!!!

    1. Re:Announcing another level of hell... by howardjp · · Score: 1

      There is a version of vi that has a clippy clone.

  21. Hmm... Interresting? What about filer? by LWolenczak · · Score: 2

    I was thinking about filer last night, and this morning, we get libtrash. People have always had issues with deleting files. I personally keep a ~/bla/ directory. I move unneeded things there. If I don't need the files after a few months, I trash the directory, and recreate it. The concept is still better then an undelete, but I remember deleting some very important files on my first linux system... like vmlinuz and the /boot directory because I did not know better.

  22. Just @!#%^ Great!!!! by gillrock · · Score: 1

    Just one more thing to worry about in the security world. As is the 1GB email mongers aren't bad enough. Now UNIX Admins will be trash collectors too.

    "Could everyone delete some files? We're running out of space on the server. This would include your trashcans as well."

    Response:
    "Doesn't the janitorial staff take care of that?"

    Unix has entered the world of the clueless.

    --
    "...the shortest distance between two points may be straight line, but it is by no means the most interesting."
  23. What we need now is by dfgdfgdfg · · Score: 2, Insightful

    What we need now is the Gnome (or KDE) panel set LD_PRELOAD so that all application can use libtrash.

    --
    -- 1.e4 c6 2.d4 d5 3.Sc3 de4: 4.Se4: Sd7 5.Sg5 Sgf6 6.Ld3 e6 7.S1f3 h6 8.Se6:
    1. Re:What we need now is by kcbrown · · Score: 2
      What we need now is the Gnome (or KDE) panel set LD_PRELOAD so that all application can use libtrash.

      This can be done for Gnome in your $HOME/.gnomerc file, which is just a shell script (I have mine source my .profile so that I can make environment changes in one place).

      Works in Debian, at least.

      --
      Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
  24. well there goes half my server room... by pestihl · · Score: 0, Troll


    I'm so happy this exsits.. now I don't need to maintain those god awful daily backup / restore deamons..

    lol..

    You opensource developers always amaze me.

    another option... for those who have a yard of paper work to go through to install anything from the net....

    just remove the rm command and, alias it to copy /usr/home/$usrname/trashcan..

    I can't really see the difference... it also gets backup nightly.. lol... don't forget to kill the ftp->rm function.

    -nasu

    --
    "What do you do with the mad that you feel when you feel so mad you could bite?" - Mister Rogers
  25. False sense of security by Myshkin · · Score: 5, Insightful

    So, what happens if you send something like ld.so, or your kernel into the recycling bin? Experimenting by randomly moving stuff you don't understand is never a good idea. Just sending it to some sort of recycling bin just gives folks a false sense of security and could lead them to completely hosing their entire install.

    1. Re:False sense of security by Anonymous Coward · · Score: 0

      So why are they logged on as root?

      If you play as root, you should have a clue. If you don't have a clue, undelete won't make it any more dangerous to play with things you shouldn't.

    2. Re:False sense of security by Ilgaz · · Score: 1

      One tries to delete ld.so doesn't deserve to run Linux.

      Its same for windows too... There are people deleting vxd's since they can'T read it (oh so they aren't their documents) . There is no safe method to stop them.

      I remember on my Atari 800xl days, a customer came with fully washed/rinsed 5 inch diskettes. If he is using computers now without getting killed like, while trying to wash a monitor, he is one user could delete ld.so and you can't stop him.

    3. Re:False sense of security by windex · · Score: 2

      Actually, if using LILO, you move the kernel to the recycle bin and the recycle bin is on the same partition, nothing should happen, all you've done is change the location of the inode in the directory structure, without changing the physical location of the data.

      This is dangerous. :) Someone might eventually decide deleting it is a good idea.

      If you rm -rf /, and it whacks the kernel, chances are the machine will still boot afterwards and give a no root fs kernel panic, that's because the kernel is still intact on disk and LILO just uses the physical location to load the kernel. If you use a bootloader like GRUB that understands filesystems that's not going to work.

    4. Re:False sense of security by JohnFluxx · · Score: 1

      More to the point, what if you accidently delete the undelete program?

    5. Re:False sense of security by alonsoac · · Score: 1

      So, what happens if you send something like ld.so, or your kernel into the recycling bin?

      But that makes no sense because only root could do that. And no one is stupid enough to be fooling around deleting kernels and libraries just to experiment and not expect bad things to happen. I feel the issue here is about regular users who are working with and deleting documents and stuff and not about root screwing things up.

  26. better solution by carpe_noctem · · Score: 3, Informative

    mkdir ~/trash
    alias rm="del"
    echo "* 4 * 1 * /bin/rm -rf /home/*/trash" >> /etc/crontab

    del:
    #!/bin/sh
    mv $* ~/trash /me nods

    --
    "Quoting famous computer scientists out of context is the root of all evil (or at least most of it) in programming." - K
    1. Re:better solution by carpe_noctem · · Score: 3, Informative

      doh that "/me nods" isn't part of the script. stupid /. formatting

      --
      "Quoting famous computer scientists out of context is the root of all evil (or at least most of it) in programming." - K
    2. Re:better solution by Rogerborg · · Score: 2

      Look great, but you step 1 could be improved: mount dossiere.nsa.gov:/home/$USER@$HOST ~/trash

      --
      If you were blocking sigs, you wouldn't have to read this.
    3. Re:better solution by gdchinacat · · Score: 2, Informative


      I haven't tested this, but it looks as though the given cronjob will delete ~/trash, afterwhich the first rm command will move the file to the _file_ ~/trash, not the _directory_ trash. all subsequent ones will overwrite the previous file. modify like this if you want it to work:

      echo "* 4 * 1 * /bin/rm -rf /home/*/trash/*" >> /etc/crontab

    4. Re:better solution by Old+Wolf · · Score: 1

      you aren't meant to send stuff straight to crontab files, are you ? you're meant to edit a temp copy and then install it? (or use crontab -e)

  27. Re:Here's a Handy Hint by Anonymous Coward · · Score: 2, Funny

    Obviously someone wasn't around for the great RM stampede of 98...

  28. Its called backup by jhines · · Score: 3, Insightful

    Don't delete anything, till it has been backed up. You do back up your data, right?

    1. Re:Its called backup by Fastolfe · · Score: 1

      This was my first thought upon reading this article. With a proper backup procedure, doing nightly incremental backups or such, an 'undelete' would simply require someone to go fetch the material from backups.

      Unfortunately, this is really only practical for Linux server installations, which is the only place backups occur in the real world. For Joe User sitting at home playing on his shiny new Linux box, backups are not going to happen.

      Perhaps we just need a better way of making backups a second-nature thing for a filesystem. Perhaps as "free" or reserved disk space permits, journal all changes and/and deletions to the filesystem as far back as we can go. Allow the user to save this journal (or pieces of it) to permanent storage trivially, giving him a backup. *shrug*..

    2. Re:Its called backup by Kintanon · · Score: 2

      Just want I need to do, spend 45 minutes getting the last backup tape (hopefully I didn't make any changes to the file that got toasted in the last few hours) then finding and restoring the file, instead of 45 seconds to pull it back out of the trashbucket and stick it back where it belongs.
      Sounds REAL practical.

      Kintanon

      --
      Check out JoshJitsu.info for Brazilian Ji
    3. Re:Its called backup by Anonymous Coward · · Score: 0

      Well, if you hadn't been babied by the windblows & especially mac contingents with their fake deletes, you would learn not to delete files with abandon.

      When I delete files, I really want them gone. At least winblows lets me force a true delete. Until OSx, MACs suck at letting a real user delete in a single move. I hate having wastefull trashcan folders taking up space and forcing me to do a second delete to really get rid of a file that I want gone.

  29. Run as root, and alias rm to mv by caluml · · Score: 1

    If we can educate newbies not to run as root, they shouldn't ever be able to actually mess with the running of their systems.

    Of course, they'll still be able to delete stuff in their home areas, but we all have to learn the hard way :)

    Of course, alias rm = 'mv "$1" /home/wastepapaerbasket' would produce the required result. And a crontab that find /home/wastepaperbasket -atime +7 -exec rm {} \; would auto clean the old ones for you.

    1. Re:Run as root, and alias rm to mv by cybermace5 · · Score: 2

      Yeah, that would about do it. In fact, that's a pretty simple and easy to set up idea.

      Goes to show how easy it is to get anything you need out of Linux, just by thinking about it for a minute or two and never again afterward.

      --
      ...
    2. Re:Run as root, and alias rm to mv by Anonymous Coward · · Score: 0

      find /home/wastepaperbasket -atime +7 -exec /bin/rm {} \; :)

    3. Re:Run as root, and alias rm to mv by sisukapalli1 · · Score: 2

      This is what happenned to me when I tried aliasing rm ...

      First, I aliased rm to "myrm" where myrm would put the files/directories inside ~/tmp/trash

      If I wanted to really delete a large file I'd use \rm largefile.out (in bash, \ is for the real rm), and soon, instead of rm, I started using \rm. Meanwhile, my labmates used the alias and filled the entire disk with ~/tmp/trash files (nested directories, large files -- several versions, and so on).

      S

  30. Undelete on linux isn't something new... by tgd · · Score: 2

    Back in like '94 a friend of mine in school wrote an Ext2 undelete program, which of course I no longer can find online... He doesn't have it listed on his webpage any more.

  31. Complacency by fishbowl · · Score: 2

    Having your users accustomed to "undelete"
    just makes it that much more harsh when they
    learn that something delete from a remote filesystem is irretrievable. "Undelete" creates bad habits.

    --
    -fb Everything not expressly forbidden is now mandatory.
    1. Re:Complacency by Reziac · · Score: 3, Insightful

      Actually, I've found it's the other way around. If average users know that every mistake is fatal, they become afraid of making ANY mistakes, and that's when you discover a HD completely filled up with garbage that they didn't dare dispose of.

      --
      ~REZ~ #43301. Who'd fake being me anyway?
    2. Re:Complacency by Erik+Hollensbe · · Score: 1

      and this is different from how undelete works, how?

    3. Re:Complacency by Reziac · · Score: 2

      Undelete doesn't save EVERYTHING, as a gunshy user will. (And if you support enough newbies, you WILL encounter this.)

      Undelete only recovers what you ooops-omighod-I-didn't-mean-to-delete-that.

      IOW, it's a difference in selectivity.

      --
      ~REZ~ #43301. Who'd fake being me anyway?
  32. But I have one by jdavidb · · Score: 2

    I flipped over to another virtual desktop and found that GNOME has already provided me with a trashcan. (More like Mac than Windows.) I never use it, though.

    If this is a trashcan for command-line rf, I can see how some people might want to use it. Not me, though.

  33. Article too verbose. by wunderhorn1 · · Score: 1, Offtopic
    Editors (hemos), couldn't you have done a little editing and taken out his quaint but wordy disclaimers? He addressed those sentences specifically to you anyway, leaving them in for everyone to read just looks amateurish and is annoying to read through while looking for the actual story.

    Thanks.

    --
    Karma: Bored. (Thinking about resurrecting the "Anyone else is an imposter" joke.)
  34. A Real Undelete for Linux by bedouin · · Score: 1

    http://freshmeat.net/projects/recover/?topic_id=43 %2C19%2C137%2C142

  35. Linux needs this at the filesystem level ... NOW by krray · · Score: 4, Insightful

    I've been a rabid Linux user from the early days. Today Linux handles DNS, Email, and Web services on my networks...it does NOT handle file access for JUST THIS REASON (lack of undelete).

    I'm not worried about *me*. When I delete something I fine with it being completely gone. What about completely clueless network users though? Being the MIS/IT MGR for where I work having access to "salvage" on the Novell Netware file servers is a wonderful tool for users mistakes.

    Classic example: last week one user created a Excel spreadsheet to be completed by another user. The second user opened the spreadsheet from Word, modified it, and saved it (as a .XLS file). Excel says it's corrupt (it's a Word document now).

    Getting the inserted table [spreadsheet] from Word back into Excel was next to impossible. Crappy Microsoft programming as usual -- and clueless users to boot. Easiet solution was to salvage the original spreadsheet and instruct user what NOT to do and re-enter the damn data PROPERLY this time.

    Linux would have left me high and dry. Well, not really, but having to go back to tape backups to simply salvage one file is a pain in the butt.

    I guess Linux will be nothing more than a niche product/market if "gurus" keep their attitudes posted here. Wake up and pay attention to corporate users and admins wants/needs. Telling me I'm clueless and wrong won't gain more market share (well, for Linux at least) -- I've recently bought another Netware license to cover just this issue for another remote office.

  36. This just in... by utexaspunk · · Score: 1

    I've just finished developing my libtrashtrash program. It puts a trash can inside your trash can. That way, you can delete files, and then empty your trash can without fear of accidentally deleting something you need. You can install it as many times as you desire. Each subsequent install will create yet another step between your files and oblivion... enjoy!

  37. Re:Here's a Handy Hint by yelligsc · · Score: 3, Insightful

    Once upon a time I wanted to delete a couple stray mp3s I had in my home directory, so I issued the following command:

    rm *.mp3

    Or so I thought. I had actually accidently told my linux install to do the following in my ~/

    rm * .mp3

    If you cannot tell, there is a " " between "*" and "." As you can imagine this has a very undesired effect, even though I saw it quickly after hitting enter and mashed the ^C as fast as I could.

    Undelete would have been useful then. Yes, its a dumb mistake.. but things happen!

    Scott.

  38. Do we really need more tools? by gwhalin · · Score: 1

    How about something as simple as rm -i ??? Or the many solutions aliasing rm to 'mv .trash'? Or ...

    Seems to me that we have a hundred diff ways to accomplish the goal of making it difficult to delete a file. Now, do I really want to delete a file. Well, if I type rm, then I am pretty sure I do. And, I do not make mistakes with this. Sure I did when I was a junior admin. How do you think I learned to be careful before deleting?! How do you think I learned to not use root for general use?!?!

    Besides, I hate the concept of the trash can. On my windows machine (gameOS for playing Counter-Strike) I have my trash can disabled.

    Greg

    --
    Greg Whalin
    greg@whalin.com
  39. Re:What a pompus post... by Capt_Troy · · Score: 2

    Wow, you are so special and smart.

    So what's wrong with providing a solution to those who want a trashcan? Maybe you are so much more experienced than most users (what 20 years of computer use? AMAZING!!!) but what's wrong with giving people an option?

    You only "bastardize" it if you make it mandatory.

  40. Cant you just do by Anonymous Coward · · Score: 0

    something like "grep -A num_after -B num_before "string from file" /dev/disk"?

  41. Recycle bins. Bad for us.. by Anonymous Coward · · Score: 0

    ..good for the desktop nuts.

    I despise trash cans, recycle bins, core waste dumps, et cetera. If I delete something, then, damnit, I want it to *stay* deleted. And even in my newbie stages of Linux use, I never fell for, "Oh, just hit rm -rf /" *chuckle*

    Even my mail program, what with its trash folder.. I hate that. I have to delete spam *twice*. I shouldn't have to, but I do.

    However, you people must realize that many, many desktop users are so dependant on having a trash bin that it isn't funny. I, personally, know people whom would sit down at a computer and suddenly explode into small chunks, suitable for stewing, if they deleted something by 'accident' and couldn't get it back through undelete.

    Should these people learn that delete is a powerful command, and shouldn't be invoked lightly?

    That's not even a question here. But until they do, let 'em have their small guise of safety.

  42. Possible solution. by FreeLinux · · Score: 3, Interesting

    I think that you are on to the right solution.

    Perhaps the thing to do would be to use two file tables. The first table would be used normally as it is today. It would represent existing files and provide the correct information regarding space usage etc.

    The second table would only be used by the file system and the recovery utilty. The second file table would maintain the information of the files that had been marked for deletion and the file system would consult this table prior to saves so as not to overwrite the files that were marked for deletion.

    When the disk becomes full, the file system should consult the second file table and overwrite the oldest file that had been marked for deletion.

    Also, the recovery utility could consult the second table, listing the files that were marked for deletion but, still reside on the disk. Files selected for recovery could then be added back to the first, primary file table making them again available for the user.

    I'm not sure how Novell does it but, the above method would yield the same behavior as the Novell system.

    1. Re:Possible solution. by xpl_the_myst · · Score: 1
      I think such a strategy would make a mess of the file system. The idea is that a file system is supposed to concentrate more on stuff like not allowing major fragmentation (ext2fs does that and that's why u dont have to defrag ur file sys in linux every now and then) and also things like fast, reliable access. i guess undeleting would be at the bottom of the 'desired features list' for a file system. Doing something like what u r proposing would prob'ly send all these things for a toss. anyway, do u think those guys in the linux kernel dev wouldn't have thought of this?

      The kind of phillosophy linux's built on, users r supposed to know what they do. if they really want an undelete, they should use something like the KDE Trash Can or some such 'dumb' stuff.

      --
      This sig is empty.
    2. Re:Possible solution. by cpt+kangarooski · · Score: 2

      Well, who really cares if their computer is lightning fast if they have just lost hours and hours of work and will have to recreate it? There is a point where computers are fast enough, and we begin to consider issues of reliability. Which is what this is -- reliability from the perspective of a user. (since users generally don't know and don't care if magical pixies make their computer work so long as it DOES work)

      We'll include efficiency as a factor in designing or implementing the sort of undelete system I have proposed. If handling this so degrades performance that a user will NOTICE (and we can have a combination of user testing to find a baseline and the individual computer using its spare cycles to determine where it's at) then we'll reduce the safety net a bit, or at least give the user the option to make the trade-off between stability and usability.

      But I suspect that in the vast majority of cases we could do this and it would be no problem whatsoever. No one would notice the lowered performance since they weren't using it anyway.

      As for the Unix philosophy, it's dog crap. Every user makes a mistake. You can be a brain surgeon and a rocket scientist but I guarantee that sooner or later you'll mistype an rm command.

      Even expert users benefit from increased usability. If this were not the case, the so-called experts would be dicking around with switches on the front panels of their machines, entering raw binary. Even keyboards are there for enhanced usability. What so many people so sadly fail to notice is that the absolute number one goal should be usability. Without usability, nothing else matters.

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    3. Re:Possible solution. by Anonymous Coward · · Score: 0

      What you've described is the ideal for a *SERVER* file system. For a user's file system the criteria is a bit more simple: What is of maximum utility to the user?

      Initially, the slightly different criteria is the same - reliability, and the things you've outline are reliablility and speed. But for a user, other things become usefull.

      for instance, if I type echo "feed the cat" >~/todo, when I ment >>, that's a problem, and a fully logging filesystem with version control is JUST EXACTLY WHAT I NEED.

      This actually exists for windows 95/98 - mijenix's 'GoBack' does this and more, without taking the extra disk space, just as the original poster described. It gives the ability to see previous versions of a single file, or the entire disk. It gives the abiylity to revert just the one file, or the entire disk. (MOST useful for windows users) Or if you just liked the earlier version of that paragraph, open the earlier version of that file, and cut and paste!

      It *WORKS* and it works so well that microsoft riped the idea off, in classical microsoft file, and included a bastardized version of the capability into windows XP (but their version isn't accessible at boot time, thus is useless for non-booting systems, and doesn't log user files, thus is useless for getting that paragraph back)

      Linux NEEDS something like this - ext4, anyone?

    4. Re:Possible solution. by Loki_1929 · · Score: 3, Informative

      You run into several problems here. First of all, at the current state of computers, the bottleneck in most machines is the hard disk. What we're doing here is adding additional work for the hard disk, thereby slowing down the computer further. Secondly, by continuing to avoid overwriting data and allowing the drive to fill, you further decrease disk performance. Hard drives generally begin to work more slowly when they become more than half filled, with a more severe and noticeable performance hit at around 80% depending on the drive.

      A more viable solution might be to take into account the above suggestions with the added idea of moving the data to the end of the drive during 'deletion' while still marking the space as available; albeit a new class of available which preserves data integrity based upon importance. This saves you from insane fragmentation and lower disk performance, and allows you to continue to maintain data integrity long after deletion. Two tables is again, twice the work, but a modified table which takes deleted information viability into account would certainly be useful. Issues such as security and performance are still in question, however, as well as how to implement such a table along-side existing file systems in such a way as to not break functionality or lose data. Backwards compatability and data security are probably the biggest issues, although preserving file permissions solves half of the security problem. Secure deletion must also be a choice for users eliminating sensitive data who don't want it recovered or viewed ever again.

      --
      -- "Government is the great fiction through which everybody endeavors to live at the expense of everybody else."
    5. Re:Possible solution. by Suidae · · Score: 2

      What we're doing here is adding additional work for the hard disk, thereby slowing down the computer further

      As a user I don't push the drives hard enough to notice a difference. I'm not running a high traffic web server, I'm editing documents.

      by continuing to avoid overwriting data and allowing the drive to fill, you further decrease disk performance. Hard drives generally begin to work more slowly when they become more than half filled, with a more severe and noticeable performance hit at around 80%

      The drive doesn't give a damn what those bits are, it has no concept of full or empty, it just reads and writes where its told. Your filesystem may have issues when you hit 50-80% capacity, but that doesn't have anything to do with the drive.

      One would want to be sure that the filesystem operated at acceptable speed with a large percentage of its capacity in use. Given the low number of file accesses (relative to a server system) of a typical desktop system, it shouldn't be a problem. The filesystem could even do low-priority background defrags, making sure it had its files arranged in the optimal order for the patters of use typical of desktop users.

    6. Re:Possible solution. by Loki_1929 · · Score: 3, Insightful

      "As a user I don't push the drives hard enough to notice a difference. I'm not running a high traffic web server, I'm editing documents."

      And that's fine, but don't assume that your particular usage is indicative of the vast majority of the masses. I do happen to use my hard drives, often pushing them to the point where the cpu is sitting at 20% waiting for the drive to feed it some data.

      "The drive doesn't give a damn what those bits are, it has no concept of full or empty, it just reads and writes where its told. Your filesystem may have issues when you hit 50-80% capacity, but that doesn't have anything to do with the drive."

      Well, if you'd like to get technical (as well as snitty), the drive has no "concept" of anything, as that would pre-suppose cognizance. In any event, if you look through any of a number of benchmarks (I personally like HDTach) which may either use a filesystem or not use one to do their work, you'll see that where you're reading/writing on the drive does have an effect on the performance. The filesystem generally cares only in that the fragmentation level tends to be higher at high disk usage, and it becomes increasingly difficult to defragment a drive as the free space dwindles.

      I'm not sure what you'd like to call a "typical desktop system", but I can tell you that if you take two systems with identical specs except that one has a 2GB 5400RPM drive with 10MB free, and use it along side another with a 36GB Cheetah X15 with 35GB free space, you'll see a remarkable improvement in many fields, especially games, photo/video/sound editing software, and anything else that requires writes/reads from the hard disk and/or swap file. If you don't think that the performance difference matters most of the time, then I think you ought to send a resume to Redmond, WA, as I'm sure you're just the kind of person they're looking for there.

      --
      -- "Government is the great fiction through which everybody endeavors to live at the expense of everybody else."
    7. Re:Possible solution. by Suidae · · Score: 2

      I do happen to use my hard drives

      Its not likely that you are a typical desktop user either. I'd venture a guess that you don't often delete things you didn't mean to either.

      As is often the case with 'power users' the settings we prefer are not the same as what typical users perfer.

      Personification aside, a system which maintains user deleted files (not necessarily all deleted files) does not have to take a large performance hit. Several obvious optimizations could be performed to minimize the impact deleted files would have, such as moving them to the slowest areas of the drive.

      The system would obviously not perform as well as if it did not maintain deleted files (near capacity or not), if speed is your only measurement of performance. If thats all you are concerned with, simply adjust the settings to increase speed, or turn off the feature.

    8. Re:Possible solution. by Loki_1929 · · Score: 2

      "such as moving them to the slowest areas of the drive."

      This is exactly what I was talking about doing. As far as speed, I think it's one thing to take into consideration amoung many other factors. While this would be a nice feature, it does no one any good if it kills drive performance, but I agree that the impact can be minimal so long as work is done on optimization. Of course, the optimal solution would be something hardware/firmware based on the drive itself which is able to work according to a standard so long as it's implimented by the file system as well. I also agree that this, like most features, should be made simple to enable/disable. I would probably use this feature, as I will once in a long while delete something I would rather not. Although it's never a system file, nor something I don't have backed up, it'd still be much more conventient to be able to recover it directly from the drive with a few keystrokes. Perhaps a file listing of each file, or even a simple GUI interface to browse deleted-but-recoverable files would be best, as to make the task of data recovery even easier.

      Speed optimizations aside, one still must consider security and other things. At least part of the security issue could be addressed by preservation of file permissions, as well as the inclusion of some sort of shredder utility to completely destroy sensitive data (preferably with an option to do so to DoD standards - think it's something like 10 passes). A very simple encryption algorithm could further increase security with deleted data without a serious or noticeable performance hit. Obviously, the more work done, the more of a performance hit is taken, but so long as this is all fully configurable and is reasonably optimized, we shouldn't see any major problems. Instead of integrating this into a single file system, I would suggest an open standard which allows an add-on/upgrade to most widely used file systems. This both encourages the use of open standards, and allows for widescale adoption even at an early stage.

      --
      -- "Government is the great fiction through which everybody endeavors to live at the expense of everybody else."
  43. Snapshots * by Anonymous Coward · · Score: 0

    For anyone who's ever had the pleasure of using a NetApp Filer, or similar product, you know that rolling snapshots are the way to go. Much more gracefull solution than the trashcan. Though I'd settle for .trash as well.

  44. Re:Here's a Handy Hint by Anonymous Coward · · Score: 0

    I've done it twice in seven years. Yes, it sucked. Big time.

  45. yeesh. by Captain_Stupendous · · Score: 1

    Pretty goddamn wordy. There's more disclaimer than story here...

    --


    I am alone, yet I also surf the universal backwash of undifferentiated Being, which is LOVE.
  46. undelete or a trash can? by ekephart · · Score: 1

    WTF if you aren't SURE, don't delete it. With that said a trash can is a good idea. The difference it makes seems merely cosmetic, but for people with a lot of "clutter" it's important.

    A lot of times I will use some file and know at that point that if I don't use it in three days, I will never need it again. On a busy day there may be many of these files. A trash can saves me the trouble of having to comb through directory after directory three days later.

    On the other hand a real undelete utility seems pointless if you have a trash can. In real life we toss things in the trash and the sanitation dept picks it up. If we threw out something we needed most of us just ACCEPT that its gone. We don't go digging through the local landfill. While use of a trash can doesn't, really deleting something serves to free up space on your hard disk. Not in 1989, but in 2002 if anyone is deleting files solely to free up space and then needs a utility to recover those files, they just need to get another disk.

    --
    sig
    1. Re:undelete or a trash can? by Etcetera · · Score: 2


      In real life we toss things in the trash and the sanitation dept picks it up. If we threw out something we needed most of us just ACCEPT that its gone. We don't go digging through the local landfill.

      Yes, that's why it's called the Trash Can or Wastebasket (or Recycle Bin if you think MS invented the Desktop interface). The point is that this is a place files go *before* they're picked up by the sanitation department and lost forever. Are you saying you've never tossed a paper into a basket by your desk only to take a second look at it 10 minutes later?

      Also, it's worth pointing out that the original Desktop interface (Mac's System 6 and earlier), the contents of the Trash only survived until you launched the next app or rebooted (except for Multifinder). Once you put a file in there, it was on its death nell. Different from System 7+ and MS Windows where files stay in the Trash/Recycle Bin indefinitely until you manually Empty (the) Trash.

    2. Re:undelete or a trash can? by ekephart · · Score: 1

      OF COURSE I'm not saying I've never recovered something from the trash can. "In real life if we toss things in the trash *AND* the sanitation dept picks it up." I think the logical AND makes it pretty clear that I don't mean one can't or wouldn't search through their trash can at one's desk.

      --
      sig
  47. Re:What a pompus post... by interstellar_donkey · · Score: 1

    No, I'm not special and smart.

    I just am uncomfortable with the idea of linux trying to be more like windows. It shouldn't and doesn't have to do that.

    So everyone can stop calling me pompus or whathaveyou. If you want a windows like OS, get windows. If you're looking for a very user freindly OS, get windows.

    If you like to play with things and get under the hood of your computer, run Linux (actually, I run BSD... but I'm not touching that debate with a 10 foot pole).

    --
    The Internet is generally stupid
  48. Sledghammer, meet Walnut by Anonymous Coward · · Score: 0

    Perl?! Perl?!?!

    Here. Enjoy, under the, uh, Poetic Licence V1.0...

    mv /bin/rm /bin/rmv
    echo '#!/bin/sh' > /bin/rm.sh
    echo 'mv $1 ~/trash/' >> /bin/rm.sh
    chmod +x /bin/rm.sh
    ln -s /bin/rm.sh /bin/rm
    alias empty 'rmv -ri ~/trash/*'


    Jesus, Perl. People wonder why modern distros take up two DVD's these days! Shit, you can probably do the above without all the mucking about with shell scripts, I'm just too lazy to think about it, because it's already that easy anyway!

    1. Re:Sledghammer, meet Walnut by Anonymous Coward · · Score: 0

      THINGS FOR YOU TO TODAY:

      man bash, and look up "here documents"

    2. Re:Sledghammer, meet Walnut by Anonymous Coward · · Score: 0

      Yeah yeah. As it happens, I have no access to a shell were I am at the moment, so man bash is a little hard. For a whole 10 seconds typing it at least works, and is lot less effort than messing around LD_PRELOAD'ing libraries that override unlink() just to stop a user from doing something stupid.

  49. I'm Torn by ReadParse · · Score: 5, Informative

    I know in my heart that there's no need for this on Unix, because you shouldn't run as root AND use rm -rf and THE decide that you shouldn't have done that. There are safeguards in place and, after all, since you're a Linux superuser, you're either good enough that you don't make that kind of mistake or the system isn't important enough for it to really matter.

    Having said that, even though I know how dumb it was, I once accidentally issued `rm -rf /bin`. Funny story, though:

    For some reason or another, I happened into an additional hard disk that I put into my Linux box at work (not a production box). I don't remember how big it was, but it was big enough relative to my primary disk that, when I needed a mount point, I chose /big. That was the first mistake. I have no idea why I felt the need to mount it that close to the root. Although the similarity between "big" and "bin" is obvious in retrospect, it is, after all, retrospect.

    Actually, that wasn't my first mistake. My first mistake was running as root.

    I mounted the disk and played around with it. I suspect that it was my first time playing around with an additional hard disk, so I copied files over and examined "df -k" and so forth, and eventually I guess I decided to unmount it and do it all over again... I probably would have done endless, mindless file copies for the rest of the day, I was so thrilled with it. Hey, I was young.

    This is where it gets embarassing. Perhaps everybody has some mysterious glitch which adds confusion where there should be none. Yes, I honestly do know the difference between a symlink and a mount... I swear it. But in the very brief period of time that it takes to type a command, I sometimes confuse the two in my mind and try to unmount using the "rm" command. More specifically, "rm -rf".

    I also noticed on that day that we humans have kind of a built-in autocompletion. If you type the first few letters of your last name, you have a tendency to follow through with the rest of it. And that tendency increases dramatically the closer you get to the last letter. The way I noticed this was when I attempted to issue `rm -rf /big` and immediately pressed return (I found that return is also a mysterious part of that autocompletion).

    Just so you know, there are a great many important things in /bin. Among them, all of the shells, chmod/chown, grep, kill, ls (try working without that), mv.... the list goes on and on.

    This story also reminds me of the time I evaluated WS_FTP Server when it first came out. I needed an FTP server so I could go home and work on some files on an NT server. I wanted access to the whole box, so I set up my FTP account's home directory as c:\ -- I had no idea that when I deleted that account it would attempt to delete the user's home directory, even if it was c:\.

    I've never heard a disk thrash like that before or since. And you've never seen anybody turn a box off as quickly as I did when I realized what was going on. Alas, it was too late. Reinstallation and backup restore (yes, I had a backup) commenced immediately. By the way, I've never fully accepted responsibility for that -- I still feel like it should have said "You're about to delete c:\ and all of it's subdirectories. Are you sure?" Because I really didn't think it would do that.

    Anyway, my point is that "there, but for the grace of a godlike substance, go you". It's really easy to say we're too good for this, and there's a damn good case that a linux trashcan is not necessary, but for those who want it I think it's a cool piece of code.

    That is all.

    RP

    1. Re:I'm Torn by ReadParse · · Score: 2

      I swear I've never before replied twice to myself. But while I'm on the subject of stupid linux things I've done, have you ever wondered what happens when you accidentally put one too many asterisks at the beginning of a crontab line?

      * * * * * * /do/stuff

      instead of

      * * * * * /do/stuff

      Yes, it runs every executable in whatever the pwd is at the time, usually the home directory of the user for whom the cron job is running, providing the command that you meant to run as an argument to each of them. I was never so relieved that there were no executables under /root.

      RP

    2. Re:I'm Torn by Andrewkov · · Score: 1
      I once did something similar. Signed on as root, I copied a bunch of files to my personal directory. Then I wanted to change the ownership to my regular user, so I entered:

      find / -exec chown andrew:andrew {} \;

      The forward slash was the fatal mistake. Before I realised why it was taking so long, it had changed the ownership of most files in the system, rendering most daemons to be unable to access their files. Luckily it was my home system, not a production server at work. Now I always stop and think twice before hitting enter, especially when signed on as root!

    3. Re:I'm Torn by Anonymous Coward · · Score: 0

      Thank you for being one of few Linux users who will admit that they are fallible.

      I was beginning to think that I was the only one... :)

    4. Re:I'm Torn by nyri · · Score: 1

      ls (try working without that), ...

      Try:
      > echo *

      -- nyri

    5. Re:I'm Torn by ReadParse · · Score: 2

      Thanks, but 'echo' is also in /bin. For that matter, so it '*' :)

      John

    6. Re:I'm Torn by Eskarel · · Score: 1

      Well you're, you shouldn't be logged in as root, or run rm -rf is really beside the point. I know that I've accidentally deleted an entire project without being root, which while not as fatal as deleting part of the system doesn't make it any less of a pain in the ass. Quite admitedly I was using -f simply because I was tired of having to type y 25 times to delete 25 files and was too lazy to write a script which would allow me to confirm only the first delete, but when editing an rm line my finger missed (damned switching from sparc keyboards back to intel all the time) and I accidentally hosed the entire thing instead of the copies I was keeping in my public directory so that my partner could grab them. Even putting aside such issues as whether you should be root, or whether you should be using rm -rf it's quite easy to accidentally delete the wrong file, or to delete something which you then realize you actually still needed even if you know exactly what you're doing and go through the confirmation process, and whether that something is a system directory or just the spreadsheet you just spent 6 hours working on and either you or someone else deleted it before it got to where it was going, it's nice to be able to restore it easily, especially since at the desktop level(which is where linux needs market share), most people don't have or use a tape backup system.

    7. Re:I'm Torn by alyandon · · Score: 2

      Slightly less catastrophic, I'm editing the crontab on a Solaris box as root (production system).

      I mean to type

      crontab -e

      unfortunately I have a typo and it comes out:

      crontab -r

      The aformentioned human autocompletion feature compels my right hand to pounce on the return key even though I'm blatantly staring at my mistake.

      grrrrr.... it took 4 hours to get that one simple file restored from tape backup and that meant 4 missed cycles of accounting processes that run hourly. Fortunately, the processes aren't time sensitive -- they just run longer if they haven't been run in a while.

      Needless to say, the joke around the office for the next few days was something along the lines of "But I thought 'e' meant ERASE and 'r' meant REVISE!". [/bad *nix joke]

    8. Re:I'm Torn by Carl+Drougge · · Score: 1

      Sure echo is in /bin, but it's also built-in in most shells. Certainly it is in bash, which is probably what you were using. And since linux (unlike solaris..) doesn't conviniently segfault a process when you delete the file it started from you can still use the shell..

      Most things can be replaced by built-ins or stuff in /usr/bin. (grep for cat, which is a workable editor if you don't have another editor under /usr.. and so on.)

    9. Re:I'm Torn by the_olo · · Score: 1
      I know in my heart that there's no need for this on Unix, because you shouldn't run as root AND use rm -rf and THE decide that you shouldn't have done that. There are safeguards in place and, after all, since you're a Linux superuser, you're either good enough that you don't make that kind of mistake or the system isn't important enough for it to really matter.

      You're apparently looking from a sysadmin's prespective, where the thing what matters is the all-important system installation and things in people's homedirs aren't as important (and your homedir only contains tarballs and other stuff you wouldn't miss hard since you backup those things on a regular basis).

      But you missed the point of all that. Imagine that you're an ordinary user, working on your workstation and having lots of documents there.
      All your work work, worth a year of sitting at the desk, resides in a single directory tree you've called "docs".

      If you delete it, you've lost a year of your work. What value in comparison has a system configuration in /etc, or the whole /usr tree, which can be restored in an hour just by reinstalling the desktop distro from CDs?

      UNIX file permissions mean nothing here, they are not safeguards from yourself. Things you value most on your computers HDD are the things you have created - things that you have full write (and delete) access to!

  50. Re:Here's a Handy Hint by garcia · · Score: 2

    really? That's you. That's not the majority of people out there. Some people really want this. Especially the people that feel that Linux should become part of the desktop market.

    I don't see how people could believe that your post was "Insightful". It's not Insightful it's trash (no pun intended).

    This is something that would make Linux *more* attractive to Joe-Blow. Come on.

  51. Dammit! by ReadParse · · Score: 2

    Hate it when a funny story is screwed up by a blatant typo:

    "you shouldn't run as root AND use rm -rf and THEN decide that you shouldn't have done that."

    Sorry.

  52. Nah by Anonymous Coward · · Score: 0

    A Unix admin (We'll call him Bob BOFH) would just add a cron job that does for file in $(ls /home/);do rm -rf $file/*;done every week. An even better admin would use find, but thats left as an exercise for the user....

    Replace /home/ with whatever your local Unix uses for user directories.

  53. partly real by Transient0 · · Score: 2

    17+2i

    1. Re:partly real by aug24 · · Score: 1

      Ok, cool ;-) You win.

      --
      You're only jealous cos the little penguins are talking to me.
  54. Real-life Analogy by LPetrazickis · · Score: 2, Insightful

    Often, when I clean out my papers, binders, and whatnot, I end up throwing out stuff that I do need. Being able to root through the trash and retrieve it five minutes later when I come to my senses is very convenient.

    Yeah, yeah. I am not leet.:)

    --
    Is this a sigs-optional kind of place? 'Cause I am totally down with that if you know what I mean.
  55. Novell had this... by deander2 · · Score: 2


    Novell Netware's FS worked almost exactly like this. It was a wonderful feature. I don't understand why more implementations have taken this into consideration...

  56. Right on! by Anonymous Coward · · Score: 0

    I run BSD too; let the "compete with Windows" crowd bastardise GNU/Linux to their hearts' content; I want my BSD!

  57. A flaw... by Anonymous Coward · · Score: 0

    It got me too. If the cron job has the same aliases as your logged in users, it will try to run the aliased rm that runs del...and the files wont get removed.

    Either ensure that your cron user doesn't get the rm alias, or rename/link /bin/rm to something else and use that in your cron job to get the "real" rm that you want.

    True though; a library to do this is very, very, silly.

  58. Re:Here's a Handy Hint by Anonymous Coward · · Score: 0

    Why do pencils have erasers?

  59. Woud anyone use this... by hackstraw · · Score: 1

    considering the prologue that was given to the "announcement"? I had to reread the title and the little snippet a few times to figure out what the hell this thing was. For a split second I thought it was an Ask slashdot question.

  60. Grot! by Nick+Driver · · Score: 2

    So If Apple has legal rights to "Trash Can" and MS has "Recycle Bin" I think we should call it the "Grot Shop", as our repository for rubbish... in honor of Reginald Perrin.

    I always did like the way the Brits commonly use the term "rubbish" for trash. It's got a classier sound to it.

  61. safedelete by oneeyedman · · Score: 4, Informative

    After losing eight hours of editing work during a botched backup attempt, I heard about a utility called safedelete. I can't find much on it, but here it is from Ibiblio. Interestingly, the person that told me about this utility (which sets up a trash directory with timed expiration and a system of aliases for rm and related commands) was an old Unix hand, and only secondarily a Linux user. The program works fine in Debian, I can report.

    And I don't get these people saying they are too smart to need an undelete capability. Must be nice!

    --
    *** "Freiheit ist immer die Freiheit des Andersdenkenden". -- Rosa Luxemburg ***
  62. Er, no. by Nailer · · Score: 2

    Your app doesn't intercept the unlink system call. it intercepts GNU `rm'. Most applications don't use GNU rm to delete files.

    1. Re:Er, no. by Anonymous Coward · · Score: 0

      We're not talking about applications, we're talking about users deleting files.

      You don't need to intercept unlink(). If you class the desktop as an "application" then almost every desktop enviroment already has a Trashcan anyway, making libtrash doubly redundent.

    2. Re:Er, no. by Nailer · · Score: 2

      We're not talking about applications, we're talking about users deleting files.

      ...which they do with applications, whether bash, OpenOfffice, Konqueror, or whatever else. The advantage over desktop environment specific trashcans is that libtrash works transparently to most applications and this can be easily supported by them all. You just have to make a tashcan icon and point it at the right directory.

    3. Re:Er, no. by Anonymous Coward · · Score: 0

      whether bash

      With rm, and we've taken care of that.

      If an application other than rm or a file manager is calling unlink() then it probably has a good reason for doing it, and you don't want the files in a Trashcan anyway (Think about deleting cookies or bookmarks with Mozilla. Why do you want your old cookies in a Trashcan?)

    4. Re:Er, no. by Nailer · · Score: 2

      If an application other than rm or a file manager is calling unlink() then it probably has a good reason for doing it, and you don't want the files in a Trashcan anyway

      Well, I might delete the old SXW of my document after I save the MS Word version to submit to an editor in OpenOffice.

      The exceptions, like Mozilla, can easily be taken care of too.

  63. From a MAC users perspective: by DJ+FirBee · · Score: 1

    Having a trashcan means deleting junk twice. It's an unnatural interface. Just as annoying are the pop-ups that ask me "are you sure you want to ...".

    *nix operating systems attract me because they are customizable and fast to use after you set them up. The difference between the interface of a *nix system and Windoze is the difference between adolescence and some toddler pointing and crying "MUH!!".

    I certainly like macs more with BSD underneath.

    People don't like to learn. But you got to. You are living in the Digital Age(tm). Past ages where people had to learn included the Stone Age, Bronze Age, and Industrial Age.

    I like the fact that this guy is contributing to Free Software. Props. But I don't ever go through my garbage looking for half a cheese sandwich that was in the fridge too long. If the bums outside want a wack at though more power.

    YeeHaw

  64. Perl script by brsmith4 · · Score: 1

    Couldn't you just write a quick perl script to set up a "trash can" by temporarily moving your files to a "trash" folder? Then, make a switch for the perl script that will "take out the trash" when you want it to. I don't see what the big deal is about having to write a full library for it nor why this is utterly important. If you want a trash can, write a perl script to do it. If you don't, then leave rm the way it is.

    Remember, perl can do everything.

    1. Re:Perl script by batemanm · · Score: 0

      The library adds undelete support to applications that use the unlink system call. This library isn't just about the rm command which is what replacing rm with a perl script would do.

    2. Re:Perl script by tuxliner · · Score: 1

      I don't agree .....
      You ( and I) can write ( and use )perl scripts....
      Suzy the secretary doesn't have a clue about perl
      but she sure knows the Trash can/Recycle Bin/whatever-you-call-it that's been on her desktop for years.........

  65. Another list by Arker · · Score: 2

    [x] Trashcan support
    [X] Easy to use Windowing system - WindowMaker - quietly delivering the usability other noisier projects only aspire to for years.
    [X] Standard software install system - *cough* it says *standard* - Tarballs
    [X] Easy to use Windows filesharing - KDE, Samba
    [X] Easy support for video files and DVD - see http://mplayerhq.hu/
    [X] Desktop company support - Legions of answers here, a competitive marketplace is good for the consumer.

    --
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Friends don't let friends enable ecmascript.
  66. Re:Here's a Handy Hint by Anonymous Coward · · Score: 0

    Yea, I mean who the hell would want to add functionality to something?!? I say screw adding any type of functionality for linux, regardless of how many people might want it because it's obviously good enough as is. :-P That's what you meant in a nutshell, right?

    Mistakes happen, what's the problem with having the ability to correct them?

  67. Lamers are catching on by Anonymous Coward · · Score: 0

    Now that some poor fool has described the method for aliasing rm in order to move files to a trash directory, everybody's an expert. The problem is that it's *still* a hassle. You have to first make the alias, then create a desktop folder if you want a different directory than GNOME or KDE default. And all applications still don't use your directory by default. I think the many 13-year olds reading slashdot need a different attitude than "Good design is for losers".

  68. wait, let me get this straight... by Anonymous Coward · · Score: 1, Funny

    "I am not a professional programmer, nor will I ever be one. My income does not depend on my computing/programming skills, and hopefully it never will. So promoting free software I wrote does not help me in any financial way, no matter how indirect."

    so you want me to download your buggy, rookie, non-professional code to mess with files on my drive?

  69. Guess what I typed by accident this morning by Anonymous Coward · · Score: 0

    rm /* instead of rm .*

    deleted my kernel image :-).

  70. Re:Here's a Handy Hint by jxs2151 · · Score: 3, Insightful
    Don't Delete Shit You Want to Keep!


    Is it that hard?


    And this my friends is the attitude keeping Linux from wider acceptance......

  71. Remember AFS! by Anonymous Coward · · Score: 0

    I can't believe nobody has mentioned the AFS equivalent to this, which is a ~/backup directory that has all the files from your latest backup. Can't delete or modify any of the files in ~/backup. Why can't some of the Linx filesystems implement this?

  72. No, I don't. by Rui+del-Negro · · Score: 5, Insightful

    Technically, you can use a pint mug to drink champagne. But most people prefer to use a champagne glass or a flute.

    Personally, I prefer to simply hit "delete" to move files to a preset temporary directory (which can also remember where those files originally were, and restore them with a couple of clicks) than to have to manually drag them to a directory I created.

    If this kind of "commodity" seems pointless to you, then you probably program by writing machine code with a text editor. ;-)

    RMN
    ~~~

    1. Re:No, I don't. by ncc74656 · · Score: 2
      If this kind of "commodity" seems pointless to you, then you probably program by writing machine code with a text editor. ;-)

      Real men use cat > /usr/bin/foo << "EOF" to enter their programs. :-)

      --
      20 January 2017: the End of an Error.
    2. Re:No, I don't. by Bishop923 · · Score: 2

      Bullshit, REAL men remove the platter from their HDD and manipulate the sectors manually.

      Bah to you simpletons with your "keyboards". :-)

    3. Re:No, I don't. by cat5 · · Score: 1

      Bah! I like to delete my files by manipulating the inodes by hand with a magnet! :)

    4. Re:No, I don't. by Lemmy+Caution · · Score: 2
      Real men have their overweight paid IT monkeys and clerical flunkies do all that crap while they go have sex with starlets and supermodels on their Surface-to-Air-Missle equipped luxury hover-yachts.

      Damn, don't you learn anything from the movies?

    5. Re:No, I don't. by Anonymous Coward · · Score: 0

      you probably program by writing machine code with a text editor.

      Eat raw performance! Booyeah!

  73. /bin by stud9920 · · Score: 1
    Why "I can't recover my deleted file on GNU/Linux
    And more important : why the hell did my lunix stop working when I emptied the /bin folder ?
  74. What about the feds "undeleting" your data? by redfenix · · Score: 1

    So, what happens if for some reason the feds (or some other unscrupulous organization) siezes your hard drive and digs up everything you've deleted for the past 6 1/2 years?

    --
    "It's a very tangled subsystem." --Windows kernel guru
    1. Re:What about the feds "undeleting" your data? by Anonymous Coward · · Score: 0

      Uh, you might go to jail, but I won't... whose fault is that?

    2. Re:What about the feds "undeleting" your data? by cpt+kangarooski · · Score: 1

      Does this happen to you very frequently?

      Even if it does, am I stopping users who really, really, really are certain they want to do this, and damn the torpedoes, from using a program that right away overwrites the file again and again to ensure that it's not being preserved?

      I mean, having a trash can that you can retrieve things out of and that you normally put stuff into does not preclude you from also owning a shredder for those things that you just must get rid of permanently.

      But unless you're in the NSA or something, the former will probably be a-ok for your day to day needs.

      --
      -- This and all my posts are in the public domain. I am a lawyer. I am not your lawyer, and this is not legal advice.
    3. Re:What about the feds "undeleting" your data? by Anonymous Coward · · Score: 0
      So, what happens if for some reason the feds (or some other unscrupulous organization) siezes your hard drive and digs up everything you've deleted for the past 6 1/2 years?

      Chances are, they would recover most of that data anyway. If you really want your data wiped out, use shred

  75. undelete/trashcan is wrong solution by geoff+lane · · Score: 1

    (the code may be fine - but it's an answer to the wrong question.)

    In a world where 40GB discs are the smallest available you have to wonder why we continue to use the old filesystem ideas. For ordinary home use a filesystem that remembered it's entire change history and only deleted stuff when the disk was full. A kind of RCS filesystem where you could roll back the state of a file, directory or entire filesystem should be possible.

    Some apps would have to be modified to perform differently so they did not consume the entire space in trivial file changes.

    For the audio/visual editors it probably would not be useful but for SOHO and home systems it would be ideal.

  76. Re:Linux needs this at the filesystem level ... NO by Anonymous Coward · · Score: 0

    This type of thinking is aligned with the Cathedral model of software. GNU/Linux is free, and because it is free there is no real notion of 'market share'. The open source / free software movement is based upon users helping users by sharing their ideas through written programs. If a sysadmin wants an undelete function, he should write one, and release it to others. This helps the 'community' not only an individual or single company. Someone in your position has little to complain about, if you are using GNU/Linux and have not contributed ANYTHING, you are (in old warez terms) 'leeching'.

    I personally have no problem with people doing this, but it is very arrogant of such users to point the finger at everyone else and tell them that they NEED to include this function and that function, when they are contributing and you are not.

    (By the way, I am not saying you have not contributed, because I do not know you. I am simply assuming that since you are saying 'Linux needs this' you are depending on others to do work that you may benefit from. This is not a personal attack.)

    "I guess Linux will be nothing more than a niche product/market if "gurus" keep their attitudes posted here. Wake up and pay attention to corporate users and admins wants/needs."

  77. Re:Not a solution- a landfill! by Lumpy · · Score: 3, Funny

    I have the solution! and it can be a HUGE moneymaker.

    i prepose the e-landfill. an online service that you can configure your trashcan to use a daemon process (garbagemand) that automatically ships the contents of the trashcan via a secure protocol (rubbishtruck/garbagetruck.. as known as RT/GT) to the e-landfill.. there the deleted file can pile up forever or at least until it is full then we just open up another landfill!

    Great idea!

    --
    Do not look at laser with remaining good eye.
  78. Change User Profile by $nyper · · Score: 2, Informative

    Actually I have been doing this for several years as an admininistrator and developer on a UNIX box. This software appears similar to what I have done for my users and myself which is rewrite the "rm" command in the users profile. All users including myself have had the rm command supplimented to mean "mv [file] /home/$USER/garbage."

    I then have a cron job that runs to evaluate the age of the files in the garbage directory. It will automatically clean the garbage directories of all files that are older than 14 days. The cron job currently runs once a day.

    By the way I even caught I a guy that one of the companies I worked for hired to do an attack and penetration test because of this little fact. He set a job to run after he logged out to clean and clear out the general and host specific log files. He did not account for the fact that I change the rm command's meaning. I found his file lingering in the garbage directory of a temp account. HEHE... gotta love UNIX. :) Oh, by the way this has been a stable release for about 8 years now or since I first learned it could be done. I have had 100% success with no failures. :)

    --
    "Help me Obi-/.-Kenobi,your my only hope!" -$
    1. Re:Change User Profile by $nyper · · Score: 1

      So I do not get flammed by somebody... more specifically I just created an alias for the rm command.

      --
      "Help me Obi-/.-Kenobi,your my only hope!" -$
  79. LOSE THE DAMNED GOD COMPLEX by Anonymous Coward · · Score: 0

    Ok, to all the assholes spewing crap like "I never lose important files," OR "when I type rm, I mean rm"....

    1. Bullshit.
    2. Even if you don't make mistakes, the rest of us do.
    3. Who the hell gave you the idea that linux users=perfect? Seriously.
    4. People like you are the reason why new users don't try linux. I don't ever want to hear the phrase RTFM again.
    5. Linux is an OS, not a religion. Knock off the dogma.
    6. What part of your pathetic little lives are you trying to compensate for with the condescending, holier-than-thou attitude?

    Give it a rest. The great thing about linux is the diversity. Not all of us spend 18 hours a day playing with our linux boxes - some of us actually get laid. Try it sometime, might loosen you up.

    1. Re:LOSE THE DAMNED GOD COMPLEX by Anonymous Coward · · Score: 0

      1: No, you are bullshit
      2: Then run windows. It's pretty and you can get shiney flashing things in your email.
      3: Nobody is perfect. That's what backups are for.
      4: New users should only try linux because they are curious what a real opperating system is, and should have to go through the same drudgery we all did to learn it. Making it easy makes it moot.
      5: It's just an OS, yes. It's an OS different from Windows
      6: The part that keeps us employed by running efficent OSs without a bunch of stupid utilities we don't need.

    2. Re:LOSE THE DAMNED GOD COMPLEX by Anonymous Coward · · Score: 0

      Eat a sack of cocks, arrogant fuckshitter.

  80. Re:What a pompus post... by Anonymous Coward · · Score: 0

    I just am uncomfortable with the idea of linux trying to be more like windows.

    Huh. So Bill doesn't have to claim credit to inventing everything in the history of computing ... slashdot will do that for him.

    On slashdot, it seems all discussions inexorably lead toward Microsoft. Y'all must worship that company or something.

  81. i read about this one yesterday by honold · · Score: 1

    a package called 'entomb' is mentioned in unix power tools rev2 (o'reilly book...). it requires recompiling rm/mv/cp/etc against it, but it changes the way your system unlinks things.

    after some digging, i found it was no longer where it USED to be at purdue's ftp site, but i was able to locate somebody that's actively using it as a base for undelete functionality in freebsd: http://www.itso.iu.edu/staff/ajk/projects.epl#Free BSD

    perhaps you should contact him, or do further research on the entomb package. as an aside, the unix power tools cd has a 'delete' app that functions by renaming files (prefixing them with # iirc) and then doing something along the lines of a find nightly to actually delete old versions. you could simply hack something like this together for yourself and alias rm to it...

  82. Does it work or not? by Anonymous Coward · · Score: 0

    Would someone mind actually try it out instead of debating the use of it or not? -from OS X

  83. Re: I thought it was pretty neat by Anonymous Coward · · Score: 0
    mv libtrash /dev/null

    Oh wait! Uh... damn.

  84. Quit running as root you donkey by Gimpin · · Score: 1, Insightful

    There is no need for a trashcan...quite running as a priveleged user. Pay attention to what you are doing, and if you manage 'rm -rd /*', you have once again proven evolution has skipped you.

    --
    "Simon Says, Fuck You" - George Carlin
    1. Re:Quit running as root you donkey by ecrips · · Score: 1

      Personally the only time I've actually deleted something I *really* wanted was as a non-root user. I wanted to delete the backup files emacs makes - so I tried to type rm *~, but missed the ~ key and deleted the contents of the directory - and lost all the coding I'd just been doing for the past few hours. I promptly switched to coding in vi after that :)

  85. Re:Linux needs this at the filesystem level ... NO by Anonymous Coward · · Score: 0

    I'm not as concerned with how it's done- I just have too much luck with the salvage tools under netware.

    There are several big advantages to the salvage methods:

    - Good PR for the IT guys. "Oh, you deleted that file? Let's see if we can get that back. Hey look, it's magic."

    - Less tape jockey time. "I deleted that file and wo I need it! Can you restore it from tape?"

    - Intelligent users recognize the value of it's revisioning. I can roll back to a version of the file I saved at 10am. I may have nuked 18 pages of my 56 page document and then saved it broken. No prob, salvage the earlier one.

    Anyway- my users are quite used to it now and can't comprehend getting along without it. It's a service they rely on and it boosts our value as IT guys to them.

    I can't replace my filesevers with something that doesn't understand file salvaging, that includes and MS server or linux server.

  86. pff: alias by Anonymous Coward · · Score: 0

    If redundant, my treshold = 4
    This problem can easy be solved.
    My solution as a linux-newbie-user.
    I use bash, I made an alias

    del *.* = mv *.* to some trash-folder
    (I don't remember the exact code you have to enter, but for you guys that should be easy)

    I used to do this some time ago, untill work forced me back to windows. Now Mandrake 9 is out, I can't wait to give it a try.

  87. Spelling error by Anonymous Coward · · Score: 0

    It's Gebhardt :-)

  88. Linux is a horrible, lost cause by c0d3h4x0r · · Score: 0

    Free Software is a wonderful concept. Too bad that in practice most Free Software is total shit.

    GNU/Linux is the biggest offender. There's no overall design or architecture. It began as a piece-meal reimplementation of an already messy system design (UNIX), and evolved into an even worse house-of-cards hack job.

    The Free Software community would be doing itself a HUGE favor if it would DUMP all the "GNU" and "POSIX/UNIX" aspects of Linux and instead rework the Linux kernal to be the center of a much more sensible operating system design.

    Functionality such as undelete/trash can, a centralized way to install and remove programs, a centralized place (and format) for storing configuration settings, a single (and consistent) GUI in which all apps play nicely together and utilize the same exact widgets/style/etc, should all be fundamental aspects of the system's design from the start, rather than being attempted as hack jobs on top of an already sloppy system.

    In other words, no amount of makeup or plastic surgery can ever make Janet Reno beautiful. If you want to win the beauty contest, you have to start out with the real deal.

    --
    Moderator hint: a comment is neither "Flamebait" nor "Troll" if it is true.
    1. Re:Linux is a horrible, lost cause by iggymanz · · Score: 1

      all the things you want are not even part of the operating system, just GUI sugar. If you're not a "computer person", then by all means DON'T use a Unix or Unix-like operating system. Get a Mac or Windows XP, plenty of sugar for you click-and-pointers who need a trash can on your desktop.

    2. Re:Linux is a horrible, lost cause by c0d3h4x0r · · Score: 0

      all the things you want are not even part of the operating system, just GUI sugar.

      Incorrect. In a properly designed OS, they are a central part of the OS.

      --
      Moderator hint: a comment is neither "Flamebait" nor "Troll" if it is true.
  89. update: i found it! by honold · · Score: 1

    ftp://ftp.physics.purdue.edu/pub/pundits/entomb-3. 9.tgz

    from the readme:

    Source Contents:

    The subdirectories in this directory contain the essential parts of a
    file entombing system.

    README This file.

    Pkg.sh This shell script to build this package.

    lib/entomb The source for a program that will entomb a file.

    lib/libtomb The source for a library which provides entombing system API.
    These system calls cause a fork/exec of the 'entomb' program, above.

    etc/preend A daemon which makes sure the tombs don't get too full of
    corpses.

    bin/unrm A program that may be used to retrieve a file from a tomb.

    bin/rmfile A "micro shell" to help novice users delete or entomb files
    with nasty names (like "~", "-", and " ").

    bin/untmp A quick spell to remove all my junk from /tmp (just plain
    files, not subdirs). This cleans up well for run away mktemp's.

    Paper A document describing how to install the entombing system,
    and an (outdated) technical paper describing the system in detail.

  90. What we need is more than a trashcan by Ektanoor · · Score: 2

    Personally I don't have a big need for a trashcan. And most *NIX vets barely need it. Only the masses may have need for such stuff, specially when so many Windows users are coming up. However I would damnly congratulate the nerd who would put in default such a feature on the next distro. Every experienced hacker knows perfectly that trashcan solutions are frequently THE reason for loosing performance. For individual removals this may look no so critical but when things come up into whole folders and thousands of files, we get some trouble.

    Anyway a save removal system should be potentially in place over every file system. Moreover, this safety mechanism should be inherent to the filesystem itself. With the chance to choose what I want to safeprotect or not. Under such approach we could meet a middleterm between performance and safety. Besides such approach would allow to cover a problem where most backup systems can't have a voice - safeguarding highly critical data in a more realtime basis. Yes, such safeguarding mechanisms will not be good for the real realtime situations. But they would be quite good for protecting and recovering by-hour or by-minutes cases. Sometimes this is much more important, rather than picking up last-day's archive and forcing the user to type his last hours of work at the end of worktime and having the boss yelling "I want it now!!!".

    If such mechanisms would be implemented they could find a very important niche among sysadmins working with certain types of information - document files, legacy databases, big amounts of data and so on. However such mechanism should regard some safety concerns of confidentiality and control. I fear that in lamers hands it would be much preferable to see the old damn Recycle Bin in their hands.

    1. Re:What we need is more than a trashcan by Roug · · Score: 1

      I remember seing a demonstration of such a filesystem a few years ago. The researchers built it to be sure they were not taking backups of changing files.

      Essentially you made a timestamp tag on the filesystem. The applications would continue to work and modify the files, but you could then put the files on backup as they were in exactly the instant you set that timestamp. You could have several timestamp tags working at the same time. Roughly same principle as CVS.

      What was cool, was that you could mount the filesystem (readonly) again as it would look like at the given timestamp and then grab individual files as you wished. Not only could you recover deleted files, but you could also recover overwritten files. Having seen this demonstrated makes me think that the trash can concept is very crude. It only offers one level of recovery and doesn't protect against accidential overwrite. Haven't we all accidentally redirected output to that very important file we didn't have a backup of?

      Unfortunately I don't remember the name of the filesystem, except it was demonstrated on Solaris.

  91. rm dirsymlink<tab>* by Anonymous Coward · · Score: 0

    What I'd like is a bash option to refuse expanding a naked "*". If I really want to delete everything, I would rather type something like "rm ./*" It's a little too easy for tab expansion to leave an extra space you don't want, and let a star go wild. One big place this goes wrong is when you deal with a symlink to a directory, it should always try to put the "/" on the end of such a path.

  92. Re:Here's a Handy Hint by statichead · · Score: 1

    hmmm..

    lets see

    mkdir ~/trash

    mv file.i.want.to.trash.but.may.want.later ~/trash

    rm -fr ~/trash/*

    blamo a linux recycle bin

    lets get a little sicker now and script the deal

    #!/bin/sh
    #move stuff to trash
    #filename trashit
    mv $1 ~/trash

    #!/bin/sh
    #empty the trash
    #filename emptyit
    echo 'This command will remove the entire contents of your trash can

    Are you sure you want to do this?Y/N[N]
    '
    #commands missing because I dont feel like #actually writing this and debugging this at this #point in time

    rm -fr ~/trash/*

  93. NAUTILUS by frooyo · · Score: 1

    Hasn't this been included within nautilus for quiet sometime now? I know that with GNOME 1.2, if you let nautilus draw the desktop - a 'Trash Can' exist and functions similar to the Windows/Mac trash can...

  94. Re:Here's a Handy Hint by Anonymous Coward · · Score: 0

    But notice that pencils do NOT have un-erasers.

  95. Bah by Anonymous Coward · · Score: 0

    Rubbish

  96. Windows doesn't do this either by arestivo · · Score: 1

    As far as I know, both Gnome and Kde have this kind of feature for some time now.
    If we are talking about deleting stuff in a terminal then Windows hasn't got recycle bin support in the ms-dos prompt either.

    1. Re:Windows doesn't do this either by Anonymous Coward · · Score: 0

      Symantec's Norton Utilities has a file protection feature that hooks the API directly so that all files end up in the recycle bin.

  97. Re:What a pompus post... by liquidsin · · Score: 2

    So, um, what if you like to get under the hood and accidentally delete a file? Why is it so horrible to give users a choice to have a trash can if they want it? I realize that at only 23 I don't have the wisdom of your 20 years of computing, but I've been on linux since a friend turned me onto it at 15 and I know there are times I would have liked to be able to undelete. And why does it matter to me if you're uncomfortable with my having a utility you don't like? And why do you perceive this as Windows-like? If you want to do everything from a command line and be uber-l337, be my guest, but don't tell me what I should and shouldn't do on my computer. Communist.

    --
    do not read this line twice.
  98. The TCT by schlach · · Score: 4, Informative
    I can't believe no one's mentioned The Coroner's Toolkit. Written by Dan Farmer and Wietse Venema, those crazy kids that wrote SATAN, back in the day. It has all kinds of fun tools for poking around backstage on a *nix box, ostensibly forensics-related work after a machine compromise, but if you accidentally delete something important, you could pretend that someone else broke in and did it. =)

    From the FAQ:

    What the hell is it? The Coroner's Toolkit (TCT) is a collection of tools designed to assist in a forensic examination of a computer. It is primarily designed for Unix systems, but it can [do] some small amount of data collection & analysis from non-Unix disks/media.

    Features: Notable TCT components are the grave-robber tool that captures information, the ils and mactime tools that display access patterns of files dead or alive, the unrm and lazarus tools that recover deleted files, and the findkey tool that recovers cryptographic keys from a running process or from files.

    "Take this object, but beware! It carries a terrible curse!"

    The advantage is has over some recovery options is that it's entirely post-mortem. If you just deleted the boss's laundry-list, you could go download it, build it, and stand a pretty decent chance of recovering your file.

    The disadvantage is that, perhaps like a real autopsy, it's not for the faint of heart...
    1. Re:The TCT by Ektanoor · · Score: 2

      When I was writing my comment on this post I thought about this tool and alikes. And considered that this is not a solution. Forensic data recovery is an important part of security analysis, however, this is not exactly what we need to protect data. This branch of forensics deals mostly with intentionally deleted data, temporary data and historical data. It could be used for data recovery also, but, it is and should not be its main intent. All the tasks, that forensic data recovery deals with, are already complex enough for its developers. This is a field filesystem developers should consider. Due to the embroglios of the infrastructure each filesystem has, the ideology of data protection should be a question on the creation of every filesystem.

      One should note that it should not be obligatory for every filesystem to carry a data protection/recovery mechanism. Sincerly I prefer XFS and ReiserFS 3 to lack such mechanism, rather than seeing the pains of having a slow performance for the price of a dubious "feature". It is understandable to see the developers of these systems to refuse the creation of a data protection system. Yet, it is a pitty that developers didn't seem to even have tried to implement it. Only ext2 guys seem to have tried to explore the correct region of data protection. The ideology inherent to the undelete mechanism on ext2 is much better than a simple "trashcan"-alike tool. At least, it goes inherent to the architecture and has a safety choice option for each file. Unfortunately, it is not perfect and it seems that developers forgot the good idea it was. This is still a wide unexplored forest.

      In other point, I should note that TCT is not a perfect idea because of the fact that stays over the surface of most filesystems. The unrm util can hold only ext2 filesystem. However many people today use XFS or ReiserFS due to performance.

    2. Re:The TCT by Anonymous Coward · · Score: 0

      I've found that solution to be poor at best.

      Even if you try to recover right after deleting a file, you're lucky to get 80% of it back.

      Now for some files 80% might be OK, but most of the time you want the whole file back, not part of it (think ZIP file missing the header/trailer, jpg missing header, etc).

  99. easy undelete by tonyhill · · Score: 1

    alias rm='mv $* /tmp/'

    or $HOME/trashcan/ if you prefer.

    Tony

  100. ohhh come on by Anonymous Coward · · Score: 0

    1 reson why i use linux is it tends todo what
    its told.

    therefore when i delete something i expect it
    to be deleted and never show up again.

    people say joe user needs this.

    how many joe users put a important letter in a
    bin at home then pull it back out again ?

  101. I don't think this is the right solution... by Ender+Ryan · · Score: 4, Interesting
    I don't think this is the proper solution. There are a lot of programs that create temp files and unlink them, so something like this is going to really clutter up a filesystem really quick.

    I think underlete should be handled at the application level, ie. in konqueror and nautilus, etc. Maybe alias rm to something else for the command line.

    --
    Sticking feathers up your butt does not make you a chicken - Tyler Durden
    1. Re:I don't think this is the right solution... by Suidae · · Score: 2

      The obvious answer is to do what Microsoft did. Provide from the file system two ways to delete files. One sends files to the trash, one really deletes them. Files deleted by the user go to the trash, unless the user really deletes them (ie, hold down shift and delete in Exploder), files deleted by the system are really deleted.

      As long as recycle bins/trash cans have been around this seems like it should be a solved problem.

  102. Re:Linux needs this at the filesystem level ... NO by Planesdragon · · Score: 2

    Getting the inserted table [spreadsheet] from Word back into Excel was next to impossible.

    Hardly.

    Step 1: Select table in Word
    Step 2: Copy table to clipboard
    Step 3: Open new Excel Spreadsheet
    Step 4: Paste table back into Excel
    Sept 5: Give original user license to beat the clueless person who messed up his/her spreadsheet.

  103. Re:Linux needs this at the filesystem level ... NO by Anonymous Coward · · Score: 0

    well after the lusers on the network
    delete a file by mistake they learn not
    to delete it the next time after they
    spent 8 hours overtime redoing there work
    to get it in on time. This is called learning from experence.

    but is it not true that windows + networking
    has no trashcan ?

  104. Potential gotcha by lpontiac · · Score: 3, Informative

    This appears to work by placing itself ahead of the normal libc when it comes to dynamic library loading. Very neat idea, but it won't work on libraries which don't delete files by making calls to the shared library. The most common instance of this will probably be statically linked binaries. On FreeBSD, almost all of /bin (including rm) is statically linked, and it wouldn't surprise me if this was true on a Linux distro or two.

    So be wary of just installing this and playing with rm - you might give yourself a nasty surprise :) You can check whether rm is statically linked by running ldd `which rm`

  105. The only us I see... by CAIMLAS · · Score: 2

    The only use I see for something like this is one abstraction layer from major GUI toolkits like GTK and QT. I say this because the only times I have problems such as accidentally deleting a file are when I'm using a GUI, and decide to use menu options (such as in GQview). If I'm looking at some photos that were emailed to me, and I want to move them, what if I accidentally click the 'delete' option, which is right next to it? Those files are lost.

    I -can- see the use for it, but I don't really see any reason why it should be one level below console (which is what I'm assuming this library does). Granted, there are times that I would have found it useful, even a life saver, but that was due to my carelessness. People really shouldn't be allowed to be careless with computers.

    --
    ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
  106. Babs on /.!! by Anonymous Coward · · Score: 0
    Woo hoo!

    When do we get to hear from Gore's new foreign policy advisor MEATHEAD?!?!

    (And which political party does Hollywood own?)

  107. Re:What a pompus post... by Anonymous Coward · · Score: 0

    um.. you DID touch it

  108. Re:Potential gotcha (self correction) by lpontiac · · Score: 1

    I suck.

    ... won't work on libraries which ...

    s/libraries/binaries/

  109. Its been done... by mengel · · Score: 2, Interesting
    You guys should really look at the old Purdue file entombing code, which these days lives here.

    It is a really efficient way to do this. It was initially done, I think, in 1984 or 1985...

    I think the code that's there is for BSD 4.3, but if you've already done the library work...

    The overview reads:

    This is the Purdue/ksb entombing system. Files removed by programs
    linked with "libtomb" are cached for a while (long enough to get on a
    backup tape would be best case) in case their untimely loss is noticed.

    The 3 programs are "unrm" (the user agent to get files back), "entomb"
    the system agent to cache a file, and "preend" (the system agent to
    clean the older files from the tombs.

    Included as nifty side products are "rmfile" which helps novice users
    delete files with funny names (like "-") and "untmp" which should be
    used to clean /tmp from a ".logout" type file from casual users.

    Currently Andrew J. Korty is working on a project to port the code to current FreeBSD.
    --
    - "History shows again and again how nature points out the folly of men" -- Blue Oyster Cult, 'Godzilla'
    1. Re:Its been done... by per+unit+analyzer · · Score: 2

      As an (un)interesting side note, undelete was done two different ways at Purdue until the mid '90s. The entomb system was written by the Computing Center folks IIRC. Over at the Engineering Computer Network (ECN), we had /zap. Any file you removed with rm was copied to the/zap/login (where login was the user's login) directory before complete removal. Every night a cron job would clean everything out of /zap that was more than 24 hours old. Unfortunately /zap wasn't as advanced as entomb and fat-fingered cp and mv mistakes were not recoverable. The folks at ECN (ghg, davy, jrs, et al) had only modified rm but they did not create a comprehensive library to link against. I believe ECN switched from /zap to entomb when they moved from SunOS to Solaris. One thing I can't recall was whether entomb could help you recover from using > instead of >>... (That was one I dealt with a lot as a site consultant...) Does anyone remember?

      --zawada

      --
      In Soviet Russia, the Beowulf cluster imagines you!
  110. Re:rm dirsymlink* by Anonymous Coward · · Score: 0

    heh i once new sombody who liked to delete things
    like that then he made a typo and hit space

    rm -rf . /*

  111. Why not just by excuse_13 · · Score: 1

    put this in /etc/profile alias rm='mv ${1} $@ ${HOME}/.trash/' emptytrash() { cd ${HOME}/.trash; rm -rf *; cd -; }

  112. DebugFS by Nom_Anor · · Score: 1

    Who needs a trashcan when you have debugfs? :)

  113. Recovery by fishbot · · Score: 1

    Slightly off-topic, but not far :)

    I once had a rather unsavoury experience with RedCarpet (ximian) in which I found that I wanted to remove Ximian gnome from my RH 6.0 system, as it was bloaty and slow. So, I selected the core gnome libraries from the remove list, and assumed (dangerous) that it would also remove anything which depended on those libraries.

    it did. It also removed _every other rpm_ on the system. don't know why, and I don't know why it didn't warn me either. Things just stopped working, one by one, as the hard disk thrashed.

    So, undelete. No, I probably couldn't have used an undelete utility to rebuild my trashed RPM database, and I probably couldn't have fixed that problem anyway, but some way of retrieving those directories with custom configs it had somehow managed to remove without so much of a by-your-leave (--force on, then) would've been nice.

  114. Alternative better solution with backup by goombah99 · · Score: 1

    While I agree with the original post, some whiners wre worried about intercepting unlink too. Well a month ago there was a discussion about using "cp -al" with rsync to back up a disk. This would work here too. "cp -al /" makes a set of duplicate hard links to all your files. This is fairly space efficient though not free by any means. The bonus is that you get more in return, you have a perfect image of your hard disk at an earlier time.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  115. alternative name by Anonymous Coward · · Score: 0

    instead of "Recycle Bin" or "Trash Can"...

    How about the "Shit Hole"?
    or just the "Shitter"?
    or "Refuse receptacle"?
    or "Cum Bucket"?
    or "Whore's Twat"?
    or "Oprah's Bung"??
    or "Litter Basket" ? yeah that's it

  116. Re:better solution - not by maiden_taiwan · · Score: 1

    Bug:
    $ del /path1/myfile
    $ del /path2/myfile

    Oops, you just overwrite the first "myfile" in your trashcan.

  117. Mijenix solutions' GoBack - better than 'Trash'!!! by Anonymous Coward · · Score: 1, Informative

    This is the single most important and useful utility for windows I've ever seen. It's so good that microsoft stole the idea and has included a (half-assed partially functional) version of it in windows XP.

    It's less useful under linux because it you never have to undo configuration changes and program installs, but it would still be really nice.

    It doesn't take *ANY* extra disk space, though there is a minor performance hit. Rather than mark the space as immediately reuseable, it marks it as used for it's logging, and when more space is needed on the disk, it frees up the oldest parts of the log. This can result in fragmentation, of course, but that doesn't happen as much as you would expect, due mostly to the patterns of usage.

    On a large, not much used disk, you can easily keep months and months of backup.

    For those who aren't familiar with it, goback is a true logging file system - it logs all changes to the file system, to the point that you can say "show me what this file looked like at 7:30 this morning" and it will. You can also mount a virtual disk - including writing capability - to see what the disk looked like last week. If you accidentally revert the hard disk to last week, it lets you revert to this morning, before you reverted to last week. It's impossible (well, difficult, anyway) for even a dumb user to screw up.

    I've been using Linux (Slackware, then SuSE) almost exclusively for awhile now, and this is the only thing that I really miss. Is there a true logging file system for linux? Not that I know of!

    Please tell me where I can find one?

  118. Linneighborhood Network Neighborhood by Shamanin · · Score: 1

    [X] Easy to use Windows filesharing - Linneighborhood

    http://packages.debian.org/unstable/net/linneigh bo rhood.html

    For all of your pathetic Windows needs...

    --
    come on fhqwhgads
  119. Way back when . . . by CustomDesigned · · Score: 1
    I was trying to convince the boss that SCO Xenix was superior to DOS. In particular, files had permissions, and ordinary users couldn't delete the system files. To demonstrate, I logged in as an ordinary user, and typed "rm -rf /". Presto, (or rather, chug, chug, chug - this was a 286 with ST506), the entire system was deleted. After reinstalling, and enduring endless scorn and ridicule, I discovered why. SCO Xenix installed out of the box with absolutely every file and directory set to 666 or 777.

    That was a learning experience. (Some distributions are more trustworthy than others.) We finally ditched SCO when we couldn't format our new ESDI disks because the driver would crash the system when it encountered a bad sector. (Remember ESDI?) We called the $1200/yr tech support, and they insisted that they couldn't help us unless we "reformat the disk and reinstall Xenix". After three attempts to explain that that was precisely what we were trying to do, (and them responding that "I can't help you if you won't follow instructions"), I lost my temper and told them they were blithering idiots and they'd never hear from us again.

    We limped along replacing broken SCO utilities with GNU software, and finally switched to Motorola.

  120. Wow by waldoj · · Score: 2

    So, what happens if for some reason the feds (or some other unscrupulous organization) siezes your hard drive and digs up everything you've deleted for the past 6 1/2 years?

    Then be sure to let me know about it, because that's one bad-ass unerase utility right there.

    -Waldo Jaquith

  121. Redundant Software? by NetFu · · Score: 1

    Maybe I'm not the first to point this out, but isn't this redundant/unnecessary? I'm using Linux every day and in the GUI Gnome and KDE both have perfectly fine trash cans. In the command line when you do an "rm -rf" or something like that, the files are gone, but it's the same in Windows. If I use the command prompt to "del" a file, then the file is GONE, not in the recycle bin.

    What's wrong with that? If you are advanced enough to use a command line then you'd better be advanced enough to know when you want to permanently delete a file!

    I think the guy who made this software is forgetting that the average Joe Blow Linux User isn't going to be using the command line very often (if at all), so this software is irrelevent...

  122. Fatal? by waldoj · · Score: 2

    So you must never wear a seat belt either because you've never been in a fatal car accident.

    Nobody that's been in a fatal car accident wears a seatbelt, either.

    -Waldo Jaquith

    1. Re:Fatal? by Anonymous Coward · · Score: 0

      X and Y are in a car accident. X dies. Therefore, the accident is fatal. Y doesn't die, and wears a seatbelt at all times thereafter. Even when on the toilet.

  123. Basically I agree and believe you deserve the mods by kfg · · Score: 2

    But, I'll point out that deleting the wrong JPEG can certainly break apps that haven't had their error handling written properly. The difference is you and I know how to recover and replace that JPEG even if it has truely been nuked from our systems. Not everyone does. I'd say that's the "comfort difference" between us and "Joe-user."

    I'd also point out that moving a file to a tmp folder is *using a trashcan/recycle bin,* you just don't think of it that way. . . and neither does Joe-user, which I guess is half the point. When I first booted up Linux and realized, " Ah, no trashcan," it took nearly a whole second to think, " Well, if I want one all I have to do is make a directory named 'My Trashcan like Place' ( or George, or whatever)and alias rm to mv foo George." But then I wasn't your typical newbie.

    Ok, to make it a full blown trashcan some sort of simple database to track where each file came from to effect automatic restores is also needed for Joe-user ( renaming it foo./bar/fred/barney works for me on those rare occasions when I think this is necessary), but the basic idea is simple and to me was obvious and trivial to effect. I guess to Joe-user it isn't.

    But as you say, if it isn't the default behaviour, and needn't even be installed on *your* machine, who gives a damn? Are we going to start sending out " You moved that file to a tmp folder instead of deleting it" police?

    Any controversy over this is just plain silly.

    KFG

  124. KDE? by Mr.Surly · · Score: 0

    That's funny -- my KDE desktop already has a trash can. Kind of old news, isnt' it?

  125. Re:What a pompus post... by Anonymous Coward · · Score: 0

    What's so horrible about just NOT TYPING "rm", and using "mv to a ~/.Trash directory" instead?
    _rm_ is a low-level command-line "delete" command. The command-line analog of a GUI trashcan is NOT "rm", it's "mv to trash"

  126. Video and DVD by Schmelter · · Score: 1

    I have a suggestion. If you're looking for a good player for DVD's and video files, check out xine. http://xine.sourceforge.net It doesn't come packaged with a decrypter for encrypted DVD's, but one is easily downloadable and installable. So far, I've found few problems with it.

  127. Why? by Suppafly · · Score: 2

    I'm sure everyone else is going to be asking the same thing, but why do you need a cmd line trash. The 'normal' user who doesn't understand that when you delete something it goes away forever isn't going to be using the cmd line, they are going to be using x-windows, most likely in the gnome or kde flavor. Its pretty easy to make a folder named "trash" for them to drag stuff into if they don't want to delete it.

  128. So fucking what? by Hektor_Troy · · Score: 2

    If I decide to go drag racing in my brand new Cobra 2003 and total it, is it the fault of the manufacturer or the fault of me?

    What if I don't have a drivers license?

    Why the fuck should YOU care, if I fubar any of my own stuff? As long as I don't hurt anyone - who the fuck cares?

    --
    We do not live in the 21st century. We live in the 20 second century.
  129. Re:What a pompus post... by Capt_Troy · · Score: 2

    So in othe words...

    If Microsoft develops a concept (or Apple in this case I guess) that might be useful to Linux users, we shouldn't develop something similar because instead we should just buy Windows? That is just plain stupid.

    Linux is nothing like Windows and it will never be. But there is nothing wrong with adding functionality that people will find useful, although, I can't see why one wouldn't just make an alias to do this instead as another poster mentioned...

  130. This is Flamebait by siphoncolder · · Score: 1

    If this is the kind of division I see on a topic as simple as "Should Linux have a default Recycle/Trash Bin", how the hell is the community supposed to unite to make Linux a desktop power?

    --
    i'm amazed that i survived - an airbag saved my life.
  131. overengineering the problem? by gkuchta · · Score: 1

    Couldn't you just make a directory--say /opt/trash--and write something along the lines of..

    mv $ARGV[0] /opt/trash?
    then let the user clean out their "trash" when they've confirmed that they don't want something?

    --
    when salmon are outlawed, only outlaws will have salmon
  132. Wake up *yourself* by 0x0d0a · · Score: 2

    Slashdot has had major software announcements for a long time. The idea is to provide an interesting medly of content that keeps nerds happy. When PHP forum bugfix notifications start coming up on Slashdot, then you can complain

    There's been a lot of discussion about having a form of undelete in Linux on Slashdot. This is quite relevant.

  133. Hm... by Rui+del-Negro · · Score: 1

    Well, no. Real men have a sex life. ;-)

    RMN
    ~~~

  134. Simpler solution by anonymous_wombat · · Score: 2
    Here is a much simpler solution, which I put into the public domain:

    cd /; chmod -R 444 *

    Seriously, why does anyone need a trash bin? Disk capacity is so ridiculously large that there is no need to ever delete anything. If you need to reorganize, make directories like oldjob, oldstuff, etc and just move the stuff into there and forget about it. It works just like a trash bin, except that you don't need to worry that the stupid machine will empty it.

  135. So? by 0x0d0a · · Score: 2

    The Mac OS had a Trash Can from its introduct in '84. I believe that the Apple IIgs shipped with an OS with a Trash Can, and it wouldn't surprise me if the Lisa did the same.

    1. Re:So? by Anonymous Coward · · Score: 0

      Lisa preceeded the Macintosh, FYI. And the Apple IIgs Finder had a trash can as well.

  136. You tell 'um! by Anonymous Coward · · Score: 0

    Bravo! Go for it! agitate for the needed changes!

    You filesystem needs the following things:

    A command to list, look at, revert to, and/or copy from previous versions of a file.

    A command to list, mount, or revert to previous versions of the filesystem. This would ideally be available at boot time.

  137. RM protection in 5 characters :\-i by drwho · · Score: 3, Interesting

    :>\-i yes it looks like line noise or an emoticon, but it's really a shell script. This protects against rm *.

    so cd to all of your really important directories (/, /etc, /bin), and type :>\-i

    what it does is create an empty file named -i

    when the shell expands * the first file it lists is -i, which rm interprets as an option for interactive mode, so you have to confirm each deletion.

    I am thoe original author of this shell script, consider it GPLd.

    1. Re:RM protection in 5 characters :\-i by mgedmin · · Score: 1
      Actually three characters are enough:
      >-i
    2. Re:RM protection in 5 characters :\-i by FeatureBug · · Score: 1
      "protects against rm *"

      unless rm is called via an alias or script as rm [option ...] -- *

  138. atimes make a Linux box stogy by 0x0d0a · · Score: 2

    I always mount with noatime. Nothing I hate worse than constant background writing on my hard drive.

    1. Re:atimes make a Linux box stogy by CoolVibe · · Score: 2
      *Yawn*, real men always mount everything async. Your files won't be the same until you do. Performance will be better though...

      :)

    2. Re:atimes make a Linux box stogy by Natalie's+Hot+Grits · · Score: 1

      Can you tell me what benefit this does, more specifically?

      thanks

      --
      Two infinite things: your stupidity and mine. But I'm not sure about the latter. If my sig offends you, I'm sorry.
    3. Re:atimes make a Linux box stogy by 0x0d0a · · Score: 2

      Normally, Linux mounts its filesystems with atimes on. Each file has a timestamp recording the last time the file was accessed.

      If you drop in noatime into /etc/fstab, this behavior is disabled.

      Some people *really* like this behavior -- it lets you keep track of which files aren't used much.

      I really *don't* like this behavior. Some utilities, like tail, keep polling a file and updating its atime, so the Linux box keeps writing to the disk every couple of seconds (obviously, tuneable via the VM settings, but I *like* flushing my buffers each few seconds). In a quiet room, this is really annoying. Also, I rarely care about atimes, because I frequently do find -type f |xargs grep operations that cover large chunks of my disk and set the atimes on everything to the current time -- I'm more interested in "last modified" times.

      It doesn't actually slow down the box that much (well, I haven't actually benchmarked it, but I suspect that it isn't that bad, even if you did something like find -type f |xargs file, which is about the worst thing I can think of. But it produces extra traffic to the disk that doesn't do me any good.

  139. Mplayer is nice by 0x0d0a · · Score: 2

    mplayer is a bitch to install, but awfully simple to use once it's in. And in terms of performance and flexibility, it can't be beat.

  140. I'm 24 and I know to be careful with rm. by Anonymous Coward · · Score: 0

    And I've only been using Linux and BSD since December of 1999. Now, if you need an undelete tool, you're welcome to it. If the distributors want to put undelete tools in their default install, more power to 'em. Nobody's forcing me to use an undelete tool or choose a distro that includes undelete tools, so why should I care if you need or want one?

    I always thought that the great thing about GNU/Linux and BSD was that once the foundation was laid (kernel, system tools, LSB-compliance for Linux) the system could be customised for any purpose. Want to make a desktop system for laymen? Go for it. Want to make a BOFH's wet dream? Hey, we can do that too. That's supposed to be the strength behind open standards.

  141. Ever heard of version control and backups? by popiel73 · · Score: 1

    If you really want retrievability, consider using version control and doing nightly backups. Version control for the stuff you actually change (instead of just create and delete), and backups for everything (including your version repositories). It's far more robust than just a silly trash can.

    Sure, a trash can might save you from silly typoes in an rm command... but it won't save you from editing mistakes or file overwriting.

  142. Smug Linux users - don't you just hate them? by Anonymous Coward · · Score: 0

    Glad to see that your every descision is flawless and that you apparently backup all your files every 15 minutes.

    1. Re:Smug Linux users - don't you just hate them? by tomhudson · · Score: 2

      No, but after a couple of decades you learn to back up your important stuff before leaving the office for the day ... 'cause, after all, between the human failures, the software failures, and the hardware failures, you can't have too many backups.

  143. You set it up by 0x0d0a · · Score: 2

    And what percentage of "normal users" install their own software instead of getting someone else to do it for them on Windows?

  144. Re:you're exactly right by Suppafly · · Score: 1, Flamebait

    if you don't know how to change your system to testing or unstable thats your problem.. don't cry about it on slashdot.

  145. Re:Not a solution- a landfill! by Tomun · · Score: 1

    Fantastic ! You'd have to tag each of the garbage bags with the address of the original owner so that undelete works, but it'd sure make "Private Investigation" a lot easier.

  146. Fragmentation. by 0x0d0a · · Score: 3, Insightful

    This isn't an issue of "lighting fast". The proposed solution, at least without serious modification, would massively fragment the hard drive. The only reason you don't *care* about fragmentation is because you enjoy the pleasant fruits of the fragmentation-resistant ext2, so you don't realize how bad fragmentation can get. The proposed system would fragment the filesystem so badly that a well-used FAT32 system would look contiguous as hell.

    You could make a usable system that's somewhat similar...it could shift files around and use, say, a third of the free space for old files.

    1. Re:Fragmentation. by Suidae · · Score: 2

      The proposed solution, at least without serious modification, would massively fragment the hard drive

      Not true. The files marked as deleted are still real files and available for the file system to move around to minimize fragmentation. They just aren't displayed to users, and can potentially be overwritten when more space is required.

    2. Re:Fragmentation. by FreeLinux · · Score: 2

      I disagree. First, I'd rather see this implemented in ext3 than ext2 for the obvious journaling benefits. Also, I deffinitely do not feel that a performance hit would be noticable. The Novell file system is still BLAZING fast dispite the fact that it is managing hundreds of thousands of deleted files.

      The thing is though, that if you have the file system relying on table two but, the user or the applications are only presented with the contents of table one then, the existing benefits of the file system are not impacted. The fragmentation issues would not change as the file system would still control fragmentation, as it does today. That's specifically why I would recommend two file tables rather than simply setting a couple of extra flags in the existing single file table. But, even then it could be done, I just think that a single file table solution would require more computation with every disk access versus the two table method which would use the second table only during writes, deletes, undeletes etc.

      Furthermore, security would also be handled since the rights would still be maintained in the lower level table two. The only real difference would be that files marked for deletion would disappear from table one and have an additional flag set in table two. I don't feel that deleting an entry form table one and then setting a single bit in table two would impact performance very much.

      Additionally, the question of security with regards to complete deletion would be no worse than today. Using ext2 or ext3 it is not possible to guarantee complete deletion and overwiting of the physical disk. But with the system that I suggest, this would remain the same that it is in ext2/3. As far as the ability to make deleted files undeletable, this can be done with a Purge utility that goes through table two and removes entries with the deletion flag set. This is again the same behavior exhibited in Novell's Salvage solution.

      With this method, the only tools that might get broken would be a few that manipulate the file system at very low levels. But, this is the case with almost any different file system. Disk tools that work with ext2 do not work with Rieser unless they are modified to accomodate Rieser. fsck.ext2 isn't any use with Rieser, for that you use fsck.rieser. But, the solution would be completely transparent to all other applications including the likes of rm, mv, unlink() and everything else since these applications and functions would only see table one and all of the table two stuff would be handled by the filesystem itself. I propose ext4.

    3. Re:Fragmentation. by 0x0d0a · · Score: 3, Insightful

      The "twin file tables system", as far as I can tell, used a minimal-overwite algorithm -- overwrite absolutely no more files than is necessary.

      That's expensive. That *will* fragment files badly.

      Now, say you propose defragging on the fly. If you have a fragmented series of files, you have to defrag on the fly while doing writes. Plus, your disk is essentially always 100% full, *and* to make this a sane system, all of your operations have to be atomic. This is a worst-case scenerio for defragmentation. If you've ever tried defragging a full FAT32 filesystem, you know what I'm talking about.

      So what *used* to be slapping a chunk of data down onto a disk now becomes a number of moves of data to defragment files, plus your initial write. These defragmentation moves need to be atomic, so you need to be writing some other metadata on the disk. Not only that, we're doing *far* more seeking. Seeking is mind-blowingly expensive compared to writing that chunk of data from before, and the fact that we have to flush the buffers frequently to keep things atomic means that we can't combine as many writes, which means worse seeking.

      Without a real world implementation with numbers, it's hard to show you how bad this would be, but every filesystem I've ever used would be far, far, far faster than this.

    4. Re:Fragmentation. by 0x0d0a · · Score: 3, Insightful

      ARRRRRGGGGHHHH!

      I'd rather see this implemented in ext3 than ext2 for the obvious journalling benefits

      Okay. First, implementing this in ext3 would be almost meaningless. The entire point of journalling is that you always write *forward* on the disk, and update pointers to the newest data. Your writes are nearly always contiguous in ext3. This system, where you have to overwrite positions containing deleted files, would have to dance from location to location on the disk to write a file. Very expensive. You could make an atomic writes filesystem, but it probably wouldn't be smart to make it journalling.

      Also, I definitely do not feel that a performance hit would be noticeable. The Novell file system is still BLAZING fast despite the fact taht it is managing hundreds of thousands of deleted files

      The number of deleted files isn't the issue -- it's how much free space you have available. I can assure you that the Novell guys aren't taking your approach -- only overwriting something when they absolutely have to do so.

      The filesystem would still control fragmentation, just as it does today.

      What impact does this have on performance? If you're thinking that ext2 does background defragmentation, it doesn't.

      The fragmentation issues stem entirely from the lack of free space -- the file system always has an extremely small amount of free space. That free space is likely scattered around the disk.

      I'm not sure of all the ways that ext2 differs from vanilla UFS, but I strongly suspect that ext2 does not have a distinct allocated block list. In any event, a one-table or two-table question really isn't an issue.

      Finally, let me reiterate: FREE SPACE. Between about 80% or 90% full, ext2/3 filesystem performance starts to take a nasty hit from fragmentation. If your filesystem is 99% full, you're going to be getting quite fragmented. If you are using the proposed system, you always have just a few killobytes of free space (the space left over in what used to be the oldest deleted file).

    5. Re:Fragmentation. by Anonymous Coward · · Score: 0

      Well, no problem, how about a compromise between these two ideas? Imagine a file system which endevoured to preserve a certain amount of free space to keep performance up. So the three types of space are weighted, with existing, undeleted files always preserved, deleted files often preserved, and a certain amount of free space preserved if possible. Basically, the value of the free space would be weighted by inverse, becomming more valuable as it became more scarce, and allowing more and more recently deleted files be sacrificed as free space beomes increasingly scarce.

      Erik

    6. Re:Fragmentation. by Suidae · · Score: 2

      If you take the approach of maintaning files as long as possible, performance not withstanding, yes, you end up operating at 100% capacity. To make it practical you'd want to give the filesystems some space to work effectively.

      I've never written a defrag, but it seems that given a journaling file system and plenty of time to calculate optimal block movements it shouldn't be particularly difficult or dangerous.

      Naturally any scheme like this would become less effective (ie, shorter history) the closer the drive was to filled.

  147. Re:you're exactly right by eeeuh · · Score: 1

    And the last time I looked debian stable had XFree 4
    ( the old "testing" has been the new "stable" for a while now ... ( still using "testing" though ;-))

  148. The difference is... by budalite · · Score: 2

    Most of these people (above/below) are not asking for a "trash can". (Tho' kudos to the guy for making it -- another choice.) These people are asking for archive capabilities. (Even *indows archives older, less-used files. Ever notice the little blue files? ) If you are afraid you might need something later on, write it to a CD instead of deleting it. (or have a cron do it by date of the file or something.) This is not so complex. What am I missing here? (I really used to like the way Novell archived your servers by the date of the files.)

    Dad32

    whatever.

  149. Why not do it for real? by Salamander · · Score: 4, Informative

    It shouldn't be all that hard to do this in-kernel, so it doesn't have library-preload dependencies or side effects and catches even stuff that comes into the kernel from unexpected directions. All you need is a dirt-simple filter driver that you push on top of the filesystem to change delete/unlink calls so they move stuff into the trashcan, plus some ioctls to view/empty it.

    Oh, wait, Linux doesn't have filter drivers. For a moment there I forgot we were talking about a "technically superior" OS.

    --
    Slashdot - News for Herds. Stuff that Splatters.
  150. Re: KDE by Anonymous Coward · · Score: 0

    If your friend is new to Linux and won't be using the console much, then have him use the KDE trash can. Even right-clicking files will bring up the option 'Delete' or 'Move to Trash'. I'm not sure having something in the command-line to automagically move files to a trash folder is good. But having it in the GUI, where new users are likely to hang out, will be a good thing, and KDE is already there (well, the choice between 'Delete' and 'Move to Trash' might be confusing for some).

  151. Black Hole by Anonymous Coward · · Score: 0

    Before I started using Linux, I installed the "Black Hole" on my Amiga. Crap went in and never came out again.

  152. Two things. by neo · · Score: 2

    1. It's very likely that whatever the undelete command was, that it would have been in the bin as well. It's unlikely that you've be able to run it from the trashcan and unlikely you could have gotten to it without the contents of /bin.

    2. Undelete is not for 'rm -rf'. It's for deleting a copy of that invoice/letter/utility you know you'll never need again, only to get a phone call ten minutes later.

  153. Re:Here's a Handy Hint by russellh · · Score: 2, Interesting

    That's why you use the old trick of having a file named something like "-normstar" (or anything that begins with '-' and which isn't an rm option). rm chokes on it as it scans argv[] for options, and won't delete your files.

    just don't have a file named -rf

    --
    must... stay... awake...
  154. RPM is a mess. by bcrowell · · Score: 2
    The problem is that RPM is a mess. You see web sites saying "Here's the RPM for Red Hat. Also, here's this RPM for Mandrake, but it's out of date," etc.

    There's also the whole problem of library incompatibilities, which is part and parcel of the decision to make shared libraries the standard way for software to work on Linux. That's a classic example of reducing ease of use in return for better performance (smaller downloads) for more sophisticated users.

  155. Re:Basically I agree and believe you deserve the m by Anonymous Coward · · Score: 0

    Are we going to start sending out " You moved that file to a tmp folder instead of deleting it" police?

    Yes, and they will dispense savage beatings.

  156. Windows installer is fatally flawed + Tangent by ivan256 · · Score: 2

    Tanget first: The thing that pisses me off the most about windows installers is that they insist on going full screen and requiring you to close or ignore background applications while they are running. I don't want my machine to be useless during an install. Let me start the installer and then do something else while it's doing whatever rediculous crap installers have to do on windows.

    One good thing about Windows Installer is that the install is an atomic procedure. That is, if it fails for any reason (file missing, user cancel, etc.), then it will completely roll-back and not leave bits of a partially installed application.

    I call bullshit. First, if the installer crashes the system then you're still left with a mess, so it's hardly an atomic process; It only appears atomic if it ends cleanly. Everything else you're describing is handled by any decent installer (including RPM, and dpkg), so it's not something that is nice about the MS installer in particular. Worse, Windows doesn't properly handle unused shared libraries when handling dependancies. Since they are part of an application package they can't be easily uninstalled seperate from the application, but the default behavior is to not delete libraries marked as shared even if their usage count is zero. You need to pick one or the other: delete the libraries when no one needs them anymore, or package them seperately so that they can be cleanly uninstalled. This is one of the most broken parts of Windows.

    My point is, is that while it's possible to use different front-end installers, they all use the same back-end, unlike the different Linux package systems.

    Each distribution has it's own package management system. On a particular distribution, there is a common installation back-end that is for managing uninstaller applications (usually scripts since administrative tasks are easily scriptable on linux, unlike windows) and dependancies. Stop trying to spew FUD. It's a moot point anyway, because a typical linux distribution is not hampered by a monolithic configuration database, so there is no need or benifit to a unified installer backend in the form you're describing about windows.

    1. Re:Windows installer is fatally flawed + Tangent by Anonymous Coward · · Score: 0
      Tanget first: The thing that pisses me off the most about windows installers is that they insist on going full screen and requiring you to close or ignore background applications while they are running. I don't want my machine to be useless during an install. Let me start the installer and then do something else while it's doing whatever rediculous crap installers have to do on windows.
      No, Windows installers recommend that you close all other applications, mainly as a cover-your-ass imposed by the QA department, on the extremely rare chance that something might go wrong, giving tech support an easy answer. This is a holdover from the bad old 16-bit days, where that was a very real possibility. I haven't had a problem with an installer since Windows 95.
      The one reason this is necessary today is if the installer needs to modify any system files that are currently in use, because Windows takes the attitude that an open file cannot be deleted or modified. A dubious holdover from the old days, but there it is.
      Oh, and often you can minimize or resize the installer window, assuming the programmer didn't use modal dialogs. At the very least, you can alt-tab over to another window and get work done.

      I call bullshit. First, if the installer crashes the system then you're still left with a mess, so it's hardly an atomic process
      True, but honestly - how often does that happen? I've been installing Windows software for 10 years now, and I can't remember the last time an installer crashed.

      Worse, Windows doesn't properly handle unused shared libraries when handling dependancies... the default behavior is to not delete libraries marked as shared even if their usage count is zero.
      Well, Microsoft's guidelines explicitly say to delete any shared lib with a usage count of 0 (at least this used to be the party line), but, since it's up to the uninstaller, many times this gets ignored. Anyway, it's good to take the safe approach - assume that some other app forgot to increment the usage count and leave it be.

      This is one of the most broken parts of Windows.
      No, this is a minor annoyance

      Anyway, to get back to the point of the earlier post, on Windows you run a single .exe that does the installation. In Linux, you need to find a package for your distribution and run it with the proper app. So yeah, there *is* a "single installer system" in Windows, as opposed to Linux.

      Oh, and can we all please use the term "FUD" correctly? It stands for "Fear, Uncertainty and Doubt", and goes back to the early days of Microsoft. It referred to their standard method of responding to perceived threats to current or future market share. When GEM announced their upcoming graphical desktop, for instance, and all Microsoft had was their imfamous one-disk demo of what Windows was going to be, Microsoft would instill FUD in the minds of potential vendors and OEMs: "It won't have any software available for it. It won't be available for two years and we'll be shipping Windows in 6 months. Who knows if these people will be around to support it?" That's FUD. The term you were searching for was "lies".

  157. Just have KDE, Gnome, etc. use a common trash can by Anonymous Coward · · Score: 0

    Dos never had a trash can, and it seems from the previous posts that most people using the command line for file management don't really want one. A system wide trash system could be used by viruses, etc. and seems very unUnix-like. Best to keep the desktop things on the desktop and quit trying to turn linux (i.e. lower level linux) into monolithic windows.

  158. My solution... by nanotron · · Score: 1

    I simply set up ENV var called $trash pointing to ~/trash... then just do:

    mv blah $trash

    works fine...

  159. not only are you paranoid... by petard · · Score: 1

    you are wasting your time. Equipment to recover these files costs on the order of US $2000... you're not stopping many people, huh? When you really want them gone, you should burn your hard disk platters until very little remains and scatter the ashes over the sea.

    --
    .sig: file not found
  160. Or compost? by ryochiji · · Score: 1

    How 'bout the compost? Stick crap in there and you get a heap of dirt! Um, well, may be not...

  161. Purdue has had unrm for years and years by bee · · Score: 2

    Purdue had an unrm package when I was a sysadmin there in 1995, and it was old then. It worked by having a new unlink() that could then be merged in with libc (if you were brave) or linked to separately so you could have /usr/local/bin/rm instead (if you weren't), along with tools that understood how to read the filesystem tomb and restore files from it, and a daemon (preend) that cleaned the tombs of old files. Unfortunately, it has never been extremely portable, since it involves rewriting unlink(). It had pretty much everything you could want in an entombing package; but I don't know if anyone has picked up the ball with it. Last I heard they were having trouble porting it to the newer versions of FreeBSD; check out this note from Purdue ECN.

    --
    At least mafia-owned pizzarias make excellent pizza. Compare to Bill Gates.
  162. A spec for how to do it right by steveha · · Score: 2
    I'd like to see support for this in the kernel. What I want is to see all the functionality of the Norton Protected Recycle Bin (NPRB), which you get with Norton Utilities under Windows.

    When you remove a file, from anywhere, it is saved. This means Nautilus, shell prompt, FTP client, whatever. (Tricks involving editing .bashrc need not apply.)

    When you overwrite a file, it is still saved. This means if you save a huge edit to a file and then regret it, you can recover the previous version. If I am not mistaken, libtrash does not handle this case.

    You can specify some files/directories to not be backed-up. NPRB allows you to specify wildcard patterns, such as "C:\Temp\*" (anything in C:\Temp) or "*.bak" (any file ending in .bak). I like the wildcard feature for "*.bak" and such, but I would also like to see this new kernel feature do the right thing with the "chattr +u" flag, which Linux has had forever but doesn't acutually do anything.

    You specify an automatic date for the backups to be purged: e.g., anything older than 3 days old gets purged. A user-space utility running on a cron job would handle this nicely.

    There should be user-space utilities that allow for recovering a deleted file (to original location or to someone else), and for purging all the kept files to truly get the space back. (And I want a nice Nautilus interface for this stuff.)

    When you are up against the wall on disk space, the oldest files get purged automatically to make enough room for a file write. (This one would be nice but I could live without it.)

    This would be nice on servers, but I also want it on the workstation!

    NPRB is the one big feature available in Windows that I really wish for in Linux.

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
    1. Re:A spec for how to do it right by Erik+Hollensbe · · Score: 1

      The norton protected recycle bin really does nothing but take advantage of a few (mis)features of the FAT file system.

      If this works on NTFS too, then they are actually doing something new, since this stuff has been done since the early dos days.

    2. Re:A spec for how to do it right by steveha · · Score: 2

      The norton protected recycle bin really does nothing but take advantage of a few (mis)features of the FAT file system.

      You are mistaken. Perhaps you are thinking of the Norton "Undelete" program, not the Norton Protected Recycle Bin.

      Undelete does take advantage of the way the FAT filesystem deletes files. (However, it also takes advantage of the "image" files written by the Norton Disk Image program, which are basically copies of the FAT written to known locations on the disk. If you have been imaging your disk, your odds of a successful undelete improve.)

      If this works on NTFS too, then they are actually doing something new

      It does work on NTFS.

      NPRB works by intercepting disk writes that would delete or overwrite files, and then backing up the original file.

      If you edit a file and then hit save, and do it again three more times, then when you check the NPRB recovery you will see four versions of the file that you can recover--one for each save.

      steveha

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
  163. Snap filesystem? by steveha · · Score: 2

    A couple of years ago I heard about something called the "snap filesystem" which would allow for recovering deleted or overwritten files. But I haven't heard of it since, or seen anything on the web. Does anyone know anything about a "snap filesystem"?

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  164. Actually it is better than Window's trashcan by Anonymous Coward · · Score: 0

    Actually it is better than Window's trashcan.

    Trash can = works well in Windows GUI.
    Just you drop to DOS/NT Command Prompt and
    use 'del' to remove a file... its gone, it's not in the trash can, because its the GUI API layer that does the trashcan stuff.

    Linux's trashlib unlink() function works for one and all....

  165. Snapshots (with LVM) by steveha · · Score: 2
    If you set up your system with LVM, you can use LVM's "snapshots" feature. Each snapshot is a virtual copy of the entire file system, as it existed when the snapshot is taken.

    This is primarily intended for backups of volatile filesystems, such as databases. You would backup a database like this:

    suspend database transactions

    wait for pending transactions to finish (so database indexes are consistent)

    make a snapshot

    resume database transactions

    backup the snapshot

    remove the snapshot

    But if you have a lot of free disk space, you could set up your system to make a snapshot every hour, and keep the snapshot for, say, 8 hours. Then you would have a coarse-grained undelete.

    If your shapshots happen on the hour (1:00, 2:00, 3:00 and so on) and the user creates a file at 1:02 and deletes it at 1:40, the snapshot won't help, which is why I call it coarse-grained. But if you accidentally do "rm * .mp3" in your home directory, the snapshot would be a huge help. You would get back everything over an hour old.

    It is specifically for snapshots that I plan to try out LVM on my next file server.

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  166. revision control by pmineiro · · Score: 1

    first, i commend this cute hack.

    however personally, i like to keep as much of my computer life under CVS as possible, because recovering deletion is just one aspect of the many ways in which i screw up regularly. that includes my home directory, zone files, system configuration files, etc.

    it would be neat if a distro (like debian!) put /etc under CVS automatically, even though it's easy to do yerself.

    -- p

    1. Re:revision control by Cid+Highwind · · Score: 1

      Keeping config files in CVS sounds like a great idea! Could you post a short howto (or better, link to a long one)?

      --
      0 1 - just my two bits
  167. Why don't you just use... by wirelessbuzzers · · Score: 1

    /bin/recycle

    --
    I hereby place the above post in the public domain.
  168. Re:Here's a Handy Hint by Anonymous Coward · · Score: 0

    Wow, great idea. Noone ever thought of that before. Now make it work so that when you delete a file from within a program such as nautilus or emacs they also go to the trash.

    Read Unix Haters Handbook for a hint...

    Chaz

  169. KDE has a "trash can" by nurb432 · · Score: 1

    True its embedded into the interface and not from a raw terminal, but since 99% of the people that need the feature will be using a desktop of some sort, it would be effective to them.

    ( i assume GNOME does too.. )

    --
    ---- Booth was a patriot ----
  170. Re:Linux needs this at the filesystem level ... NO by ashitaka · · Score: 2

    Absolutely.

    It doesn't happen often but when a user saved over an older version of a document in our DMS (iManage) we could count on Salvage to get it (or any other previous version) back.

    Having migrated to Samba on Linux for File/Print we now have to resort to tape.

    --
    If you don't want to repeat the past, stop living in it.
  171. Re:Linux needs this at the filesystem level ... NO by I_redwolf · · Score: 1

    Good, so use Netware, buy Netware it obviously does what you want. If you don't want a user to accidentally delete something make sure that like every other admin you backup up there directories. FIND a way to work around it.. under a unix system it's easy. Every 1 hour have a script that runs that backs up the users directories to another partition or where ever you want, if someone creates an original file have it backed up and saved, if a file with the same name is created make; use iterations.. It's not difficult. Linux hasn't left you high and dry you're just to lazy to write a tool that will do what you want. Who's fault is that?!

    If you've been a rabid Linux user from the early days, then you've had at least a good 10 yrs to figure this out. Everyone else seems to be using Linux for everything including file servers. How this got modded up is beyond me.

  172. Re:Here's a Handy Hint by statichead · · Score: 1

    I dont mean to trash this software, no pun intentended,but seriously I personally have not found the lack of a trash can a problem. If it works for you then fantastic.

    I think the problem lies more in the fact that most people really don't know how computers really work and microsoft pushes user stupidity.

    Why is it winders users can learn all these arcane command key combos, software patch maddness, and deal with the total lack of a simple directory/drive structure and yet the logic of the recycle bin stumps them?

    What really scares me is microsofts invasion on the school systems. Kids learning all about computers on an asinine OS and think that it is normal.

    What linux really needs is a file browser, I shudder every time I have to build tkdesk on a new system and love it when I get it working.

  173. Re:Here's a Handy Hint by yelligsc · · Score: 1

    The evil 16 y/o hacker in my from years ago jumped out when I read you comment...

    Putting a file called -rf in a commonly deleted directory could be interesting! I would have never thought of that.

    But, yah, that a good idea.. putting a -normstar file in the directory.

    Scott.

  174. Relax. Say "Uhhmmmmm" by FreeLinux · · Score: 2

    I'm not trying to frustrate you. I see where you are coming from on the fragmentation issue and I see where this might be a problem in some cases.

    Frankly I want this feature more for servers than anything else, although having it on the workstation is an added bonus. But, in terms of servers they will usually use RAID and mine always use RAID 5. In this case fragmentation is often beneficial.

    But, the server arguement is just an excuse. The fact is that if fragmentation is such an issue then this proposed file system should not do fragmentation avoidance as ext2/3 does but, rather perform defragmentation functions with a seperate utility as is the case with M$ file systems. I've got no issues with a CRON job that runs a defragmentation process in the wee hours.

    One final note: I can assure you that the Novell guys aren't taking your approach -- only overwriting something when they absolutely have to do so.

    This is absolutely exactly what the Novell file system has done since v3.1 and has been maintained in all 9 versions since then, right up to today's Netware 6.0. Granted, I don't know how it's coded but, this is definitely the resulting behavior. No file is overwritten until the disk is physically out of space, or very near it. The only exceptions are those that are explicitly configured to "Purge" immediately. If your disk hasn't run out of space, say a really large disk or a really quiet server, it's possible to Salvage a file from six years ago, even if the server has been rebooted everyday.

  175. Great.... by mungtor · · Score: 1

    Now I'll have Linux developers with a full 20GB drive, 19GB of which is the Recycle Bin.

  176. Thanks, By the Way by Anonymous Coward · · Score: 0

    I haven't read all of the posts, just enough to get a feel for the general sentiment - anyway thanks for pointing out that it takes a non-programmer, who never made a dime programming, in fact, to write a functional trash can for Linux. This is something that I will probably never use, but thousands of others WILL use it, because they need it/or are used to having it. By the way, on the Mac it's called the Trash Can and on the SGI it's the Dumpster (yes Unix desktops have this feature) and these both make sense because you are throwing files/data away. So, why does MS use Recycle Bin are the words an and the suddenly in short supply?

  177. Roll cleanTrash into it! by mungtor · · Score: 1

    That is the biggest problem I have with users and Trash/Recycle Bins. They never empty them. The minute I get the call "I'm out of disk space" I ask if they have emptied the Recycle Bin. 99/100 times, they say "oops" and hang up.

    MS Recycle bin has a limit on size, but how friggin hard could it be to set up something which natively (no extra cron jobs to stuff into each one of 150 machines, please) deletes anything that has been in the trash for more than 2 weeks?

  178. lvm snap by martinflack · · Score: 2

    I don't use a "trash can" on my home linux computer per se, but I do run Logical Volume Manager and one of the _best_ features is the ability to take a snapshot of a logical volume.

    The snapshot uses zero bytes when you first make it, and then as activity happens on your drives it records changes (imagine a "super-diff"). The amount of space you need to allocate to the snapshot depends on how long you want it around and how frequently you write to disk.

    I decided this is useful when automated so my home computer makes a place called /mnt/snap every Sunday morning with enough space (1G) to last all week. During the week I can then recover any file that existed on the previous Sunday morning, but there was no lengthy "backup" process or tape drive or anything. I like it very much.

    Here's my /etc/cron.weekly/lvsnap:
    #!/bin/bash
    umount /mnt/snap
    lvremove -f /dev/big/snap >/dev/null
    lvcreate -L 1G --snapshot -n snap /dev/big/rh >/dev/null
    mount -r /dev/big/snap /mnt/snap

    BTW, I don't even have two HD's on my LVM. I just imlpemented it on my main drive for the sheer geekiness of it, i.e. cool features like this one. Yes, before someone points it out, I realize theoretically with just 1 drive LVM makes it slower rather than faster but (a) I didn't notice any speed difference, probably because my CPU is fast, and (b) it's a non-critical home computer.

  179. Version Control Systems by aaarrrgggh · · Score: 2

    I'll go for the easy argument:

    If all your files are in a RCS... shouldn't it be a function of the file system?

  180. Re:Here's a Handy Hint by darxyde · · Score: 0

    Don't Delete Shit You Want to Keep!

    Well said.

    Back in the day I remember removing all of the production perl/php/C scripts I had been working on for six months in one foul swoop.

    Didn't have much of a problem running 'man debugfs' and working out how to retrieve the files.

    nor did I have a problem aliasing 'rm' to 'rm -i' incase of future carelessness.

    And if you absolutely need to keep certain files - take a friggin backup. Humans will be humans I guess and make mistakes, but it's not hard to avoid tears.

    .darxyde.

    --
    Hey relax fella, you need a rest, guy.
  181. rm -rf /bin/laden by bmalia · · Score: 1

    Whoomp!

    --
    There's no place like ~/
  182. Partition? by Wiwi+Jumbo · · Score: 1

    I don't really know enough about the subject to give any sort of informed opinion, but that's never stopped me before....

    Since Linux already has a swap-file partition and there are opposing views on if it should be added to the file system for various reasons.

    Why not have a partition strictly for the *Recycle Bin* (or whatever is deemed "worthy" for Linux). As I understand it it could solve a few issues such as it could be formatted to solve multiple version issues as well as restore location information and you have a fix disk space that would be used and you wouldn't have to worry about emptying the trash as it wouldn't help you any. The format could work much like the salvage command in Netware mentioned a few topics ago, never truly filling the drive as it just overwrites the oldest files first.

    Anyways, enough babble from me... I don't know what I'm talking about.

    --
    Wiwi
    "I trust in my abilities,
    but I want more then they offer"
  183. For those who wont....... by tanveer1979 · · Score: 2

    use trash can, I have a suggestion alias rm "rm -i" .

    --
    My Aurora : http://www.youtube.com/watch?v=o91ZsGwJYyg
    FB : https://www.facebook.com/TanveersPhotography
  184. Actually, windows DOES have unified installation by Anonymous Coward · · Score: 0

    Windows

    Start > Settings > ControlPanel > Add/Remove Programs

    You CAN use other programs' individual installers if you WANT, but you don't HAVE to.

    . . .oh wait, the facts don't matter here -- what's more important is to gloss over Linux's shortcomings -- by misrepresenting Windows -- instead of DEALING with them.

  185. Learn from your mistakes. by Anonymous Coward · · Score: 0

    Well, Joe User can learn from his mistakes and never make them again. Didn't you ever learn from your mistakes? I bet the first time you did an rm *, you payed more attention to it again. Why must there be an undelete to coddle Joe and teach him bad pratices?

  186. Delete all by Anonymous Coward · · Score: 0

    Actually, it would be even better if delete actually wiped the actual blocks so that files were completely unrecoverable.

  187. Use GNU rm! by FooBarWidget · · Score: 2

    [hongli@izumi src]$ rm -rf .*
    rm: cannot remove `.' or `..'
    rm: cannot remove `.' or `..'
    [hongli@izumi src]$

  188. Part of the Solution by Anonymous Coward · · Score: 0

    Your "mistake" was part of the solution. Do a "rm /bin/rm" and you never again need to bother about accidentally deleted files.

  189. Thanks by mhesseltine · · Score: 1

    As you can see, I don't do this a whole lot. After all, I was brought up believing that deleting a file is DELETEING a file.

    --
    Overrated / Underrated : Moderation :: Anonymous Coward : Posting