Running Pinta on FreeBSD – A C# (Mono) Image Editor
I wanted to continue with the C# (Mono) on FreeBSD theme this week. The next C# (Mono) post for FreeBSD is simply running a .C# (Mono) app on FreeBSD.
My first thought was this, “I wonder if there is a mono version of Paint.NET?”. Paint.NET is my favorite image editor for Windows.
After a quick search, I found the Pinta project, which is a Mono clone of Paint.NET.
Installing Pinta on FreeBSD
So anyway, the steps for running on FreeBSD are quite simple. This is a preview of my next FreeBSD Friday post, as I will continue the mono them to promote you app.
- Follow this post to get mono on FreeBSD.
- Download the Pinta tarball: http://pinta-project.com/download
$ fetch http://github.com/downloads/jpobst/Pinta/pinta-0.5.tar.gz
- Extract it:
$ tar -xzf pinta-0.5.tar.gz
- Change to the directory:
$ cd pinta-0.5
- Run configure.
- This failed the first time I ran it because I didn’t have a .tmp directory in my home directory. So I create one.
$ mkdir ~/.tmp
- Run make.
- Then as root or with sudo, run make install.
# make install
- Make the shell rehash the commands in PATH.
– or depending on your shell –
$ hash -r
- Now just run pinta.
Warning! I had to remove those annoying ^M characters from the /usr/local/bin/pinta file to get it to run. Otherwise, I got this error:
: No such file or directory
- I use KDE so I was able to add a menu item for pinta easily. An installed logo would be nice. I found one in the source at this path: pinta-0.5/xdg/96×96/pinta.png. I copied it to /usr/local/lib/pinta.
Pinta installs the following files
I added manually added the log so I had something to put in the KDE menu.
The first file, /usr/local/bin/pinta, is a shell script that runs this:
exec /usr/local/bin/mono /usr/local/lib/pinta/Pinta.exe “$@”
The other files are the application. It is a little weird to see .exe and .dll files on FreeBSD, but I’ll get over it.