How to configure OsTicket Tracking System in Linux

 OsTicket is an open source ticket management tool to a arise a ticket form customer. Its a commercial tool. Now we are going to install OsTicket Tracking system in your Linux machine.

Download a latest version of OsTicket system Download

It is download a zip file, After that follow the below steps.
open a terminal run the below commands.

sudo apt-get update
sudo apt-get install mysql-server-5.5 mysql-client-5.5
sudo apt-get install apache2
sudo apt-get install phpmyadmin
sudo apt-get install unzip
sudo apt-get install php5 php5-imap libapache2-mod-php5

this commands are recommended to configure the OsTicket system.

 after that goto following below commands

cd /var/www/
mkdir osticket
cd ~/Download/
unzip osTicket-vx.x.x.zip
sudo cp -r osTicket-vx.x.x/ /var/www/osticket/
cd include/
sudo cp ost-sampleconfig.php ost-config.php
sudo chmod 664 ost-config.php

open a web browser type the server ip[or]url name/osticket/

ost

ost1

ost2

ost3

ost4

ost5

I hope you this blog is helpful for you 😀

Youtube video upload using ubuntu command line

Youtube-upload is a command line script that using to upload a videos to your youtube account. This tool runs using Python

Where to download

click here to download youtube-upload

$ tar xvzf youtube-upload-VERSION.tgz
$ cd youtube-upload-VERSION
$ sudo python setup.py install

Dependencies

Before installing youtube-upload tool you must need to install  Python 2.6 or 2.7 and Python-gdata(>=1.2.4)

without installing python-gdata you get error like this

Traceback (most recent call last):
 File "setup.py", line 3, in 
 from youtube_upload import VERSION
 File "/home/vinoth/youtube_upload/youtube-upload-0.7.3/youtube_upload/__init__.py", line 1, in 
 from youtube_upload import * 
 File "/home/vinoth/youtube_upload/youtube-upload-0.7.3/youtube_upload/youtube_upload.py", line 48, in 
 import gdata.media
ImportError: No module named gdata.media

install python-gdata

What is python-gdata?

Python-gdata – Google Data Python client library

  • Distribution: Ubuntu 14.04.2 LTS
  • Repository: Ubuntu Universe i386
  • Package name: python-gdata
  • Package version: 2.0.14-2
  • Package architecture: all
  • Package type: deb
  • Binary package: python-gdata_2.0.14-2_all.deb
  • Source package: python-gdata
  • Installed size: 2,93 MB
  • Download size: 447,12 KB
    The GData (Google data) APIs provide a simple protocol for reading and writing data on the web.
    Each of the following Google services provides a Google data API:
    Base, Blogger, Calendar, Code Search, Contacts, Document List, Google Apps Provisioning, Notebook, Picasa Web Albums, Spreadsheets & YouTube.
    The Google data Python client library provides a library and source
    code that make it easy to access data through Google data APIs.
$sudo apt-get update
$sudo apt-get install python-gdata

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required: corosync libcfg6 libcmap4 libcorosync-common4 libcpg4 libibverbs1 libqb0
libquorum5 librdmacm1 libsam4 libtotem-pg5 libvotequorum6 libzookeeper-mt2
Use 'apt-get autoremove' to remove them.
Suggested packages: python-gdata-doc
The following NEW packages will be installed: python-gdata
0 upgraded, 1 newly installed, 0 to remove and 526 not upgraded.
Need to get 466 kB of archives.
After this operation, 2,856 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/universe python-gdata all 2.0.18+dfsg-1 [466 kB]
Fetched 466 kB in 30s (15.1 kB/s)
Selecting previously unselected package python-gdata.
(Reading database ... 237282 files and directories currently installed.)
Preparing to unpack .../python-gdata_2.0.18+dfsg-1_all.deb ...
Unpacking python-gdata (2.0.18+dfsg-1) ...
Setting up python-gdata (2.0.18+dfsg-1) ...

