PDA

View Full Version : [ubuntu] Viewing CHM books



TadeoDiaz
September 9th, 2008, 11:13 PM
Anyone know how to be able to see CHM book files in Ubuntu (Hardy). I tried the CHM viewer but it didn't work

whitethorn
September 9th, 2008, 11:15 PM
Hi, do you have xchm installed ?


sudo apt-get update && sudo apt-get install xchm

It's not exactly pretty, there's also another program for KDE which is supposed to look better


sudo apt-get install kchmviewer

TadeoDiaz
September 10th, 2008, 04:05 AM
I tried it but whenever I open a CHM file in the program it comes up blank. I tried it with several CHM files and I get the same results

whitethorn
September 10th, 2008, 04:52 PM
Have you tried starting it from the terminal?


xchm /path/to/the/file.chm

What does it give you back?

acidsolution
September 10th, 2008, 04:58 PM
use gnochm


sudo apt-get install gnochm

this might help u

TadeoDiaz
September 10th, 2008, 10:14 PM
Have you tried starting it from the terminal?


xchm /path/to/the/file.chm

What does it give you back?

When I try this it comes up blank again and gives me this in terminal:



** (xchm:22789): WARNING **: Can't create printer "PDF" because the id "PDF" is already used

(xchm:22789): GnomePrintCupsPlugin-WARNING **: The CUPS printer PDF could not be created


(xchm:22789): GnomePrintCupsPlugin-WARNING **: The data for the CUPS printer PDF could not be loaded.

use gnochm


sudo apt-get install gnochm

this might help u

I tried it for both the files I have and it gave me a blank. It says at the bottom that it has "opened" a URL but nothing is showing. I tried clicking on the home link on the left but nothing comes up

whitethorn
September 11th, 2008, 06:09 PM
That's wierd. You got the same output that I get, with the printers and stuff. Have you tried the files in windows or on another computer? Are you sure they work?

Go to this webpage and download a chm file. And try opening it.

http://www.php.net/download-docs.php

Can you read it?

t0p
September 11th, 2008, 06:14 PM
Have you tried evince? I think I've viewed chm files with it.

TadeoDiaz
September 11th, 2008, 08:53 PM
That's wierd. You got the same output that I get, with the printers and stuff. Have you tried the files in windows or on another computer? Are you sure they work?

Go to this webpage and download a chm file. And try opening it.

http://www.php.net/download-docs.php

Can you read it?

I checked the files on a PC and it opens up just fine. I downloaded a file from that link and it opens just fine in xCHM and CHMviewer

TadeoDiaz
September 11th, 2008, 08:57 PM
Have you tried evince? I think I've viewed chm files with it.

Is it already included as the document viewer on Hardy?

whitethorn
September 13th, 2008, 02:44 PM
Yes evince is installed. You could just try running evince from the terminal, good way to check if it's installed. I tried it out and it didn't open any .chm for me. I have no idea why those .chm files work on a different PC and not on the other (right?), but xchm does open other .chm files. I have no idea why it's not working. Maybe someone else does.

TadeoDiaz
September 13th, 2008, 03:22 PM
The PC opens the CHM files just fine but xCHM can't open them. I ended up converting the CHM files to HTML and just viewing them on firefox but it's still kind of a pain (lots and lots of files)

namaku0
September 13th, 2008, 04:36 PM
archmage, chmsee, gnochm, kchmviewer, xchm...

..or you can use this Firefox plugin like me:
https://addons.mozilla.org/en-US/firefox/addon/3235

Kellemora
September 13th, 2008, 06:32 PM
Hi TD

This may or may not help at all, but it's worth giving it a try anyhow.

I've had several files that would appear BLANK, even if I was in Root Terminal, IF I didn't do this first.

After opening Root Terminal and logging in if need be.
Type cd .. then hit enter, type cd .. again then hit enter, then do an 'ls' to make sure are finally in the root.

Then try to read the file you want to read, however you read it.

For some reason, on my computer, I can't look at most configuration files unless I do this first, else the pages just come up as blank pages.

I'm a NOOB, so don't know why yet, just know I have to back up using cd .. twice before it will work.

TTUL
Gary

TadeoDiaz
October 19th, 2008, 05:18 PM
Sorry for not responding earlier fellas

Initially I had converted the chm files to html but it was just a pain to work with (a lot of the links don't work properly and if you want to look at a picture you have to hunt for it)

The firefox extension works initially but upon clicking on any link to change pages it changes to an error message or some weird code line

I tried both gchm and xchm and they did not work, I just installed chmsee and it seems to be working just fine (only reasonably slow to open the file and I get a message that It cannot find a file in the .chmsee library but it does eventually open the file)

kchmviewer works a hell of a lot faster with both files, even though the visual integration isn't as great with the current theme I am running (anyone know how to change the theme for it? :) )

Thanks for all your help fellas!