HOWTO/SCRIPT: Broadcom 4318 Wireless Cards

About

This HOWTO is for people who have a Broadcom 4318 Wireless card in their laptop. This card can sometimes be a bit difficult to setup, so I have provided a working method (for me, anyway).

To check if you have a Broadcom 4318 Card, open up the terminal (click the Applications button, then Accessories, and then Terminal) and run (just copy and paste the code from the code boxes throughout the HOWTO [in the terminal, this is done by right click anywhere and clicking paste, ctrl+v doesn’t work])

Code:
lspci | grep Broadcom Corporation

If your output looks similar to

Code:
0000:05:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)

or you can see the string BCM4318 in the output, then this should work for you.

Please note that this was really designed to be run on a very fresh install, right after Ubuntu has come up for the first time. It is mostly likely to work then. If you have tried other attempts at making this card work, I have no promises for you, but it only takes two minutes, so it is worth a shot (most people can get it to work, even on a not-so-fresh install).

The point of this HOWTO is to make it as simple as possible (not to educate people – if you want to know how this works, open the script and read it) for people who have just installed Ubuntu for the first time, so I wrote a script and have provided a set of drivers that worked for me. Not all drivers will work with ndiswrapper, so please use the ones I have provided.

The script requires no internet connection after it is downloaded…all required files are on the CD you installed Ubuntu with, and the package manager should recognize this.

If you post for help, please post the log file, which can be found on your Desktop after you run the script.

Process for Dapper and Edgy

  1. Put the Ubuntu CD that you installed Ubuntu with in the CD drive.
  2. Download this to the desktop (the Firefox default, so if you haven’t changed it, that’s where it went/will go).
  3. Open a terminal (click the Applications button, then Accessories, and then Terminal)
  4. Change the current directory to the desktop (copy and paste the following commands exactly into your terminal by right clicking anywhere on the terminal and clicking paste)
    Code:
    cd ~/Desktop
  5. Extract the compressed file
    Code:
    tar -xf bcm4318*.tar.gz
  6. Run the script, which will install ndiswrapper on your system, and set it up.
    Code:
    sudo ./ndiswrapper_setup
  7. Use the internet (you will have to open the System menu at the top of the screen, go to Administration, and then click Networking. Configure the interface eth1 or wlan0, and connect to your wifi network)
  8. If you are an Acer user, you will need to use the acerhk driver, which can be found here for set up information and here for the actual driver.
  9. If it doesn’t work, reboot.
  10. If that doesn’t work, read the troubleshooting section below.
  11. If you still can’t make it work, try reading this post by The Raven, which is so long I can’t even fit it in here without doubling the length of the post

