Wednesday, February 20, 2013

Setting up Cockatrice in Ubuntu 12.10

UPDATE 3/5/2013:
Seems Hasbro has sent their ever famous legal threats to the Cockatrice team. Horrible timing I might add. However you can still download the source and setup a private server, of which I won't elaborate on here. You can find the final snapshot of the git hub tree on reddit here.

Thanks to Adrian for the information, I would of missed the reddit post due to my vacation.



I love Cockatrice. It is one of the best testing programs (without owning any cards) out there. Together with Skype and some friends this is the best testing option outside of high-end proxies. There's something to be said about testing with actual cards instead of sharpied lands.

However installing the Linux port is not as simple as apt-get install cockatrice. So lets get started. For this is a very quick tutorial and I'm going to assume you know at least some basics of Linux, specifically how to use the terminal and basic file structure. If you're really new, just open a terminal and copy/paste these commands in one at a time. Enter your admin password when asked. 

sudo apt-get install git
git clone git://github.com/mbruker/Cockatrice.git
sudo apt-get install cmake
sudo apt-get install qt4-dev-tools
sudo apt-get install libprotobuf-dev
sudo apt-get install qtmobility-dev
cd Cockatrice
mkdir build
cmake ..
sudo make install



Everything should go fine. Every package is in the Ubuntu repositories, its quite seamless. Cockatrice installs three programs needed. The first is the obvious `cockatrice` which starts the program. The second is `oracle` which downloads and setups the card images. Run this first and update your card database. The third is `servatrice` which I haven't delved into yet, but it allows you to start a private Cockatrice server. Both the main program and the Oracle database utility show up in app launcher as well!

Cockatrice running in Ubuntu 12.10 (Gnome3 desktop)

3 comments:

  1. FYI. Cockatrice was taken down from Github due to legal challenge from Hasbro. An archive of the latest commit can be found in this reddit thread

    http://www.reddit.com/r/magicTCG/comments/19kdcn/cockatrice_source_code_pulled_from_last_git/

    ReplyDelete
  2. With the exception of one missing line ("cd build", after "mkdir build") everything worked fine after installing a few dependencies that were specific to my build (can provide them if others are using Ubuntu 12.04 LTS).

    ReplyDelete
  3. Hi there

    i install servatrice in 2013 it was working nice
    after a server crash i have to install it again
    but now i have this stuppid thing that i dont have the chatroom
    it look like he dont make a connect to the mysql
    i did check that and the inlog, passw, ect is oke

    who can help me out with it ......

    W.r.
    Rob

    ReplyDelete