To use TATA DOCOMO 3G e-stick in Ubuntu 10.10

Asked by Sudeep Kulkarni

I recently purchased TATA DOCOMO 3G HSUPA e-stick. According to manual, it supports Ubuntu 9.04

I successfully installed the required modem software in Ubuntu 10.04, even though it was not officially supported.

Now when I connect the e-stick to my laptop, where I am using Ubuntu Net-book 10.10, it's not recognized.

network manager prompts to configure a new connection. Even after configuring from network manager, I can't access the internet.

So what should i do? Is there any alternative?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
Sudeep Kulkarni
Solved:
Last query:
Last reply:
Revision history for this message
Sudeep Kulkarni (sudeepbkkulkarni) said :
#1

I have made some progress...

I copied the installation files using a pendrive and tried to install
the software.

But when I installed, following error occurred in terminal -

Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel
buid(/lib/modules/2.6.35-22-generic/build) to be all isntalled?

What does it mean?

On 2/16/11, Sudeep Kulkarni <email address hidden> wrote:
> New question #145598 on Ubuntu:
> https://answers.launchpad.net/ubuntu/+question/145598
>
> I recently purchased TATA DOCOMO 3G HSUPA e-stick. According to manual, it
> supports Ubuntu 9.04
>
> I successfully installed the required modem software in Ubuntu 10.04, even
> though it was not officially supported.
>
> Now when I connect the e-stick to my laptop, where I am using Ubuntu
> Net-book 10.10, it's not recognized.
>
> network manager prompts to configure a new connection. Even after
> configuring from network manager, I can't access the internet.
>
> So what should i do? Is there any alternative?
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

--
Sudeep Kulkarni

Revision history for this message
ajmal_82 (ajmal-82) said :
#2

i think you get weak/shimmering support for 3g in ubuntu,so i advice you to file a bug for this.also whats the output of lsusb.the following links might help
http://ubuntuforums.org/showthread.php?t=1388469

thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What software have you installed with your pendrive? Your post #2 might indicate some unfulfilled dependencies.

Important for the supporters is to see the output of lsusb when you have your device plugged in. Please provide that output.

Revision history for this message
Sudeep Kulkarni (sudeepbkkulkarni) said :
#4

I will try to tell in detail....

First of all, when I plug in the actual 3G device, network manager detects it. I configured all the necessary settings for connection, still I could not connect to internet.

So, using another compatible OS (Ubuntu 10.04), I copied the necessary files for installing the s/w on ubuntu netbook 10.01

When I ran the "install" file in terminal, I got the aforesaid error message.

Revision history for this message
Sudeep Kulkarni (sudeepbkkulkarni) said :
#5

I am copying contents of "install file" over here. perhaps that will help.

Revision history for this message
Sudeep Kulkarni (sudeepbkkulkarni) said :
#6

#!/bin/bash
#
###############################################################################
# #
# »ªÎªÖÕ¶ËÊý¾Ý¿¨linux ºǫ́ע²áÈí¼þ #
# °æȨÊôÓÚ»ªÎª¼¼ÊõÓÐÏÞ¹«Ë¾£¬²»µÃµÁÓã¬Î¥Õ߱ؾ¿ #
# Huawei linux MobilePartner licensed software #
# Copyright (c) 2007-2008 by Huawei Tech. Corp. Ltd.. #
# ×÷ÕߣºÕÅǬ´º 2008.7.8 #
# #
###############################################################################
#

BAKCURRENTPATH=`pwd`
SOFTWARENAME="TATA DOCOMO 3G"
# g122020 2010.01.11 modify AJ2D15737
INSTALLWORKPATH="$(dirname "$0")"
CONFIG_FILE="/etc/datacard_config"
HOOK_FILE="/etc/pm/sleep.d"
USERDATA_PATH="/usr/local/hw_mp_userdata"
# g122020 2010.01.29 AJ2D15962
PPPD_PATH="/usr/local/hw_pppd"

FULLVERSION=21.003.25.04.793

