Thursday, 19 July 2012

How to install Wireless drivers on ubuntu 10.04

About a day ago my boss asked me to get a Linus distro ubuntu 10.04 to work, it happens that thid version is not coming with network drivers activated...

Here is how I worked out to get my WiFI drivers to work.. Later I post the solution to the Ethernet.  Let me remind you that sometimes, the setup can get mess up by some updates.

But sooner u know how to get it done, and do it once, then it becomes easier. The first thing you need to do, in order to update or install your wifi drivers is to find out what is your kernel version ....

You can do it by running this simple command in terminal ....

uname -r

............

Or something like this ....

A second way is to look at the /proc/version file. This can be easily accomplished by using the cat command (which is commonly used to read and concatenate files), i.e.,
cat /proc/version
A third way is to use the rpm (i.e., Red Hat package manager) command with its -q (i.e., query) option and use the word kernel as an argument (i.e., input data) as follows:
rpm -q kernel

 ....


The download the drives from here a trusted source, for me it happens to be this one .. Realtek Drivers .... {The drivers are to my kernel type yours might be different }..

Download them into your computer, and then that what you have to do..

1 - unzip it into your /tmp folder .. with this command ..

 sudo tar -zxvf name_of_the_package.tar.gz


Then ..

root@hostdevelop:/# ls
bin    etc             lib         mnt   sbin     tmp      vmlinuz.old
boot   home            lib64       opt   selinux  usr
cdrom  initrd.img      lost+found  proc  srv      var
dev    initrd.img.old  media       root  sys      vmlinuz
root@hostdevelop:/# cd ./tmp
root@hostdevelop:/tmp# ls
keyring-r6S9ei      pulse-PKdhtXMmr18n
orbit-gdm           rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
orbit-hostdevelop   ssh-NlCyNr1469
pulse-m5lvqUFNxjXA  virtual-hostdevelop.SxNVar
root@hostdevelop:/tmp# tar -zxvf rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
rtl8192ce_linux_2.6.0006.0321.2011/
rtl8192ce_linux_2.6.0006.0321.2011/firmware/
rtl8192ce_linux_2.6.0006.0321.2011/firmware/RTL8192CE/
rtl8192ce_linux_2.6.0006.0321.2011/firmware/RTL8192CE/Realtek-Firmware-License.txt
rtl8192ce_linux_2.6.0006.0321.2011/firmware/RTL8192CE/rtl8192cfwT.bin
rtl8192ce_linux_2.6.0006.0321.2011/firmware/RTL8192CE/rtl8192cfw_test.bin
rtl8192ce_linux_2.6.0006.0321.2011/HAL/
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/Makefile
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/Makefile
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_com.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_com.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_def.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dev.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dev.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dm.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dm.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dmbt.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dmbt.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dmout.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dmout.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_Efuse.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_Efuse.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_firmware.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_firmware.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_hw.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_hwimg.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_hwimg.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_inc.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_led.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_led.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_phy.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_phy.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_PhyParam.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_PhyParam.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_phyreg.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_rtl6052.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_rtl6052.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_rx.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_rx.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_tx.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_tx.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_cam.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_cam.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_core.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_core.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_debug.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_debug.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_dm.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_dm.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_eeprom.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_eeprom.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_ethtool.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_mesh.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_mesh.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_pci.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_pci.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_platformdef.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_pm.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_pm.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_ps.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_ps.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_regd.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_regd.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_rfkill.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_rfkill.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_softap.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_softap.h
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_wx.c
rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_wx.h
rtl8192ce_linux_2.6.0006.0321.2011/Makefile
rtl8192ce_linux_2.6.0006.0321.2011/readme.txt
rtl8192ce_linux_2.6.0006.0321.2011/realtek/
rtl8192ce_linux_2.6.0006.0321.2011/realtek/RadioPower.sh
rtl8192ce_linux_2.6.0006.0321.2011/realtek/wireless-rtl-ac-dc-power.sh
rtl8192ce_linux_2.6.0006.0321.2011/release_note
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/aes.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/api.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/arc4.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/autoload.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/cipher.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/compress.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/crypto_compat.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/digest.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/dot11d.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/dot11d.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/internal.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/kmap_types.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/license
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/Makefile
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/michael_mic.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/proc.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl819x_BA.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl819x_BAProc.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl819x_HT.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl819x_HTProc.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl819x_Qos.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl819x_TS.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl819x_TSProc.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_crypt.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_crypt.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_crypt_ccmp.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_crypt_tkip.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_crypt_wep.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_endianfree.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_module.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_rx.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_softmac.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_softmac_wx.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_tx.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtllib_wx.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/rtl_crypto.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/scatterwalk.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/scatterwalk.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/wapi.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/wapi.h
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/wapi_interface.c
rtl8192ce_linux_2.6.0006.0321.2011/rtllib/wapi_interface.h
rtl8192ce_linux_2.6.0006.0321.2011/runwpa
rtl8192ce_linux_2.6.0006.0321.2011/wpa1.conf
rtl8192ce_linux_2.6.0006.0321.2011/wpa_supplicant-0.6.9.tar.gz
root@hostdevelop:/tmp# ls
keyring-r6S9ei      rtl8192ce_linux_2.6.0006.0321.2011
orbit-gdm           rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
orbit-hostdevelop   ssh-NlCyNr1469
pulse-m5lvqUFNxjXA  virtual-hostdevelop.SxNVar
pulse-PKdhtXMmr18n
root@hostdevelop:/tmp# cd ./rtl8192ce_linux_2.6.0006.0321.2011
root@hostdevelop:/tmp/rtl8192ce_linux_2.6.0006.0321.2011# ls
firmware  Makefile    realtek       rtllib  wpa1.conf
HAL       readme.txt  release_note  runwpa  wpa_supplicant-0.6.9.tar.gz
root@hostdevelop:/tmp/rtl8192ce_linux_2.6.0006.0321.2011# make
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-41-generic'
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_core.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_eeprom.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_wx.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_cam.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_pm.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_pci.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_ps.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_debug.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_ethtool.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl_regd.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dev.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_tx.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_rx.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_Efuse.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_phy.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_firmware.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dmbt.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dmout.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_dm.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_rtl6052.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_hwimg.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_led.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/rtl8192c/r8192C_com.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_rx.o
/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_rx.c: In function ‘rtllib_FlushRxTsPendingPkts’:
/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_rx.c:1297: warning: the frame size of 1040 bytes is larger than 1024 bytes
/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_rx.c: In function ‘RxReorderIndicatePacket’:
/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_rx.c:1488: warning: the frame size of 1072 bytes is larger than 1024 bytes
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_softmac.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_tx.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_wx.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_module.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_softmac_wx.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtl819x_HTProc.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtl819x_TSProc.o
/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtl819x_TSProc.c: In function ‘RxPktPendingTimeout’:
/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtl819x_TSProc.c:99: warning: the frame size of 1056 bytes is larger than 1024 bytes
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtl819x_BAProc.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/dot11d.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_crypt.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_crypt_tkip.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_crypt_ccmp.o
  CC [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/../../rtllib/rtllib_crypt_wep.o
  LD [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/r8192ce_pci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/r8192ce_pci.mod.o
  LD [M]  /tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192/r8192ce_pci.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-41-generic'
root@hostdevelop:/tmp/rtl8192ce_linux_2.6.0006.0321.2011# make install
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-41-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-41-generic'
make[1]: Entering directory `/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192'
make -C /lib/modules/2.6.32-41-generic/build M=/tmp/rtl8192ce_linux_2.6.0006.0321.2011 CC=gcc modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-41-generic'
  Building modules, stage 2.
  MODPOST 0 modules
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-41-generic'
find /lib/modules/2.6.32-41-generic -name "r8192ce_*.ko" -exec ls -l {} \;
find /lib/modules/2.6.32-41-generic -name "r8192ce_*.ko" -exec rm {} \;
install -p -m 644 r8192ce_pci.ko /lib/modules/2.6.32-41-generic/kernel/drivers/net/wireless/
depmod -a
make[1]: Leaving directory `/tmp/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192'
root@hostdevelop:/tmp/rtl8192ce_linux_2.6.0006.0321.2011# 






Then .. .. Restart your systems and your wireless should be working fine !!
Hope that this guide help you ..


Any feedback, comments and contribution is welcome ...