Skip to content

Instantly share code, notes, and snippets.

@dryqin
Forked from billy-idle/calibre-web-on-FreeNAS.md
Created January 26, 2021 19:40
Show Gist options
  • Save dryqin/b9fce105a3fd5a5c2a6395db02601b64 to your computer and use it in GitHub Desktop.
Save dryqin/b9fce105a3fd5a5c2a6395db02601b64 to your computer and use it in GitHub Desktop.

Revisions

  1. @billy-idle billy-idle revised this gist Nov 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion calibre-web-on-FreeNAS.md
    Original file line number Diff line number Diff line change
    @@ -53,7 +53,7 @@ Open your web browser and go to http://[jail-ip-address]:8083, if everything goe

    7. Stop de Jail and add the mountpoint of your library (do not forget to check the **Auto-start** box in the edit section)

    8. Start the Jail, go to the shell and create an startup script:
    8. Start the Jail, go to the jail's shell and create an startup script:

    ```console
    touch /calibre-web/cw-startup.sh
  2. @billy-idle billy-idle revised this gist Oct 13, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions calibre-web-on-FreeNAS.md
    Original file line number Diff line number Diff line change
    @@ -39,6 +39,7 @@ git clone https://github.com/janeczku/calibre-web.git
    5. Follow the ["Quick start"][1]:

    ```console
    cd calibre-web/
    pip install --target vendor -r requirements.txt
    ```

  3. @billy-idle billy-idle created this gist Jul 26, 2020.
    74 changes: 74 additions & 0 deletions calibre-web-on-FreeNAS.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,74 @@
    # Calibre-web on FreeNAS

    ## Creating the Jail

    * Step 1 - Name Jail and Choose FreeBSD Release

    * **Name**: calibre-jail
    * **Jail Type**: Default(Clone Jail)
    * **Release**: 11.3-RELEASE

    * Step 2 - Configure Networking
    * DHCP Autoconfigure IPv4 **(check)**
    * VNET **(check)**

    * Step 3 - Confirm Options

    ## Running the Jail and setting up calibre-web

    1. Start the jail and go to the shell.
    2. Make sure you have installed the package manager:

    ```console
    pkg update
    ```

    3. Install git, pip, python and sqlite3:

    ```console
    pkg install git && pkg install py37-pip && pkg install python && pkg install sqlite3 && pkg install py37-sqlite3
    ```

    4. Clone the calibre-web repository

    ```console
    cd /
    git clone https://github.com/janeczku/calibre-web.git
    ```

    5. Follow the ["Quick start"][1]:

    ```console
    pip install --target vendor -r requirements.txt
    ```

    6. Execute:

    ```console
    python cps.py
    ```

    Open your web browser and go to http://[jail-ip-address]:8083, if everything goes fine you will see:

    7. Stop de Jail and add the mountpoint of your library (do not forget to check the **Auto-start** box in the edit section)

    8. Start the Jail, go to the shell and create an startup script:

    ```console
    touch /calibre-web/cw-startup.sh

    echo '#\!/bin/sh' >> /calibre-web/cw-startup.sh
    echo 'nohup python /calibre-web/cps.py &' >> /calibre-web/cw-startup.sh

    chmod +x /calibre-web/cw-startup.sh
    ```

    9. Add the script to the crontab

    ```console
    echo '@reboot root /calibre-web/cw-startup.sh' >> /etc/crontab
    ```

    10. Restart the jail and go to http://[jail-ip-address]:8083

    [1]:https://github.com/janeczku/calibre-web#quick-start