Displaying mht files in ubuntu

19 May 2008 at 2:47 pm 12 comments

Peace be upon you.

I will guide you how to view or display mht files in linux specially in ubuntu. I just would like to mention that MHT is the format used by Internet Explorer to save a web / HTML page into a single file (or ‘web archive’) rather than creating an HTML text file plus a separate folder containing all of the page’s images and other media.

It is not a Microsoft format (nor is it proprietary). It’s actually based on an IETF RFC standard.

Steps to get .mht files to open in Firefox on Ubuntu

1. Download the MAF extension.
RIGHT-click the following link and choose ‘Save link As…’ to save the MAF extension to your Desktop. Don’t left-click the link directly, or it will try to install itself into Firefox straight away (which won’t work).

Right-click and save >> maf-0.6.3.xpi

2. Patch the extension to make it compatible with version 2.x (or 3.x) of Firefox.
Click on the .xpi file to open it. It should automatically open in File Roller (the archive manager). Once opened, you’ll see several files and folders inside the .xpi file. Right-click on the ‘install.rdf‘ file and extract it to your Desktop.

Open the .rdf file in a text editor and look for the line that says: <em:maxVersion>1.5</em:maxVersion>“.

Change the value from 1.5 to 2.5 (or 3.5) and then save the file. Now add the edited install.rdf file back into the .xpi file (either use File Roller’s ‘Add Files‘ toolbar button, or just drag the file and drop it onto the open File Roller window). Close the File Roller window and then click on the maf-0.6.3.xpi again to re-open it. Click on the install.rdf file, and check that the version number change that you just made has been successfully retained.

3. Install the modified extension.
Now install the MAF extension, by dragging the maf-0.6.3.xpi file onto an open Firefox window. Once it’s installed, re-start Firefox.

4. Associate .mht files with Firefox
Right-click on an .mht file and select ‘Properties’ and go to the ‘Open With’ tab. Click the ‘Add’ button and select ‘Firefox Web Browser’ from the list of programs that appears. Press the Add button again and close the dialog.

Restart X (if necessary) by pressing: Ctrl + Alt + Backspace.

Ref : Ubuntu Forums

Have fun 🙂 .

Entry filed under: Linux. Tags: , , , , , , , , .

Learning Linux For Beginners 3 How to mount NTFS drive in ubuntu

12 Comments Add your own

  • 1. Adam W  |  27 November 2008 at 10:23 pm

    Hey, thanks a bunch for this, really helped me out! I was converting OneNote files and this was the only way I was able to read them in Ubuntu.

    Reply
  • 2. kenanah  |  27 November 2008 at 11:34 pm

    Thanks to you Mr Adam, and I hope to be useful for you and for all readers too 🙂

    Reply
  • 3. Me too  |  22 May 2009 at 4:06 am

    You should be able to simply install the latest version of the MAF add-on directly
    addons.mozilla.org/en-US/firefox/addon/212

    Reply
  • 4. Me too  |  22 May 2009 at 4:07 am

    You should be able to simply install the latest version of the MAF add-on directly
    https — addons.mozilla.org/en-US/firefox/addon/212

    Reply
  • 5. Sweet!  |  31 May 2009 at 10:19 pm

    Anything that can save me rebooting to the dreaded windows is pure gold IMHO. Thank you for this! Awesome.

    Reply
  • 6. Scott  |  2 July 2009 at 10:48 pm

    Thanks alot! This sorted me out in minutes. Cheers!

    Reply
  • 7. navin  |  5 July 2009 at 8:49 pm

    thank u very much,i am happy now

    Reply
  • 8. гей вич знакомства  |  18 December 2009 at 1:24 am

    и всё эе: мне понравилось!

    Reply
  • 9. agus suroso  |  11 June 2010 at 10:08 am

    thank you brother…

    Reply
  • 10. André  |  10 December 2011 at 8:45 pm

    Thank you for sharing ideas.
    MHTML is not a Web (browser) standard but a MIME standard to send rich, HTML text mainly by e-mail (title and 2nd § of abstract) and hence it’s fortunate that it’s not proprietary 😉 But Microsoft (author N. Shelness) has been active in the development of the RFC because they wanted early support not only for e-mail but in the browser too.
    It’s the same standard:
    – save an e-mail message in .eml format, rename it to .mhtml and your browser should read it.
    – save a Web page in .mhtml format, rename it to .eml and your mail program should read it.

    Reply
  • 11. знакомства  |  2 February 2012 at 8:06 pm

    Helpful info. Fortunate me I found your site by accident, and I am shocked why this twist of fate did not came about in advance! I bookmarked it.

    Reply
  • 12. Pia Waugh  |  19 March 2012 at 2:17 am

    Hi all,

    rather than following these instructions, it’s easier to just search in the Firefox plugin finder for the Mozilla Archive Format to get the most recent one for your version of Firefox. Thanks heaps for the information though 🙂

    Cheers,
    Pia

    Reply

Leave a comment

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

May 2008
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031

Most Recent Posts