SOFTWARENAMEINDESKTOP=$SOFTWARENAME
SOFTWARENAME=$(echo $SOFTWARENAME | sed s\#\ \#_\#g)

INSTALLPATH="/usr/local/${SOFTWARENAME}"
TEMPWORKPATH="/tmp/${SOFTWARENAME}_$$"
TEMPFILE="${SOFTWARENAME}_install_$PPID"

#Language String
LANGUAGESTRING[0]="zh"
LANGUAGESTRING[1]="en_US"
LANGUAGECODE[0]=0
LANGUAGECODE[1]=1

LANGCODE=${LANGUAGECODE[1]}
i=0
while [ ".${LANGUAGESTRING[${i}]}" != "." ]
do
    if [ ${LANGUAGESTRING[${i}]} = "${LANG}" ]
    then
        LANGCODE=${LANGUAGECODE[${i}]}
        break
    fi
    i=`expr ${i} + 1`
done
unset i

LYouMustBeRoot[0]="Äú±ØÐëÒÔrootÓû§ÔËÐб¾°²×°³ÌÐò"
LYouMustBeRoot[1]="You must run the process by root"

LPlsInputInstallPath[0]="ÇëÊäÈë°²×°µÄ¾ø¶Ô·¾¶"
LPlsInputInstallPath[1]="Please input the absolute path for install"

LInstallPath[0]="°²×°Â·¾¶"
LInstallPath[1]="install path"

LIllegal[0]="·Ç·¨"
LIllegal[1]="illegal"

LNoFile[0]="ÕÒ²»µ½Îļþ£º"
LNoFile[1]="Can not find file: "

LCanNotCreateDir[0]="ÎÞ·¨´´½¨Ä¿Â¼"
LCanNotCreateDir[1]="Can not create dir"

LMobilePartnerInstall[0]="${SOFTWARENAMEINDESKTOP}°²×°³ÌÐò"
LMobilePartnerInstall[1]="${SOFTWARENAMEINDESKTOP} installer"

LStartInstallPartner[0]="¿ªÊ¼°²×°ºǫ́, ÇëÉÔºó..."
LStartInstallPartner[1]="Installing ${SOFTWARENAMEINDESKTOP}..."

LCompleteInstallPartner[0]="ÒѾ­Íê³Éºǫ́°²×°"
LCompleteInstallPartner[1]="install have completed, local path is"

LLocalPath[0]="±¾µØ°²×°Â·¾¶"
LLocalPath[1]="Local path is"

LOverwriteInstalled[0]="ÒѾ­°²×°Óкǫ́, ÊÇ·ñ¸²¸Ç"
LOverwriteInstalled[1]="The software is exist. Do you want overwrite it"

LInstallJRE[0]="°²×°JRE"
LInstallJRE[1]="install JRE"

LInstallMP[0]="°²×°ºǫ́"
LInstallMP[1]="install ${SOFTWARENAMEINDESKTOP}"

LInstallAll[0]="°²×°JREºÍºǫ́"
LInstallAll[1]="install JRE and ${SOFTWARENAMEINDESKTOP}"

LQuitInstall[0]="Í˳ö"
LQuitInstall[1]="Exit"

LPlsSelect[0]="ÇëÑ¡Ôñ£º"
LPlsSelect[1]="Please select: "

LYouMustSelect[0]="Äã±ØÐëÑ¡Ôñ£º"
LYouMustSelect[1]="You must select: "

LInstallEnd[0]="½áÊø, °´ÈÎÒâ¼üÍ˳ö"
LInstallEnd[1]="Finished, press any key to exit"

LInstallingVersionOlderThenInstalled[0]="¾¯¸æ£ºÕýÔÚ°²×°µÄ°æ±¾±ÈϵͳÖеİ汾¾É¡£ÊÇ·ñ¸²¸Ç£¿"
LInstallingVersionOlderThenInstalled[1]="WARNING: The installing version is older than installed. Do you want to overwrite it"

LInstallingVersionLaterThenInstalled[0]="ϵͳÖдæÔھɰ汾¡£ÊÇ·ñÉý¼¶£¿"
LInstallingVersionLaterThenInstalled[1]="There is a older version in your system. Do you want to update it"

LInstalledVersion[0]="ÒÑ°²×°°æ±¾:"
LInstalledVersion[1]="Installed version:"

LInstallingVersion[0]="ÕýÔÚ°²×°°æ±¾:"
LInstallingVersion[1]="Installing version:"

LProgramRunning[0]="ÇëÏȹرճÌÐòÔÙ½øÐÐжÔØ¡£"
LProgramRunning[1]="Program is running, you need close it before uninstalling."

# /*yes or no ¹«¹²º¯Êý, yes·µ»Ø0, no·µ»Ø1*/
yes_or_no()
{
    if [ ${#} -ne 2 ]
    then
        echo -e "yes_or_or: ${ErrorPara[${LANGCODE}]}"
        return 1
    fi
    if [ "${2}" = "Y" ]
    then
        DEFPMPT="([Y]/N):\c "
        DEFVAL="Y"
    else
        DEFPMPT="(Y/[N]):\c "
        DEFVAL="N"
    fi
    echo -e "${1} ${DEFPMPT}"
    read ANS
    while [ "${ANS}" != "Y" -a "${ANS}" != "y" -a "${ANS}" != "N" -a "${ANS}" != "n" -a ! -z "${ANS}" ]
    do
        echo -e "${1} ${DEFPMPT}"
        read ANS
    done
    : ${ANS:="${DEFVAL}"}
    if [ "${ANS}" != "Y" -a "${ANS}" != "y" ]
    then
        unset ANS
        return 1
    fi
    unset ASN
    return 0
}

#¼ì²éÆô¶¯°²×°½Å±¾µÄÓû§ÊÇ·ñΪrootÓû§
CheckID()
{
    if [ `id | awk '{print $1}'` != "uid=0(root)" ]
    then
        echo -e "${LYouMustBeRoot[${LANGCODE}]}"
        echo -e "\n${LInstallEnd[${LANGCODE}]}"
        read -n 1
 clear
        exit
    fi
}

#¼ì²éµ±Ç°ÊÇ·ñÓкǫ́ÕýÔÚÔËÐÐ
CheckRunning()
{
    RUNJAR=`ps -ef |grep -v grep |grep MobilePartner.jar | awk '{print $2}'`
    RUNBIN=`ps -ef |grep -v grep |grep MobilePartner.bin | awk '{print $2}'`
    if [ "x${RUNJAR}" != "x" ]
    then
        echo -e "Program is running, you need close it before installing."
        read RESP
        exit
    fi

    if [ "x${RUNBIN}" != "x" ]
    then
        echo -e "Program is running, you need close it before installing."
        read RESP
        exit
    fi
}

#¼ì²éÏà¹ØÎļþ£¬ÔÚÓ²ÅÌÉϽ¨Á¢´æ·Å°²×°ÎļþµÄÁÙʱĿ¼£¬²¢¿½±´°²×°Îļþµ½¸ÃĿ¼
PreInstall()
{
    #¼ì²é°²×°°üÎļþ
    if [ ! -f "${INSTALLWORKPATH}"/MobilePartner.bin ]
    then
        echo -e "${LNoFile[${LANGCODE}]}MobilePartner.bin"
        exit
    fi
    if [ ! -f "${INSTALLWORKPATH}"/data.bin ]
    then
        echo -e "${LNoFile[${LANGCODE}]}data.bin"
        exit
    fi
    if [ ! -f "${INSTALLWORKPATH}"/7zr ]
    then
        echo -e "${LNoFile[${LANGCODE}]}7zr"
        exit
    fi

    if [ ! -d "${TEMPWORKPATH}" ]
    then
        mkdir ${TEMPWORKPATH}
    fi
    if [ ! -d "${TEMPWORKPATH}" ]
    then
        echo -e "\n${LCanNotCreateDir[${LANGCODE}]}: ${TEMPWORKPATH}"
        exit
    fi

    #¿½±´ºǫ́°²×°Îļþ
    cp -f "${INSTALLWORKPATH}"/MobilePartner.bin ${TEMPWORKPATH}
    cp -f "${INSTALLWORKPATH}"/data.bin ${TEMPWORKPATH}
    cp -f "${INSTALLWORKPATH}"/7zr ${TEMPWORKPATH}
    chmod +x ${TEMPWORKPATH}/7zr

    #¿½±´°²×°½Å±¾µ½Ó²ÅÌÉÏ
    cp -f "${INSTALLWORKPATH}"/install ${TEMPWORKPATH}
    chmod a+x ${TEMPWORKPATH}/install

    #add by liuzhiqiang... begin
    if [ -f $CONFIG_FILE ]
    then
        #»ñÈ¡°æ±¾ÐÅÏ¢
        . $CONFIG_FILE

        #»ñȡϵͳÖÐÒѾ­°²×°µÄ°æ±¾ºÅ
        VRVERSIONINSTALLED=`echo $FullVersion | cut -d '.' -f1`
        BUILDVERSIONINSTALLED=`echo $FullVersion | cut -d '.' -f2`
        DEVELOPVERSIONINSTALLED=`echo $FullVersion | cut -d '.' -f3`
        SPVERSIONINSTALLED=`echo $FullVersion | cut -d '.' -f4`
        CUSTOMIZEVERSIONINSTALLED=`echo $FullVersion | cut -d '.' -f5`

        #»ñÈ¡ÕýÔÚ°²×°µÄ°æ±¾ºÅ
        VRVERSIONINSTALLING=`echo $FULLVERSION | cut -d '.' -f1`
        BUILDVERSIONINSTALLING=`echo $FULLVERSION | cut -d '.' -f2`
        DEVELOPVERSIONINSTALLING=`echo $FULLVERSION | cut -d '.' -f3`
        SPVERSIONINSTALLING=`echo $FULLVERSION | cut -d '.' -f4`
        CUSTOMIZEVERSIONINSTALLING=`echo $FULLVERSION | cut -d '.' -f5`

        #´òÓ¡°æ±¾ÐÅÏ¢
        echo "${LInstalledVersion[${LANGCODE}]} ${FullVersion}"
        echo "${LInstallingVersion[${LANGCODE}]} ${FULLVERSION}"

        #¼ì²éÒѾ­°²×°µÄ°æ±¾ÊÇ·ñ¸üÐÂ
        while [ 1 ]
        do
            #±È½ÏVR°æ±¾ºÅ£¬²»ÏàͬÔòÌáʾÓû§¸²¸Ç°²×°
            if [ $VRVERSIONINSTALLED -ne $VRVERSIONINSTALLING ]
            then
                InstallDifferentVersionPrompt
                break
            fi

            #±È½ÏC°æ±¾ºÅ£¬²»ÏàͬÔòÌáʾÓû§¸²¸Ç°²×°
            if [ $CUSTOMIZEVERSIONINSTALLED -ne $CUSTOMIZEVERSIONINSTALLING ]
            then
                InstallDifferentVersionPrompt
                break
            fi

            #±È½ÏB°æ±¾ºÅ
            if [ $BUILDVERSIONINSTALLED -gt $BUILDVERSIONINSTALLING ]
            then
                #Èç¹ûÒÑ°²×°µÄB°æ±¾ºÅ½ÏУ¬ÔòÌáʾÓû§ÒѾ­°²×°Á˽Ïеĺǫ́°æ±¾£¬ÊÇ·ñ¼ÌÐø
                InstallOlderVersionPrompt
                break
            elif [ $BUILDVERSIONINSTALLED -lt $BUILDVERSIONINSTALLING ]
            then
                #Èç¹ûÒÑ°²×°µÄB°æ±¾ºÅ½ÏÀÏ£¬²»ÐèÒª¼ÌÐø±È½ÏD°æ±¾ºÍSP°æ±¾£¬Ö±½Ó¸²¸Ç°²×°
                InstallLaterVersionPrompt
                break
            fi

            #±È½ÏD°æ±¾ºÅ
            if [ $DEVELOPVERSIONINSTALLED -gt $DEVELOPVERSIONINSTALLING ]
            then
                #Èç¹ûÒÑ°²×°µÄD°æ±¾ºÅ½ÏУ¬ÔòÌáʾÓû§ÒѾ­°²×°Á˽Ïеĺǫ́°æ±¾£¬ÊÇ·ñ¼ÌÐø
                InstallOlderVersionPrompt
                break
            elif [ $DEVELOPVERSIONINSTALLED -lt $DEVELOPVERSIONINSTALLING ]
            then
                #Èç¹ûÒÑ°²×°µÄD°æ±¾ºÅ½ÏÀÏ£¬²»ÐèÒª¼ÌÐø±È½ÏSP°æ±¾£¬Ö±½Ó¸²¸Ç°²×°
                InstallLaterVersionPrompt
                break
            fi

            #±È½ÏSP°æ±¾ºÅ
            if [ $SPVERSIONINSTALLED -gt $SPVERSIONINSTALLING ]
            then
                #Èç¹ûÒÑ°²×°µÄSP°æ±¾ºÅ½ÏУ¬ÔòÌáʾÓû§ÒѾ­°²×°Á˽Ïеĺǫ́°æ±¾£¬ÊÇ·ñ¼ÌÐø
                InstallOlderVersionPrompt
                break
            elif [ $SPVERSIONINSTALLED -lt $SPVERSIONINSTALLING ]
            then
                #Èç¹ûÒÑ°²×°µÄSP°æ±¾ºÅ½ÏÀÏ£¬Ö±½Ó¸²¸Ç°²×°
                InstallLaterVersionPrompt
                break
            fi

            #×ßµ½Õâ±íʾËùÓа汾ºÅÒ»Ö£¬¸ø³öÌáʾÊÇ·ñ¸²¸Ç
            InstallSameVersionPrompt
            break
        done

        INSTALLPATH=`egrep "^path=" $CONFIG_FILE | awk -F '=' '{print $2}'`

    else
        #ÊäÈ밲װĿ¼
        echo -e "\n ${LPlsInputInstallPath[${LANGCODE}]}[${INSTALLPATH}]: \c"
        read ANS
        : ${ANS:="${INSTALLPATH}"}
        INSTALLPATH=${ANS}

        #¼ì²éĿ¼µÄºÏ·¨ÐÔ
        if [[ ${INSTALLPATH} != /* ]]
        then
            echo -e "\n${LInstallPath[${LANGCODE}]} ${LIllegal[${LANGCODE}]}"
            DisplayEndMsg
            exit
        fi

        #ʹ°²×°Ä¿Â¼ºÏÀí»¯
        if [ -d "${INSTALLPATH}" ]
        then
            INSTALLPATH=${INSTALLPATH}/${SOFTWARENAME}
        fi
    fi

    #´´½¨°²×°Ä¿Â¼
    if [ ! -d "${INSTALLPATH}" ]
    then
        mkdir ${INSTALLPATH}
    fi
    if [ ! -d "${INSTALLPATH}" ]
    then
        echo -e "\n${LCanNotCreateDir[${LANGCODE}]}: ${INSTALLPATH}"
        DisplayEndMsg
        exit
    fi

    echo -e "\n${LLocalPath[${LANGCODE}]}: ${INSTALLPATH}"
}

InstallLaterVersionPrompt()
{
    #а汾£¬ÌáʾÊÇ·ñÉý¼¶
    yes_or_no "\n${LInstallingVersionLaterThenInstalled[${LANGCODE}]}?" Y
    if [ ${?} -ne 0 ]
    then
        DisplayEndMsg
        exit
    fi
}

InstallSameVersionPrompt()
{
    #Èç¹ûÒÔÇ°ÒѾ­°²×°¹ýºǫ́ÔòÌáʾÊÇ·ñ¸²¸Ç
    yes_or_no "\n${LOverwriteInstalled[${LANGCODE}]}?" Y
    if [ ${?} -ne 0 ]
    then
        DisplayEndMsg
        exit
    fi
}

InstallOlderVersionPrompt()
{
    #°²×°µÄ°æ±¾±ÈϵͳÖеİ汾¾É£¬¸ø³öÌáʾ
    yes_or_no "\n${LInstallingVersionOlderThenInstalled[${LANGCODE}]}?" N
    if [ ${?} -ne 0 ]
    then
        DisplayEndMsg
        exit
    fi
}

InstallDifferentVersionPrompt()
{
    #Èç¹ûÒÔÇ°ÒѾ­°²×°¹ýºǫ́ÔòÌáʾÊÇ·ñ¸²¸Ç
    yes_or_no "\n${LOverwriteInstalled[${LANGCODE}]}?" Y
    if [ ${?} -ne 0 ]
    then
        DisplayEndMsg
        exit
    fi
}

#°²×°ºǫ́
InstallMobilePartner()
{
    # Madhu added to set the library path
    echo -e "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${INSTALLPATH} \n export LD_LIBRARY_PATH \n" > ${HOME}/.bash_profile

    echo -e -n "\n${LStartInstallPartner[${LANGCODE}]}"

    cd "${INSTALLPATH}"
#ÔÚ°²×°Â·¾¶Ï½âѹËõ°²×°°ü
# tar jxf ${TEMPWORKPATH}/MobilePartner.tar.bz2 >/dev/null 2>&1
    "${TEMPWORKPATH}/7zr" x -y ${TEMPWORKPATH}/MobilePartner.bin >/dev/null 2>&1
    "${TEMPWORKPATH}/7zr" x -y ${TEMPWORKPATH}/data.bin >/dev/null 2>&1
# chmod -R a+w "${INSTALLPATH}"/userdata
# chmod -R a+w "${INSTALLPATH}"/log
    chmod -R a+w "${INSTALLPATH}"/config

#ÔËÐÐÇý¶¯¹¤¾ß°²×°½Å±¾
    chmod -R a+x ./driver/*
    #./driver/install ${INSTALLPATH} >/dev/null 2>&1
    ./driver/install ${INSTALLPATH} .bin

#Joven 2009.09.03 add
#°²×°CommMgr²¢ÉèÖÃΪϵͳ·þÎñ
# chmod +x ./CommMgr/*
# cd CommMgr
# ./install_CommMgr ${INSTALLPATH} >/dev/null 2>&1
# cd ..

#copyÏà¹ØÎļþµ½ÏàӦĿ¼

    #¿½±´²¦ºÅÏà¹ØÎļþ
    chmod a+x ./sbin/*
    chmod -R a+w ./hw_pppd
    chmod -R a+x ./hw_pppd
    cp -rf ./hw_pppd /usr/local/

    #copy QT libs to Mobile Partner directory
    cp -lrf ${INSTALLPATH}/qtlib/lib*.so* ${INSTALLPATH}

    #copyÔÚÏßÉý¼¶ÐèÒªµÄ¶¯Ì¬¿âÎļþµ½ÏàӦĿ¼
    #copy only when UpdateDog directory exists
    if [ -d ${INSTALLPATH}/UpdateDog ]
    then
        cp -lrf ${INSTALLPATH}/qtlib/lib*.so* ${INSTALLPATH}/UpdateDog
        cp -lrf ${INSTALLPATH}/plugins/imageformats/libqgif.so ${INSTALLPATH}/UpdateDog/plugins/imageformats
        cp -lrf ${INSTALLPATH}/plugins/imageformats/libqico.so ${INSTALLPATH}/UpdateDog/plugins/imageformats
    fi

#uncommenting this to create /usr/local/hw_mobile_userdata/Mobile_Partner
    #¿½±´Óû§Êý¾ÝÎļþ¼Ð
   if [ ! -d ${USERDATA_PATH} ]
   then
       mkdir $USERDATA_PATH
       mkdir ${USERDATA_PATH}/${SOFTWARENAME}
       #20091112 c00106366 add - create userdata folder
       mkdir ${USERDATA_PATH}/${SOFTWARENAME}/userdata
       # do not create userdata directory.
       # cp -rf ./userdata ${USERDATA_PATH}/${SOFTWARENAME}
       chmod -R a+w ${USERDATA_PATH}
       chmod -R a+r ${USERDATA_PATH}
   else
       #Èç¹û´æÔÚÏàͬÈí¼þÃû³ÆµÄÓû§Êý¾Ý£¬²»¸²¸Ç
       if [ ! -d ${USERDATA_PATH}/${SOFTWARENAME} ]
       then
           mkdir ${USERDATA_PATH}/${SOFTWARENAME}
           #20091112 c00106366 add - create userdata folder
           mkdir ${USERDATA_PATH}/${SOFTWARENAME}/userdata
           # do not create userdata directory.
           # cp -rf ./userdata ${USERDATA_PATH}/${SOFTWARENAME}
           chmod -R a+w ${USERDATA_PATH}
           chmod -R a+r ${USERDATA_PATH}
       fi
   fi

   #20091112 c00106366 add - set the permission of userdata folder
   chmod -R a+rwx ${USERDATA_PATH}/${SOFTWARENAME}

   # create userdata/log directory for ui.
   # mkdir -p ${USERDATA_PATH}/${SOFTWARENAME}/log

    #ÐÞ¸ÄsudoersÎļþ
    grep -v "MobilePartner.sh" /etc/sudoers >/tmp/${TEMPFILE} 2>&1
    DELETECOMMENT="delete requiretty for hw_mobile"
    REQUIRETTY=`grep "${DELETECOMMENT}" /tmp/${TEMPFILE}`
    if [ "x${REQUIRETTY}" != "x" ]
    then
        REQUIRETTY=`echo "${REQUIRETTY}" | awk -F ',' '{printf $2}'`
    else
        REQUIRETTY=`grep "requiretty" /tmp/${TEMPFILE}`
        if [ "x${REQUIRETTY}" != "x" ]
        then
            sed -i "s/${REQUIRETTY}/# ,${REQUIRETTY},${DELETECOMMENT}/g" /tmp/${TEMPFILE} 2>/dev/null
        fi
    fi
    # Shashank: Defect fix AJ2D13470: Begin
    echo -e "ALL ALL=(ALL) NOPASSWD:ALL" >> /tmp/${TEMPFILE}

    # Madhu added a new batch file
    # Shashank [s72814] added to generate .bin file and to give access permissions in user mode: Begin
    # AJ2D14022 karthik exec ${INSTALLPATH}/MobilePartner.bin will now be put after the special steps for each distro.
    #echo -e "#!/bin/bash \n LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${INSTALLPATH} \n export LD_LIBRARY_PATH \n export PATH=/sbin:$PATH \n sudo LD_LIBRARY_PATH=${INSTALLPATH} \n exec ${INSTALLPATH}/MobilePartner.bin" > ${INSTALLPATH}/MobilePartner_Bat
    #DTS2010072902594 lkf26999 2010-8-9 Xserver path add to PATH
    echo -e "#!/bin/bash \n LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${INSTALLPATH} \n export LD_LIBRARY_PATH \n export PATH=/usr/bin/X11:/usr/X11R6/bin:/sbin:$PATH \n sudo LD_LIBRARY_PATH=${INSTALLPATH} \n" > ${INSTALLPATH}/MobilePartner_Bat
    #DTS2010072902594 modify end
    mv ${INSTALLPATH}/MobilePartner ${INSTALLPATH}/MobilePartner.bin
    mv ${INSTALLPATH}/MobilePartner_Bat ${INSTALLPATH}/MobilePartner

   chmod a+x ${INSTALLPATH}/MobilePartner
   chmod a+x ${INSTALLPATH}/MobilePartner.bin
   chmod 777 -R ${INSTALLPATH}/*

   # w00159557 2010-6-18 add for customization begin
   CURRENT_VERSION=$(grep VALUE "${INSTALLPATH}/SysConfig.dat" | head -n1 | cut -d = -f2 | tr -d "\015")
   VERSION_TO_REPLACE=$(grep version= "${INSTALLPATH}/RunInfo.ini" | head -n1)
   sed -e 's/'"${VERSION_TO_REPLACE}"'/version='"${CURRENT_VERSION}"'/' "${INSTALLPATH}/RunInfo.ini" > RunInfo.tmp
   mv -f RunInfo.tmp ${INSTALLPATH}/RunInfo.ini

   CURRENT_OPERATOR=$(grep operator "${INSTALLPATH}/SysConfig.dat" | head -n1 | cut -d = -f2 | tr -d "\015")
   OPERATOR_TO_REPLACE=$(grep operator= "${INSTALLPATH}/RunInfo.ini" | head -n1)
   sed -e 's/'"${OPERATOR_TO_REPLACE}"'/operator='"${CURRENT_OPERATOR}"'/' "${INSTALLPATH}/RunInfo.ini" > RunInfo.tmp
   mv -f RunInfo.tmp ${INSTALLPATH}/RunInfo.ini
   # w00159557 2010-6-18 add for customization end

   # Shashank [s72814] added to generate .bin file and to give access permissions in user mode: End
   # Shashank: Defect fix AJ2D13470: End
    cp -f /tmp/${TEMPFILE} /etc/sudoers

#±à¼­²¢´´½¨×ÀÃæÆô¶¯Í¼±êºÍ¿ªÊ¼²Ëµ¥Æô¶¯Í¼±ê
    sed "s#\${HW_SOFTWARENAME}#${SOFTWARENAMEINDESKTOP}#g" ./MobilePartner.desktop > /tmp/${TEMPFILE} 2>/dev/null
    sed "s#\${HW_INSTALLPATH}#${INSTALLPATH}#g" /tmp/${TEMPFILE} > ./MobilePartner.desktop 2>/dev/null
    if [ -d /root/Desktop ]
    then
        cp -f ./MobilePartner.desktop /root/Desktop

    else
        cp -f ./MobilePartner.desktop /root
    fi
    cp -f ./MobilePartner.desktop /usr/share/applications

#±à¼­²¢´´½¨¿ªÊ¼²Ëµ¥Ð¶ÔØͼ±ê
    sed "s#\${HW_SOFTWARENAME}#${SOFTWARENAMEINDESKTOP}#g" ./UninstallMobilePartner.desktop > /tmp/${TEMPFILE} 2>/dev/null
    sed "s#\${HW_INSTALLPATH}#${INSTALLPATH}#g" /tmp/${TEMPFILE} > ./UninstallMobilePartner.desktop 2>/dev/null

    cp -f ./UninstallMobilePartner.desktop /usr/share/applications

#±à¼­²¢´´½¨ÔËÐнű¾
    echo -e "#!/bin/bash" > ./MobilePartner.sh

# for Ubuntu
    UBUNTURELEASE=`grep Ubuntu /etc/issue 2>&1 | awk -F ' ' '{printf $1}'`
    if [ "x${UBUNTURELEASE}" = "xUbuntu" ]
    then
        if [ ! -d /usr/share/fonts/truetype/arphic ]
 then
            mkdir -p /usr/share/fonts/truetype/arphic
 fi
    fi

# for Debian
    DEBIANRELEASE=`grep Debian /etc/issue 2>&1 | awk -F ' ' '{printf $1}'`
    if [ "x${DEBIANRELEASE}" = "xDebian" ]
    then
        if [ ! -d /usr/share/fonts/truetype/arphic ]
 then
            mkdir -p /usr/share/fonts/truetype/arphic
 fi
    fi

# for OpenSuSE
    if [ -f /etc/SuSE-release ]
    then
        if [ ! -d /usr/share/fonts/truetype ]
 then
            mkdir -p /usr/share/fonts/truetype
 fi
        # AJ2D14022 karthik put this in our bat file.
        # echo -e "export DISPLAY=:0" >> ./MobilePartner.sh
        echo -e "export DISPLAY=:0" >> ${INSTALLPATH}/MobilePartner
    fi

#insert hook
    if [ -d /etc/pm/sleep.d ]
    then
        cp -f ${INSTALLPATH}/sbin/67hw_hook /etc/pm/sleep.d
        chmod +x /etc/pm/sleep.d/67hw_hook
    fi

# for jre compatibility
    echo -e "export LIBXCB_ALLOW_SLOPPY_LOCK=1" >> ./MobilePartner.sh

    # Shashank [s72814]: added for executing MobilePartner.bin file from MobilePartner.sh file: Begin
    echo -e "APPDIR=${INSTALLPATH}" >> ./MobilePartner.sh
    echo -e "cd \${APPDIR}" >> ./MobilePartner.sh
    echo -e "\${APPDIR}/MobilePartner.bin &" >> ./MobilePartner.sh

    # AJ2D14022 karthik now put the executable
    echo -e "exec ${INSTALLPATH}/MobilePartner.bin" >> ${INSTALLPATH}/MobilePartner

    # Shashank [s72814]: added for executing MobilePartner.bin file from MobilePartner.sh file: End
    chmod +x ./MobilePartner.sh
    chmod a+x ./MobilePartner

#±à¼­²¢´´½¨Ð¶Ôؽű¾
    sed -i "s/{LYouMustBeRoot}/${LYouMustBeRoot[${LANGCODE}]}/g" ./UninstallMobilePartner
    sed -i "s/{LInstallEnd}/${LInstallEnd[${LANGCODE}]}/g" ./UninstallMobilePartner
    sed -i "s/{LProgramRunning}/${LProgramRunning[${LANGCODE}]}/g" ./UninstallMobilePartner
    sed -i "s#{HOOK_FILE}#${HOOK_FILE}#g" ./UninstallMobilePartner
    sed -i "s#{INSTALLPATH}#${INSTALLPATH}#g" ./UninstallMobilePartner
    sed -i "s#{CONFIG_FILE}#${CONFIG_FILE}#g" ./UninstallMobilePartner
    if [ "x${REQUIRETTY}" != "x" ]
    then
        sed -i "s/{REQUIRETTY}/${REQUIRETTY}/g" ./UninstallMobilePartner
 sed -i "s/{DELETECOMMENT}/${DELETECOMMENT}/g" ./UninstallMobilePartner
    else
        grep -v {REQUIRETTY} ./UninstallMobilePartner > /tmp/${TEMPFILE}
 cp -f /tmp/${TEMPFILE} ./UninstallMobilePartner
    fi

    chmod +x ./UninstallMobilePartner

    DonePrompt "${LStartInstallPartner[${LANGCODE}]}"

    #echo -e "\n${SOFTWARENAMEINDESKTOP} ${LCompleteInstallPartner[${LANGCODE}]} ${INSTALLPATH}"

    #20100104 c00106366 add
    #After install succeed, create a new file to let onlineupdate know it's finished
    #This file should be delete by onlineupdate program
    touch "${USERDATA_PATH}/${SOFTWARENAME}/userdata/install.flg"

    #Çå³ý±¾µØÎļþ
# rm -rf ./userdata
    rm -rf ./hw_pppd
    rm -rf ./*.desktop

    rm -f /tmp/${TEMPFILE}
    rm -rf ${TEMPWORKPATH}
}

DonePrompt()
{
    LOGCHARNUM=`echo "$1" | wc -m`
    TERMCHARNUM=`stty size | awk -F ' ' '{printf $2}'`
    LOGCHARNUM=`expr $TERMCHARNUM - $LOGCHARNUM`
    echo "[ done ] " | awk '{printf "%"'"$LOGCHARNUM"'"s", $0}'
    echo -e ""
}

# /*ÌṩѡÔñÓïÑÔ*/
SelectLanguage()
{
    while :
    do
        case ${LANGCODE} in
            0)
                echo -e "\n\t1. ¼òÌåÖÐÎÄ"
                echo -e "\t2. Ó¢ÎÄ"
                echo -e "\n\tÇëÑ¡ÔñÓïÑÔ: [1]\c"
                read RESP
                : ${RESP:="1"}
            ;;
            *)
                echo -e "\n\t1. Simplified Chinese"
                echo -e "\t2. English"
                echo -e "\n\tPlease select Language: [2]\c"
                read RESP
                : ${RESP:="2"}
            ;;
        esac
        case ${RESP} in
            [1,2])
                LANGCODE=`expr ${RESP} - 1`
                return ${LANGCODE}
            ;;
            *)
                case ${LANGCODE} in
                    0)
                        echo -e - "\n\tÄã±ØÐëÑ¡Ôñ: 1, 2\n"
                    ;;
                    *)
                        echo -e "\n\tPlease select: 1, 2\n"
                    ;;
                esac
            ;;
        esac
    done
}

