• Hi guest! As you can see, the new Wizard Forums has been revived, and we are glad to have you visiting our site! However, it would be really helpful, both to you and us, if you registered on our website! Registering allows you to see all posts, and make posts yourself, which would be great if you could share your knowledge and opinions with us! You could also make posts to ask questions!

[Tutorial] A Handy "nix" Script

Informative post.

Asteriskos

Acolyte
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!
 

Morell

Acolyte
Joined
Jul 5, 2024
Messages
443
Reaction score
789
Awards
9
Noticed that too. I have fbReader on my phone and to prevent secondary copies of the books I found in settings that it has choice on where it should seek for the books and where it should store the books. I set the both folders to be the same. And I stopped having the copies... because they would be where the opened file is. I assume that you can do something about those settings too, so that it puts the copies where you can easily find them or to use file folder where the files already are.

I only get the copies now when I open the files from different folder, like when I download into the phone from internet, which I almost never do.
 

Asteriskos

Acolyte
Joined
Apr 16, 2024
Messages
473
Reaction score
708
Awards
9
Noticed that too. I have fbReader on my phone and to prevent secondary copies of the books I found in settings that it has choice on where it should seek for the books and where it should store the books. I set the both folders to be the same. And I stopped having the copies... because they would be where the opened file is. I assume that you can do something about those settings too, so that it puts the copies where you can easily find them or to use file folder where the files already are.
I only get the copies now when I open the files from different folder, like when I download into the phone from internet, which I almost never do.
I prefer to simply Nuke'em with "prejudice", it satisfies something deep down Inside! :ROFLMAO::cool:
Post automatically merged:

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!
I guess I should add that I don't keep EPUB's because I dislike the (XHTML based) format, and personally think it's inferior to PDF, just My feeling. So I don't store EPUB'S anywhere at all. If the ebook in question is Worth converting to PDF then I do so. The resulting EPUB'S and any record of their transit are "Frobnicated", simply and efficiently Trashed. In my case with "prejudice" == "dislike" for the Format itself! 🤓
 
Last edited:

Morell

Acolyte
Joined
Jul 5, 2024
Messages
443
Reaction score
789
Awards
9
epub has an advantage that gives me reason to store then, when it is valuable books.
 

Asteriskos

Acolyte
Joined
Apr 16, 2024
Messages
473
Reaction score
708
Awards
9
epub has an advantage that gives me reason to store then, when it is valuable books.
There was a "popularity" thread on this very topic, what it amounts to is "Some people prefer One or the Other", basically it's what ever YOU like best! :cool:
Post automatically merged:

There was a "popularity" thread on this very topic, what it amounts to is "Some people prefer One or the Other", basically it's what ever YOU like best! :cool:
HERE:
Please, Log in or Register to view URLs content!

Post automatically merged:

I searched the entire net with three different search engines for a PDF copy of "The Art of Psychic Tarot", and did Not find One! I did find an EPUB though and converted it to PDF faster than a "Speeding Bullet", eradicating any trace of the that "Less than Optimal" clusterfest!
I also searched the Book Shares section for a link to this book and did Not see one at least as of Today.

I'd be happy to share this book but I'm still sitting on the fence regarding a MEGA account, however if someone who has one wants to host it You can have all the credit, I'm not a vain Sorcerer! :ROFLMAO: :cool: DM / PM me with upload details if someone want to host it! 🤘
 
Last edited:

Morell

Acolyte
Joined
Jul 5, 2024
Messages
443
Reaction score
789
Awards
9
I'd be happy to share this book but I'm still sitting on the fence regarding a MEGA account, however if someone who has one wants to host it You can have all the credit, I'm not a vain Sorcerer! :ROFLMAO: :cool: DM / PM me with upload details if someone want to host it! 🤘
Why don't you make another MEGA account to post only that? If you loose it, you won't loose anything else.
 

Asteriskos

Acolyte
Joined
Apr 16, 2024
Messages
473
Reaction score
708
Awards
9
Why don't you make another MEGA account to post only that? If you loose it, you won't loose anything else.
I have a great deal of stuff that I may do something with eventually? I'm not sure just yet what that will be though. There seem to be some measures that provide a little bit of protection from getting shutdown like passwords and compressing / encryption, et al. You can rename a compressed file "anything" which might help avoid an AI filename scanner for example. Just not sure what I might do right now though?
I sometimes look at "requests" to see what people are looking for. I have Strange and Exotic tastes when it comes to Magic/k!
Also, I would never "lose" anything, all my stuff is triple redundantly backed up, you just post a digital "copy" nothing from nothing leaves
nothing to lose! I never had a MEGA account, but I see the utility value of it though, I suppose I'll get around to sometime?
 

HoldAll

Librarian
Staff member
Librarian
Joined
Jul 3, 2023
Messages
5,055
Reaction score
25,376
Awards
16
I use free online converters, just Google "epub to pdf". I like this one best:

Please, Log in or Register to view URLs content!

It sometimes fails to convert title pages in which case I use this one:

Please, Log in or Register to view URLs content!
 

Asteriskos

Acolyte
Joined
Apr 16, 2024
Messages
473
Reaction score
708
Awards
9
I use free online converters, just Google "epub to pdf". I like this one best:

Please, Log in or Register to view URLs content!

It sometimes fails to convert title pages in which case I use this one:

Please, Log in or Register to view URLs content!
Excellent if that's what you like and works well for you! I prefer to keep it "in-house" and use "Calibre" an extremely useful program available I'm pretty sure for "Windoze" and most flavors of "Nix a likes" as well. Once you see it in operation it's difficult not to say: Wow, Cool! :geek:
 
Top