Sometimes you end up somewhere with your laptop where you just can’t find any open WiFi. A volte si finisce da qualche parte con il vostro portatile in cui è solo non riesce a trovare tutti i documenti aperti WiFi. Luckily you have a Nokia N95 and a Bluetooth adapter. Fortunatamente si dispone di un Nokia N95 e un adattatore Bluetooth. I’m going to show you how to tether your N95 to your laptop via Bluetooth the quick and dirty command line way, as well as the prettier GUI way. Io vado a mostrare come il tuo N95 attacco a un computer portatile tramite Bluetooth rapido e sporco modo riga di comando, così come il modo più belle GUI. In these examples I am running Fedora 9 and Gnome. In questi esempi sono in esecuzione Fedora 9 e Gnome.
Warning: You probably only want to do this if you have a decent data plan. Attenzione: è probabilmente solo voglia di fare questo se hai un piano dati decente. Using 3G data can result in a very large bill! Utilizzo di dati 3G può risultare in un gran fattura!
- The first thing you need to do is make sure your N95 is paired with your laptop. La prima cosa che devi fare è assicurarsi che il proprio N95 è associato con il vostro portatile. This is far easier than I expected. Questo è molto più facile che mi aspettavo. As long as you have the gnome-bluetooth package installed, it’s as simple as initiating the pairing from your phone and entering the same passkey on both the phone and the computer when prompted. Finché hai la gnome-bluetooth pacchetto è stato installato, è semplice come avviare l'associazione dal telefono cellulare e inserire la stessa chiave di accesso sia sul telefono cellulare e il computer quando richiesto. You also need to have the ppp package and the wvdial package installed. Lei ha anche bisogno di avere il pacchetto ppp wvdial e il pacchetto installato. If you don’t, you can simply run, as root in a terminal window, yum install ppp wvdial (or use whatever package manager comes w/ your Linux distro). Se non è possibile semplicemente eseguire, come root in una finestra di terminale, yum installare wvdial ppp (o utilizzare qualsiasi gestore di pacchetti viene w / la vostra distro Linux).
- Now that both devices are paired, open a terminal window and run hcitool scan to discover your phones Bluetooth MAC address. Ora che sono entrambi i dispositivi associati, aprire una finestra del terminale ed eseguire la scansione hcitool a scoprire i tuoi telefoni Bluetooth indirizzo MAC. This section applies to both the command line and GUI parts of this tutorial. Questa sezione si applica sia alla linea di comando e GUI parti di questo tutorial.
[user@radon ~]$ hcitool scan [utente @ radon ~] $ hcitool scan
Scanning … Scansione ...
00:22:66:9F:83:37 N95 00:22:66:9 F: 83:37 N95 - Next we use sdptool to find out the channel for the Dial-Up Networking service. Avanti usiamo sdptool per trovare il canale per il Dial-Up Networking servizio.
[user@radon ~]$ sdptool browse 00:22:66:9F:83:37 [utente @ radon ~] $ sdptool sfogliare 00:22:66:9 F: 83:37
Browsing 00:22:66:9F:83:37 … Visualizzazione di 00:22:66:9 F: 83:37 ...
Service Name: Dial-Up Networking Nome servizio: Dial-up Networking
Service RecHandle: 0×1004a Servizio RecHandle: 0 × 1004a
Service Class ID List: Service Class ID elenco:
“Dialup Networking” (0×1103) "Dial-up Networking" (0 × 1103)
Protocol Descriptor List: Descrittore protocollo elenco:
“L2CAP” (0×0100) "L2CAP" (0 × 0100)
“RFCOMM” (0×0003) "RFCOMM" (0 × 0003)
Channel: 2 Canale: 2
Language Base Attr List: Lingua base attr elenco:
code_ISO639: 0×454e code_ISO639: 0 × 454e
encoding: 0×6a codifica: 0 × 6 bis
base_offset: 0×100 base_offset: 0 × 100
Profile Descriptor List: Profilo Descrittore elenco:
“Dialup Networking” (0×1103) "Dial-up Networking" (0 × 1103)
Version: 0×0100 Versione 0 × 0100 - There will probably be a few screens of output. Ci saranno probabilmente alcuni schermi di output. I have only included the relevant part in the above example. Ho inserito solo la parte pertinente nel precedente esempio. Note that the Dial-Up Networking service is on channel 2 . Si noti che il Dial-Up Networking servizio è sul canale 2.
- Using your favorite text editor, as root, edit /etc/bluetooth/rfcomm.conf and make it look like the following, substituting your phones MAC address and channel number. Utilizzando il tuo editor di testo preferito, come root, modificare il file / etc / bluetooth / rfcomm.conf e rendere presentarsi come la seguente, sostituendo il tuo indirizzo MAC cellulari e numero di canale.
- Save your rfcomm.conf and exit your text editor. Salva il tuo rfcomm.conf uscita e il tuo editor di testo.
- As root, restart the bluetooth service: Come utente root, riavviare il servizio bluetooth:
[root@radon ~]# service Bluetooth restart [root @ radon ~] # riavviare il servizio Bluetooth
Stopping Bluetooth services: [ OK ] Smettere di servizi Bluetooth: [OK]
Starting Bluetooth services: [ OK ] A partire Bluetooth servizi: [OK] - We have now created a Bluetooth serial port at /dev/rfcomm0 that will be persistent through reboots. Abbiamo ora creato una connessione Bluetooth alla porta seriale / dev/rfcomm0 che sarà persistente attraverso riavvia. This is the port you will use as a “modem” during the rest of the configuration. Questo è il porto si può usare come un "modem" durante il resto della configurazione.
#
# RFCOMM configuration file. # RFCOMM file di configurazione.
#rfcomm0 { rfcomm0 (
bind yes; impegnare sì;
device 00:22:66:9F:83:37; dispositivo 00:22:66:9 F: 83:37;
channel 2; canale 2;
} )
Now we move on to the quick and dirty command line setup. Ora si passa alla veloce e dirty riga di comando di installazione. Feel free to skip to the GUI setup below if you aren’t very comfortable with the command line. Sentitevi liberi di saltare al GUI di installazione al di sotto se non si è molto confortevole con la riga di comando.
Command Line Method Metodo riga di comando
GUI Method Metodo di GUI
Command Line Method Metodo riga di comando
- Edit /etc/wvdial.conf and make it look like this: Modificate / etc / wvdial.conf e renderla simile al seguente:
- I’m using Rogers Wireless in Canada and the above is the minimum configuration that works for me. Sto utilizzando Rogers Wireless in Canada e di cui sopra è la configurazione minima che funziona per me. Literally Username = user and Password = pass. Letteralmente username = utente e la password = pass. You may need to make changes to the Username, Password, and Phone lines. Potrebbe essere necessario apportare modifiche al nome utente, password e linee telefoniche. Contact your wireless provider for the correct details. Rivolgersi al proprio fornitore senza fili per la corretta dettagli.
- I also had to create a script called /etc/ppp/ip-up.local to make the automatic DNS configuration work. Ho anche avuto a creare uno script chiamato / etc / ppp / ip-up.local per rendere automatica la configurazione DNS di lavoro. Here’s my ip-up.local: Ecco il mio ip-up.local:
- Unfortunately I have not been able to connect as a normal user in this configuration so you’ll have to connect as root. Purtroppo non sono stato in grado di connettersi come un utente normale, in questa configurazione in modo che dovrete collegare come root.
[root@radon ~]# wvdial Bluetooth [root @ radon ~] # wvdial Bluetooth
–> WvDial: Internet dialer version 1.60 -> Wvdial: Internet dialer version 1.60
–> Cannot get information for serial port. -> Impossibile ottenere informazioni per la porta seriale.
–> Initializing modem. -> Initializing modem.
–> Sending: ATZ -> Invio: ATZ
ATZ
OK–> Sending: ATM0 -> Invio: ATM0
ATM0
OK
–> Modem initialized. -> Modem inizializzato.
–> Sending: ATDT*99***1# -> Invio: ATDT * 99 *** 1 #
–> Waiting for carrier. -> Waiting for carrier.
ATDT*99***1# ATDT * 99 *** 1 #
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~ ~ [7f ]}#@!}!})) 2 }#}$@#}!}$}% \ * }"}&})))) g% ~
–> Carrier detected. -> Carrier rilevato. Starting PPP immediately. A partire PPP immediatamente.
–> Starting pppd at Sun Oct 19 16:48:56 2008 -> A partire pppd ottobre a domenica 19 16:48:56 2008
–> Pid of pppd: 8028 -> Pid di pppd: 8028
–> Using interface ppp0 -> Utilizzo interfaccia ppp0
–> local IP address 172.28.53.106 -> Locali indirizzo IP 172.28.53.106
–> remote IP address 10.6.6.6 -> Telecomando indirizzo IP 10.6.6.6
–> primary DNS address 207.181.101.4 -> DNS primario l'indirizzo 207.181.101.4
–> secondary DNS address 207.181.101.5 -> Indirizzo DNS secondario 207.181.101.5 - I removed the lines containing unprintable characters, but otherwise you should see something very similar to above. Ho rimosso le righe che contengono caratteri non stampabili, ma per il resto si dovrebbe vedere qualcosa di molto simile al precedente. Note that wvdial stays in the foreground. Si noti che wvdial soggiorni in primo piano. This is so you can disconnect by simply pressing Ctrl-C. Questo è in modo da poter scollegare semplicemente premendo Ctrl-C.
- You can verify that you are online by switching to a new terminal window and running ifconfig. È possibile verificare che si è online dal passaggio ad una nuova finestra del terminale ed eseguire ifconfig.
[root@radon ~]# ifconfig [root @ radon ~] # ifconfig
lo Link encap:Local Loopback lo Link encap: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet addr: 127.0.0.1 Mask: 255.0.0.0
inet6 addr: ::1/128 Scope:Host inet6 addr::: 1 / 128 Scope: Host
UP LOOPBACK RUNNING MTU:16436 Metric:1 UP loopback RUNNING MTU: 16436 Metric: 1
RX packets:12767 errors:0 dropped:0 overruns:0 frame:0 RX pacchetti: 12767 errori: 0 abbandonato: 0 overruns: 0 frame: 0
TX packets:12767 errors:0 dropped:0 overruns:0 carrier:0 TX pacchetti: 12767 errori: è sceso 0: 0 overruns: 0 carrier: 0
collisions:0 txqueuelen:0 collisions: 0 txqueuelen: 0
RX bytes:714652 (697.9 KiB) TX bytes:714652 (697.9 KiB) RX bytes: 714652 (697.9 KIB) TX bytes: 714652 (697.9 KIB)ppp0 Link encap:Point-to-Point Protocol ppp0 Link encap: Point-to-Point Protocol
inet addr:172.28.53.106 PtP:10.6.6.6 Mask:255.255.255.255 inet addr: 172.28.53.106 PTP: 10.6.6.6 Mask: 255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 UP pointopoint NOARP RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0 RX pacchetti: 4 errori: 0 abbandonato: 0 overruns: 0 frame: 0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 TX pacchetti: 5 errori: 0 abbandonato: 0 overruns: 0 carrier: 0
collisions:0 txqueuelen:3 collisions: 0 txqueuelen: 3
RX bytes:64 (64.0 b) TX bytes:94 (94.0 b) RX bytes: 64 (64,0 b) TX bytes: 94 (94,0 b)[root@radon ~]# ping simplehelp.net [root @ radon ~] # ping simplehelp.net
PING simplehelp.net (74.52.95.42) 56(84) bytes of data. PING simplehelp.net (74.52.95.42) 56 (84) byte di dati.
64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=1 ttl=46 time=110 ms 64 da 2a.5f.344a.static.theplanet.com byte (74.52.95.42): icmp_seq = 1 ttl = 46 time = 110 ms
64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=2 ttl=46 time=102 ms 64 byte dal 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq = 2 ttl = 46 time = 102 ms
64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=3 ttl=46 time=164 ms 64 byte dal 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq = 3 ttl = 46 time = 164 ms
64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=4 ttl=46 time=130 ms 64 byte dal 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq = 4 ttl = 46 time = 130 ms
64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=5 ttl=46 time=149 ms 64 byte dal 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq = 5 ttl = 46 time = 149 ms
^C ^ C
— simplehelp.net ping statistics — - Simplehelp.net ping statistiche --
5 packets transmitted, 5 received, 0% packet loss, time 4513ms 5 pacchetti trasmessi, ricevuti 5, 0% la perdita del pacchetto, il tempo 4513ms
rtt min/avg/max/mdev = 102.061/131.349/164.376/23.190 ms RTT min / avg / max / mdev = 102.061/131.349/164.376/23.190 ms - Once you are finished online, don’t forget to switch back to the terminal where you ran wvdial and press Ctrl-C. Una volta finito on-line, non dimenticate di tornare al terminale in cui è stato eseguito wvdial e premere Ctrl-C.
^CCaught signal 2: Attempting to exit gracefully… ^ CCaught segnale 2: Il tentativo di uscire con grazia ...
–> Terminating on signal 15 -> Terminale del segnale 15
–> Connect time 5.8 minutes. -> Connessione tempo 5,8 minuti.
–> Disconnecting at Sun Oct 19 16:54:48 2008 -> Disconnessione ottobre a domenica 19 16:54:48 2008
Modem = /dev/rfcomm0 Modem = / dev/rfcomm0
Baud = 460800 Baud = 460800
SetVolume = 0 SetVolume = 0
Dial Command = ATDT Dial command = ATDT
Init1 = ATZ Init1 = ATZ
Init3 = ATM0 Init3 = ATM0
FlowControl = CRTSCTS FlowControl = CRTSCTS[Dialer Bluetooth] [Dialer Bluetooth]
Username = user Username = utente
Password = pass Password = pass
Phone = *99***1# Telefono = * 99 *** 1 #
Stupid Mode = 1 Stupid Mode = 1
Init1 = ATZ Init1 = ATZ
Inherits = Modem0 = Eredita Modem0
#!/bin/bash #! / bin / bash
#PATH=/sbin:/usr/sbin:/bin:/usr/bin PATH = / sbin: / usr / sbin: / bin: / usr / bin
export PATH export PATH
echo “# created by pppd” > /etc/resolv.conf echo "# creato da pppd"> / etc / resolv.conf
echo “nameserver ${DNS1}” >> /etc/resolv.conf echo "nameserver $ () DNS1">> / etc / resolv.conf
echo “nameserver ${DNS2}” >> /etc/resolv.conf echo "nameserver $ () DNS2">> / etc / resolv.conf
chmod go+r /etc/resolv.conf chmod andare + r / etc / resolv.conf
Don’t forget to chmod 755 /etc/ppp/ip-up.local Non dimenticate di chmod 755 / etc / ppp / ip-up.local
Now, if all that command line stuff scares you, here’s how to make it work using Gnome’s GUI: Ora, se tutto ciò che riga di comando vi spaventa roba, ecco come fare per farla funzionare utilizzando la GUI di Gnome:
- Click System -> Administration -> Network Fare clic su Sistema -> Amministrazione -> Rete
- You will be asked to enter your root password. Ti verrà chiesto di immettere la password di root. Enter it and click OK . Inserisci e fare clic su OK.
- Now you can see a list of installed network devices. Ora è possibile vedere un elenco dei dispositivi di rete installati. Click on the Hardware tab. Fare clic sulla scheda Hardware.
- Now click the New button, select Modem , and click OK . Ora fate clic sul pulsante Nuovo, selezionare Modem, quindi fare clic su OK.
- Change the Modem Device to /dev/rfcomm0. Cambiare il dispositivo modem a / dev/rfcomm0. If /dev/rfcomm0 is not available in the list, just type it in. Click OK . Se / dev/rfcomm0 non è disponibile nella lista, digita il testo poll Fare clic su OK.
- Now click the Devices tab. Fare clic sulla scheda Dispositivi.
- Click the New button, select Modem connection, and click Forward . Fare clic sul pulsante Nuovo, selezionare la connessione del modem, quindi fare clic su Avanti.
- All I needed to do to make my Rogers Wireless connection work was enter *99***1# as the Phone Number, user as the Login Name, and pass as the Password. Tutte le avevo bisogno di fare per rendere la mia connessione wireless Rogers lavoro è stato inserire * 99 *** # 1 come il numero di telefono, come l'utente Login Name, e come passare la password. I also chose to name this connection Bluetooth. Ho anche scelto questo nome per la connessione Bluetooth. Click Forward . Fate clic su Avanti.
- I left these options at their defaults. Ho lasciato queste opzioni a loro inadempienze. Click Forward . Fate clic su Avanti.
- We’ve finished creating the connection. Abbiamo finito di creare la connessione. Click Apply . Fare clic su Applica.
- Click the X in the top right corner to close this window. Fare clic sulla X nell'angolo in alto a destra per chiudere questa finestra.
- Click Yes to save the changes. Fare clic su Sì per salvare le modifiche.
- Click OK . Fare clic su OK. No, we won’t need to restart the computer. No, non sarà necessario riavviare il computer.
- So, let’s use our newly created connection. Allora, andiamo a utilizzare la nostra connessione appena creata. Click System -> Administration -> Network Device Control . Fare clic su Sistema -> Amministrazione -> Network Device Control.
- Select the Bluetooth connection you just created and click Activate . Selezionare la connessione Bluetooth che hai appena creato e fare clic su Attiva.
- Notice how the Bluetooth connection has changed from Inactive to Active . Notare come la connessione Bluetooth è cambiato da Inattivo ad Active.
- Open Firefox and visit http://www.simplehelp.net. Apri Firefox e visita http://www.simplehelp.net.
- When you are finished online, go back to the Network Device Control window, select the Active Bluetooth connection and click Deactivate . Quando si è finito on-line, torna alla Network Device Control finestra, selezionare la connessione Bluetooth attiva e fare clic su Disattiva.
- Verify that the Bluetooth connection is indeed Inactive, then close the Network Device Control window. Verificare che la connessione Bluetooth è inattivo, quindi chiudere il dispositivo di rete della finestra di controllo.
- Some of you may be wondering why I chose not to use Network Manager. Alcuni di voi possono essere chiedendo il motivo per cui ho scelto di non utilizzare Network Manager. It’s quite simply due to the fact that mobile broadband support in Network Manager is in it’s infancy and I found it to be virtually unusable. E 'semplicemente dovuto al fatto che mobili a banda larga nel sostegno Network Manager è nella sua infanzia e ho trovato che sia praticamente inutilizzabile. Once Network Manager’s mobile broadband support becomes better, I’ll rewrite this tutorial based on it. Una volta che Network Manager mobili a banda larga di sostegno diventa migliore, I'll riscrivere questo tutorial basato su di essa.



click to enlarge clicca per ingrandire




click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire


click to enlarge clicca per ingrandire


click to enlarge clicca per ingrandire


click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire

click to enlarge clicca per ingrandire


click to enlarge clicca per ingrandire






















{ 0 comments… (0 commenti ... add one now aggiungere uno ora } )
Leave a Comment Lascia un tuo commento