Kubuntu on Asus Laptop
[HOME][Contact Us]2006 and I am using Kubuntu Dapper 6.10 on my Asus A2500H Laptop.
The modem and the WIFI were the hardest things to get up and running. But I have got there at last.
The Modem is SiS AC'97.
lspci | grep Modem
0000:00:02.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0)
You need the kernel source to compile the modem driver.
In a Terminal;
ls -l /lib/modules/2.6.15-23-386/kernel/build
this needs to be there
uname -r
2.6.15-23-386
If the source not there then;
sudo apt-get install linux-headers-2.6.15-23-386
sudo apt-get install linux-source-2.6.15-23
sudo apt-get install build-essentials
apt-get install sl-modem-daemon sl-modem-source
sudo cp slmodemd /usr/sbin/slmodemd
sudo chmod +x /usr/sbin/slmodemd
lsmod | grep snd-intel8x0m
to check if the driver is loaded. If necessary
sudo modprobe snd-intel8x0m
slmodemd --help
lmodemd --countrylist
to find your country name. If it is New Zealand
slmodemd -c NZ --alsa hw:1
should create ports for the modem.
Once you are online you can
sudo apt-get update
sudo apt-get install sl-modem-daemon
which will automate the modem setup. But it will overwite the installed
slmodemd with an older version. So again within the SLMODEMD/ folder.
sudo cp slmodemd /usr/sbin/slmodemd
sudo chmod a+x /usr/sbin/slmodemd
sudo wvdialconf
Scanning your serial ports for a modem.
sudo kate /etc/wvdial.conf
the file needs to look something like this;
[Modem0]
Modem Type = Analog Modem
SetVolume = 5
FlowControl = Hardware (CRTSCTS)
New PPPD = 1
Baud = 115200
[Dialer Defaults]
Modem = /dev/ttySHCF0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
ISDN = 0
Phone = 087308880,
Login Prompt = whatever
Username = whatever
Password Prompt = whatever
Password = whatever
; Stupid mode = 1
Inherits = Modem0
Create this file in Kate;
#!/bin/sh
ifup eth0
sudo wvdial
To logon,
save as dial.sh
Put dial.sh in the /home/user folder
sudo chmod 777 *.sh
use as ./dial.sh
make sure the modem is plugged in and you should be ok.
If you have trouble try this;
sudo kate /etc/modprobe.d/slmodem
Enter the following line;
alias char-major-212 slamr
In Terminal execute;
update-modules
For the WIFI
Broadcom Corporation BCM4306
Add
deb http://ndiswrapper.sourceforge.net/debian ./
to the
sudo kate /etc/apt/sources.list
sudo apt-get update
sudo apt-get remove ndiswrapper
sudo apt-get install ndiswrapper
ifup eth1
Download the latest Broadcom Wireless driver for Windows from the support web site or it my be in your windows directory.
Read the NdisWrapper install instructions: http://ndiswrapper.sourceforge.net/wiki/index.php/Installation.
Install the Broadcomm driver for Windows:
ndiswrapper -i /home/leftfieldnz/Desktop/wifi/bcmwl5a.inf
Install NdisWrapper as a module:
ndiswrapper -m
Verify that NdisWrapper installed correctly:
./ndiswrapper -l
The output should be Installed ndis drivers: bcmwl5a driver present, hardware present
modprobe ndiswrapper
Verify that the driver loaded by looking at the
tail /var/log/syslog
file contains a line like ndiswrapper version 0.12 loaded (preempt=yes,smp=no). Also verify that it loaded your wireless card by validating that a second line appears indicating the card was loaded.
Run
iwconfig eth1 or maybe wlan0
and verify that theinterface contains details for your wireless card.
To see available networks, run
iwlist eth1 scan
Set the mode for your network based on the output from the iwlist command. In most cases it will be "Managed": iwconfig wlan0 mode Managed.
Set the security key for the interface using iwconfig wlan0 key restricted key. If there is no key then skip this step.
Set the network name for your network based on the output from the iwlist command:
iwconfig wlan0 essid name.
the Windows XP driver, required by DriverLoader, for a wireless card
based on the BCM4306 (Broadcom) chipset can be downloaded from our
Windows XP driver download page at:
http://www.linuxant.com/driverloader/drivers.php
lspci | grep Broadcom\ Corporation
0000:00:0c.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
Another way maybe this (did not work for me)
Broadcom BCM4306
sudo apt-get install bcm43xx-fwcutter
Extract your cards firmware from the driver:
sudo bcm43xx-fwcutter -w /lib/firmware /home/leftfieldnz/Desktop/wifi/bcmwl5.sys
Remember to change the path to where you extracted the zip file to.
And that should be it, reboot your PC, then configure your wireless network adapter as normal.
You can find more help on Broadcom wiresless cards and Dapper here.
Possibly Optional (this was a great idea)
Least not Last... IF you have a Broadcom wifi card, you must “blacklist” the default driver that Kubuntu comes with. This is a very simple, but necessary step.
Time for some Command Prompt-age... The easiest way I've found to do this is hit Alt+F2, type in "Konsole", and hit enter. (or K>System>Konsole) Now type “
sudo kate /etc/modprobe.d/blacklist”. You will be prompted for your password. When the file come up in the editor, scroll to the bottom and type on an empty line “blacklist bcm43xx” (without the quotes). Save it, and close it out. Restart your computer and you should get some hot wifi action! Woohoo!
ifconfig
eth1 Link encap:Ethernet HWaddr 00:11:2F:B6:AE:F3
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:2fff:feb6:aef3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:271383 errors:0 dropped:0 overruns:0 frame:0
TX packets:318279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:157422976 (150.1 MiB) TX bytes:276538595 (263.7 MiB)
Interrupt:193 Memory:e4000000-e4002000
iwconfig
eth1 IEEE 802.11g ESSID:"mordor"
Mode:Managed Frequency:2.462 GHz Access Point: 00:16:E3:48:60:9B
Bit Rate:54 Mb/s Tx-Power:25 dBm
RTS thr:2347 B Fragment thr:2346 B
Power Management:off
Link Quality:100/100 Signal level:-64 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I also installed ndisgtk
A very nice wifi program that comes with your Kubuntu install is “Wireless Assistant.” (K>Internet>Wireless Assistant) You should be able to enter in your wireless settings and get up and running.
I have created the following scripts for wifi
see above for more info
one called find.sh to get a IP address
#!/bin/sh
sudo dhclient eth1
one called manage.sh to get info on AP
kwifimanager
one called monitor.sh to get a traffic info
cat /proc/net/dev
one called settings.sh to get settings
ifconfig eth1
one called ping.sh to see if it will ping
ping www.slingshot.co.nz
one called settings.sh to get AP info
iwlist eth1 scanning
one called settings.sh to get WIFI info
iwconfig eth1
My system looks like this;
lspci
0000:00:00.0 Host bridge: Silicon Integrated Systems [SiS] 650/M650 Host (rev 80)
0000:00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP)
0000:00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS962 [MuTIOL Media IO] (rev 14)
0000:00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller
0000:00:02.3 FireWire (IEEE 1394): Silicon Integrated Systems [SiS] FireWire Controller
0000:00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
0000:00:02.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0)
0000:00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0)
0000:00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
0000:00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
0000:00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
0000:00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
0000:00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 90)
0000:00:0a.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 02)
0000:00:0c.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
0000:01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 65x/M650/740 PCI/AGP VGA Display Adapter


Most other things worked out of the box
I have wifi broadband at home
I live in a camper van during the week while working in town.
I have solar power and a 1000 watt inverter to give me mains power for running a printer and the laptop.
.
.
.
On
the road I use my cellphone or a broadband hostspot for the Internet
and Email.
.
.