Wednesday, August 30, 2006

DsLink 180u in Any Linux

(Translated with Google translator)
This is a tutorial one for who has the DsLink180u modem usb that doesn't have a good support for linux… This tutorial functions most surely woth those linux distriutions:
Ubuntu (all - > Dapper, Hoary and Breezy)
Slackware
RedHat
Mandriva
OpenSuse
Kurumin
Kubuntu
First, deactivate the connection eth0 if you have one… (this step is not very necessary, therefore later when we execute pppoeconf it will deactivate this connection). First, be certain to have following package installed in your system: build-essential
Next, we will download eciadsl (program to synchronize the modem) and rp-pppoe (program to dial the ADSL connection): Eciadsl necessary (the version nortek alpha is the only one whose functioning is guaranteed): ECIADSL-NORTEK e bins of synchronization that we will also use: SYNCH-BINS (gs7470_06_synch_bin is the one that functions) e we will also lower the version of rp-pppoe whose functioning is guaranteed: RP-PPPOE finished downloads, we now go to start the stage of installation. We go to separate it in and steps:
1)INSTALLATION
First, we go to install rp-pppoe it takes off the archives of nome.tar.gz and later it opens a terminal. nomeDoDiretóriDoRP-pppoe types compact disc already inside of the directory it gives the sudo command “./go-gui” to start the compilation and installation of the program. after installed, we go to install the ECIADSL-NORTEK-ALPHA it makes extration procedure the same and it enters in the directory with the command “compact disc nomeDoDiretórioDoEciadsl” inside of the directory, it types the command “sudo ./configure” after compiled, it types the command “sudo make” e later “sudo make install”, soon. They are installed rp-pppoe and eciadsl in its PC. Now… we go to configure both programs.
2) SYNCHRONIZING THE MODEM
it opens a terminal and it types “sudo eciadsl-config-tk” in VCI and the VPI, depending on the state and its connection they move, but normally he is 8 and 35 (default) or 0 and 35, in mine in case that, for example, he is 0 and 35, therefore I live in SC, but who deferred payment in the 35 Rio Grande Do Sul is 8 and… most easy it is to bind its operator and to discover… the username and password can be without nothing… are not necessary, therefore rp-pppoe is that it will go to make this work for us. In the MODEM: choice “OTHER” choice “GS7470” (chip of the modem) the VID1 and the VID2 are both “1690” the PID1 and the PID2 are both “0212” (these two numbers can be verified with the command “sudo eciadsl-probe-device”) alt synch is “0” alt pppoeci is “4”
in UPDATE PROVIDER DNS IT LEAVES Blank (as it is)
in the SELECT PPP MODE I will choose “LLC_SNAP_RFCI483_BRIDGED_ETH_EM _FCS
and qualifies option DHCP
now in CHANGE BYN SYNCH FILE, I will choose the directory where you it unpacked (it unpacks if not yet it made it) eciadsl_synch_bins that we lower previously and I will choose synch_bin_06 of gs7470.
One detail left for eciadsl now: We need to make a module for the modem, but if it does not worry, this is easy. it types in the terminal: “sudo mkdir /dev/net”, if it to say something it to it type “directory already exists”,
then types the following one: “sudo rm /dev/net/tun” continuing…
"sudo mknod /dev/net/tun0 c 10 200"
types “sudo” being this the module that we wanted to make, now is alone to finish with the “sudo ln - s /dev/net/tun0 /dev/net/tun” and the last sudo command
“modprobe tun”. Soon! We are ready to synchronize… It connects its modem in the PC and types in a terminal:
“sudo eciadsl-start”, now it will start the sincronization. Most certainly everything will be fine. In case that it does not give, see if you did not jump or typed something wrong in some part of the FAQ.
With the synchronized modem, we are almost in the end. it types ifconfig in the terminal. If to appear tap0 in the modules, then gave certain. Contrary case tries of new.

3) CONNECTING ITSELF now, it types " sudo pppoeconf tap0 “If it to give some error, verifies if eth0 is not activated and it disactivates it and it tries again. it will go to make it a series of questions. He puts yes for all the first ones, and later it he will ask to its username and password to it of the connection. When it to ask to it “Of it you want the connection you be triggered at boot teams” he says that not. Later he answers yes and ready. Now you must be connected with the Internet. Case it gives an acknowledgment of this type: “option unrecognized NIC-tap0 on /etc/ppp/peers/dsl-provider” then makes the following one: gedit types " sudo endereçoQueEleFala (former: etc/to ppp/peers/dsl-provider). Vai to appear some lines, does not move in nothing. It observes if it has a line with following command “nic-tap0” we go to only change for “tap0”. It saves the archive. later pon types " sudo to dsl-provider” in the terminal. E finally must have given certain: p.

Ps:. All time that to restart the computer you will have that to synchronize the modem again (“sudo eciadsl-start”) and therefore script for such is interesting to create one (next post).

CONNECTION:
To connect itself, it types “sudo pon dsl-provider” and to become detached itself it types “sudo poff -a”. To verify the connection type “plog”.
Sorry for the bad english, this was straightly translated with google translating tools.I'll give it some "good english" when I have more free time.Thanks and Sorry!

Sunday, August 27, 2006

DsLink 180u em Qualquer Linux

