Sometimes you end up somewhere with your laptop where you just can't find any open WiFi. Noen ganger kan du ende opp et sted med den bærbare datamaskinen der du rett og slett ikke finner noen åpne WiFi. Luckily you have a Nokia N95 and a USB data cable. Heldigvis har du en Nokia N95 og en USB datakabel. I'm going to show you how to tether your N95 to your laptop via USB the quick and dirty command line way, as well as the prettier GUI way. Jeg skal vise deg hvordan du tjore din N95 til den bærbare PC via USB for rask og skitten kommandolinje måte, samt penere GUI måte. In these examples I am running Fedora 9 and Gnome. I disse eksemplene Jeg kjører Fedora 9 og Gnome.
Warning: You probably only want to do this if you have a decent data plan. Advarsel: Du har sannsynligvis bare vil gjøre dette hvis du har en anstendig dataabonnement. Using 3G data can result in a very large bill! Ved hjelp av 3G-data kan resultere i en veldig stor regning!
- You need have the ppp package and the wvdial package installed. Du må ha PPP pakken og wvdial pakken installert. If you don't, you can simply run, as root in a terminal window, yum install ppp wvdial (or use the package manager for your Linux distro). Hvis du ikke gjør det, kan du bare løpe, som root i et terminalvindu, yum installere PPP wvdial (eller bruke pakken manager for Linux distro).
- Start by plugging your phone into the computer with a USB data cable. Start ved å koble telefonen til datamaskinen med en USB datakabel. When the phone prompts you to select the connection mode, select PC Suite . Når telefonen ber deg om å velge tilkoblingen modus, velger PC Suite.
- Now open a terminal window and check your dmesg output. Nå åpner du et terminalvindu og sjekk dmesg output. You should see something similar to the following: Du burde se noe som ligner på følgende:
[user@radon ~]$ dmesg [user @ radon ~] $ dmesg
usb 4-2: new full speed USB device using uhci_hcd and address 16 usb 4-2: new full speed USB-enhet via uhci_hcd og adresse 16
usb 4-2: configuration #1 chosen from 1 choice usb 4-2: configuration # 1 valgt fra 1. valg
cdc_acm 4-2:1.10: ttyACM0: USB ACM device cdc_acm 4-2:1.10: ttyACM0: USB ACM enhet
usb 4-2: bad CDC descriptors usb 4-2: bad CDC deskriptorer
usb 4-2: bad CDC descriptors usb 4-2: bad CDC deskriptorer
usb 4-2: New USB device found, idVendor=0421, idProduct=0070 usb 4-2: Ny USB-enhet funnet, idVendor = 0421, idProduct = 0070
usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 4-2: Ny USB-enhet strenger: Mfr = 1, Produkt = 2, SerialNumber = 0
usb 4-2: Product: Nokia N95 8GB usb 4-2: Produkt: Nokia N95 8GB
usb 4-2: Manufacturer: Nokia usb 4-2: Produsent: NokiaNote the line that says cdc_acm 4-2:1.10: ttyACM0: USB ACM device . Merk linjen som sier cdc_acm 4-2:1.10: ttyACM0: USB ACM enhet. This tells us that the phone's modem is at /dev/ttyACM0. Dette forteller oss at telefonens modem er på / dev/ttyACM0.

