User login
Navigation
Recent blog posts
- Ubuntu mirrors up and improved!
- Google-jstemplate: Iterate object with unknown properties
- nginx https proxypass for php apps
- sugarcrm & memcache: Doing it Wrong
- subversion and https in Ubuntu Karmic
- Drupal: Views block delta converted to md5 hash
- Ubuntu Server install requires PAE
- Installing Drupal from command line
- Drupal: Handling form field weight through CCK
- minify javascript using Google Closure Compiler
angch's location
angch twitter
ubuntu

Ubuntu mirrors up and improved!
angch — Thu, 29/04/2010 - 12:01
The Malaysian to World internet connectivity was shot to heck recently, having more than 200ms (avg 300ms) ping times. This means our cronjobbed rsync based mirroring for ubuntu (archives and releases) was woefully slow, and the next cronjobbed rsync started before the previous one completes.
Spent sometime fixing that and got things back up to date, switched to ubumirror which at least has a lock to make sure we don't overlap mirroring.
The releases also required us to use a hybrid apache/nginx configuration to get some of the layout similar to the other official mirrors, otherwise you don't get listed on: https://launchpad.net/ubuntu/+cdmirrors .
All that done and tested, we're on a 3 hours release sync for the releases (getting you Lucid in record time) and 4 hours release sync for archives. Once things are a bit stabler, we'll run Push Mirroring.
tl/dr, Malaysians, get your CD images here: http://ubuntu.bytecraft.com.my/releases/
sources.list:
deb http://ubuntu.bytecraft.com.my/ubuntu/ YOUR_UBUNTU_VERSION_HERE main
deb-src http://ubuntu.bytecraft.com.my/ubuntu/ YOUR_UBUNTU_VERSION_HERE main Above is also https enabled if you can tolerate wrongly self-signed SSL cert.
P.S. mmu and upm also run mean, fast mirrors: https://launchpad.net/ubuntu/+mirror/archive.mmu.edu.my https://launchpad.net/ubuntu/+mirror/www.mirror.upm.edu.my-archive
P.P.S. OSCC has similar bandwidth with us: https://launchpad.net/ubuntu/+mirror/mirror.oscc.org.my-archive

subversion and https in Ubuntu Karmic
angch — Wed, 20/01/2010 - 17:29
Had a problem checking out an https subversion repository (self-signed) in Ubuntu Karmic, while Hardy is fine.
In short:
- svn Hardy uses ra_dav for https
- svn Karmic uses ra_neon (and libneon27-gnutls) for https.
gnutls is particularly sensitive about certs. So we need to work around it.
So do a:
sudo apt-get install libneon27
LD_PRELOAD=/usr/lib/libneon.so.27 /usr/bin/svn co https://myserver/myrepoAbove fix comes from:
https://bugs.launchpad.net/ubuntu/+source/subversion/+bug/294648

Ubuntu Server install requires PAE
angch — Wed, 09/12/2009 - 12:29
Testing a plain ubuntu 8.04.3 install on VirtualBox. Got the error
This kernel requires the following features not present on the CPU:
0:6
Unable to boot - please use a kernel appropriate for your CPUTurned out 0:6 is PAE, and the -server series of kernels for Ubuntu requires it, rather than making use of it if available.
Don't need to downgrade your kernel to -generic, just turn on PAE in your machine or virtual machine. In the case of VirtualBox:


Build Debian package for Python modules
kamal — Fri, 14/08/2009 - 10:20
Just a note for future references. Tools to build Debian package for Python modules:-
Stdeb is not in Ubuntu Hardy repo so we need to build a package for itself first.

Mapnik 0.6.0 Ubuntu Hardy 64bit packages
angch — Wed, 17/06/2009 - 12:05
Backported mapnik 0.6.0 packages (based on Debian unstable's) to Ubuntu Hardy amd64 attached below:

VMware workstation keybindings fix in Ubuntu Intrepid
angch — Fri, 22/05/2009 - 20:22
Up/down keys, etc are not mapped properly in a machine hosted by Intrepid, when it was okay running under Hardy.
One fix was to .vmware/preferences, add:
hint.xkeymap.notLocal = "FALSE"
xkeymap.nokeycodeMap = trueForgot where I got the above from. VMware server uses .vmware/config, if I remember correctly. Also VMware will pop up a warning when you start it.

OpenOffice 3 backports for Ubuntu.
angch — Tue, 19/05/2009 - 11:17
Caveat: following undergoing testing:
Intrepid:
gpg --keyserver keyserver.ubuntu.com --recv-key 60D11217247D1CFF
sudo -s
echo "deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main" > /etc/sources.list.d/openoffice
gpg --armor --export 60D11217247D1CFF | sudo apt-key add
apt-get update
aptitude dist-upgradeHardy:
gpg --keyserver keyserver.ubuntu.com --recv-key 60D11217247D1CFF
sudo -s
echo "deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu hardy main" >

Local Malaysian Partial Jaunty images.
angch — Fri, 17/04/2009 - 15:56
Update 24 Apr 2009: Updated for actual release, including netbook remix.
Got tired of looking for local Malaysian mirror for the just released Release Candidate for Ubuntu 9.04. So we grabbed it and mirrored it here: http://ubuntu.bytecraft.com.my/. Have fun. Only desktop images for i386 and amd64 though.

Local Malaysia apt "repository"
angch — Wed, 08/04/2009 - 13:24
For those complaining about slow apt download speeds, or lack of a fast Malaysian repository for Ubuntu, you can use our unofficial apt-proxy, located at Jaring IDC, in TPM.
Just search and replace 'my.archive.ubuntu.com' (if you use it) to 'ubuntu.bytecraft.com.my'
We support https as well, if you can get it to ignore self-signed certs.
Attached is an Ubuntu Intrepid sources.list for the lazy.
And copy and paste if you're lazier:
deb http://ubuntu.bytecraft.com.my/ubuntu/ intrepid main restricted

Thinkpad fingerprint login in Ubuntu Intrepid.
angch — Wed, 08/04/2009 - 11:32
How to enable fingerprint logins (summarized from https://wiki.ubuntu.com/ThinkFinger) for Ubuntu Intrepid.
The above page is for different Ubuntu distros, but as a quickie for Ubuntu Intrepid on Thinkpad (tested on T61 and X61):
Install:
sudo apt-get install thinkfinger-tools libpam-thinkfinger
sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable
sudo 'echo "uinput" >> /etc/modules'
modprobe uinput # for nowAdd your user:
# Login to your account
tf-tool --acquire