Archive for the 'Tech' Category



I wanna play larry!

All I want to do, right now especially is play a good ‘ol game of Leisure Suit Larry! I am not a gamer by any stretch of the imagination, but I have always been addicted to Larry, Larry Laffer.

My desktop machine is a very nice (read sexy) Sun Microsystems Ultra 20 Workstation. 2.5Gb RAM and twin 19″ Monitors running on top of a Quadro NVS 285 Graphics Card. All of this horsepower - of which there is plenty, is running Debian Testing (because I am hardcore ;) ). I run Debian Testing on my Laptop too, an IBM R51e with currently 1Gb RAM.

I’m set, I hear you say. Well to all intents and purposes I am, except to Play Leisure Suit Larry (Magna Cum Laude). For this extravagance, I need Windows (2000/XP/ I assume Vista?). So I purchased Windows XP Professional, and installed in under VMWare Server on my desktop only to find out that the graphics drivers presented in VMWare don’t support the correct Lighting API.

My only option is to install the game on a Windows XP partition and be done with it. Don’t get me wrong, VMWare is bloody brilliant, and it works like the clappers (for you non British folk, read “its quick”) but it doesn’t fix my problem directly.

So, out comes Leisure Suit Larry 7, Love for Sail. That shall be enjoyed whilst I think about my future actions regarding Magna Cum Laude.

As a foot note, I would like to point out that I am aware of the new Larry character “Larry Lovage” and his role in Magna Cum Laude, and I don’t care! If you follow the game and end up in Loftys Bar, there is for the world to see, a fully 3D rendered model of Larry Laffer!.

As another footnote, I am also aware of the circumstances regarding the game and Al Lowe - well at least what he has written on his site.

Postfix TLS Quick and dirty

I wrote an internal document how to a while ago about how to set up POP3 Secure and SMTP Auth with postfix using CentOS 4. I thought I’d post it here so that others may find it useful.

Before you begin
Make sure CentOS 4 has been installed as a server (with no graphical interface). Set up RPM to allow installation from the CentOS yum repositories.


Install the required programs

# yum install cyrus-sasl
# yum install cyrus-sasl-devel
# yum install cyrus-sasl-gssapi
# yum install cyrus-sasl-plain
# yum install cyrus-sasl-crammd5
# yum install cyrus-sasl-digestmd5
# yum install cyrus-sasl-otp
# yum install cyrus-sasl-saslauthd


Make the directory structure and start services

# chkconfig -add saslauthd
# /etc/init.d/saslauthd start
# mkdir /etc/postfix/ssl
# cd /etc/postfix/ssl


Generate the security keys
Type these commands exactly as shown

# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
# chmod 600 smtpd.key# openssl req -new -key smtpd.key -out smtpd.csr
# openssl x509 -req -days -3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
# openssl rsa -in smtpd.key -out smtpd.key.unencrypted
# mv smptd.key.unencrypted smtpd.key
# openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650


Editing /etc/postfix/main.cf
Add these lines at the bottom of your main.cf

smtpd_sasl_localdomain
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_reciepient_restrictions = permit_sasl_authenticated,
				permit_mynetworks,
				check_relay_domains
smtpd_tls_auth_only = no
smtpd_use_tls = yes
smtpd_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem

smtpd_tls_loglevel = 1
smtpd_tls_receive_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom


Dovecot and POP3Secure
If you want Dovecot to run your POP3/IMAP POP3s/IMAPs services, then it might be worthwile adding the following configuration options to /etc/dovecot.conf

ssl_cert_file = /etc/postfix/ssl/smtpd.crt
ssl_key_file = /etc/postfix/ssl/smtpd.key

You will find that any users of Windows will receive messages about the certificate not being signed by a valid certificate authority. This is easily solved by adding the certificate manually to their cache of acceptible CAs.

In Internet Explorer visit the following address:

https://servername:995/

When the dialog box appears asking you to accept the certificate file, click on View Certificate - then select the Install Certificate button. Outlook and Outlook express will no longer ask you to accept the certificate when checking your email.


