Sunday 27 December 2009

Come far funzionare la Olicard 100 della Tim su Ubuntu 9.10 (Karmic Koala)

Un post in Italiano perché credo questa cosa possa interessare per lo più utenti Italiani.

Ovvero.. come far funzionare la Internet Key della Tim Olicard 100 su Ubuntu 9.10 Netbook Remix!! (Almeno.. ha funzionato per noi, ma è stata dura >.<).

1. Occorre inserire la nostra Olicard nel netbook e questa verrà vista come volume usb. Dentro ad essa vi sono i driver necessari al suo funzionamento. Dalla cartella Linux → Ubuntu, installare il pacchetto .deb cliccando anche su “Install Package”.
Fatto questo è consigliabile smontare il volume e riavviare il sistema operativo.

2. Una volta riavviato il pc inseriamo la chiavetta, smontiamola e scriviamo sulla shell il comando lsusb. Questo ci permette di vedere tutti i volumi collegati al nostro pc tra cui la nostra chiavetta della Olivetti.

3. Fatto questo scriviamo sulla shell:
sudo modprobe usbserial vendor=0x???? product=0x????
Dove al posto dei punti esclamativi inseriremo i numeri che erano risultati scrivendo lsusb relativi alla olicard con questa formattazione xxxx:xxxx.

4. Ora andiamo sulle Connessioni di rete, che troviamo sulla barra in alto oppure nel menu System, selezioniamo Mobile Broadband e clicchiamo su Add. A questo punto dovrebbe già riconoscere il nostro dispositivo e possiamo quindi proeguire a dargli le informazioni mancanti, sul gestore telefonico, etc. Per Tim l'APN da indicare è ibox.tim.it e il numero *99# è lo standard e va lasciato com'è. Gli altri campi possono rimanere vuoti.

5. Fatto questo proviamo a togliere fisicamente la chiavetta e reinserirla. Se tutto va per il verso giusto dovrebbe inizialmente vederla come disco e un istante dopo scomparire e risultare come modem. Torniamo in alto sulle connessioni di rete sulla barra in alto, clicchiamoci su con il tasto sinistro del mouse e dovrebbe apparire il nome della connessione. Cliccandoci sopra dovremmo riuscire a connetterci. A volte il primo tentativo non va per il meglio, a quel punto conviene togliere e reinserire la chiavetta e riprovare. Purtroppo pare sia necessario ad ogni riavvio ripetere il punto 3.
Per ovviare a quest'ultima scocciatura è possibile creare uno script che ricordi la riga di comando in automatico.

6. Anche se a questo punto la connessione sembra andare, Firefox sembra avere dei problemi a riconoscerla. Per risolvere anche questo problema occorre aprire nuovamente la shell e digitare:
sudo gedit /etc/resolv.conf
Che aprirà l'editor di testo e il nostro nuovo file. Ovviamente anche l'uso di un altro editor di testo va bene.
A questo punto scriviamo nel documento le seguenti due righe:
nameserver 213.230.130.222
nameserver 213.230.155.94


Salviamo e chiudiamo. Tuttavia sarà necessaria un'altra operazione affinché questo file di testo non venga automaticamente modificato. Quindi di seguito sulla shell scriviamo:
sudo chmod a-w /etc/resolv.conf

Quest'ultimo comando impedisce che il file possa essere modificato.
Ora proviamo a connetterci a Internet e ad aprire Firefox e tutto dovrebbe funzionare!
Buona fortuna!!

Un ringraziamento alle persone che scrivono nel forum di Ubuntu.it!!

EDIT
Grazie ai commenti di Rogier mi sono accorta che le precedenti istruzioni erano incomplete poiché in effetti abbiamo dovuto fare degli ulteriori passaggi affinché non fosse necessario ripetere il comando modprobe ad ogni riavvio.

Ecco delle ulteriori istruzioni per cercare di ovviare al problema:
Consiglio, invece di usare il comando:

sudo chmod a-w /etc/resolv.conf

di usare questo:

sudo chattr +i /etc/resolv.conf

che è più forte e non dovrebbe permettere al file di essere modificato.

Per non dover ripetere il comando di modprobe, scrivere nella shell:

sudo gedit /etc/modules

e aggiungere al documento:

sudo modprobe usbserial vendor=0x???? product=0x????

con i relativi codici vendor e product.

Salvate il file e ora dovrebbe caricarsi automaticamente all'avvio!


----------------------

English version ~ In case someone needs it!

How to make the Interner key Olicard 100 (offered by the provider TIM) work on Ubuntu 9.10 Netbook Remix version (This worked for us at least!).

1. You need to insert the Olicard in your netbook and it will see it as a usb key. Inside it there are some drivers neccessary for Linux. In the folder Linux → Ubuntu, you'll find a package .deb, click to install it and also on the button 'Install package'.
After this I sugget you to unmount the key and reboot the operating system.

2. When it has loaded again, insert the usb-key, umount it and write on the shell the command lsusb. This will show you all everything connected to the netbook, included the Olivetti key. .