# /*ÏÔʾ³ÌÐòÆô¶¯Ê±µÄÐÅÏ¢*/
DisplayStartMsg()
{
    clear
}

# /*ÏÔʾ³ÌÐò½áÊøʱµÄÐÅÏ¢*/
DisplayEndMsg()
{
    cd "${BAKCURRENTPATH}"
    rm -rf "${TEMPWORKPATH}"
    echo -e "\n${LInstallEnd[${LANGCODE}]}"
    read -n 1
    clear
}

GenConfigFile()
{
    cd $INSTALLPATH
    echo "path=$INSTALLPATH" > $CONFIG_FILE
    echo "name=MobilePartner" >> $CONFIG_FILE
    echo "Exec=$INSTALLPATH/MobilePartner" >> $CONFIG_FILE
    echo "FullVersion=$FULLVERSION" >> $CONFIG_FILE

}

clear
CheckID
CheckRunning
#SelectLanguage
DisplayStartMsg
#µ±ÈÃÓû§Ñ¡Ôñ°²×°Ê±£¬Èçϲ¿·Ö´úÂëµ½Ó¦¸Ã·Åµ½whileÑ­»·ÖÐ
PreInstall
InstallMobilePartner
GenConfigFile
#luanying add 20081229
#echo "Download Programs finished!" > "$INSTALLPATH/lib/UpdateInstall/inputLog.txt"
DisplayEndMsg
exit 0

