tech_log: January 2009

Saturday, January 31, 2009

How To Install Microsoft Internet Explorer on Linux

Fom here: http://www.tatanka.com.br/ies4linux/page/Main_Page
and here: http://www.cyberciti.biz/tips/how-to-install-internet-explorer-on-linux.html

$ wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz

$ tar -zxvf ies4linux-latest.tar.gz

$ cd ies4linux-*

$ ./ies4linux

Just follow on screen installations. Once installed type the following command to start IE6:

$ ~/bin/ie6


Monday, January 26, 2009

Using grep --exclude


grep -Ir --exclude="*\.svn*" <pattern> .

Friday, January 23, 2009

How to extract RPM or DEB packages

From: http://www.g-loaded.eu/2008/01/28/how-to-extract-rpm-or-deb-packages/

RPM and DEB packages are both containers for other files. An RPM is some sort of cpio archive. On the other hand, a DEB file is a pure ar
archive. So, it should be possible to unpack their contents using
standard archiving tools, regardless of your distribution’s package
format. Under normal conditions, you should use your distribution’s
standard package manager, rpm or dpkg and their frontends, to manage those files. But, if you need to be more generic, here is how to do it.


RPM


For RPMs you need two command line utilities, rpm2cpio and cpio. Extracting the contents of the RPM package is an one-step process:


rpm2cpio mypackage.rpm | cpio -vid</pre>
<p>If you just need to list the contents of the package without extracting them, use the following:</p>
<pre class="console">rpm2cpio mypackage.rpm | cpio -vt</pre>
<p>The <strong>-v</strong> option is used in order to get verbose
output to the stdout. If you don’t need it, you can safely omit this
switch. For more information about the <code>cpio</code> options, please refer to the <code>cpio(1)</code> manual page.</p>
<h4>DEB</h4>
<p>DEB files are <em>ar archives</em>, which contain three files:</p>
<ul><li>debian-binary</li><li>control.tar.gz</li><li>data.tar.gz</li></ul>
<p>As you might have already guessed, the needed archived files exist in <code>data.tar.gz</code>. It is also obvious that unpacking this file is a <em>two-step</em> process.</p>
<p>First, extract the aforementioned three files from the DEB file (<strong>ar</strong> archive):</p>
<pre class="console">ar vx mypackage.deb</pre>
<p>Then extract the contents of <code>data.tar.gz</code> using <strong>tar</strong>:</p>
<pre class="console">tar -xzvf data.tar.gz</pre>
<p>Or, if you just need to get a <em>listing</em> of the files:</p>
<pre class="console">tar -tzvf data.tar.gz

Again the -v option in both ar and tar is used in order to get verbose output. It is safe not to use it. For more information, read the man pages: tar(1) and ar(1).

Thursday, January 22, 2009

ARM Development Boards and JTAG

BOARDS
http://www.developmentboard.net/
http://www.mikroe.com/en/tools/easyarm/
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3784
http://www.olimex.com/dev/index.html
https://www.kwikbyte.com/store/home.php?cat=249
http://www.hitex.com/index.php?id=235
http://www.openmoko.com/

JTAG
http://www.amontec.com/eshop/cmd.php
http://www.amontec.com/jtagkey-tiny.shtml
http://www.olimex.com/dev/index.html
http://www.macraigor.com
http://openocd.berlios.de/web/

Windoze Toolchains
http://www.amontec.com/sdk4arm.shtml
http://www.gnuarm.com/
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/#winarm
http://www.yagarto.de/index.html

OMAP Boards
http://beagleboard.org/
http://gumstix.com/




Setting up Debian WiFi driver on DELL Inspiron 1525

To find out WiFi interface:
Marx:/home/drasko# lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
02:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
02:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
02:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
02:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
02:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 12)
0b:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
Marx:/home/drasko#

OK, we need drivers for Broadcom BCM4312.

So I tried:

Marx:/home/drasko# apt-cache search broadcom
b43-fwcutter - Utility for extracting Broadcom 43xx firmware
bcm5700-source - module source for Broadcom's bcm5700 ethernet driver
bluez-firmware - Firmware for Bluetooth devices
firmware-bnx2 - Binary firmware for Broadcom NetXtremeII
Marx:/home/drasko#

b43-fwcutter package seemed promising, so I checked out http://wireless.kernel.org/en/users/Drivers/b43

Unfortunately, on this site is noted:

supported


  • bcm4303 (802.11b-only chips, uses b43legacy)
  • bcm4306 (Rev. 2 uses b43legacy, Rev. 3 uses b43)
  • bcm4309 (only the 2.4GHz part)
  • bcm4311 rev 1 / bcm4312
  • bcm4311 rev 2 / bcm4312 (needs patches for 2.6.24)
  • bcm4312 (only the 2.4GHz part)
  • bcm4318


unsupported


  • The 802.11a part of the 4309 and 4312 is not supported.
  • BCM
    4310 USB - This device has an LP PHY. We think that means low power. In
    any case, previous code does not work. The reverse engineers have
    translated a great deal of the code and are currently generating specs
    for the code writers. Note: This card uses the PCI bus, despite its
    name.
  • BCM
    4322 802.11a/b/g/n (Has PCI-ID 0x432B) - This device has an N Phy.
    There is no support for any Draft 802.11n features. We are working on
    it.
  • BCM
    4321 (Has PCI-IDs 0x4328 and 0x4329) - These devices have N Phys. There
    is no support for any Draft 802.11n features. We are working on it.
Now what?

Googleing led me to here: http://jomcode.com/fadhil/?p=59

Official drivers can be found here: http://www.broadcom.com/support/802.11/linux_sta.php

Build it as writtend in README that comes with a driver (it is a kernel module that have to be modprobed).

My /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# Wireless network interface
#auto eth1
allow-hotplug eth1
iface eth1 inet dhcp
   wireless-essid Adael-Gratuit


Usefull commands:
# aptitude install wireless-tools<br /># iwconfig<br /># iwlist <span id="line-15" class="anchor"><span id="line-30" class="anchor">eth1</span></span> scan<br /># iwconfig eth1 essid <span id="line-15" class="anchor"><span id="line-30" class="anchor">Adael-Gratuit<br /><br />etc...<br /></span></span><br /><br /><br />