Archive

Author Archive

WET-11 – Need more range

January 7th, 2004 Tony No comments

My friendly neighbor got wise and turned on WEP so I started scanning for AP’s in range with WEP disabled. Surprisingly I can connect to about 8 additional wireless access points in my girlfriend’s apartment with the WET-11 but most are encrypted. A few are not but the signal just isn’t good enough for a solid connection.

So the guys at BAWUG suggested I try building a parabolic relector based on Michael Erskine’s WET-11 template.

Unfortunately I only found it to improve the signal slightly. I have since received more feedback from BAWUG folks who had similiar poor results from their reflectors and they have suggested a 14 dBi patch antenna with the RP-SMA plug for the WET-11. Thats quite a big jump from the standard 2 dBi rubber ducky omni-directional antenna. I’m anxious to see how many AP’s I’ll pick up with this addition.

Categories: Computers Tags:

Tips on Installing Gallery

January 6th, 2004 Tony No comments

I just finished installing the Sourceforge project Gallery. Here are some tips to save you a headache:

After running the configuration wizard it recommends you to run ’secure.sh’ to secure gallery. This script changes the permissions on:

config.php

.htaccess

setup/

I recommend not running this immediately as you will probably want/need to tweak the settings in setup/. If you did already run secure.sh and need to get back into the configuration wizard:

chmod 777 config.php

chmod 777 .htaccess

chmod 777 setup/

I tried several steps to install ImageMagick and this was the winner for me: Installation Guide

If Gallery complains “I can’t find ImageMagick at the location you provided” then you probably made the assumption that it wants the home directory (ex. /usr/local/ImageMagick-5.5.7). After some trial and error I found out that it actually wants the utilities directory (ex. /usr/local/ImageMagick-5.5.7/utilities)

Categories: Computers Tags:

Microsoft Scheduled Tasks are Flaky

January 3rd, 2004 Tony No comments

Has anyone else noticed that ‘Scheduled Tasks’ in Windows are not as reliable as a cron job? This is the third time I have found a scheduled task that seems to have come under some spell and just quits functioning. The behavior is this:

You check on a scheduled task and see its last status is “Unable to Start”.

You try to manually run it and nothing happens.

The fix seems to be to simply apply any changes. Somehow that kicks it in the arse and it magically works fine again. I usually just change the password on the task (to the original password).

Categories: Computers Tags:

cURL with PHP and Apache on Windows

October 22nd, 2003 Tony 122 comments

Setting up cURL my linux server it was no problem at all, but I had a heck of a time getting cURL to work properly on my Windows test box with PHP and Apache. There are a lot of tricks scattered around on the web so here is my list of notes:

1. Only install PHP with the zip’d binaries. Don’t use the installer. I recommend deleting your current PHP installation and reinstalling with the binaries. Downloading the latest PHP has the added benefit of ensuring its compatible with the version of cURL you’ll download later. (I installed to D:\apps\php and will use that path for the rest of this example)

2. Edit your php.ini file:

   - set extensions_dir to d:\apps\php\extensions

   - set register_globals to On

   - set sessions.save_path to d:\apps\php\temp (you need to create that directory first)

3. Copy php4ts.dll (located in d:\apps\php\) to your Apache bin folder

4. Copy libeay32.dll and ssleay32.dll (located in d:\apps\php\dlls\) to c:\windows\system32

5. Download cURL for Windows at: http://curl.haxx.se/download.html. I chose the Win32 – Generic by J?Hartroth. I recommend getting the SSL version in case you ever need SSL. I unzipped cURL to d:\apps\curl and will use that path for the rest of this example

6. [SSL INSTALL ONLY] Download OpenSSL for Windows from http://curl.haxx.se/download.html. (Its near the bottom of the page). Extract libssl32.dll to d:\apps\curl

7. [Windows XP Install Only] Check to see if you have the following file: c:\windows\system32\msvcr70.dll. If not, search for it in Google and download it to system32. You may get error messages without it.

8. Uncomment the curl line in your php.ini file to enable curl: extension=php_curl.dll

9. Finally edit your Apache httpd.conf file to enable php:

   - Uncomment: LoadModule php4_module d:/apps/php/sapi/php4apache2.dll

   - Add Line: AddType application/x-httpd-php .php

Test with the following PHP code:

   $url = “http://www.thinkgeek.com”;

   $ch = curl_init();

   curl_setopt($ch, CURLOPT_URL,$url);

   curl_setopt($ch, CURLOPT_VERBOSE, 1);

   curl_setopt($ch, CURLOPT_POST, 0);

   curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

   $returned = curl_exec($ch);

   curl_close ($ch);

   echo $returned;

SSL NOTE: I kept getting no response when I tried using curl with SSL urls. I found that adding the following solved the problem:

   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

I have read that the proper solution is to use the ca-bundle.crt file for curl to be able to verify certificates but I haven’t tried this yet:

   curl_setopt($ch, CURLOPT_CAINFO, ‘drive:\pathto\ca-bundle.crt’);

Categories: Code Tags:

Wireless Repeater with a Linksys WET11

August 6th, 2003 Tony 21 comments

At my girlfriends apartment I can pickup a faint unencrypted 802.11b signal from a nearby neighbor. Here’s how I created a Wi-Fi repeater to “borrow” that high bandwidth connection.

I bought a Linksys WET11 wireless ethernet bridge.

I connected the Linksys WET11 to an extra Linksys AP I had.

Then I configured the devices like this:

Linksys WET11

ssid – linksys (same as neighbor’s AP)

channel – 6 (same as neighbor’s AP)

IP – static 192.168.1.226 (changed from default 192.168.1.225

changed default password

My AP

ssid – notsleepy (different from neighbor’s AP)

turned off ssid broadcasting

channel – 11 (different from neighbor’s AP)

IP – obtain from AP1 DHCP

turned on encryption

disabled DHCP (obtains from neighbor’s AP)

changed default password

VOILA! Instant boosted signal! I’m mostly transparent except for the fact that I obtain an IP from his AP.

Categories: Computers Tags: