Hoofdstuk 7. Internet

Inhoudsopgave

Verbinding maken met het internet
Configuring a network
Internetten met Firefox
E-mails verzenden en ontvangen
Expresberichten
Overige internettoepassingen
Webpagina's ontwerpen

This section describes a number of tasks related to the Internet, including how to connect to the Internet, configure and use a web browser, and use other types of Internet programs.

Verbinding maken met het internet

Algemene procedure

Deze sectie beschrijft de algemene procedure om verbinding te maken met het internet.

[Opmerking]

If you have a wireless connection or connect to the Internet through a modem (including an ADSL modem), and this section does not work, you should read de paragraaf “Wireless Cards” or de paragraaf “ADSL Connections”.

Om verbinding te maken met het Internet:

  1. Open ApplicationsSystemNetwork.

  2. Ga naar tabblad Verbindingen en klik op de verbinding die u wilt gebruiken om deze te selecteren.

  3. Klik op Eigenschappen om de instellingen te wijzigen.

  4. Als uw provider of netwerkbeheerder u een IP-adres heeft opgegeven, stelt u Configuratie in op Statisch IP-adres, voer vervolgens het adres in het IP-adres veld in, en klik op OK. Stel anders Configuratie in op Automatische configuratie (DHCP) en klik op OK.

  5. Vink het vakje naast uw verbinding aan om deze in te schakelen.

Wireless Cards

Many wireless cards are automatically detected by Xubuntu during installation. To see if your card is supported, open ApplicationsSystemNetwork. If your wireless card is listed, you can follow de paragraaf “Algemene procedure” to connect to the Internet. You need to enter a valid ESSID value. If in doubt, type any. A complete listing of wireless cards which work with Xubuntu can be found online at the Ubuntu Wiki. Please add your wireless card to the list if it works with Xubuntu.

If your wireless network is protected by WEP encryption, ensure that you specify your network password when configuring your connection.

  1. Press ApplicationsSystemNetwork and click the wireless connection you wish to use.

  2. Press Properties, choose Password Type and enter your WEP password in Network Password form below.

  3. Press Ok and Close to apply changes.

Unsupported wireless cards

Some cards may not work automatically with Xubuntu. If this is the case, please look at the Wireless Troubleshooting Guide on the Ubuntu Wiki which is an excellent resource for troubleshooting wireless cards.

If your wireless card does not work with Xubuntu, you may have to do some research in order to activate it. A relatively reliable way of getting a wireless card to work is to use the ndiswrapper tool which allows Xubuntu to use the Microsoft Windows driver for the wireless card. To do this, follow the instructions below in de paragraaf “Using Windows wireless drivers”.

All other information regarding wireless networking on Xubuntu is collected at Wireless Networking Central on the Ubuntu Wiki.

Problemen oplossen

Controleer de apparaatherkenning

  1. Open a Terminal (ApplicationsAccessoriesTerminal) and type the command: sudo lshw -C network

  2. Als er een driver wordt genoemd, zie de paragraaf “Controleer of het apparaat aan staat”.

  3. Set up NDISWrapper (de paragraaf “Using Windows wireless drivers”).

Controleer of het apparaat aan staat

  1. Many wireless network devices can be turned on or off. Check to see if the device is turned on by opening a Terminal (ApplicationsAccessoriesTerminal) and type the command: sudo lshw -C network.

  2. Als het aan staat, zie de paragraaf “Controleer de verbinding met de router”.

