Running Plastic on UbuntuWhat would you think is harder to do? Run a .NET Client/Server application through mono on Linux or install Ubuntu on Microsoft's Virtual PC?
The answer is installing Ubuntu (or any Linux) on Virtual PC. It happens to be pretty difficult and there are a lot of blogs, user forums, and web sites that have helpful information on how to get it done. Using a combination of about 3 different sites I was able to get it running, but was never able to change my resolution to past 800x600.
I like to use VPC over a VMWare player image because I like to have control over the installation itself which requires purchasing VMWare instead of using the free VPC. It only cost me a migraine. I do like VMWare, I just like managing my own installs more.
Running Plastic SCM on Ubuntu is rather easy but there are a few system requirements that need to be satisfied before both the client and server can run. First Plastic requires mono. The vanilla desktop install of Ubuntu 188.8.131.52 happens to include mono by default so no problem there. Plastic also required FireBird which is not a default element install on Ubuntu and probably not a default package on most Linux installations.
FireBird is a cross-platform RDBMS, you may remember it as a form of InterBase that Borland open sourced a number of years ago. If you visit the FireBird web site you will find download packages for Linux but it is much, much easier to use the built in Synaptic package manager for Ubuntu. If the package list is up to date you can do a search for "FireBird" and download and install this package. The great thing about package managers like Synaptic is it includes all the dependencies automatically and there where several that I needed to run FireBird.
After the FireBird server and it's dependencies are installed then I run the Plastic installer on Linux. The last step in the installation will ask if you want to run and configure Plastic. These options are enabled by default and if you keep them on then the Plastic server will start for you automatically (it will also start after a reboot).
The Plastic install on Linux includes a bunch of Windows dll's and exe's but we do not need to worry about these files. Included in the install are some handy shell scripts that will launch the Plastic executable with the proper mono arguments. The client script is called simply "plastic" so to launch the client use the command:
That is using the default location of course, and this same path can be used when setting up a desktop icon.
Oh and if you want to run Ubuntu on VPC then try here for Fedora users try here.