View Single Post
Old 10-13-2020, 10:07 AM   #3
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,189
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
My Recommended Setup

This will make a usb stick or calibre folder on a hard that is totally self-contained does not use space on the hard drive for tmp files.
  • Go here and download the version of calibre you want to use--for this example we will use calibre 4.23.0.
  • Format a usb stick using a linux file system--will not work using a windows type--will use ext4 for this example.
  • On the usb stick create a folder name "calibre-portable":
  • Click image for larger version

Name:	Screenshot from 2020-10-13 10-56-49.png
Views:	502
Size:	51.1 KB
ID:	182685
  • Open the folder calibre-portable
  • In the folder calibre-portable create a folder name "calibre"--note do not captalize calibre.
  • In the folder calibre-portable create a folder name "CalibreConfig".
  • In the folder calibre-portable create a folder name "CalibreLibrary".
  • In the folder calibre-portable create a folder name "tmp".
  • At this point your usb should look like this:
  • Click image for larger version

Name:	Screenshot from 2020-10-13 10-57-12.png
Views:	511
Size:	51.9 KB
ID:	182686
  • Extract the version of calibre downloaded earlier to the calibre folder.
  • Open the usb stick using your your file manger open the calibre folder.
  • Open the resources folder.
  • Now copy the calibre-portable.sh file to the root of the folder calibre-portable.
  • Click image for larger version

Name:	Screenshot from 2020-10-13 10-57-54.png
Views:	474
Size:	56.4 KB
ID:	182687
  • Click on the calibre-portable.sh file and chose run in terminal.
  • Type
Code:
./calibre-portable.sh
Code:
Generating default configuration file at /media/Yourusername/calibre-portable/calibre-portable/calibre-portable.conf
Set any non-default options here.
CONFIG FILES:       /media/Yourusername/calibre-portable/calibre-portable/CalibreConfig
--------------------------------------------------
LIBRARY FILES:      /media/Yourusername/calibre-portable/calibre-portable/CalibreLibrary
--------------------------------------------------
SOURCE FILES:       *** Not being Used ***
--------------------------------------------------
PROGRAM FILES:      /media/Yourusername/calibre-portable/calibre-portable/calibre
--------------------------------------------------
TEMPORARY FILES:    /tmp/CALIBRE_TEMP_fPtntSA
--------------------------------------------------

Press CTRL-C if you do not want to continue
Press ENTER to continue and start Calibre
  • At this time press CTRL-C.
  • This will create thee calibre-portable.conf file.
  • Now open the calibre-portable.conf file using a text editor
  • Change:
Code:
# CALIBRE_TEMP_DIR="/tmp/CALIBRE_TEMP_$(tr -dc 'A-Za-z0-9'</dev/urandom |fold -w 7 | head -n1)"
  1. to:
Code:
 CALIBRE_TEMP_DIR="$(pwd)/tmp/CALIBRE_TEMP_$(tr -dc 'A-Za-z0-9'</dev/urandom |fold -w 7 | head -n1)"
  • Save the file.
  • On Ubuntu based systems just click on the calibre-portable.sh file and select run
.
Calibre will now open

Or you can use run in terminal.
Code:
CONFIG FILES:       /media/Yourusername/calibre-portable/calibre-portable/CalibreConfig
--------------------------------------------------
LIBRARY FILES:      /media/Yourusername/calibre-portable/calibre-portable/CalibreLibrary
--------------------------------------------------
SOURCE FILES:       *** Not being Used ***
--------------------------------------------------
PROGRAM FILES:      /media/Yourusername/calibre-portable/calibre-portable/calibre
--------------------------------------------------
TEMPORARY FILES:    /media/Yourusername/calibre-portable/calibre-portable/tmp/CALIBRE_TEMP_vLpwXYB
--------------------------------------------------

Press CTRL-C if you do not want to continue
Press ENTER to continue and start Calibre

Starting up Calibre from portable directory "/media/Yourusername/calibre-portable/calibre-portable"
Using library at /media/Yourusername/calibre-portable/calibre-portable/CalibreLibrary
bernie

Last edited by gbm; 10-13-2020 at 11:41 AM.
gbm is offline   Reply With Quote