#²»ÈÃÓû§Ñ¡Ôñ°²×°£¬ÈçÏ´úÂëÎÞЧ
while :
do
    echo -e - "***\t\t${LMobilePartnerInstall[${LANGCODE}]}\t\t***\n"
    echo -e - "${LPlsSelect[${LANGCODE}]}\n"
    echo -e - "\t1) ${LInstallMP[${LANGCODE}]}"
    echo -e - "\t0) ${LQuitInstall[${LANGCODE}]}\n"
    echo -e - "Choice: [0]\c"
    read RESP
    : ${RESP:="0"}
    case ${RESP} in
        1)
             PreInstall
             InstallJRE
             InstallMobilePartner
             GenConfigFile
        ;;
        0)
            DisplayEndMsg
            exit 0
        ;;
        *)
            echo -e - "${LYouMustSelect[${LANGCODE}]}1, 0"
        ;;
    esac
done

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

My summary from the above:
The script that you provides seems to install some software from Huawei.
As this most probably is proprietary software, you cannot expect to get much support by the ubuntu community on it.

If you device is also from Huawei ( the lsusb output should answer that), then you might be able to use your device even without that software, because Ubuntu has built-in support for several device types from Huawei.

You still have not provided the output of the command lsusb. The output of that command delivers some kind of fingerprint of your device, which is important for the supporters to see. Please provide that output.

