Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
-
goofy
- Beiträge: 71
- Registriert: 11.06.2006 16:21:38
Beitrag
von goofy » 18.06.2006 01:12:43
Hallo!
Bevor ich mir selbst was zusammenbastel, wie ist die einfachste Möglichkeit, weitere Kernelmodule laden zu lassen?
Bei slackware gibt es z.B. die modprobe.conf oder meinetwegen auch rc.local zum Starten von eigenem Kram und wie sieht es bei Debian aus?*
*Hoffe mal ihr werdet mich nicht wg meiner Fragen totschlagen, weil ich noch kein Debian Buch lese.
goofy
-
OliverDeisenroth
- Beiträge: 499
- Registriert: 27.07.2003 22:34:31
- Wohnort: Schwalmstadt
-
Kontaktdaten:
Beitrag
von OliverDeisenroth » 18.06.2006 01:41:15
Hi,
installiere mal das Programm modconf
und führe es mit modconf aus

Dies sind die Abenteuer des Betriebssystems Debian, das unterwegs ist, um in fremde Logdateien vorzustoßen, die noch nie ein Mensch vorher gesehen hat!
Meine persönliche Homepage (läuft mit Ubuntu-Server)
...
when apt is outdated, it is sometimes better to change the running system...!
-
goofy
- Beiträge: 71
- Registriert: 11.06.2006 16:21:38
Beitrag
von goofy » 18.06.2006 15:56:49
Oliver_D hat geschrieben:Hi,
installiere mal das Programm modconf
und führe es mit modconf aus

Wunderbar, danke! Aber was macht modconf nun konkret?
Wo löscht und wo fügt es modprobe Zeilen hinzu?
Gibt es ein besseres Programm, vielleicht mit gtk gui oder so, das sich komfortabler bedienen läst.
modconf sieht eher aus wie ein Ersatzrad.
goofy
-
Spasswolf
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
Beitrag
von Spasswolf » 18.06.2006 16:15:07
Modconf lädt das ausgewählte Modul mittels modprope (dabei werden vom Modul benötigte Module automatisch mitgeladen, dies ist eine Funktion von modprobe) und trägt den Namen des Moduls in /etc/modules ein, so dass es beim nächsten Booten automatisch geladen wird.
Beim entfernen eines Moduls mit modconf wird das Modul mittels 'modprobe -r' entfernt (hierbei werden nicht mehr benötigte Module , die als Abhängigkeiten des Moduls geladen waren ebenfalls entfernt), außerdem wird ein etwaiger Eintrag in /etc/modules gelöscht.
Du kannst die /etc/modules natürlich auch von Hand bearbeiten, und Module eintragen, die du beim Booten geladen haben willst.
-
OliverDeisenroth
- Beiträge: 499
- Registriert: 27.07.2003 22:34:31
- Wohnort: Schwalmstadt
-
Kontaktdaten:
Beitrag
von OliverDeisenroth » 18.06.2006 16:18:57
So ist es, dem ist nichts mehr hinzuzufügen.
Aber für was brauchst du eine gtk gui um Module zu laden? Das ist doch eigentlich im Endeffekt nur Nebensache

Wenn du einmal alles eingerichtet hast, dann läuft's und man muss nicht mehr daran herumfummeln.
Viele Module werden auch automatisch geladen, wenn du einen 2.6er Kernel verwendest.
Dies sind die Abenteuer des Betriebssystems Debian, das unterwegs ist, um in fremde Logdateien vorzustoßen, die noch nie ein Mensch vorher gesehen hat!
Meine persönliche Homepage (läuft mit Ubuntu-Server)
...
when apt is outdated, it is sometimes better to change the running system...!
-
ScyTheMan
- Beiträge: 363
- Registriert: 23.10.2004 15:09:14
- Lizenz eigener Beiträge: GNU Free Documentation License
Beitrag
von ScyTheMan » 18.06.2006 17:11:58
Oliver_D hat geschrieben:Viele Module werden auch automatisch geladen, wenn du einen 2.6er Kernel verwendest.
Das aber auch nur mit den entsprechenden Userspace-Programmen (hotplug, discover, udev).
-
goofy
- Beiträge: 71
- Registriert: 11.06.2006 16:21:38
Beitrag
von goofy » 18.06.2006 18:14:54
Spasswolf hat geschrieben:
Du kannst die /etc/modules natürlich auch von Hand bearbeiten, und Module eintragen, die du beim Booten geladen haben willst.
### This file is automatically generated by update-modules"
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
Und jetzt?
goofy
-
ScyTheMan
- Beiträge: 363
- Registriert: 23.10.2004 15:09:14
- Lizenz eigener Beiträge: GNU Free Documentation License
Beitrag
von ScyTheMan » 18.06.2006 19:13:04
Sicher dass du da /etc/modules hast und nicht etwa /etc/modprobe*?
-
Spasswolf
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
Beitrag
von Spasswolf » 18.06.2006 19:55:43
So sieht das ganze bei mir aus:
Code: Alles auswählen
$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.
-
OliverDeisenroth
- Beiträge: 499
- Registriert: 27.07.2003 22:34:31
- Wohnort: Schwalmstadt
-
Kontaktdaten:
Beitrag
von OliverDeisenroth » 18.06.2006 21:02:16
Leer würde ich mal sagen