python-gdata module installed successfully.

Then again run this command inside the folder of youtube-upload

$ sudo python setup.py install

running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/youtube_upload
copying youtube_upload/__init__.py -> build/lib.linux-x86_64-2.7/youtube_upload
copying youtube_upload/youtube_upload.py -> build/lib.linux-x86_64-2.7/youtube_upload
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/youtube-upload -> build/scripts-2.7
changing mode of build/scripts-2.7/youtube-upload from 644 to 755
running install_lib
creating /usr/local/lib/python2.7/dist-packages/youtube_upload
copying build/lib.linux-x86_64-2.7/youtube_upload/__init__.py -> /usr/local/lib/python2.7/dist-packages/youtube_upload
copying build/lib.linux-x86_64-2.7/youtube_upload/youtube_upload.py -> /usr/local/lib/python2.7/dist-packages/youtube_upload
byte-compiling /usr/local/lib/python2.7/dist-packages/youtube_upload/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/youtube_upload/youtube_upload.py to youtube_upload.pyc
running install_scripts
copying build/scripts-2.7/youtube-upload -> /usr/local/bin
changing mode of /usr/local/bin/youtube-upload to 755
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/youtube_upload-0.7.3.egg-info

youtube upload tool is install successfully

Some Examples

$ youtube-upload --email=myemail@gmail.com --password=mypassword \
                 --title="A.S. Mutter" --description="A.S. Mutter plays Beethoven" \
                 --category=Music --keywords="mutter, beethoven" anne_sophie_mutter.flv
www.youtube.com/watch?v=pxzZ-fYjeYs

$youtube-upload --email=vc@gmail.com --password=****** --title="Myvideo" --description="$(my video )" --category=Music --keyword="MYvideo" sample.mp4

my: command not found
Login to Youtube API: email=vc@gmail.com', password='*********'
Start upload using a HTTP post: sample.mp4 -> https://uploads.gdata.youtube.com/action/FormDataUpload/AIwbFAQ5u5G6pVBOhu-HdaQgAJhyCtiFxnHaE9si15R-VNBIrF_ViGdN_z0WE--pdo8aEvsYdI-bBAoapjwyPA_tnKDMfEfODA
Install python-progressbar to see a nice progress bar
http://www.youtube.com/watch?v=pvhQbD-s_VA


$sudo pip install progressbar

Downloading/unpacking progressbar
 Downloading progressbar-2.2.tar.gz
 Running setup.py (path:/tmp/pip_build_root/progressbar/setup.py) egg_info for package progressbar
 
Installing collected packages: progressbar
 Running setup.py install for progressbar
 
Successfully installed progressbar
Cleaning up...

Thanks to Google code.

I hope you this blog is helpful for you 😀

Ubuntu 13.04 Raring Ringtail still getting updates

Ubuntu 13.04 (Raring Ringtail) has reached EOL (End-Of-Life) and

packages have been removed from the Ubuntu Official Repos. I tried to update, I got the following error