Now we move on to the quick and dirty command line setup. Nå skal vi gå videre til rask og skitten kommandolinje oppsett. Feel free to skip to the Føl deg fri til å hoppe til GUI setup GUI setup below if you aren't very comfortable with the command line. nedenfor hvis du ikke er veldig komfortabel med kommandolinjen.
- Edit /etc/wvdial.conf and make it look like this: Rediger / etc / wvdial.conf og at den ser slik ut:
- I'm using Rogers Wireless in Canada and the above is the minimum configuration that works for me. Jeg bruker Rogers Wireless i Canada og over er den minste konfigurasjon som fungerer for meg. Literally Username = user and Password = pass. Bokstavelig Brukernavn = brukernavn og passord = pass. You may need to make changes to the Username, Password, and Phone lines. Du må kanskje gjøre endringer i brukernavn, passord og telefonlinjer. Contact your wireless provider for the correct details. Kontakt mobiloperatøren for korrekt informasjon.
- I also had to create a script called /etc/ppp/ip-up.local to make the automatic DNS configuration work. Jeg måtte også lage et skript som heter / etc / ppp / ip-up.local å gjøre den automatiske DNS-konfigurasjon arbeid. Here's my ip-up.local: Her er min 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. Dessverre jeg har ikke vært i stand til å koble seg som en vanlig bruker i denne konfigurasjonen så du må koble som root.
[root@radon ~]# wvdial USB [root @ radon ~] # wvdial USB
–> WvDial: Internet dialer version 1.60 -> WvDial: Internet Dialer versjon 1.60
–> Cannot get information for serial port. -> Kan ikke hente informasjon for seriell port.
–> Initializing modem. -> Initializing modem.
–> Sending: ATZ -> Sending: ATZ
ATZ ATZ
OK OK
–> Sending: ATM0 -> Sender: ATM0
ATM0 ATM0
OK OK
–> Modem initialized. -> Modem initialisert.
–> Sending: ATDT*99***1# -> Sender: 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 umiddelbart.
–> Starting pppd at Sun Oct 19 16:48:56 2008 -> Starting pppd at Søn Okt 19 16:48:56 2008
–> Pid of pppd: 8028 -> PID of pppd: 8028
–> Using interface ppp0 -> Bruke grensesnittet ppp0
–> local IP address 172.28.53.106 -> Lokale IP-adressen 172.28.53.106
–> remote IP address 10.6.6.6 -> Eksterne IP-adresse 10.6.6.6
–> primary DNS address 207.181.101.4 -> Primære DNS-adressen 207.181.101.4
–> secondary DNS address 207.181.101.5 -> Sekundær DNS-adresse 207.181.101.5 - I removed the lines containing unprintable characters, but otherwise you should see something very similar to above. Jeg fjernet de linjer som inneholder unprintable tegn, men ellers burde du se noe som ligner på ovenfor. Note that wvdial stays in the foreground. Merk at wvdial forblir i forgrunnen. This is so you can disconnect by simply pressing Ctrl-C. Dette er slik at du kan koble ved å trykke Ctrl-C.
- You can verify that you are online by switching to a new terminal window and running ifconfig. Du kan bekrefte at du er pålogget ved å bytte til en ny terminal vindu og kjører 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 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 UP POINTOPOINT RUNNING NOARP MULTICAST MTU: 1500 Metric: 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 @ 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 med 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 fikk, 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. Når du er ferdig på nettet, ikke glem å bytte tilbake til terminalen hvor du kjørte wvdial og trykk Ctrl-C.
^CCaught signal 2: Attempting to exit gracefully… ^ CCaught signal 2: Forsøk på å avsluttes normalt ...
–> Terminating on signal 15 -> Avslutning på signal 15
–> Connect time 4.7 minutes. -> Tilkobling tid 4,7 minutter.
–> Disconnecting at Sun Oct 19 18:24:32 2008 -> Koble på Søn Okt 19 18:24:32 2008
Modem = /dev/ttyACM0 Modem = / dev/ttyACM0
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 USB] [Dialer USB]
Username = user Brukernavn = user
Password = pass Password = pass
Phone = *99***1# Phone = * 99 *** 1 #
Stupid Mode = 1 Stupid Mode = 1
Init1 = ATZ Init1 = ATZ
Inherits = Modem0 Arver = 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 "# opprettet av 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 Ikke glem å 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: Nå, hvis alt kommandolinje ting skremmer deg, her er hvordan du gjør det arbeid med Gnome's GUI:
- Click System -> Administration -> Network Klikk System -> Administrasjon -> Nettverk
- You will be asked to enter your root password. Du vil bli bedt om å skrive inn root-passordet. Enter it and click OK . Skriv det og klikk OK.
- Now you can see a list of installed network devices. Nå kan du se en liste over installerte nettverksenheter. Click on the Hardware tab. Klikk på kategorien Maskinvare.
- Now click the New button, select Modem , and click OK . Nå klikker du på Ny-knappen, velg Modem, og klikk OK.
- Change the Modem Device to /dev/ttyACM0. Endre Modem Device til / dev/ttyACM0. If /dev/ttyACM0 is not available in the list, just type it in. Click OK . Hvis / dev/ttyACM0 ikke er tilgjengelig i listen, skriver det i. Klikk OK.
- Now click the Devices tab. Nå klikker kategorien Enheter.
- Click the New button, select Modem connection, and click Forward . Klikk på Ny-knappen, velg Modem-tilkobling, og klikk på Videresend.
- 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. Alt jeg trengte å gjøre for å gjøre mitt Rogers Trådløs tilkobling arbeidet ble inn * 99 *** 1 # som telefonnummer, brukeren som Login Name, og pass som passord. I also chose to name this connection USB. Jeg valgte å navngi denne tilkoblingen USB. Click Forward . Klikk Videresend.
- I left these options at their defaults. Jeg forlot disse alternativene på deres standardverdier. Click Forward . Klikk Videresend.
- We've finished creating the connection. Vi har ferdig med å opprette forbindelsen. Click Apply . Klikk Bruk.
- Click the X in the top right corner to close this window. Klikk på X øverst i høyre hjørne for å lukke dette vinduet.
- Click Yes to save the changes. Klikk Ja for å lagre endringene.
- Click OK . Klikk OK. No, we won't need to restart the computer. Nei, vil vi ikke trenger å starte datamaskinen på nytt.
- So, let's use our newly created connection. Så, la oss bruke vår nyopprettede tilkobling. Click System -> Administration -> Network Device Control . Klikk System -> Administration -> Network Device Control.
- Select the USB connection you just created and click Activate . Velg USB-tilkoblingen du nettopp laget, og klikk Aktiver.
- Notice how the USB connection has changed from Inactive to Active . Legg merke til hvordan USB-tilkoblingen er endret fra inaktiv til aktiv.
- Open Firefox and visit http://www.simplehelp.net. Åpne Firefox og besøk http://www.simplehelp.net.
- When you are finished online, go back to the Network Device Control window, select the Active USB connection and click Deactivate . Når du er ferdig tilkoblet, gå tilbake til Network Device Control vinduet velger du Aktiv USB-tilkoblingen og klikker Deaktiver.
- Verify that the USB connection is indeed Inactive , then close the Network Device Control window. Kontroller at USB-tilkoblingen er virkelig Inaktive, lukk deretter Network Device Control vinduet.



click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre



click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre


click to enlarge Klikk for å forstørre


click to enlarge Klikk for å forstørre


click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre

click to enlarge Klikk for å forstørre

Some of you may be wondering why I chose not to use Network Manager. Noen av dere kanskje lurer på hvorfor jeg valgte å ikke bruke 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. Det er ganske enkelt skyldes at mobilt bredbånd-støtte i Network Manager er i den spede begynnelse, og jeg fant det å være praktisk talt ubrukelig. Once Network Manager's mobile broadband support becomes better, I'll rewrite this tutorial based on it. Når Network Manager mobile bredbånd-støtte blir bedre, skal jeg skrive denne opplæringen basert på det.
























0 Responses 0 Responses
Stay in touch with the conversation, subscribe to the Hold kontakten med samtalen, abonnere på RSS feed for comments on this post RSS feed for kommentarer til dette innlegget . .