05:01:24 vjt@voyager:~/Antani/trunk$ replace(){ sed -e "s|$1|$2|g"
< $3 > ${3}X; mv ${3}X $3; }; egrep -r 'XP_[A-Z_]+[[:space:]]+-?[[
:digit:]]' Headers |ruby -ne "f,m=scan(/(.+):.+(XP_[\w_]+)/).first
;puts '%s %s %s' % [ f, m, 'kXP'<<m.scan(/(_[A-Z])([A-Z]+)/).map {
|a,b| a[1..1]<<b. downcase }.join ]" | while read hdr from to; do
replace $from $to $hdr; for src in `grep -rl $from Sources`; do
replace $from $to $src; done; done
- You must have PTH installed, and maybe other libs.
- This was tested on
SCO_SV os507 3.2 5.0.7 i386
If you have UDK, run:
$ CFLAGS='-I/usr/local/include -belf' LDFLAGS='-L/usr/local/lib' \
./configure --with-threads --with-pth --disable-shared --disable-ipv6
- Add
/usr/local/includetoBASECFLAGSinMakefile(autocrap sucks). - Patch
Modules/ctypes/_ctypes_test.cby putting an#ifdef HAVE_LONG_LONGaround functions that usePY_LONG_LONG(hints: lines384and318). - Patch
Objects/longobject.cand on line817put theIS_LITTLE_ENDIANmacro before the#ifdef HAVE_LONG_LONGblock, and put_PyLong_FromSsize_tand_PyLong_FromSize_tafter theHAVE_LONG_LONGblock.
If you have GCC, run:
$ CFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' \
./configure --with-threads --with-pth --disable-shared --disable-ipv6
Either with UDK or GCC:
- Edit
pyconfig.hand comment out thesocklen_tdefine - Edit
Modules/socketmodule.cand on line 226 add|| defined(SCO5)in order to defineINET_ADDRSTRLEN. - Run
make(orgmakeif you wish) - You will be left without
_curses.so,_curses_panel.so,_locale.soandreadline.soif using GCC and alsopyexpat,elementtreeandsha512if using UDK.
__ ____ __ __ ____ __
\ \ / / \/ | \/ \ \ / /
\ V /| |\/| | |\/| |\ \ / /
| | | | | | | | | \ V /_
|_| |_| |_|_| |_| \_/(_)
[vjt@os507 ~/Python-2.5.1-vjt] $ python
Python 2.5.1 (r251:31337, Sep 13 2007, 22:40:33)
[GCC 4.2.1] on sco_sv3
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>>
[vjt@os507 ~] $ hg clone http://code.wuhrer.thc/hg/Antani
destination directory: Antani
http authorization required
!! YAY! :D
22:33:24 vjt@voyager:~$ irb19 -f
irb(main):001:0> Symbol.all_symbols.grep /^the/
=> [:the_answer_to_life_the_universe_and_everything]
unluckily, the answer isn’t 42:
irb(main):002:0> _.first.object_id
=> 5048
:\
Thanks for this strange finding, nextie! :D

A really, really, really NERD novel by Cory Doctorow that tells about a bunch of sysadmins that strive to keep the good ol’ Net online after a catastrophic event that brought the entire world to its knees. They fight with scarce power and food supplies and communicate over the Usenet… using the good old alt. hierarchy.
Vote: 10+ for the geekiest thing I’ve ever read. It’s really worth the hour needed to read it completely. Enjoy it
Ingredients: Debian, Netatalk, Avahi, some trickery.
Step 1: Recompile Netatalk with SSL Support
Recompile Netatalk with SSL Support.
You can safely ignore the “.passwd” stuff, because afpd uses PAM for user authentication.
Hint: Disable the atalk protocol handlers in /etc/default/netatalk for a faster startup:
# Set which daemons to run (papd is dependent upon atalkd):
ATALKD_RUN=no # appletalk protocol
PAPD_RUN=no # printer sharing daemon (printers are soooo '90s)
CNID_METAD_RUN=yes # don't remember but is needed, rtfm!
AFPD_RUN=yes # you will always need this
TIMELORD_RUN=no # my time lord's name is <a href="http://openntpd.org">openntpd</a>
A2BOOT_RUN=no # boot? nah! :P
Step 2: Create a share for time machine backup data, by adding e.g.
# path name perms charset
/some/where/tm "Time Machine" allow:vjt volcharset:"UTF8"
into /etc/netatalk/AppleVolumes.default.
Step 3: Let the AFPD server show up in finder
Download the avahi service file, put it into /etc/avahi/services and reload avahi with /etc/init.d/avahi-daemon reload (sorry, original links are broken).
Step 4: Set Up Time Machine Backup
You need two files on your afp network share: .com.apple.timemachine.supported and a dot-file named with your en0 MAC address. To create it, the easier way is to attach an USB/Firewire disk, rename it with the name of the intended network share (specified into the AppleVolumes file) and enable time machine on it.
Then, copy over the .00… file on the external disk into your home dir, eject the disk, mount the network share from the finder and copy the file there.
Finally, touch .com.apple.timemachine.supported onto the network share, and re-open time machine preferences: the size of your backup volume should be equal to the network share size :).
;D