Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Thursday 13 December 2012

Using Virtual Ethernet Adapters in Promiscuous Mode on a Linux Host


VMware Workstation does not allow the virtual Ethernet adapter to go into promiscuous mode unless the user running VMware Workstation has permission to make that setting. This follows the standard Linux practice that only root can put a network interface into promiscuous mode.

When you install and configure VMware Workstation, you must run the installation as root. VMware Workstation creates the VMnet devices with root ownership and root group ownership, which means that only root has read and write permissions to the devices.

To set the virtual machine's Ethernet adapter to promiscuous mode, you must launch VMware Workstation as root because you must have read and write access to the VMnet device. For example, if you are using bridged networking, you must have access to /dev/vmnet0.

To grant selected other users read and write access to the VMnet device, you can create a new group, add the appropriate users to the group and grant that group read and write access to the appropriate device. You must make these changes on the host operating system as root (su -). For example, you can enter the following commands:

chgrp <newgroup> /dev/vmnet0

chmod g+rw /dev/vmnet0

<newgroup> is the group that should have the ability to set vmnet0 to promiscuous mode.
The command to run vmware workstations ads root is simple: user@user#:~$ sudo vmware start

If you want all users to be able to set the virtual Ethernet adapter (/dev/vmnet0 in our example) to promiscuous mode, run the following command on the host operating system as root:

chmod a+rw /dev/vmnet0


This is another posting showing "how to do computing" for everyday computer usages... For a general public

VMware on Linux : Running in Permiscuous Mode


 VMware on Linux: Promiscuous Mode

When VMware Workstation is hosted under Linux, by default it doesn't allow VM Guests to access the network in Promiscuous mode.  There's an easy fix for this...

If you run something like Wireshark from a VM Guest, you'll see VMware display an error message.

The problem lies with the permissions on the Host.  When VMware is started without root privileges, it doesn't have the permissions necessary to access the /dev/vmnet0 device.

A quick temporary bodge is to use chgrp and chmod on the Host, to tweak the permissions on /dev/vmnet* until the next reboot (where yourgroup is a group that your user account is in - typically admin on my Ubuntu machines):
   chgrp yourgroup /dev/vmnet*
   chmod g+rw /dev/vmnet*

A more permanent fix is to edit /etc/init.d/vmware on the Host, and tweak the ownership and permissions when the device is created, by adding the lines in red:
  # Start the virtual ethernet kernel service
   vmwareStartVmnet() {
      vmwareLoadModule $vnet
      "$BINDIR"/vmware-networks --start >> $VNETLIB_LOG 2>&1
      chgrp yourgroup  /dev/vmnet*
      chmod g+rw /dev/vmnet*

After you restart the Host's VMware daemon ...

   /etc/init.d/vmware stop
   /etc/init.d/vmware start

you'll be able to boot your Guest VM, and use Wireshark or whatever in the Guest.  Just Remember!   Your VM Guest's Network Adapter must be set to BRIDGED (connected directly to the physical network), not NAT (used to share the host's IP address).

Aside: I did think it ought be possible to achieve the same effect a little more cleanly, by creating a file in /etc/udev/rules.d to set the desired ownership and permission modes for /dev/vmnet*.  But nothing I've tried has worked.  Anyone?

Monday 12 November 2012

How to format USB drive using Linux terminal ..

How to format USB with Linux terminal ..  

[ Formatting a USB in Ubuntu or linux is as easy as make filesystem (mkfs).
mkfs and tab will show you all the filesystem types you can use:

[anc@localhost~]$ mkfs
mkfs mkfs.ext3 mkfs.jfs mkfs.ntfs mkfs.vfat
mkfs.cramfs mkfs.ext4 mkfs.minix mkfs.reiserfs mkfs.xfs
mkfs.ext2 mkfs.ext4dev mkfs.msdos mkfs.udffs


To format a USB drive all you need to know is its name, this can be found by
typing df at a terminal:

[anc@localhost~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
--snip
/dev/sdc1 ext3 3.6G 3.3G 134M 97% /media/disk



In the above example my USB is sdc1 and is a 4G USB stick. As you can see
I changed it from NTFS to ext3.

FAT32 and NTFS are weak filesystems, not only are they prone to losing data but also
require constant defragging. Most linux filesystems (except ext2) are journalled. Thye never require defragging and have better security- the disadvantage is that if you format a USB memory stick as ext3 it cant be read under windows.

To answer your earlier question,

mkfs.vfat /dev/sdc1
mkfs.ntfs /dev/sdc1


would make FAT32 and NTFS filesystems on a memory stick called sdc1

Hope that helps. ]


[ This is another posting showing "how to do computing" for everyday computer usages... For a general public ]

Thursday 19 July 2012

How to solve the Lampp Linux install Error on a 64bit Architecture

Xampp to Linux error –

XAMPP is currently only availably as 32 bit application.  Please use a 32 bit compatibility library for your system. 




ERROR If your are running XAMPP in a Ubuntu 64 bits, and found the following error: XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system. 



You must go to Sypnatic package manager, in the search field, insert: ia32-libs and install that package. 




here is Lampp running correctly but it presents another error, which you'll find the solution in another poster of mine here

 Source: Ubuntu Help

This is another posting showing "how to do computing" for everyday computer usages... For a general public 

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 ...


Monday 21 May 2012

VMware Workstation 8.0.2 does not Work with uBuntu 12.04 LTS

Hi there ...

About some day ago, I have updated my system,

I'have created this post to share, the way I have troubleshoot and successfully update the Linux Kernel make VMware Workstation 8.0.2 work and Kubuntu 12.04..


Installing VMware 8.0.2 64bit
Ubuntu 12.04LTS 64bit BETA
My Kernel version is: 3.2.0-20-generic
pst007x@pst007x-Aspire-5741:~$ sudo sh VMware-Workstation-Full-8.0.2- 591240.x86_64.bundle
Installs ok
When I launch I am asked to install modules which are compiled and loaded into the running kernel.
A window opens
VMware Kernel Module Updater
This fails on Virtual Network Device
UPDATE:
When I try to add patch, following error:
 pst007x@pst007x-Aspire-5741:~$ sudo sh patch-modules_3.2.0.sh
 [sudo] password for pst007x: 
 patch-modules_3.2.0.sh: 27: [: workstation8.0.2: unexpected operator
 patch-modules_3.2.0.sh: 28: [: workstation8.0.2: unexpected operator
 Sorry, this script is only for VMWare WorkStation 8.0.2 or VMWare Player 4.0.2. 
 Exiting
 pst007x@pst007x-Aspire-5741:~$
I have fully un-installed, and re-installed. I am installing the correct version. Probably a problem with the patch. VMware installs perfectly on Ubuntu 11.10..
.. Here is how I've worked it out .. 

Move to Home folder

  1. VMware-Workstation-Full-8.0.2-591240.x86_64.bundle
  2. PATCH: patch-modules_3.2.0.sh
  3. PATCH: vmware3.2.0.patch
Patch download link (xtact contents to Home folder):

"root@mukonda:/home/malange/Downloads# sudo  sh VMware-Workstation-Full-8.0.2-i386.bundleExtracting VMware Installer...done.
No protocol specified
No protocol specified
No protocol specified
No protocol specified

You must accept the VMware OVF Tool component for Linux End UserLicense Agreement to continue.  Press Enter to proceed.
                                                
VMWARE OPEN VIRTUALIZATION FORMAT TOOL LICENSE AGREEMENTNotice to User:This Open Virtualization Format Tool ("OVF Tool") License Agreement is a ... "bla bla bla "


Here is the Ubuntu Terminal Log record ...

"root@kubata:/home/malange/Downloads# ./patch-modules_3.2.0.sh                                                                                                                
-bash: ./patch-modules_3.2.0.sh: Permission denied                                                                                                                                  
root@kubata:/home/malange/Downloads# ./patch-modules_3.2.0.sh                                                                                                                      
patching file vmnet-only/filter.c                                                                                                                                                   
patching file vmnet-only/netif.c                                                                                                                                                    
patching file vmnet-only/userif.c                                                                                                                                                   
Stopping VMware services:                                                                                                                                                           
   VMware Authentication Daemon                                        done                                                                                                         
   VM communication interface socket family                            done                                                                                                         
   Virtual machine communication interface                             done                                                                                                         
   Virtual machine monitor                                             done                                                                                                         
   Blocking file system                                                done                                                                                                         
Using 2.6.x kernel build system.                                                                                                                                                    
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'                                                                                                                      
make -C /lib/modules/3.2.0-24-generic-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \                                                                                            
          MODULEBUILDDIR= modules                                                                                                                                                   
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/apic.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/comport.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/hashFunc.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/task.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-root/modules/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-root/modules/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Built vmmon module
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmnet-only'
make -C /lib/modules/3.2.0-24-generic-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
  CC [M]  /tmp/vmware-root/modules/vmnet-only/driver.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/hub.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/userif.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/netif.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/bridge.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/filter.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/procfs.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/smac_compat.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/smac.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/vnetEvent.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o
  LD [M]  /tmp/vmware-root/modules/vmnet-only/vmnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/vmware-root/modules/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmnet-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-root/modules/vmnet-only'
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Built vmnet module
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmblock-only'
make -C /lib/modules/3.2.0-24-generic-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/block.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/control.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/file.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/filesystem.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/inode.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/module.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/stubs.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/super.o
  LD [M]  /tmp/vmware-root/modules/vmblock-only/vmblock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmblock-only/vmblock.mod.o
  LD [M]  /tmp/vmware-root/modules/vmblock-only/vmblock.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmblock-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmblock-only'
cp -f vmblock.ko ./../vmblock.o
make: Leaving directory `/tmp/vmware-root/modules/vmblock-only'
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Built vmblock module
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmci-only'
make -C /lib/modules/3.2.0-24-generic-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciContext.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDoorbell.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQPair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciResource.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciRoute.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmci-only/vmci.mod.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmci-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmci-only'
cp -f vmci.ko ./../vmci.o
make: Leaving directory `/tmp/vmware-root/modules/vmci-only'
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Built vmci module
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vsock-only'
make -C /lib/modules/3.2.0-24-generic-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/af_vsock.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/notify.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/notifyQState.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/stats.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/util.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/vsockAddr.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vsock-only/vsock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vsock-only/vsock.mod.o
  LD [M]  /tmp/vmware-root/modules/vsock-only/vsock.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make -C $PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vsock-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vsock-only'
cp -f vsock.ko ./../vsock.o
make: Leaving directory `/tmp/vmware-root/modules/vsock-only'
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Built vsock module
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Blocking file system                                                done
   Virtual ethernet                                                    done
   VMware Authentication Daemon                                        done
   Shared Memory Available                                             done


All done, you can now run .
Modules sources backup can be found in the '/usr/lib/vmware/modules/source-workstation8.0.2-2012-05-21-
kubata@kubata:/home/malange/Downloads# 
"

Now here it VMware Working ... :-) 

                                                                                             Snapshot 1....


Snapshot 2 ....




This is another posting showing "how to do computing" for everyday computer usages... For a general public

What are the steps to remove a Git branch from both my local machine and the remote repository?

Many times, I found myself having to delete Git repositories as part of my daily duties. Following some of the documentation online, I tried...