-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  . 

shred_file

   1  

Nautilus Script

Score 55%
shred_file
zoom


Downloads:  2958
Submitted:  Sep 20 2007
Updated:  Dec 5 2011

Description:

------------------------------------------------------------------------------
***CAUTION***
Do NOT use on device files like /dev/hda.
If you need to shred these files, refer to the shred man pages.
***CAUTION***
Use of this script on a file will make recovery impossible,
even with the more expensive file recovery solutions.

This script will shred the input file, after confirmation.
You will also be notified, when shredding is complete. (Should this be
removed?)

Depends
-------
*Obviously you need to have the shred utility installed and in your $PATH.
Since there are some misconceptions/worries about the shred utility regarding ext3, I will put it simple:
If your /etc/fstab file contains an entry for an ext3 partition, and that entry uses 'data=journal',
then the shredded file can still be recovered. If your /etc/fstab file contains an entry for an ext3
partition, and that entry uses 'data=ordered' or 'data=writeback', then your file is gone for good.

*This script also makes use of zenity (http://freshmeat.net/projects/zenity)
This also works well as a Nautilus Action. See the included screenshot for my example configuration.

See README for more info




Changelog:

1.0:
20111205
Complete rewrite by warserv. Wanna take this over? Email me.
This version will display a confirmation dialog; it can handle file paths with spaces in them; it catches and displays stderr from shred; and it displays a zenity progress bar.

0.2:
20100402
Updated to support shredding multiple files. Thanks jbom.

0.1:
20070907 Script release




LicenseGPL
(Shred File)
Send to a friend
Subscribe
Other  Apps  from sp00k113
Report inappropriate content



-

 cool idea

 
 by OmegaTree on: Sep 21 2007
 
Score 50%

Nice idea...I've been looking for a simple little script to destroy files. The fact that it can be used in the nautilus actions is pretty cool too.

Unfortunately I can't get it to work. I set up up, rightclick, shred, and it says "are you sure?", and I click yes. It says its done and accomplished but the file is still there. However I'm using XFS (whoot!) but I guess that's causing trouble. I have zenity but it still ain't working. I hope this has been any bit helpful and I hope that it can be made to work for all FS's.


0_o this face means I'm very skeptical...like you didn't know that...
Reply to this

-

 Re: cool idea

 
 by Rafterman on: Sep 21 2007
 
Score 50%
RaftermanRafterman
Home
-
Jose Agudo 0

United States of America, Jersey City, NJ
Last visit Oct 26 2014
0 Friends
2 Groups

More info
Send a message
Add as friend
Other contents
--

Try running the script via the command line: $HOME/.gnome2/nautilus-scripts/shred_file somefile_to_shred

That should help shed some light as to what's going on. You should have zenity though if you say you got a dialog box after starting the script. Do "whereis zenity" to find out for sure.


"I aim to misbehave"
Reply to this

-

 Re: cool idea

 
 by sp00k113 on: Sep 22 2007
 
Score 50%

if running the script from the cli works OK, it would have to be your Nautilus action. I included a screenshot in the tarball that is not posted here, showing an example (my) nautilus action setup for reference. If you get errors on the cli, post here and I will see what I can do for you.


-sp00k
Invalid Argument: Error exists between keyboard and chair!

Reply to this

-

 Re: Re: cool idea

 
 by OmegaTree on: Sep 24 2007
 
Score 50%

thanks man...it was the %M that was missing. After that, it worked fine. Not sure if it'll work in the long run because of me running XFS but the first step is done...


Edgy? $0. Old Computer Parts? $0. Cardboard box $0. Duck tape? $1. Owning a fully functioning Linux Server? Priceless...almost
Reply to this

-

 works for multiple files too ?

 
 by luciferax on: Aug 28 2009
 
Score 50%

Hi, thanks for it. Recently changed to gnome (ubuntu) and tried to implement this into nautilus. it works pretty well for single file... how can i get around -or do you have a fix for- for selecting multiple files at once and --> "shred". or did i made a mistake ? i tried to change action settings while configuring nautilus, and selected 'let it be appear when multiple files are selected', it appears, but then when i select 'shred', it shreds only the first file in selection and stops. any idea how i can get around this ?
Thanks in advance.


Reply to this

-

 Re: works for multiple files too ?

 
 by jbom on: Nov 1 2009
 
Score 50%

Hi,
This is the first response I have made on any forum and the first time I have put any code up (glad to do it finally) so excuse me if I don't do this right.
Thanks for the original script, it opened my eyes.
I modified it slightly so it handles multiple files and sets the number of passes to 1 (I was using it on a sd card). I think 1 pass for most media is good enough for normal people, you can change it by modifying or removing the -n 1 argument to shred. Seems to work ok.

files="$@"
zenity --question --title="Shred" --text="Are you sure you wish to shred $# files: $files?"
if [ "$?" = 1 ] ; then
exit $?
else
shred -u -z -n 1 $files
zenity --info --text="$# files shredded: $files."
fi


jbom
Reply to this

-
.

 Re: Re: works for multiple files too ?

 
 by sp00k113 on: Apr 2 2010
 
Score 50%

Awesome thanks, updating.


Slán!
Reply to this

-
.

 ext 4 support???

 
 by hellboy17291 on: Sep 13 2009
 
Score 50%

hi...was wonderin if there r any probs with the script on ext 4...please let me know..thanx in advance...


"Downloading windows apps is not piracy...its !@#$%^ lunacy"
Reply to this

-
.

 Re: ext 4 support???

 
 by sp00k113 on: Apr 2 2010
 
Score 50%

Going to try this out...


Slán!
Reply to this

-

 Thanks!

 
 by D4v3 on: Jan 29 2011
 
Score 50%

Thank you very much for this!


Reply to this

-

 Try this one

 
 by warsev on: Feb 25 2011
 
Score 50%

This version will display a confirmation dialog; it can handle file paths with spaces in them; it catches and displays stderr from shred; and it displays a zenity progress bar. Use at your own risk, of course.
[code]
#!/usr/bin/env bash
nfiles="$#"
files=""
for file in "$@" ; do
if [ ${#files} -gt 0 ] ; then files="$files\n"; fi
files="$files$file"
done
zenity --question --title="shred these $nfiles files - REALLY??" --text="$files"
if [ "$?" = 1 ] ; then
exit $?
else
nfile=0
(for file in "$@" ; do
echo "# shredding $file..."
shredout=$(shred -u -z -n 1 "$file" 2>&1)
rc=$?
if [ $rc -ne 0 ] ; then
echo "100"
zenity --error --title="No break for you today" --text="$shredout"
exit $rc
else
let nfile++
echo $((nfile * 100 / nfiles))
fi
done ) | zenity --progress --title="Wiping files..." --auto-close \
--percentage=0 --text="starting..." --no-cancel
fi
exit 0
[/code]


Reply to this

-

 Re: Try this one

 
 by warsev on: Feb 25 2011
 
Score 50%

Small revision to display just file basenames, not full paths.
[code]
#!/usr/bin/env bash
nfiles="$#"
files=""
for file in "$@" ; do
if [ ${#files} -gt 0 ] ; then files="$files\n"; fi
files=$files$(basename "$file")
done
zenity --question --title="shred these $nfiles files - REALLY??" --text="$files"
if [ "$?" = 1 ] ; then
exit $?
else
nfile=0
(for file in "$@" ; do
echo \# shredding $(basename "$file")...
shredout=$(shred -u -z -n 1 "$file" 2>&1)
rc=$?
if [ $rc -ne 0 ] ; then
echo "100"
zenity --error --title="No break for you today" --text="$shredout"
exit $rc
else
let nfile++
echo $((nfile * 100 / nfiles))
fi
done ) | zenity --progress --title="Wiping files..." --auto-close \
--percentage=0 --text="starting..." --no-cancel
fi
exit 0
[/code]


Reply to this

-

 Re: Re: Try this one

 
 by sp00k113 on: Dec 5 2011
 
Score 50%

Thanks. I have updated to reflect these changes.
I don't really want to maintain this anymore. Anyone want it?


Slán!
Reply to this

Add commentBack






-
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About GTK-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2014 GTK-Apps.org Team  
All rights reserved. GTK-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.