Running MS Paint on Linux


Usually, I use MS Paint on Windows for simple image editing such as cropping, giving some label, etc.
On this section I’ll try to explain to you step by step about how to use MS Paint on Linux.
Currently, I use Linux UBuntu 10.4 (Lucid Lynx). But it doesn’t matter what variant/distro you are using now, I think it will be quite similiar (not much different with mine, except on the first step).
The first step (this step will be different, depends on your linux’s variant/distro) is to get wine running on your linux.
on UBuntu (or other debian variant such as Linux Mint, KBuntu, etc.) just use apt-get to install thiswine like the following:

yauritux@yaurilab:~
yauritux@yaurilab:~$ sudo apt-get install wine

You will be prompted for your user’s password. Input your password, then press enter to continue.
The system will automatically install the packages needed on your machine. You don’t have to do anything special, just make a cup of coffee while waiting the process to be done :-).
Here is the output sample of mine:

[sudo] password for yauritux:
Reading package lists… Done
Building dependency tree
Reading state information… Done
……………………..
……………………..
The following NEW packages will be installed:
wine
………………
………………
Neet to get ……. of archives.
After this operation, ….. of additional disk space will be used.
Get: 1 http://id.archive.ubuntu.com/ubuntu/ lucid-updates/universe wine 1.2.2-0ubuntu2~lucid1 [….]
Fetched …….. in 4 s (9,948B/s)
Selecting previously deselected package wine.
(Reading database … 164177 files and directories currently installed.)
unpacking wine (from …/wine_1.2.2-0ubuntu2~lucid1_all.deb) …
Setting up wine (1.2.2-0ubuntu2~lucid1) …
yauritux@yaurilab:~$

for the next step ahead, you’ll need to copy files needed from Windows XP system.

The second step is create a folder named MSPaint (or whatever you want) .wine/drive_c/Program Files
next, copy mspaint.exe from Windows XP (usually at C:\Windows\System32) to the folder MSPaint you’ve created before, i.e. .wine/drive_c/Program Files/MSPaint.
and the following files:

  • mfc42.dll
  • mfc42u.dll
  • msisip.dll
  • msvcrt.dll
  • olepro32.dll
  • wshext.dll

from C:\Windows\System32 on Windows XP system to .wine/drive_c/windows/system32.
Next step you have to find for file GdiPlus.dll on the Windows XP hard drive, then copy to .wine/drive_c/windows/system32.
GdiPlus.dll will give your MSPaint ability to support TIF, GIF, JPG, PNG formatted.
Then, copy the following folder:

  • C:\Windows\AppPatch
  • C:\Windows\Fonts

from Windows XP to your linux at .wine/drive_c/windows/system32.
The final step is to create an icon/shortcut on your linux desktop.
Just right click on the desktop, and left click on Create Launcher.
from the dialog that appear, input as follows:
Name: MsPaint XP
Command: wine “/home/yauritux/.wine/drive_c/Program Files/MSPaint/mspaint.exe”
Comment: Microsoft XP Paint
Change yauritux with your username.
Finally, you can test by double click on that icon.
See the image below (click the image to enlarge):

screenshot.png

If you get an error like the following:

err:service:validate_service_config Service L”Bscrom” has an unknown service type
err:service:scmdatabase_load_services Invalid configuration of service L”Bscrom” – skipping
err:dosmem:DOSMEM_MapDosLayout Need full access to the first megabyte for DOS mode

then, add the following line:

vm.mmap_min_addr = 0

and run “sudo sysctl -p” to apply the setting.
or, just run the following command from your shell/console:

sudo echo 0 > /proc/sys/vm/mmap_min_addr

Then, try again…

Cheers,

https://www.facebook.com/plugins/like.php?href=http://yauritux.wordpress.com/2011/03/24/running-ms-paint-on-linux/

About these ads

4 thoughts on “Running MS Paint on Linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s