bartman's blog

glGo on ubuntu/dapper amd64

bartman

I started playing go. I tried cgoban and gtkgo. Both crashed a lot. Then I tried glGo… it’s much better.

First of all they only have a 32bit deb… we need to build a chroot:

    sudo apt-get install dchroot debootstrap
    sudo mkdir /32
    sudo debootstrap --arch i386 dapper /32
    sudo sh -c 'echo 32 >> /etc/dchroot.conf'

You will need to setup the dchroot to make it possible for a regular user to execute apps in it. I don’t really want to get into it here, you should have to do something along the lines of…

(need to be root to do all of this)

At this point your chroot is functional, enter it as root:

    sudo chroot /32 su

glGo needs some extra packages (their .deb has no Depends: line at all)…

(in the chroot)
    echo deb http://archive.ubuntu.com/ubuntu dapper universe >> /etc/apt/sources.list
    apt-get update
    apt-get install debconf-utils esound esound-clients hicolor-icon-theme \
                    libgl1-mesa libglib2.0-data libglu1-mesa libgtk2.0-bin \
                    libsdl-image1.2 libsdl-ttf2.0-0 libsdl1.2debian-all wget

And lastly install glGo:

(still in the chroot)
    wget http://www.pandanet.co.jp/English/glgo/downloads/glGo-1.4.deb
    dpkg -i glGo-1.4.deb

Then exit the chroot, and as a regular user you can run…

    dchroot -c 32 glGo
Tags: