Beide kanten vorige revisieVorige revisieVolgende revisie | Vorige revisieVolgende revisieBeide kanten volgende revisie |
nl:slackware:beginners_guide [2012/10/22 19:52 (UTC)] – [Configure your Network] Vertaald. alienbob | nl:slackware:beginners_guide [2012/10/22 21:43 (UTC)] – [Switch to a generic kernel] Vertaald. alienbob |
---|
Indien je alles tot in de kleinste details wilt weten over netwerk-instelligen in Slackware, dan moet je deze online [[http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:network|gids voor netwerk configuratie in Slackware]] zeker lezen. | Indien je alles tot in de kleinste details wilt weten over netwerk-instelligen in Slackware, dan moet je deze online [[http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:network|gids voor netwerk configuratie in Slackware]] zeker lezen. |
| |
==== Traditional Network Configuration ==== | ==== Traditionele network configuratie ==== |
| |
=== Wired Network === | === Bedraad netwerk === |
| |
To configure your wired network interface ''eth0'', run (as root) <code> | Om het bedraad netwerk interface ''eth0'' te configureren, start je (als //root// gebruiker) <code> |
# netconfig | # netconfig |
</code> The same script which was run during the installation process. | </code> Dit is het zelfde script dat ook aan het eind van een Slackware installatie loopt. |
| |
<note important>''netconfig'' only deals with the wired connection for ''eth0''.</note> | <note important>''netconfig'' kan alleen een bedrade verbinding voor ''eth0'' opzetten.</note> |
| |
On the assumption that you configured your wired connection with ''netconfig'', your network should be connected automatically without the need for any post-installation configuration. | Aannemende dat je je bedrade netwerk kaart tijdens de installatie hebt ingesteld met ''netconfig'', zal je computer automatisch een verbinding maken met je netwerk, zonder verder ingrijpen. |
| |
If you didn’t enter your network configuration details during installation, just run ''netconfig'' as root; then run <code> | Indien je geen gegevens ingevuld hebt over je netwerk gedurende de installatie van Slackware, dan hoef je op dit moment enkel ''netconfig'' te starten als de //root// gebruiker; daarna moet je het volgend commando uitvoeren: <code> |
# /etc/rc.d/rc.inet1 eth0_start | # /etc/rc.d/rc.inet1 eth0_start |
</code> and you should have a working network connection instantaneously. | </code> wat onmiddellijk zal resulteren in een werkende netwerkverbinding. |
| |
=== Wireless === | === Draadloos netwerk === |
| |
Most common wireless hardware is supported by Linux these days. You can search online if your wireless hardware is supported by 3rd parties that have written Linux drivers. If you want to know if your computer recognizes your wireless card, simply run <code> | De meeste draadloze netwerk hardware wordt tegenwoordig wel door de Linux kernel ondersteund. Je kunt online opzoeken of je adapter wellicht software van derde partijen nodig heeft die niet in de kernel ingebakken zit. Als je wilt weten of de Linux kernel van je computer de netwerk adapter herkent, is het voldoende om het volgende commando als //root// uit te voeren: <code> |
# iwconfig | # iwconfig |
</code> as root. If that tool reports "//no wireless extensions//" for all your network interfaces then the kernel does not have a driver for your wireless card and you'll have to find one online. | </code> Wanneer dat programma "//no wireless extensions//" meldt voor alle netwerk interfaces, dan heeft de kernel geen stuurprogramma voor je draadloze adapter en zul je er een online moeten zoeken. |
| |
As with the wired network interfaces, your wireless card is traditionally configured in the file ''/etc/rc.d/rc.inet1.conf''. You can read a lot more about it in this [[http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:network#wireless_networks|wireless configuration guide]]. There is also the man page: <code> | Net als met bedrade netwerk adapters, wordt je draadloze interface traditioneel geconfigureerd in het bestand ''/etc/rc.d/rc.inet1.conf''. Je kunt veel meer hierover lezen in deze [[http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:network#wireless_networks|handleiding voor draadloze netwerk instellingen]]. Er is ook een man-pagina beschikbaar: <code> |
# man rc.inet1.conf | # man rc.inet1.conf |
</code> You will also need to take steps to include wireless security, whether WEP or WPA2. Unencrypted wireless connections are strongly discouraged. Note that WPA/WPA2 encryption is not configured just in ''/etc/rc.d/rc.inet1.conf'', you will also need to edit ''/etc/wpa_supplicant.conf'' and add an encryption key there. | </code> Om draadloze beveiligings protocollen als WEP or WPA2 te gebruiken moet je nog wat extra's doen. Het gebruik van niet-versleutelde draadloze netwerkverbindingen wordt sterk afgeraden. Let op dat WPA/WPA2 encryptie wordt niet alleen in ''/etc/rc.d/rc.inet1.conf'' ingesteld; je zult tevens het bestand ''/etc/wpa_supplicant.conf'' moeten openen in een tekst editor om je encryptie sleutel toe te voegen. |
| |
Wireless encryption issues, in particular for WPA, can be hard to troubleshoot. Some basic troubleshooting steps are detailed in the [[http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:network#wpa_debugging|above networking guide]], just in case you do not get your computer associated to the Access Point. | Problemen met draadloze encryptie, in het bijzonder voor WPA en WPA2, zijn moeilijk aan te pakken. Een aantal eenvoudige technieken voor probleemoplossing wordt beschreven in de [[http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:network#wpa_debugging|al eerder genoemde netwerk handleiding voor Slackware]]. Dat kan je op weg helpen wanneer je bjvoorbeeld geen associatie kunt opzetten met een draadloos toegangspunt (//Wireless Access Point// of WAP). |
| |
==== Graphical Network Configuration Services ==== | ==== Grafische netwerk configuratie diensten ==== |
| |
Slackware currently has some alternatives to configure and monitor your network connections. These install a daemon (aka a background service) which will allow you to switch between wired and wireless connections easily. That makes them perfectly suited for mobile users. They come with graphical configuration utilities and do not depend on the traditional Slackware configuration files - //in fact, those files will cause conflicts if they contain network configuration//. | De Slackware distributie levert momenteel twee alternatieve oplossingen (buiten de boven omschreven traditionele manier) om netwerkverbindingen op te zetten en te beheren. Deze alternatieven installeren beide een //daemon// (ofwel een dienst die op de achtergrond draait) die het toelaat om eenvoudig te wisselen tussen bedrade en draadloze verbindingen. Dit maakt ze uiterst geschikt voor mobiele gebruikers. Beide installeren grafische configuratieprogramma's en zijn niet afhankelijk van de traditionele Slackware configuratiebestanden - //in feite zullen die bestanden alleen maar conflicten opleveren wanneer ze netwerk configuratie gegevens bevatten.//. |
* You will find [[http://wicd.net/|wicd]] in the //extra// section of the Slackware release tree (the word //extra// means that it is not part of the core distribution and will not have been installed as part of a full installation).\\ After installing the wicd package, you have to make its init script executable so that the network daemon automatically starts at boot: <code> | |
| * Je vindt [[http://wicd.net/|wicd]] in de //extra// sectie van de Slackware directory structuur. Het woord //extra// geeft al aan dat dit niet onderdeel uitmaakt van de "kern" van de Slackware distributie. Het zal daarom niet automatisch geïnstalleerd zijn, zelfs indien je voor een volledige installatie gekozen hebt.\\ Na de [[nl:slackbook:package_management#installing_removing_and_upgrading_packages|installatie]] van het wicd pakket, moet je het wicd initialisatie-script uitvoerbaar maken zodat de netwerk //daemon// automatisch start wanneer de computer aangezet wordt: <code> |
# chmod +x /etc/rc.d/rc.wicd | # chmod +x /etc/rc.d/rc.wicd |
</code> You can then configure your network using the graphical tool ''wicd-client'' or if you are running Slackware 14 you can use the KDE widget for wicd instead. For console lovers, there is also ''wicd-curses'' which offers the same configuration capabilities as the X-based counterparts. | </code> Na een reboot kun je dan je netwerk configureren met het grafische programma ''wicd-client''. In Slackware 14 is er ook nog een KDE widget voor wicd als je liever een Qt4 dan een GTK2+ interface gebruikt. Voor de console liefhebbers is er dan ''wicd-curses'' met dezelfde configuratie mogelijkheiden als zijn X-gebaseerde tegenpolen. |
* Starting with Slackware 14, there is also [[http://projects.gnome.org/NetworkManager/|Networkmanager]]. It will be installed as part of a full install, but the network daemon will not be started by default. As with wicd, you have to make its init script executable: <code> | * Vanaf Slackware 14 is ook [[http://projects.gnome.org/NetworkManager/|Networkmanager]] een keuzemogelijkheid. NM wordt wél geïnstalleerd als onderdeel van een volledige installatie, maar de netwerk //daemon// zal niet standaard gestart worden bij het aanzetten van de computer. Net als bij wicd zul je het init script eerst uitvoerbaar moeten maken: <code> |
# chmod +x /etc/rc.d/rc.networkmanager | # chmod +x /etc/rc.d/rc.networkmanager |
</code> which will make NetworkManager start at boot. You will have to configure NetworkManager using an X-based graphical utility. \\ Slackware 14 includes a KDE widget for Networkmanager. If you are using another Desktop Environment like XFCE, you can install the Gnome network-manager-applet from [[http://slackbuilds.org/network/network-manager-applet/|SlackBuilds.org]]. | </code> Voor NetworkManager is er geen console-gebaseerd configuratie programma. Je zult een X-gebaseerd grafisch programma moeten gebruiken. \\ Slackware 14 bevat een KDE widget voor NetworkManager (als je tenminste KDE geïnstalleerd hebt). Indien je aan een van de andere bureaublad-omgevingen (//Desktop Environment// of DE) de voorkeur geeft, zoals bijvoorbeeld XFCE, dan kun je een SlackBuild script voor het Gnome network-manager-applet downloaden van [[http://slackbuilds.org/network/network-manager-applet/|SlackBuilds.org]] en daarmee zelf een pakket te compileren dat je dan middels "''installpkg''" kunt installeren. |
| |
===== Switch to a generic kernel ===== | ===== Omschakelen naar een generic kernel ===== |
| |
It's recommended that you switch to Slackware's //generic// kernel. This is easy to do but there are a few steps to follow. | Het wordt aanbevolen om zo snel mogelijk over te schakelen naar Slackware's dynamische of //generic// kernel. Dat is niet moeilijk, er slechts een klein aantal handelingen voor nodig. |
| |
<note tip>What is the difference between a "generic" kernel and the "huge" kernel which has been installed as the default kernel? \\ The "huge" kernel is essentially a kernel which has every hardware driver built in which you might need for a successful installation of your computer. Think of storage and (wired) network drivers, filesystem and encryption drivers and a lot more. All these built-in drivers result in a big kernel image (hence the name "huge"). When this kernel boots it will use up a lot your RAM (relatively speaking... with 1 GB of RAM you will not really be troubled by a few MB less RAM). \\ The "generic" kernel on the other hand, is a kernel which has virtually no drivers built in. All drivers will be loaded into RAM on demand. This will make your kernel's memory consumption lower and the boot process a bit faster. The smaller size allows for the use of an initial RAM disk or "initrd". An initial RAMdisk is required in certain configurations, like software RAID, or a fully encrypted hard drive.\\ For now, you need to remember that a "huge" kernel will not support an intial RAM disk, but the "generic" kernel will. We go for maximum flexibility and use a "generic" kernel.</note> | <note tip>Wat is het verschil tussen een dynamische "generic" kernel en de statische "huge" kernel die als de standaard kernel geïnstalleerd werd? \\ De "huge" kernel is in essentie een kernel waarin ieder denkbaar hardware stuurprogramma ingebouwd zit, dat mogelijk noodzakelijk is voor een succesvolle installatie van Slackware op een willekeurige computer. Denk daarbij aan stuurprogramma's voor opslagmedia en (bedrade) netwerk adapters, bestandssystemen en encryptie en nog heel wat meer. Al deze ingebouwde stuurprogramma's resulteren in een groot kernel bestand (vandaar de naam "huge"). Als deze kernel opstart zal het dus nogal wat van je computer's RAM claimen (relatief gesproken dan toch... want met 1 GB aan RAM geheugen zullen een paar MB minder aan RAM niet zoveel verschil maken). \\ De "generic" kernel aan de andere kant, is een kernel waar nagenoeg geen enkel stuurprogramma ingebouwd zit in het kernel bestand. Alle stuurprogramma's worden pas in het RAM geheugen geladen wanneer ze nodig zijn. Dat zorgt voor een lagere geheugenconsumptie en ook zal het opstartproces wat sneller gaan. Door de geringere grootte van de kernel wordt het mogelijk een initiële RAM disk of "initrd" te gebruiken. Een initiële RAM disk is een noodzaak in bepaalde configuraties zoals software RAID, of een volledig versleutelde harde schijf.\\ Voorlopig is het voldoende om te onthouden dat een "huge" kernel geen initiële RAM disk ondersteunt, maar de "generic" kernel wel. Wij kiezen voor maximale flexibiliteit en zullen de "generic" kernel gebruiken.</note> |
| |
* You will need to create an initial RAM disk ("//initrd//" for short). The //initrd// functions as a temporary root file system during the intial stage of the kernel booting, and it helps get the actual root system mounted when your system boots. Run this, as root: <code> | * Je zult een initiële RAM disk ("//initrd//" in het kort) moeten maken. De //initrd// dient als een tijdelijk //root// bestandssysteem gedurende de beginfase van het opstarten van de kernel, en het zal helpen om het eigenlijke root bestandssysteem gemount te krijgen waarmee de computer werkt wanneer het eenmaal volledig gestart is. Start dit commando, als root: <code> |
# /usr/share/mkinitrd/mkinitrd_command_generator.sh | # /usr/share/mkinitrd/mkinitrd_command_generator.sh |
</code> This command will not actually //do// anything. It is informational only, and will output something like this - depending on your kernel version, your hardware configuration, the root filesystem you chose when you installed Slackware and so on: <code> | </code> Dit commando zal niet daadwerkelijk iets //uitvoeren//. Het is puur informatief van aard, en zal iets uittdraaien als dit (afhankelijk van je kernel versie, je hardware configuratie, het root bestandssysteem dat je koos tijdens de installatie van Slackware, enzovoort): <code> |
# | # |
# mkinitrd_command_generator.sh revision 1.45 | # mkinitrd_command_generator.sh revision 1.45 |
| |
mkinitrd -c -k 3.2.29 -f ext4 -r /dev/sdb2 -m usb-storage:ehci-hcd:usbhid:ohci-hcd:mbcache:jbd2:ext4 -u -o /boot/initrd.gz | mkinitrd -c -k 3.2.29 -f ext4 -r /dev/sdb2 -m usb-storage:ehci-hcd:usbhid:ohci-hcd:mbcache:jbd2:ext4 -u -o /boot/initrd.gz |
</code> Run the script's suggested ''mkinitrd'' commandline (as root) to generate the ''initrd.gz'' image. | </code> Om een ''initrd.gz'' bestand te creëren voer je eenvoudig het ''mkinitrd'' commando uit (as root) dat door het script wordt geadviseerd. Dat kan heel snel, als volgt: <code> |
* If you have installed LILO (the default bootloader of Slackware), then you will also need to make changes to its configuration file ''/etc/lilo.conf'' by adding a section to your Slackware entry as follows: <code> | # $(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r) |
| </code> |
| * Indien je LILO geïnstalleerd hebt (dit is de standaard bootloader van Slackware), dan zul je hierna een aanpassing moeten maken aan het LILO configuratiebestand ''/etc/lilo.conf''. Voeg een sectie toe die zo uitziet (de partitienaam "/dev/sda1" is een voorbeeld): <code> |
image = /boot/vmlinuz-generic-3.2.29 | image = /boot/vmlinuz-generic-3.2.29 |
initrd = /boot/initrd.gz # add this line so that lilo sees initrd.gz | initrd = /boot/initrd.gz # voeg deze regel toe zodat lilo de initrd.gz ziet |
root = /dev/sda1 | root = /dev/sda1 |
label = Slackware | label = Slackware |
read-only | read-only |
</code> Actually, the "''mkinitrd_command_generator.sh''" script will show an example section which can be added to ''/etc/lilo.conf'' if you pass it the name of the generic kernel as an argument, like this: <code> | </code> In feite kan het "''mkinitrd_command_generator.sh''" script jou ook een voorbeeld tonen van een sectie die direct kan worden toegevoegd aan het bestand ''/etc/lilo.conf'', wanneer je aan het script de volledige naam van een //generic// kernel als argument meegeeft, als volgt: <code> |
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-3.2.29 | # /usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-3.2.29 |
</code> Note that it is recommended to //add a new section// instead of editing the existing kernel image section. Assign a unique label to your new section. After reboot, LILO will give you two options: to boot into your freshly added generic kernel, or to boot into the failsafe huge kernel (of which you are certain that it will work). | </code> Let op: aanbevolen wordt om //een nieuwe sectie toe te voegen// in plaats van het wijzigen van de bestaande kernel image sectie in dat bestand. Wijs ook een uniek label toe aan je nieuwe sectie. Na het opnieuw starten van de computer zal LILO nu //twee// keuzemogelijkheden tonen: de zojuist toegevoegde //generic// kernel, of doorstarten met de veilige keuze voor de //huge// kernel (waarvan je tenminste zeker bent dat die zal werken). |
* After making the changes to ''/etc/lilo.conf'' you have to save the file and then run <code> | * Na het aanpassen van ''/etc/lilo.conf'' moeten de wijzigingen worden opgeslagen, en tot slot moet het volgende commando worden uitgevoerd: <code> |
# lilo -v | # lilo -v |
</code> to make your change permanent. Then, reboot. | </code> om die wijzigingen permanent te maken. Nu kan de computer herstart worden. |
| |
<note important> | <note important> |
* Have a look at ''mkinitrd'' manual page (''man mkinitrd'') for more information. | * Aanbeveling: lees de ''mkinitrd'' man-pagina eens door (''man mkinitrd'') voor verdere informatie. |
* If you use grub or another bootloader, then make changes which are applicable to the program you use. | * Indien je ''grub'' of een andere //bootloader// gebruikt, zul je de aanpassingen moeten maken die dat programma verlangt. Raadpleeg de desbetreffende man-pagina's. |
* If you try to use the generic kernel without creating an ''initrd.gz'', then booting will fail with a kernel panic. | * Wanneer je probeert de //generic// kernel te starten zonder eerst een ''initrd.gz'' te creëren, dan zal het opstarten eindigen in een //kernel panic//. |
</note> | </note> |
| |