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":

- 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:

- 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 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)"
- 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