My thoughts on Information Technology in general, Open Source in particular with a dash of Business Management thrown in. Note to readers (both human and machine) - I started this blog in the year 2004. Some posts are decades old, while others might have been written yesterday. Please note the published date of a post while enjoying its content. Thank you for being here. "Live long and prosper" 🖖. ~ Tyrell
Tuesday, October 18, 2005
WiFi (non)Security ....
1. Mac Filtering
Spoof the mac address in linux by ;
/etc/init.d/networking stop
ifconfig eth0 hw ether 00:01:02:03:04:08 <== desired mac :)
/etc/init.d/networking start
More info on other systems found here
2. WEP (Wireless Equivalent Privacy)
This method, as it seems was pretty weak from the begining. There's a step-by-step approach to cracking it here
Hmmm ... try kismet and airsnort ... I rest my case ;)
With these two gone, The Other alternatives AFAIK would be to;
1. Hide the SSID
2. Disable DHCP and assign static non-routable IPs
3. Use WPA instead of WEP
I found a good intro here, while googling, which gives a step by step guide to configure your router for security.
Monday, October 03, 2005
Java JRE/JDK Installation on Debian with java-package
Thursday, September 22, 2005
Tracking down causes of exceptions in Eclipse
BEGIN QUOTE
If you like me is getting tired of seeing "Unhandled event loop exception, Reason: someexception" and no stacktrace in Eclipse then try the following:
Create a file e.g. .eclipseoptions with the following contents:
# Turn on debugging for the org.eclipse.ui plugin.
org.eclipse.ui.ide/debug=true
# Show a dialog with details button when an internal error occur.
org.eclipse.ui.ide/debug/internalerror/openDialog=true
# Print exception stacktrace to console
org.eclipse.ui.workbench/debug=true
and then run eclipse with -debug .eclipseoptions and you will get the full stacktrace
as normal in the log but also on the console (clickable) and in a dialog when the exception occurs - no need to go looking in the log what just happend.
p.s. try to include the following too:
# Enable heap status monitoring
org.eclipse.ui/debug=true
org.eclipse.ui/perf/showHeapStatus=true
Gives you a nice hint about memory you are "utilizing"
END QUOTE
Wednesday, September 07, 2005
Friday, August 26, 2005
Wednesday, August 03, 2005
My nx9040

Introducing my laptop, the HP nx9040, which I bought recently and consider a most valuable addition to my arsenal.
QUICK SPEC:
- Intel Pentium M-II 1.6G with 2M Cache
- 512M DDR SDRAM
- 15.1" TFT XGA LCD (1024 * 768) with Intel 64M (32M shared) Video Card
- 40GB Hard Drive
- Internal DVD/CD+RW Drive
- Stereo 16-bit sound System/Speakers
- Built-in 10/100 Network Card
- Built-in V90/92 56K Modem
- Li-Ion Battery (lasts for upto 4 hours in Windows 3.5 in Linux)
- 2x Fast USB 2.0 (Universal Serial Bus) Ports
- 1x IEEE 1394 (i.LINK/Firewire) Port
- 1x S-Video Out
- 1x VGA Out (ext monitor)
- 1x RJ-11 for Modem
- 1x RJ-45 for LAN
- 2x PCMCIA
- 1x Audio Out
- 1x MIC In
Friday, July 22, 2005
I came up with a rule (ok.. now 3 rules) to keep my machine (HP NX9040, Centrino 1.6 GHz, 512MB RAM, 40GB Hard Drive) cool with 'cpufreqd' when on AC power. Usually what happens with the default configurtion is that 'cpufreqd' makes the machine stay cool (by reducing CPU frequency appropriately) and in power saving mode while on batteries and returns to full power + full CPU frequency mode on AC power.
This makes the machine heat up unnecessaryly even when it is idle.
By adding the rule below in the /etc/cpufreqd.conf file, right before the 'AC_on' rule, I managed to get my machine temp down by 10 degrees (yes... you read right) when it's idle :)
Add the new rule to 'cpufreqd' and restart the daemon. (/etc/init.d/cpufreqd restart)
What the rules do is, check the CPU utilization level and if it is below a certain percentge then send the machine to lo_boost/medium_boost/hi_boost profile, which brings the CPU frequency down to appropriate ranges as necessary.
Oh... make sure you turn off your fancy CPU hungry OPEN GL screen savers as well and revert to 'blank screen' to get the max temperature drop possible.
Laid back ....
------------------------------------------------------------
# power down when AC and idle (utilization 70% to 100%)
# Author: Tyrell Perera
[Rule]
name=AC_on_idle_3
ac=on # (on/off)
cpu_interval=70-100
profile=hi_boost
# power down when AC and idle (utilization 30% to 80%)
# Author: Tyrell Perera
[Rule]
name=AC_on_idle_2
ac=on # (on/off)
cpu_interval=30-80
profile=medium_boost
# power down when AC and idle (utilization 0% to 40%)
# Author: Tyrell Perera
[Rule]
name=AC_on_idle_1
ac=on # (on/off)
cpu_interval=0-40
profile=lo_boost
# originally the only AC on rule ... replaced by the three above
# full power when AC
#[Rule]
#name=AC_on
#ac=on # (on/off)
#profile=hi_boost
--------------------------------------------------------------
Wednesday, July 20, 2005
cpufreqd is a really cool power manager for your linux laptop. After getting my laptop and setting it to dual boot winXP and Linux, I noticed a 10 degree (centigrade) temp difference between windows and linux, linux being in the higher range.
After getting cpufreqd, they both run on virtually identical temperatures and the battery life is virtually same in both as well.
Thanks Bud for the pointer to this software :)
Interesting Firefox extension which allows you to change the Browser and OS identification sent by Firefox. After intalling, a menu appears under 'Tools', which allows you to do this.
Bottom line? I can access my HSBC internet banking from Linux now, which wasn't possble earlier :)
Thursday, July 14, 2005
Mepis comes with the Blakdowns version of java, which is 1.4.2_04. I updated it with the latest JDK from sun as follows.
- Make sure you have execute permisions for the .bin file downloaded from sun
# ./your-downloaded-jdk.bin
# vi .bashrc
- Add the following two lines
export JAVA_HOME=your-new-java-home
export PATH=$PATH:your-new-java-home/bin
# su -
$ cd /usr/bin
$ rm java
$ ln -s 'your-new-java-home/bin/java' java
$ rm javaw
$ ln -s 'your-new-java-home/bin/javaw' javaw
Now you can test this with typing java -version on the shell
# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)