Adenauer, tentei sua dica com o script, mas continua ocorrendo comigo o seguinte. O modem para o wvdial ou gnome-ppp não está conectado no device. Vejam as saídas das minha tentativas:
WVCONF: /home/luciano/.wvdial.conf GNOME PPP: Conectando... GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!" GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.60 GNOME PPP: STDERR: --> Cannot open /dev/modem: No such file or directory GNOME PPP: STDERR: --> Cannot open /dev/modem: No such file or directory GNOME PPP: STDERR: --> Cannot open /dev/modem: No such file or directory GNOME PPP: Unable to KILL wvdial process! GNOME PPP: Conectando... GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!" GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.60 GNOME PPP: STDERR: --> Cannot open /dev/ttyS0: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS0: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS0: Input/output error GNOME PPP: Unable to KILL wvdial process! GNOME PPP: Conectando... GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!" GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.60 GNOME PPP: STDERR: --> Cannot open /dev/ttyS1: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS1: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS1: Input/output error GNOME PPP: Unable to KILL wvdial process! GNOME PPP: Conectando... GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!" GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.60 GNOME PPP: STDERR: --> Cannot open /dev/ttyS2: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS2: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS2: Input/output error GNOME PPP: Unable to KILL wvdial process! GNOME PPP: Conectando... GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!" GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.60 GNOME PPP: STDERR: --> Cannot open /dev/ttyS3: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS3: Input/output error GNOME PPP: STDERR: --> Cannot open /dev/ttyS3: Input/output error GNOME PPP: Unable to KILL wvdial process! GNOME PPP: Conectando... GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!" GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.60 GNOME PPP: STDERR: --> Cannot open /dev/ttyUSB0: Invalid argument GNOME PPP: STDERR: --> Cannot open /dev/ttyUSB0: Invalid argument GNOME PPP: STDERR: --> Cannot open /dev/ttyUSB0: Invalid argument GNOME PPP: Unable to KILL wvdial process! ### Ao tentar auto detectar: #### GNOME PPP: STDERR: Modem Port Scan<*1>: S0 S1 S2 S3 GNOME PPP: STDOUT: GNOME PPP: STDERR: ttyUSB0<Info>: Invalid argument GNOME PPP: STDOUT: Scanning your serial ports for a modem. GNOME PPP: STDERR: Modem Port Scan<*1>: USB0 GNOME PPP: STDOUT: GNOME PPP: STDERR: ttyUSB1<Info>: Exec format error GNOME PPP: STDERR: Modem Port Scan<*1>: USB1 GNOME PPP: STDERR: ttyUSB2<Info>: Exec format error GNOME PPP: STDERR: Modem Port Scan<*1>: USB2 GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port. GNOME PPP: STDERR: ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud GNOME PPP: STDERR: ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud GNOME PPP: STDERR: ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. GNOME PPP: STDERR: ttyUSB4<Info>: Exec format error GNOME PPP: STDERR: Modem Port Scan<*1>: USB4 GNOME PPP: STDERR: ttyUSB5<Info>: Exec format error GNOME PPP: STDERR: Modem Port Scan<*1>: USB5 GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port. GNOME PPP: STDERR: ttyUSB6<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud GNOME PPP: STDERR: ttyUSB6<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud GNOME PPP: STDERR: ttyUSB6<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. GNOME PPP: STDERR: ttyUSB7<Info>: Exec format error GNOME PPP: STDERR: Modem Port Scan<*1>: USB7 GNOME PPP: STDERR: ttyUSB8<Info>: Exec format error GNOME PPP: STDERR: Modem Port Scan<*1>: USB8 GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port. GNOME PPP: STDERR: ttyUSB9<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud GNOME PPP: STDERR: ttyUSB9<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud GNOME PPP: STDERR: ttyUSB9<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. GNOME PPP: STDERR: ttyUSB10<Info>: Exec format error GNOME PPP: STDERR: Modem Port Scan<*1>: USB10 GNOME PPP: STDOUT: GNOME PPP: STDERR: ttyUSB11<Info>: Exec format error GNOME PPP: STDOUT: GNOME PPP: STDERR: Modem Port Scan<*1>: USB11 GNOME PPP: STDOUT: Sorry, no modem was detected! Is it in use by another program? GNOME PPP: STDOUT: Did you configure it properly with setserial? GNOME PPP: STDOUT: GNOME PPP: STDOUT: Please read the FAQ at http://open.nit.ca/wiki/?WvDial GNOME PPP: STDOUT: GNOME PPP: STDOUT: If you still have problems, send mail to < [email protected]>. Vejam que tentei todos: /dev/tty Segui exatamente a ordem das dicas, mas ainda não consegui sucesso. Como posso saber onde o modem foi montado? 2009/4/24 Adenauer Pereira Sampaio <[email protected]> > Olá, > Com o sudo 3g off você desconecta... depois basta novamente comandar > sudo 3g on > > Verifique se você incluiu na penúltima linha do arquivo /etc/rc.local o > comando 3g on > > Abraços, > Adenauer > > http://www.batistadobraga.org.br > http://adenauersampaio.blogspot.com > > > Em Sex, 2009-04-24 às 13:38 -0300, Jefferson Gregol escreveu: > > Olá Adenauer, > > Funcionou a conexão com o modem 3g dessa forma que você falou, > > perfeitamente, muito obrigado. > > Só ficou um detalhe, no email você fala que toda vez que o computador for > > iniciado já com o modem espetado vai conectar automaticamente. > > Comigo não está acontecendo isso, toda vez que eu ligo o computador para > > poder conectar eu tenho que executar o script (sudo 3g on), aí funciona > > legal. > > Se eu estiver conectado ai vou lá em redes desconecto (conexão: claro) e > em > > seguida mando conectar novamente, também não vai, tenho que executar o > > script novamente, aí funciona. > > A pergunta é, como fazer isso ficar de forma automatica, sem ter que > > executar toda vez o script? > > OBS: sou totalmente iniciante em Linux,...hehehe > > Se puder me ajudar agradeço. > > > > 2009/4/24 Adenauer Pereira Sampaio <[email protected]> > > > > > Olá, > > > Tenho esse mesmo modem 3g e resolvi o problema da seguinte forma: > > > > > > criei um script com o seguinte código, colocando-o em /usr/bin/ dei-lhe > > > o nome de 3g e permissão de execução. > > > > > > #!/bin/bash > > > > > > if [ "$1" = "on" ] ; then > > > echo "...conectando à rede Claro 3G..." > > > sudo /etc/init.d/networking start > > > sudo cat /etc/resolv.conf.bkp > /etc/resolv.conf > > > echo "...tudo ok, deve estar conectado :-)" > > > exit 0 > > > fi; > > > > > > if [ "$1" = "off" ] ; then > > > echo "...desconectando à rede Claro 3G..." > > > sudo /etc/init.d/networking stop > > > echo "...pronto, desconectado" > > > exit 0 > > > fi; > > > > > > echo "...opção inválida!" > > > > > > > > > > > > Após, criei um arquivo com o nome resolv.conf.bkp e o coloquei no > > > diretório /etc. Eis o conteúdo desse arquivo: > > > > > > nameserver 200.255.121.39 > > > nameserver 200.169.117.14 > > > > > > > > > > > > No arquivo /etc/rc.local insira a seguinte linha antes da última (exit > > > 0): > > > > > > 3g on > > > > > > > > > Último arquivo a ser alterado: /etc/vwdial.conf > > > > > > [Dialer Defaults] > > > Carrier Check = off > > > Init1 = ATZ > > > Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 > > > Password = claro > > > Ask Password = 0 > > > Check Def Route = 1 > > > Phone = *99***1# > > > Idle Seconds = 0 > > > Modem Type = Analog Modem > > > Stupid Mode = 1 > > > Compuserve = 0 > > > Baud = 460800 > > > Auto DNS = off > > > Dial Command = ATDT > > > Modem = /dev/ttyUSB0 > > > ISDN = 0 > > > Username = claro > > > > > > [Dialer claro3g] > > > Stupid Mode = on > > > Password = claro > > > Auto Reconnect = off > > > Username = claro > > > Phone = *99***1# > > > > > > > > > > > > Depois, basta digitar no terminal: > > > > > > sudo 3g on > > > > > > para estar conectado. E toda vez que vc iniciar o micro com o modem já > > > espetado, também se conectará automaticamente. > > > > > > Comigo funciona assim há mais de seis meses, sem problemas... > > > > > > Abraços, > > > Adenauer > > > > > > > > > http://www.batistadobraga.org.br > > > http://adenauersampaio.blogspot.com > > > > > > > > > Em Qui, 2009-04-23 às 09:40 -0300, Jefferson Gregol escreveu: > > > > Bom dia pessoal, > > > > Estou iniciando o uso do linux com o Ubuntu 9.04. > > > > Meu principal objetivo agora é fazer com que meu modem 3G da claro > > > funcione > > > > com o Ubuntu > > > > Modelo do modem: HUAWEI E220 > > > > Operadora: Claro > > > > Se alguem puder me ajudar nos passos necessários para configurar, > > > agradeço. > > > > OBS: Fazendo alguns testes, verifiquei que o ubuntu reconheceu o > modem > > > > automaticamente e já fez uma pré configuração, tipo: > > > > nome: claro > > > > senha: claro > > > > APN: claro.com.br > > > > numero discado: *99# > > > > Com essa configuração o modem até "conecta", porém não navega. > > > > Achei estranho ele configurar o numero com *99#, já que no windows > ele > > > usa > > > > o numero *99***1#, e se eu coloco esse numero ele nem consegue > > > "conectar". > > > > Toda ajuda é bem vinda. > > > > Obrigado. > > > > Jefferson. > > > > > > > > > -- > > > Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece > > > > > > Lista de discussão Ubuntu Brasil > > > Histórico, descadastramento e outras opções: > > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > > > > > > -- > Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece > > Lista de discussão Ubuntu Brasil > Histórico, descadastramento e outras opções: > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > -- ### Luciano Tavares da Costa ### Laboratory of Molecular Spectroscopy ## IQ - University of Sao Paulo - Brazil ## http://lem.iq.usp.br;[email protected] ################################## -- Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece Lista de discussão Ubuntu Brasil Histórico, descadastramento e outras opções: https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