Revision history for this message
Sudeep Kulkarni (sudeepbkkulkarni) said :
#8

Here is the output of lsusb command as requested. I am extremely apologetic to have delayed it so long -

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 15d9:0a33 Dexon Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 12d1:1436 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

As is said, this device is indeed from Hauwei. In ubuntu netbook 10.01, it's recognised too. But I am unable to connect it despite providing all the necessary information in Network Manger. The s/w, as I said is successfully installed in Ubuntu 10.04, even though the manufacturer has support only for Ubuntu 9. Therefore I think that it should work also in ubuntu 10.01. I have also tried installing s/w for unsupported OS like Slax and have been successfull.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The lsusb output confirms that it is a Huawei device.

I see two possibilities to go on:
1. Try to get the Huawei device running without the proprietary software
2. Try to get the errors at installing the proprietary software solved (and hope that with that software the device will work well)

For option 1 it would be interesting to see logs from the steps that are executed by udev and other processes when you plug in the device. (Plug your device in, try to connect, and if it fails look at the end of /var/log/syslog for messages with respect to the modem device.) If network-manager-applet shows the possibility to select your mobile provider connection, I assume that the device is correctly recognized by the system. There should not be much missing for it to correctly work.

For option 2 it would be necessary to see the exact error messages that show up when trying to install the Huawei software (preferably by copy and paste). Most probably you do not have all required software installed. Maybe "sudo apt-get install build-essential linux-headers-2.6.35-22-generic" helps.

