Mint Serena 64 bit using the Mate desktop environment. Most of the following scripts will run on this machine, although some have only been tested with the Gnome desktop. Extra software requirements can be met by the Ubuntu and safe PPA repositories. Scripts may be re-written or added to from time to time, the date serves as the version number. Syntax highlighting on these pages is provided by GVim's "Convert to HTML" option.

Delete files and/or directories

# Filename: Recursive-Wipe
# Author: robz
# Version: 200111
# Script to securely multi-pass erase multiple files and/or directories.
# Put it in your "nautilus-scripts" directory and right click to use.
# Will overwrite file & filename with 2 passes of random data, truncate file
# size then erase the sorry remains. If a directory is erased all directories
# and files within it will receive the same treatment.
# Default gnome-terminal profile actions are used, ie. auto close on exit.
# CAVEAT - this is secure within the limits of a journalling file system.
# See man pages for "wipe or shred" for full explanation.

# Create newline delimited selected files list, handling spaces in file names.
    awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
    --title="Secure Wipe"\
    --text="<b>You are about to permanantly wipe:</b>\n$FILE\
    \n<span color=\"red\"><b>Are you sure you want to do this?</b></span>"\
    --cancel-label="Hell No!"
if [ "$?" = 1 ] ; then
    exit $?
    gnome-terminal --geometry 70x10+5+30\
    --title="WIPE FILES - It's really gone!!" -x\
    bash -c "wipe -rfcqQ2 $FILE && tput bold; tput setaf 3;\
    echo -en '\nHit a key to exit this shell '; tput civis;\
    read -t10 -n1"

Powered by ScribeFire.

No comments: