Monday, December 7, 2009

Huawei E1550 modem in fedora 11

Hi All

The mobile broadband become a key item in making our lives eazy these days
But still most of Huawei Usb modems that are distributed with both dialog and Mobitel are not working on linux distributions

The following procedure is fully working with fedora 11

For device identification in fedora you may notice the file
/dev/ttyUSBn
n=0,1,2,3,---------------
should be created .
once u plugin the device try
[kasun@localhost ~]$ dmesg 
then find Quote like following
usb 2-1: new high speed USB device using ehci_hcd and address 3 usb 2-1: New USB device found, idVendor=12d1, idProduct=1446 usb 2-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0 usb 2-1: Product: HUAWEI Mobile usb 2-1: Manufacturer: HUAWEI Technology 

The device is not selecting as high speed device of modem on ur first plugin
So u have to assign device binaries to identify as a USB modem
for that u may use modswitch

You may install usb_modeswitch.rpm

[root@localhost ~]# yum install usb_modeswitch




#content of /etc/usb_modeswitch.conf DefaultVendor = 0x12d1 DefaultProduct = 0x1446 MessageEndpoint = 0x01 MessageContent = "55534243000000000000000000000011060000000000000000000000000000"



SUBSYSTEM=="usb", ATTRS{idProduct}=="1446", ATTRS{idVendor}=="12d1", \   RUN+="/usr/bin/usb_modeswitch -c /etc/usb_modeswitch.conf"

/usr/share/hal/fdi/preprobe/20thirdparty/10-huawei-e1550.fdi
                         true                                       true                

And apply the following patch 
 e1550 patch
Following patch is found in the bugzilla so its correct


