I’m writing down these quick notes so I can remember the steps for getting py2exe to work with GTK.
Download the GTK+ runtime Download py2exe Copy over your project into the windows box Create a setup.py file (see below) Run “c:\Python25\python.exe setup.py py2exe” Copy over the lib, etc, and share folder from C:\Program Files\GTK2-Runtime into the dist folder Run app! setup.py:
from distutils.core import setup import py2exe setup( name = 'ploteq', description = 'Bunnys Plotting Tool', version = '1.0', windows = [ { 'script': 'ploteq.py', } ], options = { 'py2exe': { 'packages':'encodings', 'includes': 'cairo, pango, …
Read moreThis is the laundry list of things I did while creating a mod_tile VMware appliance based on Ubuntu Server 8.04. I’ve kept descriptions limited but left all the commands in. Let’s start installing things…
Useful goodies for compiling source
sudo apt-get build-essential More goodies for Mapnik + Friends
sudo apt-get install libboost-dev libboost-filesystem-dev libboost-filesystem1.34.1 libboost-iostreams-dev libboost-iostreams1.34.1 libboost-program-options-dev libboost-program-options1.34.1 libboost-python-dev libboost-python1.34.1 libboost-regex-dev libboost-regex1.34.1 libboost-serialization-dev libboost-serialization1.34.1 libboost-thread-dev libboost-thread1.34.1 libicu-dev libicu38 …
Read moreFor various reasons I had the need to open a raw disk inside VMware Server 2. The reports from the field say that this just isn’t supported. Although I don’t need to actually run a raw disk, I needed to get some data off it – 400GB worth. It turns out ’not supported’ really means ’not in the UI.’ I don’t know the reason why it isn’t in the UI, maybe marketing wants people to use ESX, or maybe the UI guys fell behind with their workload.
Read moreI now have successful installation of VMware Server 2 (Beta RC1) on top of Ubuntu 8.04 64-bit. I have been using various virtualization technologies for years, and VMware is usually the easiest to install and configure. So far, VMware Server 2 RC1, has proven to be the exception to the rule.
That said, I am very excited by the direction VMware is taking – this new server version looks to have great potential.
Read moreInstalling the tools in VMware Server 2 is a little different than Workstation or the previous versions of VMware Server. Under the Summary tab of your Virtual Machine, look for a link that says “Install VMware Tools” – click it.
Wait for ‘Success’ to show up on the bottom, and jump into your virtual machine. Mount the tools as so:
mount /dev/cdrom /media/cdrom And install as normal (copy the .tar.gz to /usr/src, extract it, install it). Easy peasy.
Read moreI have had to search for the commands to setup a Windows 2003 box as an ntp client a few times now, so have decided to finally write them down here for my own good measure. Funny thing is, I’m pretty sure there are three ways to setup a 2003 box as an ntp client.
Open up the cmd prompt and type in:
w32tm /config /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" /syncfromflags:MANUAL /reliable:YES /update net time setsntp: "0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" Type in gpedit.msc and your local GPO editor will pop up. Go to the folder as indicated in the below screenshot and Enable the “Enable Windows NTP Client” option. Next …
Read moreFirst, we go ahead and install the needed packages. I’ve tried to include “my” list of packages that were needed to get a vanilla 7.10 image up to steam.
apt-get install build-essential libltdl3-dev autoconf libtool automake \ postgresql postgresql-8.2-postgis postgresql-server-dev-8.2 \ wget subversion libboost-python1.34.1 libboost-thread-dev \ libboost-program-options-dev libboost-regex-dev \ libboost-python-dev libboost-serialization-dev \ libboost-filesystem-dev libpng12-dev libjpeg62-dev \ libtiff4-dev zlib1g-dev libfreetype6-dev libgeos-dev \ unzip apache2-prefork-dev Next we start to download a few components. I did this in my home directory, /home/kelvin
Read moreI have no idea if these notes on how to install mod_tile will be useful for anybody. The current readme states that you need to edit the source code, but never actually where. Well, this is where, at least until the code can either take switches or can auto-configure itself. This is quite brief, so if you need more details, shoot me an email or leave a comment. I have repeated this process on two Ubuntu 7.10 machines.
Read moreI have managed to install mapnik 0.4, 0.5, 0.5.1 and various SVN releases in-between on Ubuntu. While this isn’t in itself exciting, I think I manage to stumble at every installation. I typically forget to add the flags when building, so, to prevent myself from stumbling again, I’m going to write them out here.
Build mapnik
$ python scons/scons.py PYTHON=/usr/bin/python \ PGSQL_INCLUDES=/usr/include/postgresql \ PGSQL_LIBS=/usr/lib/postgresql BOOST_INCLUDES=/usr/include/boost BOOST_LIBS=/usr/lib Then install it
$ sudo python scons/scons.py install PYTHON=/usr/bin/python \ PGSQL_INCLUDES=/usr/include/postgresql \ PGSQL_LIBS=/usr/lib/postgresql BOOST_INCLUDES=/usr/include/boost BOOST_LIBS=/usr/lib …
Read moreI have to admit, I’m pretty lazy. I don’t (ironically) like to type, and I really don’t like typing the same command over and over. I found myself switching between my external monitor and laptop quite frequently, and decided to somewhat automate the task. Although I know there are other programs out there that allow this, they either had too many features, or crashed. Xrandr works just fine, but like I said, I’m lazy…
Read more