Ign http://ports.ubuntu.com raring Release.gpg
Ign http://ports.ubuntu.com raring-updates Release.gpg
Ign http://ports.ubuntu.com raring Release
Ign http://ports.ubuntu.com raring-updates Release
Err http://ports.ubuntu.com raring/main Sources 404 Not Found
Err http://ports.ubuntu.com raring/universe Soures 404 Not Found
Err http://ports.ubuntu.com raring/multiverse Sources 404 Not Found
Err http://ports.ubuntu.com raring/main armhf Packages 404 Not Found
Err http://ports.ubuntu.com raring/universe armhf Packages 404 Not Found
Err http://ports.ubuntu.com raring/multiverse armhf Packages 404 Not Found
Ign http://ports.ubuntu.com raring/main Translation-en_US
Ign http://ports.ubuntu.com raring/main Translation-en
Ign http://ports.ubuntu.com raring/multiverse Translation-en_US
Ign http://ports.ubuntu.com raring/multiverse Translation-en
Ign http://ports.ubuntu.com raring/universe Translation-en_US
Ign http://ports.ubuntu.com raring/universe Translation-en
Err http://ports.ubuntu.com raring-updates/main Sources 404 Not Found
Err http://ports.ubuntu.com raring-updates/universe Sources 404 Not Found
Err http://ports.ubuntu.com raring-updates/multiverse Sources 404 Not Found
Err http://ports.ubuntu.com raring-updates/main armhf Packages 404 Not Found
Err http://ports.ubuntu.com raring-updates/universe armhf Packages 404 Not Found
Err http://ports.ubuntu.com raring-updates/multiverse armhf Packages 404 Not Found
Ign http://ports.ubuntu.com raring-updates/main Translation-en_US
Ign http://ports.ubuntu.com raring-updates/main Translation-en
Ign http://ports.ubuntu.com raring-updates/multiverse Translation-en_US
Ign http://ports.ubuntu.com raring-updates/multiverse Translation-en
Ign http://ports.ubuntu.com raring-updates/universe Translation-en_US
Ign http://ports.ubuntu.com raring-updates/universe Translation-en
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring/main/source/Sources 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring/universe/source/Sources 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring/multiverse/source/Sources 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring/main/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring/universe/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring/multiverse/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring-updates/main/source/Sources 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring-updates/universe/source/Sources 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring-updates/multiverse/source/Sources 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring-updates/main/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring-updates/universe/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/raring-updates/multiverse/binary-armhf/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

I tried to find packages on other sites. I found that the EOL release packages are moved in old-releases.ubuntu.com

You edit the /etc/apt/sources.list file. Remove the previous line and insert the following new lines:

sudo nano /etc/apt/sources.list

deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse

then save the file

sudo apt-get update.

The concept is valid for each release passed in EOL. it’s enough to substitute the name of release /etc/apt/sources.list file (in our case it is raring)

I  hope you this blog is helpful for you 😀

WordPress Permalinks is not work on localhost Ubuntu 12.10 | 13.04 | 13.10 | 14.04

WordPress permalink are not working, except for default option. you are facing this problem means please follow this blog.

Its very simple steps to work the custom permalinks or post name permalinks.

you are install WordPress is first time on Ubuntu. Please do this following steps to enable the permalink in localhost.

This commands you may be use for Ubuntu 12.10 | 13.04 | 13.10 | 14.04

sudo vi /etc/apache2/sites-available/000-default.conf

edit this file add this line after the DocumentRoot /var/www  line:

<Directory/var/www>
AllowOverride All
</Directory>

after adding this line you should run this command

sudo a2enmod rewrite

set up the file /var/www/.htaccess  and run as

sudo chmod 664/var/www/.htaccess
sudo chown www-data:www-data /var/www/.htaccess

your .htaccess file is like this

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ -[L]
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ./wordpress/index.php [L]
</IfModule>
# END WordPress

after do this command you should restart your apache server

sudo service apache2 restart

 

I hope you this blog is helpful for you 🙂

 

 

Install Skype in Ubuntu 12.10 | 13.04 | 13.10| 14.04

Skype brings business people together, helping your business, overcome the barrier cost, distance and technology. It has no time to reach your colleagues. It  is one of an easiest tool to make a Free Video Call. It is also support IM, Chat and Screen sharing on Ubuntu & Windows both platforms. Now Skype 4.2 is latest version is available for Ubuntu users in Canonical Partner Repository. You can install this latest version in Ubuntu 12.10 | 13.04 | 13.010 | 14.04, by adding this PPA to your system repository. to add this Canonical Partner Repository to your Ubuntu system repository.

Copy and Paste the following commands.

Open your Terminal [ctrl+alt+t] an use the following commands to add this PPA.

 

