Results 1 to 2 of 2

Thread: Install usb_modeswitch from source code

  1. #1
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Install usb_modeswitch from source code

    Installing usb_modeswitch from source code:
    The latest version now is 1.4.4 for usb_modeswitch & the latest data package released 2010-08-26 , so check usb_modeswitch website for the latest release.

    1- Install dependencies:
    Code:
    sudo aptitude install libusb-dev
    2- Download usb_modeswitch & extract:
    Code:
    wget http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.4.tar.bz2
    tar -xvf usb-modeswitch-1.1.4.tar.bz2
    3- Install usb_modeswitch:
    Code:
    cd usb-modeswitch-1.1.4
    sudo make install
    4- Download & extract usb_modeswitch-data:
    Code:
    wget http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20100826.tar.bz2
    tar -xvf usb-modeswitch-data-20100826.tar.bz2
    5- Edit Make file:
    Code:
    cd usb-modeswitch-data-20100826
    sudo gedit  Makefile
    add the following two lines after RULESDIR = $(DESTDIR)/lib/udev/rules.d :
    Code:
    UDEVDIR     = $(DESTDIR)/lib/udev 
    UDEVDIR     = $(DESTDIR)/etc/udev
    6- Install usb_modeswitch-data:
    Code:
    sudo make files-install

  2. #2
    Join Date
    Oct 2011
    Beans
    1

    Angry Re: Install usb_modeswitch from source code

    baaska@ubuntu:~/usb-modeswitch-1.1.4$ cd usb-modeswitch-data-20111023
    baaska@ubuntu:~/usb-modeswitch-1.1.4/usb-modeswitch-data-20111023$ sudo gedit Makefile
    baaska@ubuntu:~/usb-modeswitch-1.1.4/usb-modeswitch-data-20111023$ sudo make files-install
    install -d /usr/share/usb_modeswitch
    install -d /etc/usb_modeswitch.d
    install -D --mode=644 40-usb_modeswitch.rules /lib/udev/rules.d/40-usb_modeswitch.rules


    now how to run
    mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109


    this is not running

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •