- Joined
- Apr 16, 2024
- Messages
- 473
- Reaction score
- 708
- Awards
- 9
Sometimes you might run across an ebook that's only available in "EPUB / .epub" format, (I hate it when that happens)!
You might want to check it out to see if it's worth converting to PDF using something like Calibre or a similar program first.
I find that the EPUB reader I use "FBReader" leaves a record of every filename it loads in several places on any of my
systems it runs on that I don't want building up. It would be dammed difficult to gain access to my network from the "outside"
but I guess it could be done from the "inside" when I wasn't looking. These filenames are stored so that anyone gaining access
to the system could plainly read them, so... I don't let them do that. As an engineer, programmer and sysadmin using "nix"
(OpenBSD and Linux) creating solutions for this kind of thing is common enough, so here's a little shell script to fix that!
# ---------------------------------------------------------------------------------------------------- #
#!/usr/bin/bash
### begone.sh - Script to Banish some non-essential B$$$ - Asteriskos
### Make executable and remove the ".sh" extension - "chmod +x ./begone"
### or chmod +x ~/begone or somewhere else in your path declaration.
### "mv ./begone.sh ./begone"
clear
if [ -d ~/.FBReader ]
then
echo -e "\nDirectory ~/.FBReader Exists, Commander!\n"
rm -f -r ~/.FBReader
echo -e "\nDirectory ~/.FBReader was Frobnicated!!!\n"
fi
if [ -f ~/.local/share/recently-used.xbel ]
then
echo -e "\nFile ~/.local/share/recently-used.xbel Exists Commander!\n"
rm -f ~/.local/share/recently-used.xbel
echo -e "\nFile ~/.local/share/recently-used.xbel Frobnicated!!\n"
fi
echo -e "\nAll Designated Cruft Expunged, Commander!\n\n"
sleep 10; clear
# --------------------------------------------------------------------------------------------------- #
The script removes all traces of anything FBReader stores (ebook filenames) so no traces left lying around!
This editor lost all my indention so the format seems a little Wonky!
You might want to check it out to see if it's worth converting to PDF using something like Calibre or a similar program first.
I find that the EPUB reader I use "FBReader" leaves a record of every filename it loads in several places on any of my
systems it runs on that I don't want building up. It would be dammed difficult to gain access to my network from the "outside"
but I guess it could be done from the "inside" when I wasn't looking. These filenames are stored so that anyone gaining access
to the system could plainly read them, so... I don't let them do that. As an engineer, programmer and sysadmin using "nix"
(OpenBSD and Linux) creating solutions for this kind of thing is common enough, so here's a little shell script to fix that!
# ---------------------------------------------------------------------------------------------------- #
#!/usr/bin/bash
### begone.sh - Script to Banish some non-essential B$$$ - Asteriskos
### Make executable and remove the ".sh" extension - "chmod +x ./begone"
### or chmod +x ~/begone or somewhere else in your path declaration.
### "mv ./begone.sh ./begone"
clear
if [ -d ~/.FBReader ]
then
echo -e "\nDirectory ~/.FBReader Exists, Commander!\n"
rm -f -r ~/.FBReader
echo -e "\nDirectory ~/.FBReader was Frobnicated!!!\n"
fi
if [ -f ~/.local/share/recently-used.xbel ]
then
echo -e "\nFile ~/.local/share/recently-used.xbel Exists Commander!\n"
rm -f ~/.local/share/recently-used.xbel
echo -e "\nFile ~/.local/share/recently-used.xbel Frobnicated!!\n"
fi
echo -e "\nAll Designated Cruft Expunged, Commander!\n\n"
sleep 10; clear
# --------------------------------------------------------------------------------------------------- #
The script removes all traces of anything FBReader stores (ebook filenames) so no traces left lying around!
This editor lost all my indention so the format seems a little Wonky!