Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Part 1
I currently have two NICs on my Ubuntu laptop - one inbuilt one, and a PCMCIA one. The inbuilt one is broken, as in physically broken, but it's still sending signals to Ubuntu that it's an NIC. Both of the NICs are in conflict, so every time I boot up my laptop I have to go into terminal and type in "sudo ifdown eth0" (don't think it works without root), and then my PCMCIA card (eth1) works and I can access the internet.
How can I make Ubuntu run "ifdown eth0" on boot, so that I don't have to do it manually each time? Thanks!
Part 2
Hello again , how can I start up a service (for example nessusd) on boot? I think it has something to do with rc.d, but I found loads of those directories in /etc, so I'm slightly confused.....
On part one can you disable the inbuilt ethernet port through your BIOS. This will eliminate the problem.
The second point you should have a menu item for you to select what services you want to run. I don't use Gnome so I can't tell you exactly where it is.
edit: Thanks for the last post! I am having some problems though...This is what my /etc/network/interfaces looks like:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
iface eth0 inet static
address 192.168.1.106
netmask 255.255.255.0
gateway 192.168.1.1
iface eth1 inet dhcp
auto eth1
That's pretty confusing to me! What should I do? Should I replace all the eth0 with eth1, and then just comment out the last 2 lines?
I haven't tried the service thing yet (because I can't remember which service I wanted to start on boot! ), but how do I know which is the right rcx.d directory? Thanks again,
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
change the lines
Code:
mapping hotplug
script grep
map eth0
to either read
Code:
mapping hotplug
script grep
map eth1
or uncomment those lines entirely (that is what i would try, just giving it a shot!)
to find out which runlevel you are using, run the command 'runlevel'
this will output something like
N 2
then you would want to adding/removing simlinks to/from /etc/rc2.d
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.