Thursday, June 26, 2008

Toggling rdesktop full screen mode

To rdesktop your Windows host is easy:

rdesktop -f

but the next question is, how to get back to your original Linux host?

The answer is:

Ctrl-Alt-Enter

Use it to toggle between full-screen and non-full screen mode!

Other posts on rdesktop:
http://pandaeatsbamboo.blogspot.com/2008/03/share-clipboard-and-map-network-drive.html
http://pandaeatsbamboo.blogspot.com/2008/02/remote-desktop-from-linux-rdesktop.html

Sunday, June 1, 2008

Connect to a WPA-PSK wireless network on Slax

My environment: IBM Thinkpad T60 Centrino + SLAX 6.0.7 on my USB flash disk

Slax is a very lightweight and portable linux OS and I have just tried it on my USB flash disk, it is so easy to use that I can build it from stretch and connect to my home wifi within half an hour. Here is a short tutorial in how to connect it to my WPA-PSK protected wireless network.

1. Get your Slax here:
http://www.slax.org/get_slax.php

You can either burn it on your CD or download and extract the tarball to your USB flash disk. Run the bootinst.bat or bootinst.sh to make it bootable.

2. Download wpa_supplicant from http://www.slax.org/modules.php?action=detail&id=533. Move this module into /mnt/sdb1/modules, where sdb1 is the USB flash disk in my case.

3. Create the wpa_supplicant.conf config file in /mnt/sdb1/rootcopy/etc. Here is an example:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
#ap_scan=0
#fast_reauth=1

network={
ssid="pandassid"
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP
psk="ilovethisblog"
}

4. Reboot it and then run this in your terminal:
wpa_supplicant -d -iwlan0 -c/etc/wpa_supplicant.conf -Dwext

5. You should receive confirmation on the terminal saying your key is accepted. Open another terminal and run the following:

iwconfig wlan0 essid pandassid
dhcpcd -G 192.168.1.0 wlan0

6. Done!!

Friday, May 30, 2008

Enable World Mode

I have a -W 7921 wireless phone and -N 1242 autonomous wireless access point, it takes me some time to troubleshoot why it can't get connected. The answer is world mode. When you enable world mode, the AP adds channel carrier set information to its beacon. Client devices with world mode enabled receive the carrier set information and automatically adjust their settings.

Example
int dot11radio 0
world dot11d country-code US both

Thursday, May 29, 2008

Crontab

Not sure if you are interested to know. Normally when we do a crontab -e to edit or crontab -l to view a file, the physical file is located inside /var/log/cron. If you are logon as root, the file is /var/log/cron/root.

Installing VMWare Workstation 6.0.2 on 2.6.24 Kernel

My environment: Redhat Linux FC8 x86_64
VMWare version: Workstation 6.0.2

Tried to install VMWare workstation 6.0.2 on my Linux box with 2.6.24 kernel running and failed. Here is a quick how-to on how to resolve it:

1. Got your VMWare workstation tarball: VMware-workstation-6.0.2-59824.x86_64.tar.gz
2. Untar it
3. vmware-player-distrib/vmware-install.pl - when it asks you to run vmware-config.pl answer NO
4. Download VMWare patch vmware-any-any-update-116.tgz
All VMWare patch files here: http://groups.google.com/group/vmkernelnewbies/files
5. Untar your tarball
6. Run runme.pl, and when it asks you to run vmware-config.pl, answer YES
7. You know what to do after this step. If you don't know how to do, visit here.

Monday, May 26, 2008

Snapshot on Sony SNC-RZ30P Camera



Like other surveillance cameras, Sony provides a simple way to take snapshots via HTTP.

Take snapshot:
http://cam_ip/home/Capture.html

Get the picture:
wget http://cam_ip/oneshotimage.jpg

Friday, May 16, 2008

Cisco Dogbot

LWAPP Join-Request does not include valid certificate CERTIFICATE_PAYLOAD

If you get this message, 90% of chance you've got the wireless lan controller date wrong. Do a "show time" and you will suprise! I saw that I am in the year of 2029 when I do a "show time" on WLC. Fix it and it will work.

Erase Lightweight access points configuration

Once your lightweight Aironet access points register with the Cisco wireless lan controller, you can't change the ip address and controller information via console. So if you want to move the LWAP from one controller to the other, and if you have static address configured. You will have trouble. To clear the LWAP configuration, you can console to the access point and do the following:

1. Disconnect the ethernet connections
2. "clear lwapp private-config"
3. If you see the errors "ERROR!!! Command is disabled", you still have another way. Do a "debug lwapp console cli"
4. write erase
5. reload