LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how do i delete history on OpenSUSE 10.3 (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-delete-history-on-opensuse-10-3-a-649983/)

mithos 06-17-2008 05:16 PM

how do i delete history on OpenSUSE 10.3
 
i'm having a hard time finding a way to delete the history of recently opened files, folders and documents for security reasons. till now, all i could find were these scripts that helped me in some ways, but i still haven't deleted my main problem above... these are the scripts i found:


########################################################################

this one is helped me delete more sensitive data from my drive: ->

The following script erases personal data such as cookies, cache, temporary, and history items in Suse 9.3. It isn't complete, but it does a nice job. It is also fairly simple and well commented to ease extension of the script.

CODE

#!/bin/bash
# cleanup
# cleanup bash script written to remove private data in Suse 9.3 by anthro398.
# See
# The next line sets the variable LOCAL_USER to the enviromental variable $USER. $USER will
# be expanded to the name of the user running the script. To run this script as root for a
# user you'll need to set LOCAL_USER to the username of the target user.

LOCAL_USER="$USER"

# The following assignment uses the rm, or remove command with the
# recursive and force flags. For more secure deletion install wipe
# from " " and change "rm -rf " to "wipe -frsd ". Please notice the space
# following the last flag. It is necessary for this script to execute properly.

REMOVE="rm -rf "

# The following block assigns files and folders to the $FILES
# variable to be removed. Add to or remove from this list following the
# pattern.

FILES="/home/$LOCAL_USER/.mplayer/gui.pl
/home/$LOCAL_USER/.mplayer/gui.history
/home/$LOCAL_USER/.mplayer/gui.url
/home/$LOCAL_USER/.mozilla/default/*.slt/Cache
/home/$LOCAL_USER/.mozilla/default/*.slt/cookies.txt
/home/$LOCAL_USER/.mozilla/default/*.slt/history.dat
/home/$LOCAL_USER/.mozilla/default/*.slt/downloads.rdf
/home/$LOCAL_USER/.mozilla/firefox/*.default/Cache
/home/$LOCAL_USER/.mozilla/firefox/*.default/Cache.Trash
/home/$LOCAL_USER/.mozilla/firefox/*.default/cookies.txt
/home/$LOCAL_USER/.mozilla/firefox/*.default/downloads.rdf
/home/$LOCAL_USER/.mozilla/firefox/*.default/history.dat
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Temp
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Cookies
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/History
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Recent
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Temp
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Temporary Internet Files
/home/$LOCAL_USER/.opera/cache4
/home/$LOCAL_USER/.opera/download
/home/$LOCAL_USER/.opera/images
/home/$LOCAL_USER/.opera/download.dat
/home/$LOCAL_USER/.opera/cookies4.dat
/home/$LOCAL_USER/.nautilus/metafiles
/home/$LOCAL_USER/.thumbnails
/home/$LOCAL_USER/.xine/xine-ui_old_playlist.tox
/home/$LOCAL_USER/.bash_history
/home/$LOCAL_USER/.recently-used
/home/$LOCAL_USER/.adobe/Acrobat/7.0/Cache/cookies.txt
/home/$LOCAL_USER/.adobe/Acrobat/7.0/Cache/Search70
/home/$LOCAL_USER/Incomplete
/home/$LOCAL_USER/.Azureus/torrents
/home/$LOCAL_USER/.kde/share/apps/kaffeine/playlists
/home/$LOCAL_USER/.kde/share/apps/kcookiejar
/home/$LOCAL_USER/.kde/share/apps/RecentDocuments/
/home/$LOCAL_USER/.java/deployment/cache/javapi/v1.0/tmp
/home/$LOCAL_USER/.java/deployment/cache/tmp
/home/$LOCAL_USER/.limewire/Cookies.dat
/tmp/kde-$LOCAL_USER
/home/$LOCAL_USER/.local/share/Trash/files
/home/$LOCAL_USER/.local/share/Trash/info"

# This is the statement that actually deletes the above files and directories. It says,
# for each file in the above list execute the command given in the $REMOVE variable.

for file in $FILES
do
$REMOVE+$FILES
done
exit 0


Issues:

Recent files list in xine/kaffeine are not deleted. (Not sure where they're stored)

Extension ideas:

Add cp commands for things like bookmarks for back ups
Add symbolic link in /home/$USER/bin/
Add icon to Suse menu to run scipt on click
Add /tmp/ folder to file list and run on shutdown

#######################################################################

this other one helped me out a bit, but not much: ->

Script to remove sensitive information on your computer
I have created a script to remove sensitive information such as caches and trash using the wipe program to securely delete the files.

the program 'wipe' must be installed in order for this script to work

Code:

sudo apt-get install wipe

So far, the script only works with gnome and firefox caches. if anybody has any suggestions on other directories or files that should also be wiped, please comment in this thread and I will add it and post a final script in this thread.

Also, this script is geared for Ubuntu (K,X) so I don't know what it would do with other distros.

Code:

# Privacy cleaning script
# Requires program 'wipe' to be installed.



# Thumbnails and recently open files list
echo "Wiping Gnome thumbnails, recently used lists and Trash."
cd ~
wipe -r -f .thumbnails
wipe -r -f .recently-used
wipe -r -f .recently-used.xbel

# Trash
wipe -r -f .Trash/*

# External Trash such as on thumb drives
# uses a quick wipe so it doesn't flog flash drives as badly.
echo "Wiping Trash files on external drives."
wipe -r -f -q /media/*/.Trash*

# Search Indexes
echo "Wiping Beagle search index."
wipe -r -f .beagle

# GIMP
echo "Wiping recently used documents in any version of Gimp."
cd ~
wipe -r -f .gimp*/documents

# Firefox
echo "Wiping Mozilla history, cookies and cache."
cd ~
wipe -r -f .mozilla/firefox/*.default/Cache
cd ~
wipe -r -f .mozilla/firefox/*.default/history.dat
cd ~
wipe -r -f .mozilla/firefox/*.default/formhistory.dat
cd ~
wipe -r -f .mozilla/firefox/*.default/cookies.txt

##########################################################################

the first site helped me out deleting more sensitive data from my drive, but i went to check my recently opened documents and nothing x_x

i loaded my terminal and downloaded the wipe program and i also used the yast software manager to download the program wipe and it's already installed.

can anyone can help me out with this headache ? i just want to learn how to delete those histories of recently opened documents.

thanks ^^

oskar 06-17-2008 06:04 PM

Have you thought about creating a separate user account?

Have you tried just right-clicking the "recently opened" menue... maybe there's an option there.


All times are GMT -5. The time now is 02:35 AM.