P.S. If you write Ubuntu 10.01 I assume you talk about 10.10, there is no 10.01 release.

Revision history for this message
Varghese Philip (philip-vk) said :
#10

Hello:

I bought a Tata Docomo 3G e-stick (model Huwaei E367) today.

I've installed it on Ubuntu 10.10 without using the supplied Linux install kit. This is what I did:

I assume Network Manager is installed and working for your existing network connections.

1. Plug in the 3G e-stick into a USB port.

2. Wait for about 30 seconds for Ubuntu to detect the device. Left click on the Network Manager. The following new entries will be displayed:
 TATA DOCOMO UMTS
 New Mobile Broadband (GSM) Connection ...
 (the first item above will be greyed out and cannot be clicked)

3. Click on "New Mobile Broadband (GSM) Connection ..." A dialog box will open

4. Click the "Forward" button. A list of countries will be displayed.

5. Select "India", and click the "Forward" button. A service provider list will be displayed.

6. DO NOT select "Tata Docomo" from the list. Instead, select the Radio Button at the bottom labeled "I can't find my provider and I wish to enter manually ..."

7. Enter "TATA DOCOMO UMTS" in the edit box provided. Click the "Forward" button. The "Choose Billing Plan" window will be displayed.

8. The drop-down list will have "My plan is not listed". In the edit box labeled "Select plan APN (Access Point Name) enter "tatadocomo3g"

9. Click the "Confirm" button and then the "Apply" button.

10. Left click the Network Manager. Under the "Available" heading for Mobile Broadband you should see "TATA DOCOMO UMTS connection" listed.

11. Click on this item. The 3G stick should connect within a few seconds.

I tried the speed test on www.speedtest.net. I got a dowload speed of 4+ Mbps.

Here are the connection details in Network Manager:
Number: *99#
Username: <blank> (no username)
Password: <blank> (no password)
APN: tatadocomo3g
Network ID: <blank> (no network id)
Type: 3G UMTS/HSPA
PIN: <blank> (no pin)

Note: The install kit provided with the 3G e-stick must be a ndiswrapper installation.

Regards

Revision history for this message
Sudeep Kulkarni (sudeepbkkulkarni) said :
#11

@Varghese Philip: What you told indeed works. Than you so much! Now I see where I went wrong - specifying the access point. Great.