Controleer de verbinding met de router

  1. Open a Terminal (ApplicationsAccessoriesTerminal) and type the command: iwconfig.

  2. Als er een regel is die ESSID="" luidt, zie WPA instellen (de paragraaf “WPA-ondersteuning configureren.”

  3. Als de ESSID voor uw router wordt weergegeven, dan kan er een probleem zijn met uw ACPI-ondersteuning. Start de kernel met de pci=noacpi optie.

Controleer IP-adrestoewijzing

  1. Open a Terminal (ApplicationsAccessoriesTerminal) and type the command: ifconfig.

  2. Als er een IP-adres wordt weergegeven, zie de paragraaf “Controleer DNS”.

  3. Typ in het Terminalvenster de opdracht: dhclient if_naam waarbij if_naam de eerder genoemde verbinding is.

  4. Als u een melding ziet dat bound to xxx.xxx.xxx.xxx luidt, zie de paragraaf “Controleer DNS”

  5. Zo niet, herstart dan uw systeem.

Controleer DNS

  1. Open a Terminal (ApplicationsAccessoriesTerminal) and type the command: ping 82.211.81.158.

  2. Now type the command: ping www.ubuntu.com.

  3. Type the command: cat /etc/resolv.conf. If there is no nameserver listed then contact your ISP and find out your primary and secondary domain name servers. Once you have this information see de paragraaf “Wireless Cards”.

Using Windows wireless drivers

Even if your wireless network card does not have a native Linux driver, you may still be able to get it working with ndiswrapper. Ndiswrapper is a Linux module which allows Xubuntu to use Microsoft Windows driver for wireless cards (in most cases).

[Opmerking]

These instructions apply only to the x86 and AMD64 versions of Xubuntu, and not to Xubuntu for Power PC (PPC).

[Tip]

If you have access to the Internet, you can see if your wireless cards is in the list of cards supported by ndiswrapper on the ndiswrapper website.

To install ndiswrapper, install the package ndiswrapper-utils (see Hoofdstuk 11, Toepassingen installeren, verwijderen en bijwerken). This package is provided on the Xubuntu CD. If you have access to the Internet, you can also optionally install a graphical tool, ndisgtk from the Universe repository (see de paragraaf “Software pakketbronnen”).

In order to set up ndiswrapper, it is necessary to obtain the Windows driver for your wireless card. Generally, the best way to do this is from the CD supplied with your wireless card. You should copy two files to the same place on your computer, one ending in .SYS and one ending in .INF. If you find any files which end in .BIN, also copy those. If you are not able to find the right files, and have alternative access to the Internet, you may be able to obtain help from the ndiswrapper website.

If you have installed the graphical tool ndisgtk, to set up ndiswrapper, simply select ApplicationsSystemWindows Wireless Drivers from the menu, and follow the instructions given.

If you have not installed the graphical tool, use this procedure:

  1. Open ApplicationsAccessoriesTerminal and type:

    sudo ndiswrapper -i ~/Desktop/drivername.inf
    [Opmerking]

    The above command assumes that your .INF file is named drivername.inf and was copied to your Desktop. Replace these values if necessary.

  2. To check if it is working correctly, type:

    ndiswrapper -l

    If it is working correctly, you should see:

    Installed ndis drivers:
    {name of driver}  driver present, hardware present

  3. For ndiswrapper to function, you need to load a module. To do this, type:

    sudo depmod -a
    sudo modprobe ndiswrapper
  4. To ensure that the module is loaded each time you boot the computer, type:

    sudo ndiswrapper -m

You should now be able to connect to the Internet by following the instructions at de paragraaf “Algemene procedure”.

Draadloos netwerk beveiligen

WPA-ondersteuning configureren.

WiFi Protected Access (WPA) is gebaseerd op WEP en biedt een sterkere beveiliging.

WPA is met Netwerkbeheer geïntegreerd. U moet tevens het wpasupplicant-pakket hebben geïnstalleerd.

Als u handmatig WPA-ondersteuning moet instellen, zie de Wiki pagina.

ADSL Connections

All PPPoE and router-style ADSL modems that use an Ethernet connection are supported by Xubuntu, and some USB ADSL modems are supported too.

For a router-style ADSL modem, simply follow de paragraaf “Algemene procedure”

For information on setting up a PPPoE ADSL modem see de paragraaf “PPPoE modems”.

For information on setting up a USB ADSL modem see de paragraaf “USB ADSL-modems”.

PPPoE modems

Deze sectie gaat over het instellen van een ADSL-internetverbinding met behulp van een ethernet PPPoE modem.

You will need to have subscribed to an Internet Service Provider, and your Internet connection must be installed and functional. A "DSL" light on your modem usually shows that the line is synchronized.

U zult uw gebruikersnaam en wachtwoord nodig hebben voor het account. U moet ook een ethernetkaart hebben die via het juiste type kabel met uw PPPoE modem is verbonden.

Finally, you need the PPPoE package to be installed in order for the following command to work. This package is installed by default, but can be missing if the configuration has been changed. If the following command does not work, you will need to install this package, which can be found on the Xubuntu CD.

Om de modem te configureren:

  1. Open ApplicationsAccessoriesTerminal

  2. Type in het terminalvenster:

    sudo pppoeconf
  3. Een programma met een tekst-gebaseerd menu zal u door de volgende stappen leiden, dit zijn:

    1. Bevestig dat uw ethernetkaart is gedetecteerd.

    2. Voer uw gebruikersnaam in.

    3. Voer uw wachtwoord in.

    4. Als u al een PPPoE verbinding heeft geconfigureerd, dan zal u worden gevraagd of deze mag worden gewijzigd.

    5. Veelgebruikte opties: u wordt gevraagd of u de “noauth” en “defaultroute”-opties wilt en of u “nodetach” wilt verwijderen - kies Ja.

    6. Gebruik peer DNS - kies Yes.

    7. Beperkt MSS probleem - kies Ja.

    8. Als u wordt gevraagd of u bij het opstarten verbinding wilt maken, dan zult u waarschijnlijk ja antwoorden.

    9. Tenslotte wordt u gevraagd of u de verbinding direct tot stand wilt brengen.

  4. Als u deze stappen heeft afgerond, zou uw verbinding moeten werken.

To start your ADSL connection on demand, in a terminal type:

sudo pon dsl-provider

To stop your ADSL connection, in a terminal type:

sudo poff dsl-provider

USB ADSL-modems

Often parts of ADSL USB modem drivers are proprietary, closed source software, with a restrictive licence, and so the whole driver cannot be supplied with Xubuntu. To get a modem to work with these drivers, you will need to download files from Internet with a computer having a working connection, then transfer the downloaded files to you Xubuntu installation.

[Waarschuwing]

USB is far from the ideal medium for network access. If you have a modem that can connect both via USB and ethernet, or an ethernet router, you should use the ethernet connection instead of the USB modem.

Since any USB modem installation will require Internet access to download the necessary proprietary drivers, as well as extensive configuration which is beyond the scope of this guide, all we can do here is to list the USB Modem models known to work with Xubuntu with links to the relevant installation instructions on the Xubuntu community help site.

The installation procedure of USB modems differs depending on the specific make and model of your modem. To identify model of your modem, note the name and number on the front. Occasionaly you may have to look for a label to discover the exact model. Consult the list below to see which driver your modem requires and note the link.

When you go online to download the necessary drivers, you can access the relevant driver download links from the page with the installation instructions relevant to that model of USB modem.

Dialup Modems

Most dialup modems are not supported by Xubuntu, but drivers can be found that will enable the use of such modems. You need a working internet connection to proceed. First you need to identify what chipset your dialup modem is using. Open ApplicationsAccessoriesTerminal and type:

wget -c http://linmodems.technion.ac.il/packages/scanModem.gz 
gunzip -c scanModem.gz > scanModem 
chmod +x scanModem
sudo ./scanModem 

Read carefully instructions on the screen and follow them if necessary. Once the script obtains the relevant information, type:

mousepad Modem/ModemData.txt

Read this file, it should list what modem chipset you have. Once you are aware of the chipset you have, see http://www.linmodems.org/ and follow the directions for your modem. More infomation can be found at SettingUpModems on the Ubuntu Wiki.

Network Manager provides graphical tools to configure a modem connection.

[Belangrijk]

U zult de volgende informatie nodig hebben:

ISP Phone Number; Username; Password.

  1. Open Network Manager(ApplicationsSystemNetwork)

  2. Kies Modemverbinding

  3. Kies Eigenschappen en vul de velden in.

  4. Klik op OK

Hulpmiddelen bij problemen met netwerkverbindingen

Als u een netwerkverbinding heeft die niet correct werkt, dan kunt u een aantal hulpmiddelen gebruiken om de oorzaak van het probleem vast te stellen.

Most of the tools in this section require use of the Terminal, which you can open by pressing ApplicationsAccessoriesTerminal.

Draadloze verbindingen herkennen

Met iwconfig kunt u bepaalde instellingen van uw draadloze hardware configureren. Het is echter ook zeer handig om draadloze netwerken mee te herkennen.

Om een draadloze verbinding te herkennen:

  1. Press ApplicationsAccessoriesTerminal to open a Terminal

  2. Type in het terminalvenster iwconfig en druk op Enter

  3. U hoort een uitvoer te krijgen dat vergelijkbaar is met:

    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth1      IEEE 802.11g  ESSID:"WLAN Name"  
            Mode:Managed  Frequency:2.432 GHz  Access Point: 00:12:CF:02:6F:EC   
            Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
            Retry limit:7   RTS thr:off   Fragment thr:off
            Power Management:off
            Link Quality=75/100  Signal level=-54 dBm  Noise level=-89 dBm
            Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
            Tx excessive retries:0  Invalid misc:0   Missed beacon:1
  4. De kolom links geeft de naam van de verbinding, zoals “eth0” of “wlan0

  5. Als de rechterkolom “no wireless extensions” luidt, dan is die verbinding niet herkend als een draadloze verbinding en is waarschijnlijk een draadverbinding

  6. Als de verbinding wel als een draadloze verbinding werd herkend, zullen de details over de draadloze verbinding in de rechterkolom worden weergegeven.

    • ESSID geeft u, indien aanwezig, de naam van het draadloze netwerk waarmee u bent verbonden

    • Link Quality geeft een meting van de sterkte van het draadloze signaal

Informatie over draadloze verbindingen zoeken

iwlist kan informatie over uw draadloze verbinding weergeven.

  1. Press ApplicationsAccessoriesTerminal to open a Terminal

  2. Type de volgende opdrachten in het Terminalvenster en druk op Enter om ze uit te voeren. Verzeker u ervan dat u, indien verschillend, eth1 vervangt door de naam van uw draadloze interface.

    • iwlist eth1 accesspoints - Geeft een lijst weer van de beschikbare draadloze access points.

    • iwlist eth1 rate - Geeft een lijst weer van alle mogelijke overdrachtsnelheden van uw draadloze verbinding, inclusief de huidige snelheid

    • iwlist eth1 key - Geeft informatie weer over draadloze versleuteling

Informatie over uw huidige verbinding verkrijgen

ifconfig is bedoelt om u in staat te stellen de instellingen van uw netwerkverbindingen te wijzigen, maar het kan ook worden gebruikt om informatie over de huidige verbinding weer te geven.

  1. Press ApplicationsAccessoriesTerminal to open a Terminal

  2. Type ifconfig eth1 in het Terminalvenster en druk op Enter, vervang eth1 door de naam van uw netwerk interface, indien verschillend.

    • inet addr geeft het huidige IP-adres van de verbinding weer

    • HWaddr geeft het MAC-adres van uw netwerkapparaat

Controleer of een verbinding correct werkt

Een goede manier om te controleren of een verbinding correct werkt is om een andere computer op het netwerk of op het internet te pingen.

To check if you are connected to the Internet press ApplicationsAccessoriesTerminal and type:

ping -c 8 xubuntu.com

After a while, xubuntu.com ping statistics should appear. Look at the % packet loss.

  • 0% packet loss - Your computer should have a good connection to the Internet

  • More than 0% packet loss - Your computer probably has a poor connection to the Internet or a poor wireless signal

  • 100% packet loss - Your connection is set improperly, or your computer is connected to an access point or router which is not connected to the Internet

If you get an error message which says ping: unknown host 'xubuntu.com' , then your computer is probably not connected to the Internet or cannot reach a DNS server.