3. After this, write on the shell:
sudo modprobe usbserial vendor=0x???? product=0x????
Where instead of the question marks you'll write the numbers and letters that appeared on the results given by the command lsusb, in the format xxxx:xxxx.

4. Now let's click on the Network Connections, on the bar on the top of the screen of in the System menu, select 'Mobile Broadband' and click on Add. At this point it should recognise the device so we can go on and insert the missing information about the provider, and so on,
Tim's APN is ibox.tim.it and the number 99# is standard. The other fields can be left unfilled.

5. After that we can take off the key and insert it again. If everything is ok it should be seen as a usb device for a moment and then disappear and become a modem. Let's go back to the Network Connections and there clicking in the bar with the left button we should see out connection's name.
Clicking on it we should manage to connect to the Internet. Sometimes if it doesn't work the first time it's better if we take off the key and try again. It seems that at every reebot it's necessary to repeat point 3.

6. Even if now the connection seems to work, Firefox may have some problems dealing with it. To solve this problem we need to open the shell once again and write:

sudo gedit /etc/resolv.conf
That will open the editor and our new file. Of course other text editors work fine too.
Let's write in the file this:
nameserver 213.230.130.222
nameserver 213.230.155.94


Let's save and quit. Although, we need to do one last thing to be sure that the file won't be automatically edited. So we'll write on the shell the command:
sudo chmod a-w /etc/resolv.conf

This last command makes the file impossible to edit.
Let's try to connect to the Internet, open a Firefox page and hopefully everything should work!
Good luck!!

--------- EDIT January 14th 2010

Thanks to Rogier I noticed that the previous instructions had some flaws cause the modprobe command had to be repeated at every reboot.
So here are some further (and hopefully more useful) instructions:

In order to make it work better I suggest to use instead of the command:

sudo chmod a-w /etc/resolv.conf

this one:

sudo chattr +i /etc/resolv.conf

that is stronger, and in that way the file should not be edited anymore.

About the modprobe, type in the shell:

sudo gedit /etc/modules

and add to the document:

sudo modprobe usbserial vendor=0x???? product=0x????

with the correct vendor and product codes.

Save the file and it should now be loaded automatically at every reboot.

17 comments:

Anonymous said...

thanks! just what i needed to get internet working on my samsung nc10. no more windows!

rogier

Hachiko said...

I'm really glad that this was useful to you!! :D Is it working fine now? I hope there will be no other problems, cause I needed to add some other scripts so that it could work properly at every reboot.

Anonymous said...

yes i need to modprobe every time i reboot, or even everytime i plug in the olicard. how can you make it work automaticly?

rogier

Anonymous said...

actually, i put the modprobe... line in /etc/rc.local, and it seems to work, but only when i put the modem in after startup?

thanks,
rogier

Hachiko said...

In order to make it work better I suggest to use instead of the command:

sudo chmod a-w /etc/resolv.conf

this one:

sudo chattr +i /etc/resolv.conf

that is stronger, and in that way the file should not be edited anymore.

About the modprobe, type in the shell:

sudo gedit /etc/modules

and add to the document:

sudo modprobe usbserial vendor=0x???? product=0x????

with the correct vendor and product codes.

Save the file and it should now be loaded automatically at every reboot.
Let me know it it works fine!! :)

Hachiko said...

What do you mean that you put the modem in after start up? I insert the Internet key only after the OS has booted.
Anyway, let me know if the previous instructions help!

Marcel said...

Grazie mille! So I will probably buy this stick! hope it gonna work.
I have Ubuntu Remix 9.10 and a NC10!

Hachiko said...

Hi Marcel! ^-^
It worked for me that way, so I really hope it will work for you :D !

Alcor said...

Thank you very much. I found your post, and the comments, really very useful.
It's working fine!!

Hachiko said...

Yay!! :D Thanks alcor191, I'm so glad to hear this ^__^ !!

Marcel said...

Thank you it works fine. I am just using it with TIM. But it doesn't show the speed or any information...

BTW you can also put the DNS Server in the PPP option if you put "PPP (adresses)" only...

Hachiko said...

Hi Marcel, you can see some information if you go to the website www.alicemobile.mobi (like how many hours you've left, etc.)

Where should I set the option you mentioned?

Marcel said...

Something like IP4 Settings. You can choose "Automatic (PPP) only adresses". After this you can set the DNS server manual. Namely where it says DNS server you just put the IP of the DNS server. But I don't know how to put to DNS servers there?!? Remember I have put my Remix on german, so the names a probably not correct.

So what do I have to do if I go to the Alice Mobile site. Do I have to register or is there a special link?
My italian is still not so good.

Hachiko said...

I don't know either about how to put the DNS there.. if I try something I'll let you know, but anyway at the moment everything is working!

If I go to the website of alicemobile from my netbook with the Internet key active the website recognize me in automatic and among other things, you find "Hai ancora a disposizione xxxx minuti per navigare su APN ibox.tim.it" where the number before "minuti" (minutes) is the number of minutes you still have left. Let me know if it works!

Marcel said...

Yes now the alice webpage works fine and I see the minutes now!

Hachiko said...

Great!! :D

Anonymous said...

hi, new to the site, thanks.