Sunday, June 3, 2007

Multi SSID wireless AP

Atheros and Broadcom support multiple SSIDs.


Reference:
1. Implementing Multiple SSIDs
http://www.wi-fiplanet.com/tutorials/article.php/2196451


TODO: add more here.

Saturday, June 2, 2007

Setup Broadcom Corporation Dell Wireless 1390 WLAN Mini-PCI Card on HP v3261tu using Debian4

Broadcom Corporation Dell Wireless 1390 WLAN Mini-PCI Card on HP v3261tu using Debian4

$ uname -r
2.6.18-4-686

$ cat /proc/version
Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-12) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Mar 26 17:17:36 UTC 2007

# apt-get install cabextract

$ wget http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.45.tar.gz

$ tar zxvf ndiswrapper-1.45.tar.gz

# apt-get install build-essential

# ln -s /usr/src/linux-source-2.6.18 /lib/modules/`uname -r`/build

# cd /usr/src/linux-source-2.6.18

# make defconfig

# lspci | grep Broadcom
05:00.0 Network controller: Broadcom Corporation Dell Wireless 1390 WLAN Mini-PCI Card (rev 01)

# apt-get install linux-headers-`uname -r`

/usr/src/ndiswrapper-1.45# make

/usr/src/ndiswrapper-1.45# make install

# ndiswrapper -v
utils version: '1.9', utils version needed by driver: '1.9'
module details:
filename: /lib/modules/2.6.18-4-686/misc/ndiswrapper.ko
version: 1.45
vermagic: 2.6.18-4-686 SMP mod_unload 686 REGPARM gcc-4.1

Please refer:
http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,list_b/
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-45290-1&lc=en&cc=sg&dlc=en&product=3245619&os=228&lang=en
# wget ftp://ftp.hp.com/pub/softpaq/sp34001-34500/sp34152.exe

# cabextract sp34152.exe

# ndiswrapper -i bcmwl5.inf

# ndiswrapper -l
bcmwl5 : driver installed
device (14E4:4311) present

# lspci | grep "05:00.0"
05:00.0 Network controller: Broadcom Corporation Dell Wireless 1390 WLAN Mini-PCI Card (rev 01)

# lspci -n | grep "05:00.0"
05:00.0 0280: 14e4:4311 (rev 01)

# ndiswrapper -a 14e4:4311 bcmw15
ls: /etc/ndiswrapper/bcmw15/: No such file or directory
driver 'bcmw15' is not installed (properly)!

# ls /etc/ndiswrapper/bcmwl5/
14E4:4311:1363:103C.5.conf 14E4:4312:1362:103C.5.conf 14E4:4319:1359:103C.5.conf 14E4:4324.5.conf
14E4:4311:1364:103C.5.conf 14E4:4312:1370:103C.5.conf 14E4:4319:135A:103C.5.conf 14E4:4328:1366:103C.5.conf
14E4:4311:1365:103C.5.conf 14E4:4312:1371:103C.5.conf 14E4:4319.5.conf 14E4:4328:1367:103C.5.conf
14E4:4311:1374:103C.5.conf 14E4:4312:1372:103C.5.conf 14E4:4320:00E7:0E11.5.conf 14E4:4328:1368:103C.5.conf
14E4:4311:1375:103C.5.conf 14E4:4312:1373:103C.5.conf 14E4:4320:12F4:103C.5.conf 14E4:4328:1369:103C.5.conf
14E4:4311:1376:103C.5.conf 14E4:4312.5.conf 14E4:4320:12F8:103C.5.conf 14E4:4328.5.conf
14E4:4311:1377:103C.5.conf 14E4:4318:1355:103C.5.conf 14E4:4320:12FA:103C.5.conf bcmwl5.inf
14E4:4311.5.conf 14E4:4318:1356:103C.5.conf 14E4:4320:12FB:103C.5.conf bcmwl5.sys
14E4:4312:135F:103C.5.conf 14E4:4318:1357:103C.5.conf 14E4:4320.5.conf
14E4:4312:1360:103C.5.conf 14E4:4318.5.conf 14E4:4324:12F9:103C.5.conf
14E4:4312:1361:103C.5.conf 14E4:4319:1358:103C.5.conf 14E4:4324:12FC:103C.5.conf

# depmod -a

# modprobe ndiswrapper

# apt-get install wireless-tools

# iwconfig wlan0 essid XXXXXX

# iwlist wlan0 scanning

# dhclient wlan0


Reference:
1.Start from :
http://hpwiki.cactii.net/hpwiki/Presario_V3%2A%2A%2A

2.NDISwrapper:
http://ndiswrapper.sourceforge.net

3.Broadcom BCM4311 802.11g mini-PCIe (14E4:4324) Wireless Adapter using ndiswrapper Installation (Plus NetworkManager and WPA):
https://help.ubuntu.com/community/WifiDocs/Device/Broadcom_BCM4311_rev_01_(ndiswrapper)

4.Same wireless card. Using FC6:
http://www.hebl.name/zh/archives/wireless-linux.html

5.A useful doc: wireless network usage on linux
http://www.linuxfocus.org/ChineseGB/December2004/article361.shtml

6.Wireless card driver for Windows
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-45290-1&lc=en&cc=sg&dlc=en&product=3245619&os=228&lang=en

7.This guy(from hp.com) contribute wireless-tools (tons thanks! ):
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html

Thursday, May 31, 2007

Add a new harddisk to linux

1.fdisk /dev/sdbxxx follow instructions,fdisk entire disk.
2.mkfs -t ext3 /dev/sdbxxx
3.mkdir -p /opt;mount /dev/sdb1 /mnt -o rw
4.Add item to /etc/fstab file.such as : /dev/sdb1 /opt ext3 defaults 1 1

Wednesday, May 30, 2007

Get latest kernel source

Index of /pub/linux/kernel

stable ones:
v2.4
v2.6

Multimedia support under linux

Index of /MPlayer/releases/codecs


#apt-get install mplayer
#cp /PATH_TO_ALL_CODES/* /usr/lib/codecs


See a movie now ;)

Burn CD on Linux

在 Linux 上烧录 CD


#apt-get install cdrecord genisoimage

$mv OR cp FILES /TEMP/PATH

$genisoimage -v -o burnCD.iso /TEMP/PATH

#cdrecord -v -eject speed=16 /PATH/TO/burnCD.iso

Tuesday, May 29, 2007

use update-rc.d to manage Debian services

update-rc.d -f hplip remove
update-rc.d -f cupsd remove
update-rc.d -f cupsys remove
update-rc.d -f exim4 remove
update-rc.d -f apache2 remove
update-rc.d -f portmap remove
update-rc.d -f nfs-common remove
update-rc.d -f openbsd-inetd remove

Debian source.list Note

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

deb ftp://ftp.linuxforum.net/debian stable main

deb http://debian.cn99.com/debian stable main
deb-src http://debian.cn99.com/debian stable main

How to disable ipv6 in debian/ubuntu(kernel2.6)

#echo "blacklist ipv6" >>/etc/modprobe.d/blacklist
#reboot

==DONE

This can improve your network connectivity(esp for pure ipv4 network) .