Download the source and change the following items in libtrash.conf:
IGNORE_HIDDEN = NO
IGNORE_EDITOR_BACKUP = NO
UNREMOVABLE_DIRS=/bin;/boot;/dev;/etc;/lib;/sbin;/usr
then
$make
#make install
add to /etc/profile, /etc/bash.bashrc and $HOME/profile, $HOME/bash.rc the following lines:
# LIBTRASH requires the following four lines
export LD_PRELOAD=/usr/local/lib/libtrash.so
alias su="su -l"
alias trash_on="export TRASH_OFF=NO"
alias trash_off="export TRASH_OFF=YES"
If you want to change something in the configuration, make it in the file ".libtrash", using as an example /etc/libtrash.conf
Remember that has to create the trash subdirectory that is for example $HOME/Trash
Finally to check that all is working
$ su -c "set|grep LD_PRELOAD"
Should output something like:
LD_PRELOAD=/usr/local/lib/libtrash.so
Saturday, February 21, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment