Sometimes you end up somewhere with your laptop where you just can't find any open WiFi. Niekedy môžete skončiť niekde u svojho notebooku, kde si jednoducho nemôžete nájsť žiadne otvorené WiFi. Luckily you have a Nokia N95 and a Bluetooth adapter. Našťastie máte Nokia N95 a Bluetooth adaptér. 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. Chcem vám ukázať, ako sa vaše lano N95 do prenosného počítača prostredníctvom Bluetooth rýchle a špinavé príkazového riadku spôsobom, ako aj krajší GUI spôsobom. In these examples I am running Fedora 9 and Gnome. V týchto príkladoch I am running Fedora 9 a Gnome.
Warning: You probably only want to do this if you have a decent data plan. Upozornenie: Asi len to chcete urobiť, ak máte slušný dátový tarif. Using 3G data can result in a very large bill! Použitie 3G dáta môžu mať za následok veľké účet!
- The first thing you need to do is make sure your N95 is paired with your laptop. Prvé, čo musíte urobiť, je uistite sa, že N95 je spárovaný s prenosným počítačom. This is far easier than I expected. To je oveľa jednoduchšie, než som čakal. 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. Kým máte gnome-bluetooth nainštalovaný balík, je to tak jednoduché ako začatie párovania z telefónu a zadanie rovnakého kľúča na telefóne i počítači po výzve. You also need to have the ppp package and the wvdial package installed. Tiež je potreba mať balík ppp a wvdial nainštalovaný balík. 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). Ak nemáte, môžete jednoducho spustiť ako root v terminálu okná, yum install ppp wvdial (alebo použite správcu balíkov, čo príde w / váš Linux odvrátiť).
- Now that both devices are paired, open a terminal window and run hcitool scan to discover your phones Bluetooth MAC address. Teraz, keď sú oba prístroje spárované, otvorte okno terminálu a spustiť skenovanie hcitool objaviť váš telefón Bluetooth MAC adresu. This section applies to both the command line and GUI parts of this tutorial. Tento oddiel sa vzťahuje ako na príkazovom riadku a grafickej časti tohto návodu.
[user@radon ~]$ hcitool scan [user @ radónu ~] $ hcitool scan
Scanning … Skenovanie ...
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. Ďalej môžeme použiť sdptool zistiť kanál pre Dial-Up Networking služby.
[user@radon ~]$ sdptool browse 00:22:66:9F:83:37 [user @ radónu ~] $ sdptool prechádzať 00:22:66:9 F: 83:37
Browsing 00:22:66:9F:83:37 … Browsing 00:22:66:9 F: 83:37 ...
Service Name: Dial-Up Networking Service Name: Dial-Up Networking
Service RecHandle: 0×1004a Service RecHandle: 0 × 1004
Service Class ID List: Service Class ID List:
“Dialup Networking” (0×1103) "Dialup Networking" (0 × 1103)
Protocol Descriptor List: Protokol Descriptor List:
“L2CAP” (0×0100) "L2cap" (0 × 0100)
“RFCOMM” (0×0003) "Rfcomm" (0 × 0003)
Channel: 2 Kanál: 2
Language Base Attr List: Základné jazykové Attr List:
code_ISO639: 0×454e code_ISO639: 0 × 454e
encoding: 0×6a kódovanie: 0 × 6a
base_offset: 0×100 base_offset: 0 × 100
Profile Descriptor List: Profil Descriptor List:
“Dialup Networking” (0×1103) "Dialup Networking" (0 × 1103)
Version: 0×0100 Verzia: 0 × 0100 - There will probably be a few screens of output. Pravdepodobne sa bude niekoľko obrazoviek výstupu. I have only included the relevant part in the above example. Mám zahrnuté iba príslušná časť vo vyššie uvedenom príklade. Note that the Dial-Up Networking service is on channel 2 . Všimnite si, že Dial-Up Networking služba je na kanáli 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. S použitím vášho obľúbeného textového editora, ako root upravte súbor / etc / bluetooth / rfcomm.conf, a aby to vyzeralo, ako tieto nahradiť váš telefón MAC adresa a číslo kanálu.
- Save your rfcomm.conf and exit your text editor. Uložte rfcomm.conf a ukončite textový editor.
- As root, restart the bluetooth service: Ako root, reštartujte službu bluetooth:
[root@radon ~]# service Bluetooth restart [root @ radónu ~] # service Bluetooth restart
Stopping Bluetooth services: [ OK ] Zastavenie Bluetooth služby: [OK]
Starting Bluetooth services: [ OK ] Spustenie Bluetooth služby: [OK] - We have now created a Bluetooth serial port at /dev/rfcomm0 that will be persistent through reboots. Teraz sme vytvorili Bluetooth sériový port v / dev/rfcomm0, že bude perzistentná prostredníctvom reštartuje. This is the port you will use as a “modem” during the rest of the configuration. To je port, ktorý bude používať ako "modem" počas zvyšku konfigurácie.
# #
# RFCOMM configuration file. # Rfcomm konfiguračný súbor.
# #rfcomm0 { rfcomm0 (
bind yes; bind yes;
device 00:22:66:9F:83:37; Zariadenie 00:22:66:9 F: 83:37;
channel 2; kanál 2;
} )
Now we move on to the quick and dirty command line setup. Teraz prejdeme k rýchlej a špinavé nastavenie príkazového riadka. Feel free to skip to the GUI setup below if you aren't very comfortable with the command line. Neváhajte preskočiť na nastavenie GUI nižšie, ak nie ste veľmi pohodlné s príkazového riadku.
Command Line Method Command Line Metóda
GUI Method GUI Metóda
Command Line Method Command Line Metóda
- Edit /etc/wvdial.conf and make it look like this: Upravte / etc / wvdial.conf a aby to vyzeralo takto:
- I'm using Rogers Wireless in Canada and the above is the minimum configuration that works for me. I'm using Rogers Wireless v Kanade a hore je minimálnu konfiguráciu, ktorá pracuje pre mňa. Literally Username = user and Password = pass. Doslova = užívateľské meno a heslo = pass. You may need to make changes to the Username, Password, and Phone lines. Možno bude potrebné vykonať zmeny v užívateľské meno, heslo a telefónne linky. Contact your wireless provider for the correct details. Kontaktujte svojho poskytovateľa bezdrôtových správne informácie.
- I also had to create a script called /etc/ppp/ip-up.local to make the automatic DNS configuration work. Tiež som musel vytvoriť skript s názvom / etc / ppp / ip-up.local vykonať automatickú konfiguráciu DNS práce. Here's my ip-up.local: Tu je moje 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. Bohužiaľ som nebol schopný pripojiť ako bežný užívateľ v tejto konfigurácii, takže budete musieť pripojiť ako root.
[root@radon ~]# wvdial Bluetooth [root @ radónu ~] # wvdial Bluetooth
–> WvDial: Internet dialer version 1.60 -> Wvdial: Internet dialer version 1.60
–> Cannot get information for serial port. -> Nemožno získať informácie pre sériový port.
–> Initializing modem. -> Initializing modem.
–> Sending: ATZ -> Sending: ATZ
ATZ ATZ
OK OK–> Sending: ATM0 -> Sending: ATM0
ATM0 ATM0
OK OK
–> Modem initialized. -> Modem initialized.
–> Sending: ATDT*99***1# -> Sending: ATDT * 99 *** 1 #
–> Waiting for carrier. -> Waiting for carrier.
ATDT*99***1# ATDT * 99 *** 1 #
CONNECT CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~ ~ [7f ]}#@!}!})) 2 }#}$@#}!}$}% \ }"}&}) *)) g)% ~
–> Carrier detected. -> Carrier detected. Starting PPP immediately. Starting PPP immediately.
–> Starting pppd at Sun Oct 19 16:48:56 2008 -> Starting pppd at Sun Oct 19 16:48:56 2008
–> Pid of pppd: 8028 -> Pid of pppd: 8028
–> Using interface ppp0 -> Using interface ppp0
–> local IP address 172.28.53.106 -> Lokálna IP adresa 172.28.53.106
–> remote IP address 10.6.6.6 -> Vzdialené IP adresy 10.6.6.6
–> primary DNS address 207.181.101.4 -> Primárny DNS adresu 207.181.101.4
–> secondary DNS address 207.181.101.5 -> Sekundárny DNS adresu 207.181.101.5 - I removed the lines containing unprintable characters, but otherwise you should see something very similar to above. Som odstránil riadky obsahujúce nehovoriace znaky, ale inak by ste mali vidieť niečo veľmi podobného vyššie. Note that wvdial stays in the foreground. Všimnite si, že wvdial zostane v popredí. This is so you can disconnect by simply pressing Ctrl-C. Toto je takže môžete odpojiť jednoduchým stlačením Ctrl-C.
- You can verify that you are online by switching to a new terminal window and running ifconfig. Môžete overiť, že ste online prechodom do nového okna terminálu a spustenie ifconfig.
[root@radon ~]# ifconfig [root @ radónu ~] # ifconfig
lo Link encap:Local Loopback lo Zapúzdrenie: Miestna slučka
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 AKTIVOVÁN SLUČKA BĚŽÍ MTU: 16436 Metrika: 1
RX packets:12767 errors:0 dropped:0 overruns:0 frame:0 RX packets: 12767 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets:12767 errors:0 dropped:0 overruns:0 carrier:0 TX packets: 12767 errors: 0 dropped: 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 NOARP UP pointopoint RUNNING MULTICAST MTU: 1500 Metrika: 1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0 RX packets: 4 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 TX packets: 5 errors: 0 dropped: 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 @ radónu ~] # ping simplehelp.net
PING simplehelp.net (74.52.95.42) 56(84) bytes of data. PING simplehelp.net (74.52.95.42) 56 (84) bytes of data.
64 bytes from 2a.5f.344a.static.theplanet.com (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 = 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 bytes from 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 bytes from 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 bytes from 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 bytes from 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 statistics --
5 packets transmitted, 5 received, 0% packet loss, time 4513ms 5 packets transmitted, 5 received, 0% packet loss, time 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. Akonáhle budete hotoví on-line, nezabudnite prepnúť späť do terminálu, kde ste spustili wvdial a stlačte Ctrl-C.
^CCaught signal 2: Attempting to exit gracefully… ^ CCaught signál 2: Pokus o výstup elegantne ...
–> Terminating on signal 15 -> Zakončovací na signál 15
–> Connect time 5.8 minutes. -> Pripojiť čas 5,8 minúty.
–> Disconnecting at Sun Oct 19 16:54:48 2008 -> Odpojenie pri Sat Oct 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 Skratke = CRTSCTS[Dialer Bluetooth] [Dialer Bluetooth]
Username = user Username = užívateľ
Password = pass Password = pass
Phone = *99***1# Phone = * 99 *** 1 #
Stupid Mode = 1 Stupid Mode = 1
Init1 = ATZ Init1 = ATZ
Inherits = Modem0 Inherits = 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 "# vytvorené 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 go + r / etc / resolv.conf
Don't forget to chmod 755 /etc/ppp/ip-up.local Nezabudnite si 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: Teraz, keď všetko, príkazový riadok vec naháňa hrôzu, tu je návod, ako uviesť do života pomocou GNOME GUI:
- Click System -> Administration -> Network Kliknite na tlačidlo Systém -> Správa -> Sieť
- You will be asked to enter your root password. Budete vyzvaní na zadanie hesla pre roota. Enter it and click OK . Zadajte ju a kliknite na tlačidlo OK.
- Now you can see a list of installed network devices. Teraz môžete vidieť zoznam inštalovaných sieťových zariadení. Click on the Hardware tab. Kliknite na kartu Hardvér.
- Now click the New button, select Modem , and click OK . Teraz kliknite na tlačidlo New, vyberte modem a potom kliknite na tlačidlo OK.
- Change the Modem Device to /dev/rfcomm0. Zmena zariadenia Modem / dev/rfcomm0. If /dev/rfcomm0 is not available in the list, just type it in. Click OK . If / dev/rfcomm0 nie je k dispozícii v zozname, stačí napísať, že dovnútra Kliknite na tlačidlo OK.
- Now click the Devices tab. Teraz kliknite na kartu Zariadenia.
- Click the New button, select Modem connection, and click Forward . Kliknite na tlačidlo New, vyberte modem pripojenie a kliknite na tlačidlo Poslať ďalej.
- 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. Všetko, čo som musel urobiť, aby môj Rogers Bezdrôtové pripojenie práce zadajte * 99 *** 1 # ako telefónne číslo, meno používateľa ako prihlasovacie údaje a zložiť ako heslo. I also chose to name this connection Bluetooth. Tiež som sa rozhodol tento názov Bluetooth. Click Forward . Kliknite na tlačidlo Vpred.
- I left these options at their defaults. Nechal som tieto možnosti na ich predvolené hodnoty. Click Forward . Kliknite na tlačidlo Vpred.
- We've finished creating the connection. Dokončili sme vytvorenie spojenia. Click Apply . Kliknite na tlačidlo Použiť.
- Click the X in the top right corner to close this window. Kliknite na X v pravom hornom rohu zatvorte toto okno.
- Click Yes to save the changes. Kliknutím na tlačidlo Áno uložte zmeny.
- Click OK . Kliknite na tlačidlo OK. No, we won't need to restart the computer. Nie, nebudeme musieť reštartovať počítač.
- So, let's use our newly created connection. Tak poďme využiť našich novo vytvorené pripojenie. Click System -> Administration -> Network Device Control . Kliknite na tlačidlo Systém -> Správa -> Sieť zariadení Control.
- Select the Bluetooth connection you just created and click Activate . Vyberte Bluetooth ste práve vytvorili, a kliknite na tlačidlo Aktivovať.
- Notice how the Bluetooth connection has changed from Inactive to Active . Všimnite si, ako Bluetooth spojenie sa zmenil z neaktívne na aktívne.
- Open Firefox and visit http://www.simplehelp.net. Otvorte Firefox a navštívte 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 . Až budete hotoví, on-line, vráťte sa na zariadenie Network Control okne vyberte aktívne pripojenie Bluetooth a kliknite na tlačidlo Deaktivovať.
- Verify that the Bluetooth connection is indeed Inactive, then close the Network Device Control window. Skontrolujte, či je pripojenie Bluetooth je naozaj neaktívny, potom zatvorte zariadenia Network Control okno.
- Some of you may be wondering why I chose not to use Network Manager. Niektorí z vás možno sa čudujete, prečo som si vybral nepoužívať 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. Je to jednoducho kvôli tomu, že mobilné širokopásmové pomoc v Network Manager je v ňom detstvo a ja som zistila, že je prakticky nepoužiteľný. Once Network Manager's mobile broadband support becomes better, I'll rewrite this tutorial based on it. Akonáhle Network Manager pre mobilný broadband stane lepšiu podporu, budem prepísať tento návod na to.



click to enlarge kliknite pre zväčšenie




click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie


click to enlarge kliknite pre zväčšenie


click to enlarge kliknite pre zväčšenie


click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie


click to enlarge kliknite pre zväčšenie























0 Responses 0 Odpovede
Stay in touch with the conversation, subscribe to the Zostať v kontakte s konverzácia, prihláste sa RSS feed for comments on this post RSS kanál pre komentáre k tomuto príspevku . .