Skype for Ubuntu 14.04

sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ trusty partner' >> /etc/apt/sources.list.d/canonical_partner.list"

Skype for Ubuntu 13.10

sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ saucy partner' >> /etc/apt/sources.list.d/canonical_partner.list"

Skype for Ubuntu 13.04

sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ raring partner' >> /etc/apt/sources.list.d/canonical_partner.list"

Skype for Ubuntu 12.10

sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ quantal partner' >> /etc/apt/sources.list.d/canonical_partner.list"

After add this above command, you should update your system repository to using this bellow command in the termianl

sudo apt-get update

Once update is finish, You should following this command to install Skype4.2 in ubuntu 12.10 | 13.04 | 13.10 | 14.04\

sudo apt-get install skype

skype

type “Y’ when terminal ask. That’s it.

Now Skype 4.2 is installed in your Ubuntu system.

Now you open the search window [alt+f2] or click the Dash in your home utility and type “skype” you will get the Skype application

First time opening the Skype it ask for “skype terms of use” you need to click in “I Agree”.

Skype-Ubuntu12

 

If you have account ins Skype you can directly login or else you should create an account in Skype.

I hope this blog is more helpful for you  🙂

How to back up a boot-able sd card to another sd card

How to make a bootable sd card to make an another sd card and backup the sd card image

It is very simple way to take the back up the bootable sd card using linux operating system.

plug the sd card to your computer using sd card reader.

$dmesg
[ 31.556064] usb 2-2: new high-speed USB device number 3 using ehci-pci
[ 31.688949] usb 2-2: New USB device found, idVendor=12d1, idProduct=14fe
[ 31.688956] usb 2-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 31.688959] usb 2-2: Product: HUAWEI Mobile
[ 31.688962] usb 2-2: Manufacturer: HUAWEI
[ 31.767838] usb-storage 2-2:1.0: USB Mass Storage device detected
[ 31.767930] scsi6 : usb-storage 2-2:1.0
[ 31.768030] usb-storage 2-2:1.1: USB Mass Storage device detected
[ 31.768221] scsi7 : usb-storage 2-2:1.1
[ 31.768290] usbcore: registered new interface driver usb-storage
[ 32.764712] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 32.768079] sr1: scsi-1 drive
[ 32.768383] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 32.768514] sr 6:0:0:0: Attached scsi generic sg2 type 5
[ 32.770148] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 32.772460] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 32.773505] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[ 333.302757] usb 2-2: USB disconnect, device number 3
[ 385.785124] r8169 0000:09:00.0 eth0: link up
[ 385.785139] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 398.706478] r8169 0000:09:00.0 eth0: link down
[ 400.863146] r8169 0000:09:00.0 eth0: link up
[ 1212.397273] mmc0: new SD card at address aaaa
[ 1212.412069] mmcblk0: mmc0:aaaa SU02G 1.84 GiB
[ 1212.414083] mmcblk0: p1
[ 1212.509030] mmcblk0: error -110 transferring data, sector 3862264, nr 8, cmd response 0x900, card status 0x80000b00
[ 1212.509039] mmcblk0: retrying using single block read
To find the name device name of your sd card "mmcblk0" 

To backup the sd card data in to your home folder.

$sudo dd if=/dev/mmcblk0 of=~/sd-card-copy.img
$cd ~
$ll

Make sure to check the image memory size.

To restore the data and make a boot-able memory card.

$sudo dd bs=1M if=~/sd-card-copy.img of=/dev/mmcblk0

How to install dropbox in ubuntu – simple method

Install Dropbox  in Ubuntu using a simple method

Open a terminal

Add this Dropbox’s repository key

sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E

Add Dropbox’s repository

sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main"

Update and install Dropbox

sudo apt-get update && sudo apt-get install nautilus-dropbox

Note: This command is applicable for all version on Ubuntu (upto Ubuntu 13.10)

 