Esse é um tutorial para quem tem esse modem usb que não tem um suporte muito fácil para o linux...
Esse tutorial funciona comprovadamente nas seguintes versões:
Ubuntu(todas -> Dapper, Hoary e Breezy)
Slackware
RedHat
Mandriva
OpenSuse
Kurumin
Kubuntu
Primeiramente, desabilite a conexão eth0 se possuir... (esse passo não é muito necessário pois depois rodaremos o pppoeconf e ele irá desativar essa conexão)
Primeiro, tenha certeza de ter a seguinte package instalada no seu sistema:
build-essential
depois, baixaremos o eciadsl(programa para sincronizar o modem) e o rp-pppoe(programa para discar a conexão ADSL):
O eciadsl necessário (a versão nortek alpha é a única cujo funcionamento é garantido):
ECIADSL-NORTEK
e as bins de sincronização que usaremos também:
SYNCH-BINS (o gs7470_06_synch_bin é a que funciona)
e baixaremos também a versão do rp-pppoe cujo funcionamento é garantido:
RP-PPPOE
terminado os downloads, vamos agora começar a etapa de instalação..
Vamos separá-la em e passos:

1)INSTALAÇÃO
Primeiramente, vamos instalar o rp-pppoe
tire os arquivos do nome.tar.gz e depois abra um terminal.
digite cd nomeDoDiretóriDoRP-pppoe
já dentro do diretório dê o comando " sudo ./go-gui " para começar a compilação e instalação do programa.

depois de instalado, vamos instalar o ECIADSL-NORTEK-ALPHA
faça o mesmo procedimento de extração e entre no diretório com o comando " cd nomeDoDiretórioDoEciadsl "
dentro do diretório, digite o comando " sudo ./configure "
depois de compilado, digite o comando " sudo make "
e depois " sudo make install ", pronto. Estão instalados o rp-pppoe e o eciadsl no seu pc.
Agora... vamos configurar ambos programas.

2)SINCRONIZANDO O MODEM
abra um terminal e digite
" sudo eciadsl-config-tk "
no VCI e VPI, dependendo do estado e de sua conexão eles mudam, mas normalmente é 8 e 35 (default) ou 0 e 35, no meu caso, por exemplo, é 0 e 35, pois moro em SC, mas quem mora no Rio Grande do Sul é 8 e 35... o mais fácil é ligar para sua operadora e descobrir...
o username e password podem ficar sem nada... não são necessários, pois o rp-pppoe é que irá fazer esse trabalho para nós.
No MODEM:
escolha "OTHER"
escolha "GS7470"(chip do modem)
o VID1 e o VID2 são ambos "1690"
o PID1 e o PID2 são ambos "0212"
(esses dois números podem ser verificados com o comando "sudo eciadsl-probe-device")
alt synch é "0"
alt pppoeci é "4"

no UPDATE PROVIDER DNS DEIXE EM BRANCO(como está)

no SELECT A PPP MODE escolha "LLC_SNAP_RFCI483_BRIDGED_ETH_NO_FCS
e habilite a opção DHCP
agora no CHANGE BYN SYNCH FILE, escolha o diretório onde você descompactou(descompacte se ainda não o fez) o eciadsl_synch_bins que baixamos anteriormente e escolha o synch_bin_06 do gs7470.
Falta apenas um detalhe para o eciadsl agora:
Precisamos fazer um módulo para o modem, mas não se preocupe, isso é fácil.
digite no terminal:
"sudo mkdir /dev/net", se ele lhe falar algo do tipo "directory already exists", então digite o seguinte: "sudo rm /dev/net/tun"
prosseguindo...
digite "sudo mknod /dev/net/tun0 c 10 200" sendo esse o módulo que queríamos fazer, agora é só finalizar com o "sudo ln -s /dev/net/tun0 /dev/net/tun" e o último comando "sudo modprobe tun".
Pronto! Estamos prontos para sincronizar...
Conecte seu modem no pc e digite em um terminal:
"sudo eciadsl-start", agora ele vai começar a sincronizar.
Deve dar tudo certo. Caso não dê, veja se não pulou ou se enganou em alguma parte do FAQ.

Com o modem sincronizado, estamos quase no fim.
digite ifconfig no terminal.Se aparecer tap0 nos módulos, então deu certo. Caso contrário tente de novo.

3)CONECTANDO-SE
agora, digite" sudo pppoeconf tap0 " Se ele der algum erro, verifique se o eth0 não está ativado e o desative e tente novamente.
ele irá lhe fazer uma série de perguntas. Ponha yes para todas as primeiras, e depois ele lhe perguntará seu username e senha da conexão. Quando ele lhe perguntar " Do you want the connection to be triggered at boot time?" diga que não. Depois responda sim e pronto. Agora você deve estar conectado com a internet. Caso ele dê um aviso desse tipo: "option unrecognized nic-tap0 on /etc/ppp/peers/dsl-provider" então faça o seguinte:
digite" sudo gedit endereçoQueEleFala(ex: etc/ppp/peers/dsl-provider).
Vai aparecer várias linhas, não mexa em nada. Observe se há uma linha com o seguinte comando "nic-tap0" vamos trocar por "tap0" apenas. Salve o arquivo. depois digite"sudo pon dsl-provider"
no terminal. E finalmente deve ter dado certo :p.

Obs:. Toda vez que reiniciar o computador você terá que sincronizar o modem novamente("sudo eciadsl-start") e por isso é interessante criar um script para tal(próximo post).
CONEXÃO
Para conectar-se, digite "sudo pon dsl-provider" e para desconectar-se digite "sudo poff -a". Para verificar a conexão digite "plog".

Saturday, August 26, 2006

Sorry

Deu uns problemas com o sistema beta do blog, então perdi 2 posts... mas de qualquer forma, vou me esforçar para postar mais. Amanhã prometo um bom post! Até

Contador de Visitas