Troubleshooting

  • If the light doesn’t come on, try:
    Code:
  • sudo apt-get install ndiswrapper-utils-1.8 ndiswrapper-utils-1.1 ndiswrapper-utils ndiswrapper-common
  • If you are using 64bit Edgy Eft with this, MAKE SURE that you select the 2.6.17-7-generic kernel in GRUB when you boot (The script will warn you if this is a problem on your computer)
  • If you have issues with Network Manager, make sure that all lines in /etc/network/interfaces that have anything except the word (interface) LO in them are commented out (have a # in front of them) or do not exist (the installation script should have removed them)
  • If you are having issues, try running, in this order, one at a time:
    Code:
  • sudo rmmod bcm43xx sudo rmmod ndiswrapper sudo modprobe ndiswrapper sudo ifdown eth1 sudo ifup eth1 sudo dhclient
  • If you get the error “The NetworkManager applet could not find some required resources. It cannot contine.”, run:
    Code:
    sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/
  • If you are using Edgy, try enabling the Universe and Multiverse, then run the script again.
  • If, when you turn your computer on, Network Manager asks for your password, and then sits there and twirls, but doesn’t connect, and eventually times out, and THEN will connect, try removing wifi radar (or another wireless manager if you have one)
    Code:
    sudo apt-get remove wifi-radar

    OR

    Code:
    sudo apt-get remove NAME-OF-YOUR-WIFI-MANAGER
  • Try reading this post, which is incredibly long and very helpful
  • If you want to know how to remove it, either (a) read the script and undo what it does, or (b) post a message here and I will write an undo script for you, or (c) reinstall Dapper.
  • Make sure that the card is enabled in the BIOS.
  • If you’ve got a HP dv8000 series that doesn’t work quite right, or even if you don’t and have run out of ideas, try http://www.ubuntuforums.org/showpost…&postcount=432

Mirrors

There are all obsolete (but I’ll leave them here in case anyone needs them for any reason):
32-bit: http://www.box.net/public/hp6kr9np9o
64-bit: http://www.box.net/public/sxt8yivhef
32-bit with network manager: http://www.box.net/public/xsu1aa260d
64-bit with network manager: http://www.box.net/public/n9xc7jjxxj
32-bit drivers for Edgy: http://www.box.net/public/9ru8h47pdd
64-bit drivers for Edgy: http://www.box.net/public/x1qqgyu1yb
32-bit setup for Edgy: http://www.box.net/public/drxcbfej8l
64-bit setup for Edgy: http://www.box.net/public/oy219x8mlz

Posting for help

If you post for help here, please attach the log file, which will be on your Desktop after you run the script, to your post. Make sure you wrap your log file in

Code:
log-file-goes-here

tags, which makes reading the log file much easier.

Updates

EDIT: This was updated on June 20, 2006 to make the size smaller, and include ndiswrapper so that an internet connection is not required. Also, some steps were removed from the installation process.
EDIT: This was updated on June 21, 2006 to add a 64-bit version (thanks redmoth!) and to make a few minor changes.
EDIT: This was updated on June 22, 2006 so that now it supports network manager AND WPA encryption (use WPA supplicant) -thanks magomago!
EDIT: This was updated on June 28, 2006 to add some troubles and answers from the thread, up to page 11. I’m not promising I got everything, but most of it.
EDIT: This was updated on July 7, 2006 to include a GTK enabled C++ application that will automatically install the drivers WITHOUT use of the terminal. If you run the program from a terminal, additional output will be visible. This requires internet access, but looks really pretty 😛
EDIT 2: That didn’t work out, so I removed it. If you still wanna give it a go (you need gtkmm installed), download the bcm4318.gtk.tar.gz attachment.
EDIT: This was updated on August 7, 2006 to include a new and improved i386 (NOT AMD64) script that will actually work on the LiveCD now, I believe. Thanks iandefor!
EDIT: This was updated September 2, 2006 with some awesome new features. The network-manager-gnome setup should now actually work correctly on a fresh install. The script that includes network-manager-gnome will automagically connect to the internet using your nearest wifi hotspot or an ethernet connection if you’re plugged in. The 64bit drivers are also updated and should work right now (I can’t say if they do, as I don’t have a 64bit Ubuntu to test them on)
EDIT: This was updated September 3, 2006. All versions of the program are now distributed under the GPL.
EDIT: This was updated September 21, 2006 to include a link to another howto for HP dv8000 series laptops.
EDIT: This was updated September 30, 2006 to include directions for Edgy.
EDIT: This was updated October 4, 2006 to include scripts for Edgy.
EDIT: This was update October 28, 2006 so that there is only one script, which takes care of all arches and versions.

Comments and suggestions are appreciated.

From. UbuntuForums

mplayer 설치

mplayer설치

lame
mplayer
mplayer-codecs-essential
mplayer-gui-1
mplayer-skin
mplayerplug-in

위에꺼 다받으시고요… 파일브라우져에 파일을 더블클릭 하시던지 터미널 여서셔.. $ rpm -Uvh 아무개.rpm 하셔서..

1. lame-3.96-0.lvn.1.2.i686.rpm 을 깝니다.

2. mplayer-1.0pre6-1.i386.rpm 을 깝니다.

3. mplayer-gui-1.0pre6-1.i386.rpm 랑 mplayer-skin-default-1.4-1.noarch.rpm 은 꼭 같이 깔아야 되더군요. 더블클릭으로 안됩니다.

$ rpm -Uvh mplayer-gui-1.0pre6-1.i386.rpm mplayer-skin-default-1.4-1.noarch.rpm

이렇게 쳐서 깝니다.

4. mplayer-codecs-essential-20041107-1.i386.rpm 을 깝니다.

5. mplayerplug-in-2.75-0.FC3.i386.rpm 을 깝니다. (페도라 씨디 넣으라 그러면 무시해도 좋습니다. 모찔라 까는거거든요.. 캔슬해도 벌써 rpm자체는 깔려있습니다.)

6. gmplayer로 실행하거나 시작메뉴에서 실행..

자막 한글 뜨게 만들기는….
Preference에서 Subtitle란의 인코딩은 cp949로 해 주시고 Font란의 인코딩은 유니코드로 설정해주셔야 합니다. 글꼴 로드는 아무 곳의 아무 한글 트루타입 폰트로 해주셔도 될겁니다.
font=/usr/share/fonts/ko/TrueType/batang.ttf
또는
font=/usr/share/fonts/ko/TrueType/gulim.ttf

윈도우 시작키 설정법

KDE

/etc/X11/Xmodmap파일의 제일 아래에 다음과 같이 추가합니다.

keycode 115 = Super_L
keycode 116 = Super_R
add Mod4 = Super_L
add Mod4 = Super_R

/usr/share/config/kdeglobals에서 다음 내용을 추가 합니다.

[Global Shortcuts]
Popup Launch Menu=Super_L;Super_R( 윈도우키)
Toggle Showing Desktop=Win+D;Alt+Ctrl+D( 바탕화면 보기키)

어플리케이션 단축키를 설정 하는 방법은 kcontrol(제어판)에서
단축키를 설정하면 개인계정의 ./kde/share/config/khotkeysrc 파일에
저장된다.
khotkeysrc파일을 /usr/share/config에 복사한다.

리눅스 데스크탑 셋팅~

테마들을 저장하기 위한 디렉토리를 만들자. 총 5개의 테마가 있으니 5개의 디렉토리를 만들자.

$ mkdir GDM Splash GTK2 Metacity ICON

GDM/ Splash/ GTK2/ Metacity/ ICON/

그럼 이제 시작해보자.(테마를 설정하기에 앞서 root 권한이 필요하니 root로 변신 한후 할것)

1. GDM (로그인 화면)

주소 : http://art.gnome.org/themes/gdm_greeter/
먼저 위 주소에서 자신이 마음에 드는 테마를 다운을 받자.

다운을 받았으면 프로그램->시스템도구->압축관리자를 실행해서 열기를 누른후 아까 받은 파일을 선택해서 /usr/share/gdm/themes 디렉토리에 압축을 풀자.

2.Splash (시작화면)

주소 : http://art.gnome.org/themes/splash_screens/
위 주소에서 자신이 마음에 드는 테마를 다운을 받자.

마찬가지로 /usr/share/pixmaps/splash 디렉토리에 다운을 받는다.

Splash는 png로 나오기 때문에 압축을 풀 필요가 없다. 그냥 바로 다운을 받으면 된다.

3.Metacity

주소 : http://art.gnome.org/themes/metacity/
위 주소에서 자신이 마음에 드는 테마를 다운을 받자.

다운을 받은 후 압축을 /usr/share/themes 디렉토리에 푼다.

4.GTK2

주소 : http://art.gnome.org/themes/gtk2/
위 주소에서 자신이 마음에 드는 테마를 다운을 받자.

다운을 받은 후 압축을 /usr/share/themes 디렉토리에 푼다.

5. 아이콘

주소 : http://art.gnome.org/themes/icon/
위 주소에서 자신이 마음에 드는 테마를 다운을 받자.

다운을 받은 후 압축을 /usr/share/icons 디렉토리에 푼다.

이제 테마를 설정하기 위한 모든 준비가 끝났다. 이제 멋드러지게 변신을 해보자.

1. GDM 테마 설정

프로그램->시스템설정->로그인화면
창이 하나 새로 뜬다. 거기서 그래픽 환영 프로그램을 누른다. 그러면 아까 자신이 압축을 풀어둔 파일이 있을것이다.그것을 선택하면 된다.

2. Solash 테마 설정

다음과 같이 입력한다.

# cd /usr/share/pixmaps/splash

# mv gnome-splash.png gnome-splash.orig (원본을 미리 백업해둔다)

# ln -s <스플래시 이미지.png> gnome-splash.png

# ln -s Splash-Debian-0.3.png gnome-splash.png (예제에서는 “Splash-Debian-0.3.png”를 썼다)

3. 나머지 테마 싸그리 설정

프로그램->환경설정->추가환경설정->테마로 가자. 그러면 창이 하나 뜨는데 거기서 테마 손질하기를 누른다.
그러면 또 창이 뜰것이다. 먼저 컨트롤탭에서 아까 다운을 받아둔 GTK2 테마를 선택한다.
그담 창 가장자리 탭에가서 자신이 받아둔 테마를 선택한다.

마지막으로 아이콘 탭에가서 자신이 받아둔 테마를 선택한다.
다 선택했으면 닫기를 누른후 태마저장을 눌러서 저장하고 싶은 이름을 선택하고 끝내면 된다.
이로써 멋드러지게 자신의 리눅스 머신을 꾸미는걸 알아보았다. 부디 잘 이용하길 바란다.

※바탕화면을 바꾸고 싶다면 바탕화면에서 마우스 오른쪽 버튼을 누른후 바탕화면 바꾸기를 선택한후 바탕무늬 더하기를 눌러서 원하는 그림을 찾아서 선택하면 된다. 마음에 드는게 없다면 아무데서나 다운을 받으시길~

마지막으로 더 멋드러지게 꾸미고 싶다면 gdesklets 을 이용하면 된다.
저 프로그램을 이용하면 날씨와 시간 등등 배경화면에 표시할 수 있다.
바로 밑과 같이 될 수 있다.

Gnome 2.6.1 + gDesklets 환경이다. 매맞는 아이님의 리눅스 스크린샷이다.

gdesklets는 gdesklets에 가면 받을 수 있다.

무선랜 설정방법

우선 하드웨어 장치 확인.

# vi /etc/sysconfig/hwconf

이 곳에서 하드웨어 장비를 확인합니다. 예를들어, 제 노트북의 무선랜은 다음과 같은 정보가 표시됩니다.

class: NETWORK
bus: PCI
detached: 0
device: eth1
driver: ipw2200
desc: “Intel Corp. | Intel(R) PRO/Wireless 2200BG”
vendorid: 8086
deviceid: 4220
subVendorid: 8086
subDeviceid: 2712
pciType: 1
pcidcm: 0
pcibus: 2
pcidev: 2
pcifn: 0

여 기서 device: 부분과 driver 부분, desc부분이 특히 중요합니다. device는 해당 장치의 리눅스 디바이스명을 가리 키고, driver는 해당 장치의 디바이스드라이버를 표시해줍니다. desc는 당연히 해당 장치의 모델명이죠.

일반적으 로 해당 장치가 리눅스에서 (어떻게든)지원하는 것이라면, device나 desc에는 정보가 뜹니다. 만약 driver가 unknown으로 표시된다면, desc 를 확인하거나 직접 해당 장치의 모델명을 알아내어(상자에 써있던지 매뉴얼에 있던지, 아는 사람이 있던지 하겠죠?) 인터넷이 가능한 다른 PC에서 해당 장치의 드라이버를 찾아서 다운받아 설치합니다.

해당장치 의 driver까지 표시되었는데도 장치가 작동하지 않는다면, 일단 lsmod라는 명령어로 해당장치 드라이버가 올라와있는지 확인합니 다. 위의 hwconf 내용을 예로 들자면, ipw2200이라는 드라이버가 올라와 있어야하겠죠.

lsmod를 통해 드라이버가 올라와 있는것까지 확인했다면, 드라이버 버전을 확인합니다. 일반적으로 다음의 두가지 방법으로 확인할 수 있습니다.

# rpm -qa | grep ipw2200(드라이버이름)
# vi /usr/src/kernel/drivers/~(드라이버파일경로)

에서 드라이버 버전을 확인할 수 있습니다.

드라이버 버전 확인 후, 인터넷 등에서 더 높은 버전의 드라이버가 있는지 확인하여 업데이트하고 다시 시도합니다.

만약 드라이버도 최신이라면, /usr/src/(kernel_version)/에서

# make xconfig을 실행합니다.(x가 안 떠 있다면 make menuconfig)

여기서 커널에서 해당 장치를 지원하는지 확인하고, 지원하지 않는다면, 커널을 패치하거나 (옵션이 있을 경우)옵션을 체크하여 커널을 컴파일합니다.