Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
darodi authored Oct 17, 2022
1 parent d8b2bf8 commit 559ce76
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,88 @@ The app relies and includes the following scripts:
* [Kobo Aura ONE](http://kcc.iosphe.re/Samples/Ubunchu-KoAO.kepub.epub)
* [Kobo Forma](http://kcc.iosphe.re/Samples/Ubunchu-KoF.kepub.epub)

## USAGE FROM SOURCES

_Originally posted by @hhtien1408 in https://github.com/ciromattia/kcc/issues/438#issuecomment-1281159452_

I wrote step-by-step instructions to install the lastest beta KCC-5.5.3-beta-darodi.6 based on @hiagpofranco idea

$ git clone -branch beta_release https://github.com/darodi/kcc.git


Then I installed the necessary packages. You can do it by running the following command. The requirements.txt file is inside this repository, you will see it when you clone the repo.

```
$ pip3 install -r 'requirements.txt'
```

This should install the required packages. You can check the version by running

```
$ pip3 freeze
```

If the packages are in the wrong version, you can try to upgrade them by running

```
$ pip3 install --upgrade name_of_the_package
```
Now, it should be all done. You can go to the folder of this repo and run

```
$ wget https://archive.org/download/kindlegen_linux_2_6_i386_v2_9/kindlegen_linux_2.6_i386_v2_9.tar.gz
```
```
$ unzip kindlegen_linux_2.6_i386_v2_9.tar.gz
```
```
$ sudo cp -R '/home/h2t/Desktop/kindlegen' '/usr/local/bin'
```
```
$ sudo chmod +rwx '/usr/local/bin/kindlegen'
```

Download and copy kindlegen into '/usr/local/bin' and grant execute permissions for MOBI conversion.

Run python file for KCC GUI
```
$ python3 kcc.py
```

If everything goes well, you now should be able to use it. However, if you are still seeing the same error, you can try to change the code mentioned in #406. Go to line 258 of kcc/kindlecomicconverter/image.py file and change it with the following line:

```
self.image = ImageOps.autocontrast(Image.eval(self.image, lambda a: int(255 * (a / 255.) ** gamma)))
```

Create destop file in '~/.local/share/applications' with codes:

```
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Kindle Comic Converter
Icon=kcc
Exec=python3 '/home/h2t/kcc/kcc.py'
Terminal=false
StartupWMClass=kcc
Name[en_US]=Kindle Comic Converter
```

Copy icon file into '/home/h2t/.local/share/icons'

```
$ sudo cp -R '/home/h2t/Desktop/kcc.png' '/home/h2t/.local/share/icons'
```






## PRIVACY
**KCC** is initiating internet connections in two cases:
* During startup - Version check.
Expand Down

0 comments on commit 559ce76

Please sign in to comment.