Huawei E303C 3G Modem is working with Ubuntu 13.04 & 13.10 USB 3.0

I am using Ubuntu 13.04 64-bit and i have a Huawei E303c 3G modem also. This 3G dongle is doesn’t work with USB 3.0. Its works fine with USB 2.0 in the same version of OS. Once i connect this dongle in USB 3.o its not detected after i start to watching dmesg syslog

Syslog log output:

Dec 27 11:05:30 vinod-lap pulseaudio[2039]: [pulseaudio] pid.c: Daemon already running.
Dec 27 11:06:17 vinod-lap kernel: [ 117.746845] usb 3-1: new high-speed USB device number 2 using xhci_hcd
Dec 27 11:06:17 vinod-lap kernel: [ 117.765439] usb 3-1: New USB device found, idVendor=12d1, idProduct=14fe
Dec 27 11:06:17 vinod-lap kernel: [ 117.765456] usb 3-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Dec 27 11:06:17 vinod-lap kernel: [ 117.765466] usb 3-1: Product: HUAWEI Mobile
Dec 27 11:06:17 vinod-lap kernel: [ 117.765475] usb 3-1: Manufacturer: HUAWEI
Dec 27 11:06:17 vinod-lap mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb3/3-1"
Dec 27 11:06:17 vinod-lap mtp-probe: bus: 3, device: 2 was not an MTP device
Dec 27 11:06:17 vinod-lap kernel: [ 117.848376] usb-storage 3-1:1.0: USB Mass Storage device detected
Dec 27 11:06:17 vinod-lap kernel: [ 117.848463] scsi6 : usb-storage 3-1:1.0
Dec 27 11:06:17 vinod-lap kernel: [ 117.848618] usb-storage 3-1:1.1: USB Mass Storage device detected
Dec 27 11:06:17 vinod-lap kernel: [ 117.848711] scsi7 : usb-storage 3-1:1.1
Dec 27 11:06:17 vinod-lap kernel: [ 117.848870] usbcore: registered new interface driver usb-storage
Dec 27 11:06:18 vinod-lap kernel: [ 118.847866] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Dec 27 11:06:18 vinod-lap kernel: [ 118.848068] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Dec 27 11:06:18 vinod-lap kernel: [ 118.849518] sr1: scsi-1 drive
Dec 27 11:06:18 vinod-lap kernel: [ 118.849940] sr 6:0:0:0: Attached scsi CD-ROM sr1
Dec 27 11:06:18 vinod-lap kernel: [ 118.850243] sr 6:0:0:0: Attached scsi generic sg2 type 5
Dec 27 11:06:18 vinod-lap kernel: [ 118.851804] sd 7:0:0:0: Attached scsi generic sg3 type 0
Dec 27 11:06:18 vinod-lap kernel: [ 118.858372] sd 7:0:0:0: [sdb] Attached SCSI removable disk
Dec 27 11:07:08 vinod-lap kernel: [ 168.986994] usb 3-1: USB disconnect, device number 2
Dec 27 11:07:20 vinod-lap kernel: [ 180.838089] usb 3-1: new high-speed USB device number 3 using xhci_hcd
Dec 27 11:07:20 vinod-lap kernel: [ 180.856726] usb 3-1: New USB device found, idVendor=12d1, idProduct=14fe
Dec 27 11:07:20 vinod-lap kernel: [ 180.856737] usb 3-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Dec 27 11:07:20 vinod-lap kernel: [ 180.856743] usb 3-1: Product: HUAWEI Mobile
Dec 27 11:07:20 vinod-lap kernel: [ 180.856748] usb 3-1: Manufacturer: HUAWEI
Dec 27 11:07:20 vinod-lap kernel: [ 180.859164] usb-storage 3-1:1.0: USB Mass Storage device detected
Dec 27 11:07:20 vinod-lap kernel: [ 180.859338] scsi8 : usb-storage 3-1:1.0
Dec 27 11:07:20 vinod-lap kernel: [ 180.859608] usb-storage 3-1:1.1: USB Mass Storage device detected
Dec 27 11:07:20 vinod-lap kernel: [ 180.859753] scsi9 : usb-storage 3-1:1.1
Dec 27 11:07:20 vinod-lap mtp-probe: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb3/3-1"
Dec 27 11:07:20 vinod-lap mtp-probe: bus: 3, device: 3 was not an MTP device
Dec 27 11:07:21 vinod-lap kernel: [ 181.859081] scsi 8:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Dec 27 11:07:21 vinod-lap kernel: [ 181.859342] scsi 9:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Dec 27 11:07:21 vinod-lap kernel: [ 181.862222] sr1: scsi-1 drive
Dec 27 11:07:21 vinod-lap kernel: [ 181.862618] sr 8:0:0:0: Attached scsi CD-ROM sr1
Dec 27 11:07:21 vinod-lap kernel: [ 181.862856] sr 8:0:0:0: Attached scsi generic sg2 type 5
Dec 27 11:07:21 vinod-lap kernel: [ 181.864133] sd 9:0:0:0: Attached scsi generic sg3 type 0
Dec 27 11:07:21 vinod-lap kernel: [ 181.865678] sd 9:0:0:0: [sdb] Attached SCSI removable disk
Dec 27 11:07:22 vinod-lap usb_modeswitch: switching device 12d1:14fe on 003/003
Dec 27 11:07:22 vinod-lap kernel: [ 182.373400] usb 3-1: USB disconnect, device number 3
Dec 27 11:07:29 vinod-lap kernel: [ 189.609886] usb 3-1: new high-speed USB device number 4 using xhci_hcd
Dec 27 11:07:29 vinod-lap kernel: [ 189.628851] usb 3-1: New USB device found, idVendor=12d1, idProduct=1506
Dec 27 11:07:29 vinod-lap kernel: [ 189.628856] usb 3-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Dec 27 11:07:29 vinod-lap kernel: [ 189.628858] usb 3-1: Product: HUAWEI Mobile
Dec 27 11:07:29 vinod-lap kernel: [ 189.628861] usb 3-1: Manufacturer: HUAWEI
Dec 27 11:07:29 vinod-lap kernel: [ 189.631893] usb-storage 3-1:1.4: USB Mass Storage device detected
Dec 27 11:07:29 vinod-lap kernel: [ 189.631953] scsi10 : usb-storage 3-1:1.4
Dec 27 11:07:29 vinod-lap kernel: [ 189.632082] usb-storage 3-1:1.5: USB Mass Storage device detected
Dec 27 11:07:29 vinod-lap kernel: [ 189.632125] scsi11 : usb-storage 3-1:1.5
Dec 27 11:07:29 vinod-lap mtp-probe: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb3/3-1"
Dec 27 11:07:29 vinod-lap mtp-probe: bus: 3, device: 4 was not an MTP device
Dec 27 11:07:29 vinod-lap usb_modeswitch: switched to 12d1:1506 on 003/003

