Faire des choses avec Linux/Se connecter à Internet
Un article de openSUSE.
| Cette page n'est pas encore traduite (ou pas complètement). Merci de participer au travail si vous en avez le temps et la compétence |
Se connecter à Internet
Beaucoup de distribution de Linux, vous permette d'entrer en détail les paramètres réseau durant l'installation: permettant ainsi d'avoir une connection valable et opérationnelle une fois l'installation terminée. Mais vous pouvez changer les paramètres de connections internet à n'importe quel moment. C'est particulièrement facile en utilisant un outil de KDE nommé kppp. Mais, vous devrait vous y connaitre en modems.
Matériel Requis :
Le matériel requis est un PC avec un modem, bien sur :-). Basiquement, il y a 2 types de modem - modem de type matériel et modem de type logiciel (également connu sous winmodems). Les modems matériel travaillent généralement avec n'importe quel système d'exploitation, et ne demande aucun drivers ni configuration. Les "modems logiciels" (winmodems) sont destinés à être utilisé avec Windows, et utilise les performances du CPU pour de nombreuses fonctions normalement traitées par le modem. Ce type de modem nécessite l'intallation d'une suite de drivers avant d'être utilisable. En général, les modems externes sont de type "matériel", tandis que la plupart des modems internes meilleur marché sont des winmodems, bien que cela soit aussi valables pour les modems de type "matériel" interne. Bien qu'il y ait des drivers pour Linux valables pour quelques winmodems, tous ne fonctionne pas. Pour cette raison, si vous devez acheter un nouveau modem, il serait préférable de prendre un modem de type "matériel". Référez vous à liste de modems qui fonctionnent ou non sous Linux si vous avez le projet d'acheter un nouveau modem. Le site linmodem a détaillé quel type de modem "logiciel" peuvent fonctionner, et comment les paramètrer.
Si vous avez des problèmes de configuration pour votre modem, lisez Modem-HOWTO, pour plus d'informations.
Configurer kppp pour KDE
Configurer kppp est très simple - en fait c'est plus simple que de configurer une connexion internet sous Windows. Tout d'abord lancer kppp. Dans le menu principal de KDE Internet > Outil dialup internet. Ouvrez le menu principal de KDE, cliquez sur la vitesse dans le panneau de KDE, maintenant sélectionnez internet et ensuite "Internet Dialup outil".
Maintenant "installation" (la première fois que vous lancez kppp, il n'y aura pas de numéro de téléphone dans le champ "Se connecter à").
Select "Device" , here just specify where your modem is located (e.g. com1 or com2 ) in the `Modem Device' drop down list. Now, Linux sees com1 & com2 in a different way . It refers to com1 as /dev/ttyS0 , com2 as /dev/ttyS1 and so on. So select the suitable device name (i.e. /dev/ttyS0 if com1) here. If you are using an internal modem select `/dev/modem' from the drop down list.
Next, select `Modem' from the tab and click on `Modem Query' , your modem will be queried. If everything goes right you will see a pop up window with some text in it , just hit `Okay' here. If you don't get any response from the modem, check that you have the Device section described above properly configured - you can use trial and error to find the right setting if you don't know which port your modem is on.
Now select `Account' from the tab window and hit `New'. You will get a message box asking you `Do you want wizard ' or `Dialog base setup'. Choose `Dialog base setup' if you are an Indian ( as I am). You can try the wizard setup if you can find your country or network there or else just use the dialog base setup.
Another tabbed window will appear , select `Dial' from tab, give the name of the connection (this can be anything as it is just to allow you to identify the account0, then the phone number which must be dialed to get your ISP & the authentication type. See your ISP manual for the type of authentication (usually PAP), for VSNL user choose terminal based.
Then select `DNS' tab here you have to provide the DNS server domain name or ip addresses. Now if you do not know the ip address then choose automatic & give the domain name (it is generally the part after the "@"sign in your email address which you obtain from your ISP. i.e if your email address is xyz@cal2.vsnl.net.in then the DNS server's domain name is cal2.vsnl.net.in .)
If you know the IP address (it is generally provided with your ISP manual) select manual & add each of them (for cal2.vsnl.net.in server i.e the VSNL server in Kolkata for cal2 user are 202.54.30.1 & 202.1.30). You may also provide both i.e. domain name as well as the ip addresses.
You will also see an "Accounting" tab. This gives you the option of keeping an account of the time or data you use with your ISP, and can be especially useful if you are billed by the hour or megabyte. If you decide to use this feature, click on the "Account" tab and you will see a list of different countries. You will be surprised to find that even India is listed. Tick the checkbox to enable accounting (you won't find this even in WinXP). Select it and you will see different types of accounts available in India (or your country). Choose accordingly and then choose the type of accounting (time, volume etc.)to suit your ISPs billing arrangement. Now hit `Ok'.
Your account is set up & you will see the entry in the list. Click `Ok' again. Now you are back to the starting window.
What are you waiting for? Hit `Connect', and after some screaming of the modem a connection will be made (you can turn the volume down by selecting the "Modem" tab and adjusting the slider in the setup process). A pop up window will appear. Give your user name and password and hit connect. The window will disappear after some time (actually it will be minimized)
Congratulations, you are now connected to the Internet! Select your favourite browser or email client from the "Internet" list in the main menu. Mozilla and Konqueror are popular Linux web browsers, while kmail and Evolution are good email clients. There is also an email client built into Mozilla. [edit] Solving Permission Restrictions with kppp under RedHat
Most distros (except RedHat) will allow anyone to connect to the 'net via kppp, but RedHat users will probably find that kppp will only run when you are logged in as root. There are a couple of ways to work around this; the first and simplest method only requires setting the suid ("substitute user id") of kppp to root. To do this log in as root, then open an xterm and type:
chmod a+s /usr/bin/kppp
Cette méthode autorisera tous les utilisateurs à se connecter avec kppp.
L'autre méthode est plus complexe, mais elle a l'avantage de vous permettre de spécifier qui peut ou ne peut pas se connecter. Cela nécessite de créer un groupe, de donner à ce groupe la permission de se connecter, puis d'ajouter les utilisateurs -qui auront la permission de se connecter- à ce groupe. Encore, vous devez passer en "root" pour faire ça:
1. Ajouter un groupe appelé "dialout" (ou n'importe quel autre nom génial que l'on peut trouver) 2. Ajouter les utilisateurs spécifiques (qui veulent utiliser kppp) de comptes à ce groupe. 3. Maintenant, exécuter ceci dans un terminal:
chown root.dialout /usr/bin/kppp
puis:
chmod 4750 /usr/bin/kppp
1. Finalement, créer un fichier nommé /etc/kppp.allow et mettre dedans les utilisateurs qui sont dans le nouveau groupe (dialout), un utilisteur par ligne.
Les deux premières étapes peuvent être faites graphiquement à l'aide de l'outils d'adminisration GUI - vous trouverez un tel programme dans le kontrol panel sur le bureau ou dans Menu Principal --->système--->user manager. Pour apprendre comment utiliser l'interface, clicker sur "aide".

