View and Render .nfo files correctly in Ubuntu with NFO Viewer

Posted by on Nov 23, 2008 in Linux, Ubuntu4 commentsPrint This Post

aXXo NFO FileIf you regularly explore the more nefarious side of the internet, you’ll be familiar with .nfo files. NFO files are ASCII Art in the CP437 codepage, and used by various  distribution groups to mark the fact that they released this particular file – like a label or logo. Being an Ubuntu user you’re probably also aware that .nfo files are opened in the text editor by default, which, while may suffice to view the information, it doesn’t render the file fully.

Please note: I couldn’t possibly advocate visiting websites such as mininova.org, or thepiratebay.com to acquire your favourite films, music, etc. but I hear both sites have much to offer… although I must admit, I have accidentally clicked on a link in the past which happened to download a “torrent” file, which then inadvertently opened a program called “Deluge” (I found this purely by accident, of course, when I was idly tapping keys in the terminal, and just so happened to type: sudo apt-get install deluge-torrent). To my surprise, this download contained amongst others, an .nfo file, which I really really wanted to render properly (I deleted all other files, of course – although it was approximately 2 hours after I downloaded them, since I couldn’t work out why, after accidentally double clicking one of the other files, Ubuntu opened up mplayer and began displaying moving pictures… must be a bug).

Anyway, I digress – There are of course, many legitimate .nfo files, since there is a whole culture dedicated to ASCII Art. This is how to view the .nfo files in all their glory:

NFO Viewer is a simple tool for, well, viewing NFO files. It requires Python, python-gtk2, intltool and gettext, so if you don’t have them open a Terminal (Applications -> Accessories -> Terminal) and run:

sudo apt-get install python python-gtk2 intltool gettext

Once the prerequisites are installed, you can download the tarball from the NFO Viewer site. As usual, everything I download ends up on my Desktop (I really must do something about that…), so from a Terminal, I ran:

cd ~/Desktop
tar -zxvf nfoview-1.2.1.tar.gz
cd nfoview-1.2.1

Installing is pretty simple:

sudo ./setup.py install

If you have any problems installing, you may also need python-dev (I don’t have this, and it installed fine):

sudo apt-get install python-dev

The recommended font for NFO Viewer is “Terminus”, although the link on the NFO Viewer website seems to be dead, so here’s another link to Terminus. It can be downloaded and installed directly from the Terminal:

cd ~/.fonts
wget http://fractal.csie.org/~eric/Terminus.ttf

Remember to refresh the font cache:

sudo fc-cache -fv

NFO Viewer can be run from the Terminal:

nfoview

but of course, file association is set up automatically, so NFO files will open by default in NFO Viewer, and the Terminus font is also used by default.

Dunno how it got here guv, I swear!

Dunno how it got here guv, I swear!



Something not quite right? Inaccuracies or invalid code? Didn’t work for you? Don’t like me using Ss instead of Zs? Add a comment below! All comments are welcome. Except spam, because spam is a bit crap.



ASUS Lamborghini VX6-PU17-BK 12.1-Inch Eee PC Netbook (Black)


ASUS Lamborghini VX6-PU17-BK 12.1-Inch Eee PC Netbook (Black)


$685.70


Asus Lamborghini VX6-PU17-BK 12.1″ LED Netbook – Atom D525 1.80 GHz – Black VX6-PU17-BK 41…

T101MT-BU17-BK 10.1 Netbook


T101MT-BU17-BK 10.1 Netbook


$599.99


Asus Eee PC T101MT-BU17-BK 10.1″ LED Net-tablet PC – Atom N450 1.66 GHz – Black T101MT-BU17-BK 202…

Laptop Computer Security Cable Lock (Silver) for Asus laptop


Laptop Computer Security Cable Lock (Silver) for Asus laptop


$7.99


Laptop Computer Security Cable Lock (Silver) for Asus laptop . Laptop Computer Security Cable Lock for you to use to lock your laptop computer in an easy way.Features:Lock down your notebooks laptop computer with this unique, individual keys and locks for each computer. Galvanized steel cable for strong protectionEffective protection, anti-thief design keeps the sneakers away The T-bar mechanism b…

Seis De Mayo


Seis De Mayo


$4.29


It wasn’t long after the recording of this, Trey Anastasio’s third–and most warmly idiosyncratic–solo album, that the Phish frontman/guitarist announced that his improvisation-fueled, cult-fave band would record no more. Longtime Phish-heads (or admirers of Anastasio’s previous free-form jazz excursions with Les Claypool and Stewart Copeland and more conventional solo work) may find this ambitio…

Sapphire Video Card 100314-3l Hd 6870 1gb Ddr5 256bit Pci Express D-Dvi/Hdmi/Display Port Retail


Sapphire Video Card 100314-3l Hd 6870 1gb Ddr5 256bit Pci Express D-Dvi/Hdmi/Display Port Retail


$222.69


PCI Express based PC is required with one X16 lane graphics slot available on the motherboard.4X75 Watt 6-pin PCI Express power connector is required for CrossFireX system.2X75 Watt 6-pin PCI Express power connector is required.1024MBMinimum of system memory.Installation software requires CD-ROM drive.DVD playback requires DVD drive.Blu-ray/HD DVD playback requires Blu-ray/HD DVD drive.Blu-ray/HD …

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: ,

4 comments

» Comments RSS Feed
  1. Nice post..

    I also found a nfoviewer.deb file while searching on google (must be a bug, since it was so easy to find !), simply double-clicked and installed.

    Thanks though for a nice how-to. Honestly speaking, i found your style of writing highly interesting and entertaining..!!

  2. Thanx!

  3. Thanks VERY much for the clear (& mostly) accurate instruction.

    My only suggestion is to get the user/installer to find where their ‘fonts’ directory is. For Ubuntu (9.04) it is at /usr/share/fonts/truetype but YMMV.

    Best wishes . . .

  4. Many thanks pertaining to discussing that fantastic subject matter on your web-site. I noticed it on the search engines. I may check back again whenever you publish much more aricles.

Leave a comment