Dmesg output:

[ 20.962471] wlan0: authenticate with 94:0c:6d:eb:fd:be
[ 20.985107] wlan0: send auth to 94:0c:6d:eb:fd:be (try 1/3)
[ 20.987008] wlan0: authenticated
[ 20.989488] wlan0: associate with 94:0c:6d:eb:fd:be (try 1/3)
[ 20.993712] wlan0: RX AssocResp from 94:0c:6d:eb:fd:be (capab=0x431 status=0 aid=1)
[ 20.993767] wlan0: associated
[ 20.993776] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 21.191743] init: plymouth-stop pre-start process (1114) terminated with status 1
[ 117.746845] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[ 117.765439] usb 3-1: New USB device found, idVendor=12d1, idProduct=14fe
[ 117.765456] usb 3-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 117.765466] usb 3-1: Product: HUAWEI Mobile
[ 117.765475] usb 3-1: Manufacturer: HUAWEI
[ 117.848376] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 117.848463] scsi6 : usb-storage 3-1:1.0
[ 117.848618] usb-storage 3-1:1.1: USB Mass Storage device detected
[ 117.848711] scsi7 : usb-storage 3-1:1.1
[ 117.848870] usbcore: registered new interface driver usb-storage
[ 118.847866] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 118.848068] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 118.849518] sr1: scsi-1 drive
[ 118.849940] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 118.850243] sr 6:0:0:0: Attached scsi generic sg2 type 5
[ 118.851804] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 118.858372] sd 7:0:0:0: [sdb] Attached SCSI removable disk

