个人工具

UbuntuHelp:Wine/IrfanView

来自Ubuntu中文

跳转至: 导航, 搜索

Introduction

IrfanView is a popular freeware (but not open-source) simple yet powerful image viewer and editor for Windows. It is arguably the best software for quick processing of digital camera pictures, for example, simple resizing, compression, lossless rotation and possibly redeye reduction. IrfanView can run on Ubuntu under Wine. From IrfanView FAQ: Q: Can I use IrfanView on Linux? A: Yes. There is no native-Linux version of IrfanView. However, you can use IrfanView in conjunction with Linux programs like Wine, Windows Linux emulators and Linux-based virtual machines.

Setting up Wine for Ubuntu 9.10 (Karmic Koala)

sudo apt-get install wine

The new version should be 1.0.1 as of December 12, 2009.

Setting up Wine for Ubuntu 7.10 (Gutsy Gibbon)

A brief synopsis from Wine homepage is posted below:

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list
sudo apt-get update

Make sure apt-get doesn't produce any errors; for example, Synaptic Package Manager must be closed.

sudo apt-get install wine

The new version should be 0.9.51 as of December 28, 2007.

Setting up required Windows libraries

Certain libraries are required for execution of many Windows applications, including IrfanView. Here is a brief synopsis of commands that will install these libraries.

sudo apt-get install cabextract

Download mfc42.cab from Microsoft into /tmp using this link: [1]

cd /tmp
cabextract mfc42.cab
wine /tmp/mfc42.exe

Follow the on-screen instructions and click OK when the installer prompt you to reboot the computer. Do not reboot, this is not needed for Ubuntu. Alternatively, directly copy mfc42.dll from a Windows %SystemRoot%\system32 directory into /home/username/.wine/drive_c/windows/system32.

Downloading and installing IrfanView

Follow a link to [2]] and download [[Wine/IrfanView IrfanView] installation and plugins. Download the installer into your home directory. Open a terminal and run the following command. When installer finishes, it will prompt you to run IrfanView. Do not run it yet.

wine iview425_setup.exe

If you haven't downloaded IrfanView Plugins (irfanview_plugins_425_setup.exe) yet, download them now. Run

wine irfanview_plugins_425_setup.exe

Start IrfanView. If you chose so, a link will be placed on your Desktop, alternatively, find a launcher in Applications/Wine/Programs/Irfan'View/Irfan'View, or start it via wine "C:/Program Files/IrfanView/i_view32.exe".

Troubleshooting

If IrfanView won't start up after the installation, and you see output like wine: Unhandled page fault on read access... when started from a terminal, the problem is the new toolbar. Delete or rename /home/username/.wine/drive_c/Program Files/IrfanView/i_view32.ini after installing IrfanView; the toolbar with the new (and pretty) icons will disappear and you have the standard icons, but a working IrfanView!

More information