The simple solution would be to add a script to your Autostart menu. If you use KDE, this is
Code:
nano ~/.kde/Autostart/scriptname
>> #!/bin/bash
>> /etc/init.d/dhcp3-server start
sudo chmod +r ~/.kde/Autostart/scriptname
Don't know about other DM/DEs, sorry, but most have something in a settings menu somewhere.
The other possibility is that your network manager (which is just a frontend to /etc/network/interfaces ) either does not have "auto interfacename" line in it, or it is not set to dhcp. (The relevant parts of) my /etc/network/interfaces look like this;
Code:
auto eth0
iface eth0 inet dhcp
Make sure you have both lines, the only thing that should be different is eth0 (and even then it probably won't be different). Be careful when editing your /etc/network/interfaces, make a backup if you're new to it (like this)
Code:
sudo cp /etc/network/interfaces /etc/network/interfaces.backup
and if it all goes to hell,
Code:
sudo cp /etc/network/interfaces.backup /etc/network/interfaces
Check the man page (man interfaces) for more details.
PS. Your network manager may or may not complain about you editing your interfaces file. For example, if you're using wicd, it sets the mode to "manual", and breaks if you change it. YMMV
Bookmarks