I created the appropriate mobile broadband connection manually, but I cannot enable it in network manager, since the device is not recognized as mobile broadband. It has some problem in USB mode switch.

After that i found solution in a UBUNTU form,

I follow this commands,

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wvdial 
sudo apt-get install usb-modeswitch usb-modeswitch-data
sudo apt-get update
sudo apt-get upgrade

After that finish the upgrade and reboot my computer and i connect my USB modem in USB 3.0 port

start watching dmesg and syslog.

syslog output:

Dec 27 11:07:29 vinod-lap kernel: [ 189.694875] usbcore: registered new interface driver usbserial
Dec 27 11:07:29 vinod-lap kernel: [ 189.695197] usbcore: registered new interface driver usbserial_generic
Dec 27 11:07:29 vinod-lap kernel: [ 189.695423] usbserial: USB Serial support registered for generic
Dec 27 11:07:29 vinod-lap kernel: [ 189.722654] usbcore: registered new interface driver option
Dec 27 11:07:29 vinod-lap kernel: [ 189.723320] usbserial: USB Serial support registered for GSM modem (1-port)
Dec 27 11:07:29 vinod-lap kernel: [ 189.723434] option 3-1:1.0: GSM modem (1-port) converter detected
Dec 27 11:07:29 vinod-lap kernel: [ 189.723997] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
Dec 27 11:07:29 vinod-lap kernel: [ 189.724038] option 3-1:1.2: GSM modem (1-port) converter detected
Dec 27 11:07:29 vinod-lap kernel: [ 189.724172] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
Dec 27 11:07:29 vinod-lap kernel: [ 189.724195] option 3-1:1.3: GSM modem (1-port) converter detected
Dec 27 11:07:29 vinod-lap kernel: [ 189.724317] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
Dec 27 11:07:29 vinod-lap kernel: [ 189.743443] usb 3-1: MAC-Address: 58:2c:80:13:92:63
Dec 27 11:07:29 vinod-lap kernel: [ 189.743954] cdc_ncm 3-1:1.1 wwan0: register 'cdc_ncm' at usb-0000:05:00.0-1, Mobile Broadband Network Device, 58:2c:80:13:92:63
Dec 27 11:07:29 vinod-lap kernel: [ 189.743991] usbcore: registered new interface driver cdc_ncm
Dec 27 11:07:29 vinod-lap modem-manager[732]:  (ttyUSB0) opening serial port...
Dec 27 11:07:29 vinod-lap modem-manager[732]:  (ttyUSB0): port attributes not fully set
Dec 27 11:07:29 vinod-lap NetworkManager[990]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb3/3-1/3-1:1.1/net/wwan0, iface: wwan0)
Dec 27 11:07:29 vinod-lap NetworkManager[990]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb3/3-1/3-1:1.1/net/wwan0, iface: wwan0): no ifupdown configuration found.
Dec 27 11:07:30 vinod-lap kernel: [ 190.630898] scsi 10:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Dec 27 11:07:30 vinod-lap kernel: [ 190.630938] scsi 11:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Dec 27 11:07:30 vinod-lap kernel: [ 190.632144] sr1: scsi-1 drive
Dec 27 11:07:30 vinod-lap kernel: [ 190.632284] sr 10:0:0:0: Attached scsi CD-ROM sr1
Dec 27 11:07:30 vinod-lap kernel: [ 190.632356] sr 10:0:0:0: Attached scsi generic sg2 type 5
Dec 27 11:07:30 vinod-lap kernel: [ 190.632563] sd 11:0:0:0: Attached scsi generic sg3 type 0
Dec 27 11:07:30 vinod-lap kernel: [ 190.634193] sd 11:0:0:0: [sdb] Attached SCSI removable disk
Dec 27 11:07:30 vinod-lap usb_modeswitch[2288]: usb_modeswitch: switched to 12d1:1506 on 3/4
Dec 27 11:07:34 vinod-lap modem-manager[732]:  (ttyUSB0) closing serial port...
Dec 27 11:07:34 vinod-lap modem-manager[732]:  (ttyUSB0) serial port closed
Dec 27 11:07:34 vinod-lap modem-manager[732]:  (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb3/3-1 claimed port ttyUSB0
Dec 27 11:07:35 vinod-lap modem-manager[732]:  (ttyUSB2) opening serial port...
Dec 27 11:07:35 vinod-lap modem-manager[732]:  (ttyUSB2): port attributes not fully set
Dec 27 11:07:35 vinod-lap modem-manager[732]:  (ttyUSB1) opening serial port...
Dec 27 11:07:35 vinod-lap modem-manager[732]:  (ttyUSB1): port attributes not fully set
Dec 27 11:07:37 vinod-lap modem-manager[732]:  (ttyUSB2) closing serial port...
Dec 27 11:07:37 vinod-lap modem-manager[732]:  (ttyUSB2) serial port closed
Dec 27 11:07:37 vinod-lap modem-manager[732]:  (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/usb3/3-1 claimed port ttyUSB2
Dec 27 11:07:48 vinod-lap modem-manager[732]:  (ttyUSB1) closing serial port...
Dec 27 11:07:48 vinod-lap modem-manager[732]:  (ttyUSB1) serial port closed
Dec 27 11:07:48 vinod-lap modem-manager[732]:  (ttyUSB1) opening serial port...
Dec 27 11:07:54 vinod-lap modem-manager[732]:  (ttyUSB1) closing serial port...
Dec 27 11:07:54 vinod-lap modem-manager[732]:  (ttyUSB1) serial port closed
Dec 27 11:07:54 vinod-lap modem-manager[732]:  (ttyUSB2) opening serial port...
Dec 27 11:07:54 vinod-lap modem-manager[732]:  (ttyUSB2): port attributes not fully set
Dec 27 11:07:55 vinod-lap NetworkManager[990]:  (ttyUSB0): failed to look up interface index
Dec 27 11:07:55 vinod-lap NetworkManager[990]:  (ttyUSB0): new GSM/UMTS device (driver: 'option1' ifindex: 0)
Dec 27 11:07:55 vinod-lap NetworkManager[990]:  (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/2
Dec 27 11:07:55 vinod-lap NetworkManager[990]:  (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Dec 27 11:07:55 vinod-lap NetworkManager[990]:  (ttyUSB0): deactivating device (reason 'managed') [2]
Dec 27 11:07:55 vinod-lap NetworkManager[990]:  (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Dec 27 11:07:55 vinod-lap modem-manager[732]:  (ttyUSB2) closing serial port...
Dec 27 11:07:55 vinod-lap modem-manager[732]:  (ttyUSB2) serial port closed
Dec 27 11:17:01 vinod-lap CRON[2463]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Dec 27 11:17:50 vinod-lap anacron[2544]: Anacron 2.3 started on 2013-12-27

Finally i got it and it detected  as ttyUSB device and network-manager options also enabled.

It is recognizes as usb mobile broadband modem as ethernet connection. I created the appropriate mobile broadband connection manually,

Thanks for UBUNTU Forum