Compiling PuTTY for Windows

Because of one awesome bug inflicts eye-cancer when using Consolas font and deactivated “Bold text is a different colour”, I had to recompile PuTTY by hand (more like, by gcc). I initially tried to compile the PuTTYTray one but apparently they successfully mixed C and C++ code and completely broke the build procedure using mingw. Or I missed something obvious.

Anyway, I went back to vanilla PuTTY. As it turns out, compiling using latest mingw’s gcc isn’t a good idea since it removed -mno-cygwin option and therefore broken unless you do some magic edit. Thanks to that, I stopped bothering trying to compile it under Windows and used mingw-gcc for Linux (which is able to produce Windows binary). Here be the steps from beginning. Tested on Debian 6.

apt-get install mingw32 subversion perl
svn co svn://svn.tartarus.org/sgt/putty putty
cd putty
perl mkfiles.pl
cd windows
make VER="-DSNAPSHOT=$(date '+%Y-%m-%d') -DSVN_REV=$(svnversion) -DMODIFIED" TOOLPATH=i586-mingw32msvc- -f Makefile.cyg putty.exe

Patch is done before make (duh) and the diff can be found here. If you’re lazy (like me) you can just download the build at my server (link at bottom). Should be virus-free but I guess you can notify me if you encounter one. Built everyday until it breaks.

  • exe: the program
  • sha512: hash of the program
  • zip: both program and its checksum

[ exe | sha512 | zip ]

Debian’s sources.list

I kept forgetting them whenever I need one so I’ll put mine here and be happy:

###### Debian Main Repos
deb http://cdn.debian.net/debian squeeze main contrib non-free
#deb-src http://cdn.debian.net/debian squeeze main contrib non-free

###### Debian Security Update Repos
deb http://security.debian.org squeeze/updates main contrib non-free
#deb-src http://security.debian.org squeeze/updates main contrib non-free

###### Debian General Update Repos
deb http://cdn.debian.net/debian/ squeeze-updates main contrib non-free
#deb-src http://cdn.debian.net/debian/ squeeze-updates main contrib non-free

###### Debian Backports Repos
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
#deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

###### Dotdeb Repo
deb http://packages.dotdeb.org squeeze all
#deb-src http://packages.dotdeb.org squeeze all

It should cover mostly used packages and will keep me sane. Also debian-volatile has been replaced with debian-updates (god knows why it’s called like that) since squeeze (6.0) but in case I need to take care a lenny or earlier (derp) machines, this should also be added:

deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

Oh and Debian/kFreeBSD within a FreeBSD system is quite funny.

Daily craps

  • LOL U-U-Uma Uma. Not good for health.
  • Noizi Itou drew the cover.
  • LAWL 22MB PNG. Perhaps I should mirror moe.imouto/noizi_ito…
  • a manga with nijikon main character. Recommended. LOL.
  • wat.
  • Danbooru 1.14.0 has released. I still wonder what “Final tagged version” means. And I think I’ll use tagged ones instead of trunk from now on. Why? Just because. :P
  • ^– actually, it means less maintenance.
  • With that, I’ll also stop using -current for animu server o.o
  • Not before 4.4 released though – which means I’ll have to struggle with -current until November – or until I switch to NetBSD. The reason is simple: Danbooru requires PostgreSQL 8.3 which only available as package on -current (I forced to manually compile before using -current). – Or maybe until I switch to Shimmie (which sucks).

FreeBSD: 0, NetBSD: 1, OpenBSD: 1

Sil3112 (SiliconImage SATALink RAID PCI Card) is not properly supported by FreeBSD. The installer halted successfully on all my three attempt at installing it. (First one even stopped when formatting – said that it can’t find the hard disk drive LOL).

OTOH, NetBSD and OpenBSD can use that piece of hardware just fine albeit the claim of the card as “crappy” on certain mailing lists.

I did it!

Tonight, system.genshiken-itb.org got a system upgrade!

[10:42] ~# dmesg | head
OpenBSD 4.3-current (GENERIC) #878: Tue May 27 09:18:05 MDT 2008
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC

I upgraded it. Remotely.

Nothing is more thrilling than reboot with new kernel while praying nothing bad happens O_O (which means, if IT happens, the server won’t be accessible until I got time to go to the location of the server…)

Now I can finally install PostgreSQL from packages – not compiling from source anymore :D

Too bad there’s still no cksfv :(

My themes

Here’s a cell phone themes for you: lulz1 (ha creative name :D )

Designed specifically for Sony Ericsson W880 (yes, my phone). May or may not work for other SE phones version 4.5 with display resolution of 240×320 (which includes, but not limited to: K790, K800, K810, S500, T650, W580, W830, W850). And might work for other models with display resolution of 240×320.

Based on iPhony by adhamsomantrie.com (modified without permission :D )

Wallpaper uses art from xephonia (used without permission :P )

Suggestions are welcome.

[ Download here ]