Potential Problems
If the key still has a passphrase associated with it, then postfix won’t know what to do with it. Unprotect the key as follows

# openssl rsa -in cakey.pem -text
# openssl rsa -in cackey.pem -out key_unprotected.pem
# mv cakey.pem key_protected.pem# mv key_unprotected.pem cakey.pem


Finally
All that is now required, is to restart postfix

# /etc/init.d/postfix restart

Digital Photography

I’ve just ordered a Sony Cyber-shot N2 digital camera, and can’t wait for it to arrive - along with its 4Gb memory card. I’m hoping that I will be able to take some decent quality photos as I am not a photographer.

I’ll be at Glastonbury 2007, and I shall be blogging from there, so long as I can find an adequate internet connection and sustainable power. We shall see the quality of my photographs then :). In the mean time, enjoy the specs.

Display Screen 3″ TFT Colour LCD Touch Screen 230 Kilopixels
Effective Resolution 10.1 Megapixels
Aspect Ratio 16:9
Image Resolution
  • 3264 x 2448
  • 2592 x 1944
  • 2048 x 1536
  • 1632 x 1224
  • 640 x 480
  • Video Resolution
  • 640 x 480 @ 30 fps MPEG-1
  • 640 x 480 @ 16.6 fps MPEG-1
  • 160 x 112 @ 8.3 fps MPEG-1
  • Image Formats JPEG
    Video Formats MPEG-1
    Lens
    Lens Type Carl Zeiss Vario-Tessar Lens:

  • Focal Length: 7.9 - 23.7mm (35mm Equivalent: 38 - 114mm)
  • Optical Zoom 3x
    Digital Zoom 2x
    Focus Modes
  • Single Auto Focus
  • Auto Focus - Monitoring, Multi Point, Centre weighted,Flexible Spot
  • Exposure
    Shutter Speed 1/8 to 1/2000 Second(s)
    Flash
    Flash Modes
  • Auto Flash
  • Forced On/Off
  • Slow Sync
  • Flash OFF
  • Red-eye Reduction
  • Viewfinder
    Viewfinder Type LCD
    Storage
    Internal Memory 25MB
    Storage Media
  • 1 x Memory Stick Duo Supported
  • 1 x Memory Stick PRO Duo Supported
  • Controls/Indicators
    Camera Modes Scene Modes:

  • Twilight
  • Twilight Portrait
  • Soft Snap
  • Landscape
  • Snow
  • Beach
  • Fireworks
  • Interfaces/Ports
    Interfaces/Ports 1 x Multiple Connector
    Software
    Software Included Picture Motion Browser ver.1.1
    Battery Information
    Batteries 1 x Li-Ion Included
    Physical Characteristics
    Dimensions 6.11cm Height x 9.67cm Width x 2.27cm Depth
    Weight 151 g
    Miscellaneous
    Package Contents
  • Cyber-shot DSC-N2 Digital Camera
  • Lithium-ion battery NP-BG1
  • Charger BC-CSG
  • Multi cable (USB, AV, DC-IN)
  • Paint pen
  • Wrist strap
  • Software CD
  • Additional Information
  • Hand Shake Alert
  • Touch Screen Easy Operation
  • Smart Zoom up to 17x (with VGA)
  • Multi-connector Cable:

  • USB
  • Audio/Video Output
  • DC Power Input
  • Sensitivity:

  • Auto
  • ISO 100
  • ISO 200
  • ISO 400
  • ISO 800
  • ISO 1600
  • Menu Languages:

  • English
  • French
  • German
  • Italian
  • Spanish
  • Portuguese
  • Dutch
  • Russian
  • Swedish
  • Norwegian
  • Danish
  • Finnish
  • Polish
  • Hungarian
  • Czech
  • Compatibility
  • PictBridge
  • DPOF
  • Exif Private Tag
  • Print Image Matching
  • PTP (Picture Transfer Protocol)



  • Calendar

    January 2009
    M T W T F S S
    « Aug    
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  

    Categories