--- linux-2.6.27.37.orig/drivers/usb/storage/initializers.c 2009-10-12 20:40:01.000000000 +0200 +++ linux-2.6.27.37/drivers/usb/storage/initializers.c 2009-10-18 18:55:43.000000000 +0200 @@ -95,6 +95,7 @@  {   int result;   + printk("%s\n", __FUNCTION__);   us->iobuf[0] = 0x1;   result = usb_stor_control_msg(us, us->send_ctrl_pipe,            USB_REQ_SET_FEATURE, @@ -103,3 +104,23 @@   US_DEBUGP("usb_control_msg performing result is %d\n", result);   return (result ? 0 : -1);  } + +/* This transmogrifies the HUAWEI E1550 3G modem to a E620 3g modem */ +int usb_stor_huawei_e1550_init(struct us_data *us) +{ + int result = 0; + static char init_string[] =  +   "\x55\x53\x42\x43\x00\x00\x00\x00" +   "\x00\x00\x00\x00\x00\x00\x00\x11" +   "\x06\x00\x00\x00\x00\x00\x00\x00" +   "\x00\x00\x00\x00\x00\x00\x00"; +  + printk("%s\n", __FUNCTION__); + memcpy(us->iobuf, init_string, sizeof(init_string) - 1); + result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe,  +         us->iobuf, +         sizeof(init_string) - 1, +         NULL); + US_DEBUGP("usb_stor_bulk_transfer_buf result is %d\n", result); + return (result ? -1 : 0); +}  --- linux-2.6.27.37.orig/drivers/usb/storage/initializers.h 2009-10-12 20:40:01.000000000 +0200 +++ linux-2.6.27.37/drivers/usb/storage/initializers.h 2009-10-17 22:56:21.000000000 +0200 @@ -48,3 +48,6 @@    /* This places the HUAWEI E220 devices in multi-port mode */  int usb_stor_huawei_e220_init(struct us_data *us); + +/* This transmogrifies the HUAWEI E1550 3G modem to a E620 3g modem */ +int usb_stor_huawei_e1550_init(struct us_data *us);  --- linux-2.6.27.37.orig/drivers/usb/storage/unusual_devs.h 2009-10-12 20:40:01.000000000 +0200 +++ linux-2.6.27.37/drivers/usb/storage/unusual_devs.h 2009-10-18 14:05:51.000000000 +0200 @@ -2004,6 +2004,11 @@    "Mass Storage",    US_SC_DEVICE, US_PR_DEVICE, usb_stor_huawei_e220_init,    0), +UNUSUAL_DEV(  0x12d1, 0x1446, 0x0000, 0x0000, +  "HUAWEI Mobile", +  "Mass Storage", +  US_SC_DEVICE, US_PR_DEVICE, usb_stor_huawei_e1550_init, +  0),    /* Reported by Vilius Bilinkevicius 

The following procedure is 100% working


Saturday, November 14, 2009

Use RAR files in Linux

RAR is a proprietary file format for data compression and archiving, developed by Eugene Roshal.

Under Linux and UNIX, use command called unrar. By default unrar is not being installed on Linux, FreeBSD or UNIX oses. You can install unrar command with the help of apt-get or yum command.
(See below for Windows XP info)

Install unrar command

Under Debian Linux, you need to type apt-get as follows to install unrar program:
# apt-get install unrar

If you are using Fedora core Linux then use yum command as follows (see discussion below):
# yum install unrar

If you are using FreeBSD, use:
# pkg_add -v -r unrar

If any of above, methods is not working for you, download binary package from official rarlab site:
$ cd /tmp
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz

Untar file
$ tar -zxvf rarlinux-3.6.0.tar.gz

Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:
$ cd rar
$ ./unrar

Now copy rar and unrar to /bin directory:
# cp rar unrar /bin

How to use unrar

unrar command supports various options below are common options that you need to use everyday.

Task: To open rar (unpack) file in current directory type command:

$ unrar e file.rar

Please note that replace file.rar filename with your actual filename.

Task: List (l) file inside rar archive:

$ unrar l file.rar

Task: To extract (x) files with full path type command:

$ unrar x file.rar

(D) To test (t) integrity of archive, file type command:
$ unrar t file.rar

Saturday, October 17, 2009

Use wma media in linux

Although opensource products keep great value on their products still we have to have facilities to access windows products and their formats ssuch as NTFS,FAT 32 ,And wma. So ill show you how to use wma format with linux. hope this would be helpful for you.

First of all i must say this method is tested only in MPlayer . please be kind enough to post ur reviews ;

first of all you can download MPlayer by repo using

yum install mplayer

then continue with followings.

[kasun@localhost ~]$

just make temporary extraction .
[kasun@localhost ~]$ cd /tmp

[kasun@localhost ~]$ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

[kasun@localhost ~]$ tar -jxvf all-20071007.tar.bz2

never extract files while ur as a rot user make that as best practice .coz Linux blindly believe super user and do what ever su asks him to do

then jump to root coz u cannot manipulate system directories while ur

logged as a normal user

[kasun@localhost ~]$su -

[root@localhost ~]# mkdir -p /usr/local/lib/codecs

[root@localhost ~]# cp all-20071007/* /usr/local/lib/codecs

[root@localhost ~]# rm -rf /tmp/all-20071007*
just insert these lines

[root@localhost ~]# ln -sf /usr/local/lib/codecs /usr/lib/codecs && ln -sf /usr/local/lib/codecs /usr/local/lib/win32 && ln -sf /usr/local/lib/codecs /usr/lib/win32

Tuesday, September 29, 2009

Put your Laptop into dual boot

Hi all liux lovers

Last week i was maged to come over all issues regurding microsoft-HP lame business of selling high quality HP laptops with windows applications and make consumers to pay for windows products as well '


PPl dont worry even now nvidia also providing great support for even mobile graphic processors i. it wont be eazy bt still end result is great
just try
if u have any issues please contact me on
dkasunw@gmail .com

Saturday, August 29, 2009

ADD linux installation CD as a repository

In Lunux it is not always adviceble o insatall alla packages at the time of installation . But proceeding to other repositories may need high band with and hours in inter net.
Use following
And enjoy
check current repository list by

[root@localhost ~]# ll /etc/yum.repos.d/

[root@kasun ~]# ll /etc/yum.repos.d/
total 40

-rw-r--r--. 1 root root 1785 2009-05-12 04:15 fedora-rawhide.repo
-rw-r--r--. 1 root root 1144 2009-05-12 04:15 fedora.repo
-rw-r--r--. 1 root root 1105 2009-05-12 04:15 fedora-updates.repo
-rw-r--r--. 1 root root 1163 2009-05-12 04:15 fedora-updates-testing.repo
-rw-r--r--. 1 root root 625 2009-04-30 17:02 remi.repo
-rw-r--r--. 1 root root 1301 2009-05-17 20:46 rpmfusion-free-rawhide.repo
-rw-r--r--. 1 root root 1202 2009-05-17 20:46 rpmfusion-free.repo
-rw-r--r--. 1 root root 1200 2009-05-17 20:46 rpmfusion-free-updates.repo
-rw-r--r--. 1 root root 1260 2009-05-17 20:46 rpmfusion-free-updates-testing.repo
[root@kasun ~]#

by following you can add CD to list
[root@localhost ~]# cp -pr /etc/yum.repos.d/fedora.repo /etc/yum.repos.d
/fedora-dvd.repo

[root@kasun ~]# ll /etc/yum.repos.d/
total 40
-rw-r--r--. 1 root root 1376 2009-08-29 07:52 fedora-dvd.repo
-rw-r--r--. 1 root root 1785 2009-05-12 04:15 fedora-rawhide.repo
-rw-r--r--. 1 root root 1144 2009-05-12 04:15 fedora.repo
-rw-r--r--. 1 root root 1105 2009-05-12 04:15 fedora-updates.repo
-rw-r--r--. 1 root root 1163 2009-05-12 04:15 fedora-updates-testing.repo
-rw-r--r--. 1 root root 625 2009-04-30 17:02 remi.repo
-rw-r--r--. 1 root root 1301 2009-05-17 20:46 rpmfusion-free-rawhide.repo
-rw-r--r--. 1 root root 1202 2009-05-17 20:46 rpmfusion-free.repo
-rw-r--r--. 1 root root 1200 2009-05-17 20:46 rpmfusion-free-updates.repo
-rw-r--r--. 1 root root 1260 2009-05-17 20:46 rpmfusion-free-updates-testing.repo
[root@kasun ~]#

choose ur favorite editor mine is vim


[root@kasun ~]# vim /etc/yum.repos.d/fedora-dvd.repo

rename the repo as "[fedora-dvd]", and "name=Fedora-dvd" add PATH to the Fedora 11 DVD "baseurl=file:///media
/Fedora%2011%20i386%20DVD/"


And append following

[fedora-dvd]
name=Fedora-dvd $releasever - $basearch
failovermethod=priority
baseurl=file:///media/Fedora%2011%20i386%20DVD/
enabled=1
metadata_expire=7d
gpgcheck=1

Friday, August 28, 2009

GRUB boot menu

The default location is in /boot/grub/menu.lst. The .lst suffix stands for menu list,
not menu first. The file contains configuration options (like default boot entry,
(http://grub.enbug.org/ChangeDefaultBootEntry) (grub.enbug.org) color,
timeout and password settings) and a list of menu entries. The file is often
managed by some tool from the distribution itself, so when kernels are installed
or removed the boot menu list gets automatically updated. Another common
location is /etc/grub.conf but this is often a link file to the /boot/grub file.
Manual configuration
To configure grub, find out your distribution. SUSE uses /boot/grub/menu.lst,
Red Hat and Ubuntu use /boot/grub/grub.cfg. Full documentation of the format
of the file can be found in the GRUB info pages. But for a quick start, here are a
couple of example entries to get you going.
Basic entry to boot a linux kernel located on the first disk:

title Linux kernel 2.6.4
root (hd0,0)
kernel /boot/vmlinuz-2.6.4 root=/dev/hda1 ro 3
initrd /boot/initrd.img
denotes the selectable boot-menu title;
title
says /boot partition is on the first partition first drive or that the
root (hd0,0)
SUB-folder /boot to the / partition refers to same structure;
kernel tells grub where to find the linux kernel. The "root" mentioned after
vmlinuz refers to the / entry in your /etc/fstab file. Kernel parameters such
as desired runlevel (3) may be presented at the end of the kernel-line;
initrd describes the use and location of a preconfigured ramdisk.
Note that grub starts counting disks from 0, while skipping other IDE devices.
Thus /dev/hda1=(hd0,0) and /dev/hdc1=(hd1,0) when a cdrom-drive is attached as slave
on the first IDE-channel. When adding drives to an existing configuration,
drives.map may need to be refreshed from within grub, especially when more than
one drive/partition is bootable.

Debian
Debian manages the menu file with update-grub. This script checks which
kernels are located in /boot/ and generates a menu entry for them. It adds its
own configuration options to the menu.lst file. These concern the options that
are given to the generated menu entries. Usually, update-grub is automatically
run after kernel packages have been installed or removed (at least it's the default
configuration for the sarge/testing disribution). If not, update-grub can be added
as a postinst_hook and a postrm_hook in the /etc/kernel-img.conf file.
Red Hat
Red Hat also manages the menu.lst file itself. It should be updated automatically
when a kernel rpm is installed or removed

SuSE

SuSE manages the menu.lst of GRUB using YAST.

Booting Windows/DOS
title Win
rootnoverify (hd0,0)
makeactive
chainloader +1


If you where to have dual-booting with Linux on the first disk and Windows on
the 2nd or some other disk you will run into a common trouble: WARNING
Windows only wants to boot from partitions on first disk in the system. But GRUB
can trick Windows with the map command, an example entry to correct this
problem would look like:
title Win
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

ALSA for linux

Hi all
The pulse audio is only allocating part of your sound card and arrise issues in using applications like Skype in fedora (As i experience)
But yet ALSA audio drivers is there for rescue
ALSA stands for Advanced Linux Sound Architecture
http://www.alsa-project.org/main/index.php/Main_Page

even you can use repository to install alsa
yum install alsa*
else use source codes directly from

http://www.alsa-project.org/main/index.php/Download

but yet beware don't modprobe drivers on later kernels
it will lead you to conflicts
luckily
all new kernels have ability to update it self

use

tar -xjf

t extract the tarball distribution
and do as install txt say
./configure
make
make install
and enjoy

there is a ALSA media player available
but still i prefer VLC
yet good
Powered By Blogger

yyy

new.html //Insert in body Tag

This is my HTML page.