David Fairey wrote:
If you add "rtl8139" to the end of the "/etc/modules" file it should load the module everytime the machine boots. Then rest of the boot scripts will startup ifconfig and route before samba does.
I have the line options rtl8139 io=0xdc00 irq=10 in etc/modules, is this what you mean? It was put there by modutils when i ran update-modules. That is the only reference to rtl8139 though.
(Assuming you have all the correct entries in /etc/network/interfaces file for eth0).
The only thing i think I may be missing is ONBOOT=YES.....not sure if it is ok juist to plonk that at the end of /etc/network/interfaces for iface eth0 or not?
Earl Brannigan wrote
do you have the modules.conf entries for rtl8139 ? if you have them then whenever networking is brought up modprobe is able to start them.
Shouldn't
the modules reside in /lib/modules/<version>/ ?
Yes, I have just looked and rtl8139.o is present and correct in /lib/modules etc.
The daemons should be started by init. under /etc/init.d/ there should be
a
script for each of the daemons you want started sometime or other. Under /etc/rcN.d/ (where N is the runlevel) there should be a symlink to files
in
the init.d directory. (man init should help).
The daemons start ok, I just need to restart them after entering network information correctly. But I've just gone and looked at init.d and started to vaguely comprehend what is going on there. I could write any small script, (e.g. adding routes and modules if I can't figure it out the "proper" way?), plonk it here and symlink to it then?
Was an X session running at the time ?
This was re. my weird box-locking up. No, I rarely use X on this box. Thanks for the suggestion though.
Thanks! Jen.
Jenny_Hopkins@toby-churchill.com wrote
The daemons start ok, I just need to restart them after entering network information correctly.
$>/etc/init.d/<daemonname> restart ?? or longer $>/etc/init.d/<daemonname> stop $>/etc/init.d/<daemonname> start (this should be what the restart option does anyway
Alternatively to restart all services in runlevel 3 (usual mulit-user non-X) $>init 3 should do the trick (calls all symlinks for current runlevel with option stop then calls all for new runlevel with option start) - the fact that the runlevel is the same pre/post should make no diff ... methinks from memory - apologies if incorrect) Nb - root is kinda assumed... Cheers Earl
I have the line options rtl8139 io=0xdc00 irq=10 in etc/modules, is this what you mean? It was put there by
modutils when
i ran update-modules. That is the only reference to rtl8139 though.
Sort of, /etc/modules.conf gets constructed by update-modules and should contain your line - options rtl8139 io=0xdc00 irq=10
(Aside, having looked at the rtl8139.o module, it doesn't take any of the above parameters and seems to autodetect any controllers - but above shouldn't do any harm).
The /etc/modules file I mentioned just contains a list of modules to load at startup. So simply append "rtl8139" to end of the file. For example my copy is :-
#=========== /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. usb-uhci nfsd eepro100 # <== my network card ip_masq_ftp ip_masq_irc
rtl8139 # <== your network card #=========== /etc/modules/ ===========
The only thing i think I may be missing is ONBOOT=YES.....not sure
if it is
ok juist to plonk that at the end of /etc/network/interfaces for
iface eth0
or not?
I haven't heard of ONBOOT=YES before, but all you need are the correct IP address, netmask and gateway details in the /etc/network/interfaces file. You probably have all this entered correctly anyway.
e.g. my copy is :- #======= /etc/network/interfaces ========= # The loopback interface iface lo inet loopback
# The first network card - this entry was created during the Debian installation # (network, broadcast and gateway are optional) iface eth0 inet static address 10.0.1.2 netmask 255.255.0.0 broadcast 10.0.255.255 gateway 10.0.1.1
This file gets used at startup when the command "ifup -a" is executed to bring up all the network interfaces.
To check all this out try the following commands
# loads all the modules outlined in /etc/modules /etc/init.d/modutils # loads all networks using ifconfig, route, etc. ifup -a
That should be it.
I hope that helps. I can't explain solutions simply!!!!
Cheers.
David.