Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Hardware => Téma založeno: pablo_escobar 21 Července 2010, 19:42:40

Název: Huawei 1752
Přispěvatel: pablo_escobar 21 Července 2010, 19:42:40
Prosim Vas, pouzivate niekto modem Huawei 1752?...Mam mobilny internet od Orange a skusal som nadstavit tento modem v Ubuntu 10.04 podla tohto navodu: http://www.blogcatalog.com/blog/iwrite-2/dbbfb38ae5ef9ccef8540aad7f9edbd6 No zial akosi neuspesne. nakopiroval som do usb_modeswitch.conf ten kod, hodil do terminalu sudo usb_modeswitch a nic :'(..Uz som zufaly z toho.
Název: Re: Huawei 1752
Přispěvatel: Peterx 22 Července 2010, 11:00:23
Odpoved je jednoducha:

http://www.draisberghof.de/usb_modeswitch/

Len si riadne nastuduj instrukcie. Konfiguraky netreba nijako upravovat.
Název: Re: Huawei 1752
Přispěvatel: pablo_escobar 22 Července 2010, 17:40:02
Vďaka...Prave to pozeram. Tak preinstaloval som este raz ten usb-modeswitch (novsiu verziu z depozitarov, cez centrum software ubuntu) aj usb-modeswitch data, dointaloval som aj libusb.dev no za boha neviem co teraz dalej stym. Zapojim ten modem do usb zapnem terminal, napisem usb_modeswitch a nič, toto mi to vyhadzuje:Error: Could not find file /etc/usb-modeswitch.conf . Dal som si teda usb_modeswitch -h help a naseil som tam prikaz -H (huawei mode), tak som skusil velke H a vypisuje zas: No default vendor/product ID given. Aborting....Ja fuckt neviem čo s tým, či som tak sprostý, alebo tak blbo rozumiem anglicky alebo čo, no neviem aký príkaz tam zadať aby som ten modem rozbehol :-[.

Název: Re: Huawei 1752
Přispěvatel: Peterx 23 Července 2010, 07:53:38
No problem je v tom ze v repozitaroch je starsia verzia. Treba ju dat uplne prec a nainstalovat podla navodu na stranke.
Název: Re: Huawei 1752
Přispěvatel: pablo_escobar 23 Července 2010, 09:16:02
 Natahal som tie baliky tar.bz2 a 097_i386.deb a doinstaloval "tcl" ako je v tom navode. Vygooglil som si aj navod ako sa instaluju programy zo zdrojových kodov. Chcel som ten prvy balik  rozbalit a instalovat tak som hodil do terminalu prikaz a vypisalo toto:
sudo tar xjf usb-modeswitch-1.1.3.tar.bz2
tar: usb-modeswitch-1.1.3.tar.bz2: Nie je možné open: No such file or directory
tar: Z chyby sa nie je možné zotaviť: ukončuje sa
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
Čo som spravil prosim ta zle? Toto asi fakt nezvladnem ani inštalovať.
Název: Re: Huawei 1752
Přispěvatel: Peterx 23 Července 2010, 09:54:07
Aby to nebolo komplikovane, ten subor otvor v archive manageri. Nasledne ho rozbal niekam.
Otvor si terminal a chod do adresara kde si to rozbalil.

A potom uz ako je to na stranke:
How to install
If you have an earlier version installed, de-installation is recommended ("make uninstall"). Several file locations changed in 1.1.0 and after, old ones might be orphaned if not taken care of.

Important: you need "tcl" for the wrapper script to work; if you enter "tclsh" and you get a "%" prompt, you are set (to exit enter "exit"). The "tcl" package is part of all distributions I know.

Unpack the source file of the program (who might have thought!). In the newly created directory run as root or superuser:

# make install

This installs the wrapper script for udev, a config file, the man page and the freshly compiled binary.
Now do the same for the data package. It will install the config files in /etc/usb_modeswitch.d and the udev rule file in /lib/udev/rules.d.
You are set already; if your device is known, you should be able to just plug it and use it. If it doesn't work right away we'll find out why.

For manual use just install the program. Work with the command line interface or with the original setup reference file. To do the latter you put "usb-modeswitch.setup" into "/etc" and edit it according to your hardware. It's heavily commented and should tell you what to do.
The setup file can have any name and place; just tell usb_modeswitch how to find it with the -c parameter.

Manual use is intended for testing and analyzing. See next paragraph.