,
jo, modconf wird dir die Module dort eintragen wenn du welche lädst, damit sie beim Systemstart geladen werden. Wenn nicht musst du sie halt selber dort eintragen.
Aber auf was willst du hinaus

?
Dies sind die Abenteuer des Betriebssystems Debian, das unterwegs ist, um in fremde Logdateien vorzustoßen, die noch nie ein Mensch vorher gesehen hat!
Meine persönliche Homepage (läuft mit Ubuntu-Server)
...
when apt is outdated, it is sometimes better to change the running system...!
-
cirox
- Beiträge: 70
- Registriert: 23.06.2006 20:37:57
Beitrag
von cirox » 23.06.2006 20:42:08
Hallo,
und wie bekomme ich jetzt heraus, welche Module nun schon automatisch geladen werden, oder sozusagen beim Start bereitstehen ?
Speziell geht es mir bei einem 2.6 Kernel und bei Sarge um das Modul "ip_conntrack_ftp". Also mit "modconf" wird mir ein Plus angezeigt und meine /etc/modules ist diesbezüglich leer.
Also in "modconf" steht nur Modul ist installiert .... bloss was heisst installiert ? Wird es jetz auch geladen, und wenn ja warum wenn es nicht in /etc/modules auftaucht ?
Irgendwie fehlt mir ein Befehl, wie man herausbekommt, welche Module geladen sind ... ?
Gruß cirox
-
Spasswolf
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
Beitrag
von Spasswolf » 23.06.2006 20:59:58
-
cirox
- Beiträge: 70
- Registriert: 23.06.2006 20:37:57
Beitrag
von cirox » 23.06.2006 21:10:29
Hi,
alles klar, entsprechendes Modul ist geladen, aber ich verstehe nicht ganz wo das nun automatisch geladen wird ? Wo steht die entsprechende Anweisung ?
Danke und Gruß Cirox
-
Spasswolf
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
Beitrag
von Spasswolf » 23.06.2006 21:19:49
Der Kernel kann das auch alleine:
Der Kernel hat geschrieben:
Automatic kernel module loading (KMOD)
type: boolean
prompt: Automatic kernel module loading
dep: MODULES
defined at init/Kconfig:459
Normally when you have selected some parts of the kernel to
be created as kernel modules, you must load them (using the
"modprobe" command) before you can use them. If you say Y
here, some parts of the kernel will be able to load modules
automatically: when a part of the kernel needs a module, it
runs modprobe with the appropriate arguments, thereby
loading the module if it is available. If unsure, say Y.
Oder ein Initskript lädt ein Modul, z. B. /etc/init.d/alsa. Du kannst ja mal nach modprobe in den Initskripten suchen:
EDIT: Ich weiss nicht ob KMOD im Debian Standardkernel aktiviert ist, such mal nach CONFIG_KMOD=y in /boot/config-`uname -r`
-
cirox
- Beiträge: 70
- Registriert: 23.06.2006 20:37:57
Beitrag
von cirox » 23.06.2006 21:47:42
Hallo,
grep -r CONFIG_KMOD=y /boot/config-2.6.8-2-k7
CONFIG_KMOD=y
ist aktiviert.
Ja in den init.d-scripten steht ne ganze Menge über "modprobe", da muss ich erstmal suchen in den entsprechenden Skripten. Also irgendwo wirds da schon drin stehen, denk ich mir jetzt. Mal sehen ob ichs irgendwann finde .....
Danke und Gruß cirox