Results 1 to 6 of 6

Thread: NICs and daemons

  1. #1
    Junior Member
    Join Date
    Jun 2003
    Location
    Bogota, Colombia
    Posts
    5

    NICs and daemons

    I'm experiencing two different problems:

    One, I'm using two NICs, one embedded on my motherboard (via-rhine), and another on the PCI bus (3c59x). Both were found on the scan and both appear in 'lsmod' and 'lspci'. However, the Via seems to be turned off - at least it never responds to the cable modem when I do 'netcardconfig eth1 dhcp'...

    Sending DHCP broadcast from device eth1Operation failed.
    Failed.
    Hit return to exit.
    I would like to know if there are any utilities included with Knoppix to let me examine/adjust the configuration. I would also like to know which are the config files for the NICs so I can see how things are setup...

    =====================

    Two, when I did the HD installation, I specified that samba be started at system initialization. However, I have discovered that samba has opened up my machine to the rest of the internet and until I get the other NIC going and figure out how to setup the router (a topic for another day) I would now prefer to have it off by default and to manually start/stop it as needed.

    I need to know how to un-setup samba's daemon. Other distros include a utility to control all the daemons, but I've spent a couple of days looking and can't find anything like that here. Am I not looking in the correct place? Do I need to edit some config file? Which one(s)?

    Thanks,

    GKP
    (Paul Glanville)

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: NICs and daemons

    Quote Originally Posted by gkp
    I'm experiencing two different problems:

    One, I'm using two NICs, one embedded on my motherboard (via-rhine), and another on the PCI bus (3c59x). Both were found on the scan and both appear in 'lsmod' and 'lspci'. However, the Via seems to be turned off - at least it never responds to the cable modem when I do 'netcardconfig eth1 dhcp'...

    Sending DHCP broadcast from device eth1Operation failed.
    Failed.
    Hit return to exit.
    I would like to know if there are any utilities included with Knoppix to let me examine/adjust the configuration. I would also like to know which are the config files for the NICs so I can see how things are setup...

    =====================
    You would be looking for ethtool which allows you to see or change the settings and is included in the install. The setup files are in /etc/network/interfaces for the cards, /etc/resolv.conf for the nameservers and /etc/hostname for your hostname. You may also want to try to use linux noapic at the LILO boot screen to see if that helps with the rhine card.

    [edit]
    When you make changes in the network config files /etc/init.d/networking restart will re-start the networking with the new settings other option include start and stop.
    [/edit]


    Two, when I did the HD installation, I specified that samba be started at system initialization. However, I have discovered that samba has opened up my machine to the rest of the internet and until I get the other NIC going and figure out how to setup the router (a topic for another day) I would now prefer to have it off by default and to manually start/stop it as needed.

    I need to know how to un-setup samba's daemon. Other distros include a utility to control all the daemons, but I've spent a couple of days looking and can't find anything like that here. Am I not looking in the correct place? Do I need to edit some config file? Which one(s)?

    Thanks,

    GKP
    (Paul Glanville)
    The startup daemons are usually in /etc/init.d so to stop samba /etc/init.d/samba stop as root in a console window will stop the daemon substitute start for stop to of course start and restart to restart the daemon after making changes in the config. The config file is most likely in the /etc directory itself just use ls /etc/sam and hit the TAB key for auto completion to see the file name. A samba link I just seen a post no more than ten minutes ago http://www.oreilly.com/catalog/samba...k/ch01_01.html.

  3. #3
    Junior Member
    Join Date
    Jun 2003
    Location
    Bogota, Colombia
    Posts
    5

    Re: NICs and daemons

    Quote Originally Posted by Stephen
    Quote Originally Posted by gkp
    I'm experiencing two different problems:

    One ... I would like to know if there are any utilities included with Knoppix to let me examine/adjust the configuration. I would also like to know which are the config files for the NICs so I can see how things are setup...
    You would be looking for ethtool which allows you to see or change the settings and is included in the install. The setup files are in /etc/network/interfaces for the cards, /etc/resolv.conf for the nameservers and /etc/hostname for your hostname. You may also want to try to use linux noapic at the LILO boot screen to see if that helps with the rhine card.
    Thanks, although ethtool doesn't seem to be quite as user-friendly as the network configuration utility I saw on a Red Hat system once (which I forgot the name of...).
    /etc/network/interfaces doesn't even mention eth1, so I'm guessing that's the reason why I can't turn it ON and use it for a local net. I'll play with that a little later...
    Interestingly, the plugin NIC is discovered in the scan before the one embedded on the motherboard. Ideally I'd like to hard-code the eth(x) values to particular NICs so that if I change my configuration slightly (perhaps add/change NICs and/or PCI slots) I don't have to deal with having the whole net go screwy because Linux found the cards in a different order...

    I'm running grub, but I suspect the command you mention will work as well there; I'll play with it later as well...

    Quote Originally Posted by Stephen
    Quote Originally Posted by gkp
    Two ... I need to know how to un-setup samba's daemon. Other distros include a utility to control all the daemons, but I've spent a couple of days looking and can't find anything like that here. Am I not looking in the correct place? Do I need to edit some config file? Which one(s)?
    The startup daemons are usually in /etc/init.d so to stop samba /etc/init.d/samba stop
    This file appears to be a general purpose start/stop script. I would prefer not to have it run automagically in the first place. For instance, if my wife or one of my inlaws starts the machine they're not going to login as root and type in some cryptic command line command; they (like any regular users) just want to start up the browser and go surfing. Meanwhile the NetBIOS port is wide open and the system is quite possibly vulnerable to attack the while time. I need samba to be OFF by default and selectively enabled - not ON and manually disabled!

    Red Hat includes a rather easy to use tool (again, I forgot the name) to start/stop/restart/enable/disable any/all of the daemons as well as certain system processes from one convenient place; it displays the state of all of the processes and you can check boxes to activate, start, stop, etc. particular ones. There's nothing like that here? Failing that, perhaps I can change the name of S20samba in each of the init.x directories, but I was really looking for a cleaner solution than that...

    GKP
    (Paul Glanville)

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: NICs and daemons

    Quote Originally Posted by gkp
    Ideally I'd like to hard-code the eth(x) values to particular NICs so that if I change my configuration slightly (perhaps add/change NICs and/or PCI slots) I don't have to deal with having the whole net go screwy because Linux found the cards in a different order...
    You can edit the file /etc/modutils/aliases and put lines in there like:
    Code:
    alias eth0 3c59x
    alias eth1 rhine
    then run update-modules to update the modules.conf and this should work. note if the nic's that you change in use a different module then you would have to change accordingly also this done as root in a console window.
    This file appears to be a general purpose start/stop script. I would prefer not to have it run automagically in the first place. For instance, if my wife or one of my inlaws starts the machine they're not going to login as root and type in some cryptic command line command; they (like any regular users) just want to start up the browser and go surfing. Meanwhile the NetBIOS port is wide open and the system is quite possibly vulnerable to attack the while time. I need samba to be OFF by default and selectively enabled - not ON and manually disabled!
    You should be running a firewall anyway to remove the worry of samba or anything else running. There are several available through apt-get such as firestarter, guarddog and bastille-linux or you could use what I do on my router Arno's Iptables-firewall it's an easy setup with clear instructions on use although no graphic interface.

    [edit]
    Also the GRC website has a handy tool for scanning your ports called ShieldsUp just follow the links to you get to probe your ports to see what is open to the world.
    [/edit]

    Red Hat includes a rather easy to use tool (again, I forgot the name) to start/stop/restart/enable/disable any/all of the daemons as well as certain system processes from one convenient place; it displays the state of all of the processes and you can check boxes to activate, start, stop, etc. particular ones. There's nothing like that here? Failing that, perhaps I can change the name of S20samba in each of the init.x directories, but I was really looking for a cleaner solution than that...

    GKP
    (Paul Glanville)
    I don't really do the graphic management of the services so I really have no experience with the tools available a google for linux search with some well chosen keywords should find something usefull, perhaps other people reading the forum may have more to offer in this respect.

  5. #5
    Member registered user
    Join Date
    Jul 2003
    Location
    Delft, the Netherlands
    Posts
    76
    Red Hat includes a rather easy to use tool (again, I forgot the name) to start/stop/restart/enable/disable any/all of the daemons as well as certain system processes from one convenient place
    I just discovered SysV-Init (in the System-theme in the K-menu) Could that be what you are looking for?

    - - Edwin

  6. #6
    Junior Member
    Join Date
    Jun 2003
    Location
    Bogota, Colombia
    Posts
    5
    Quote Originally Posted by Edwin
    I just discovered SysV-Init (in the System-theme in the K-menu) Could that be what you are looking for?
    YES! Thanks!

    This utility seems to simply create/delete files in the relevant rc(x).d directories, allowing/preventing the selected services to execute at startup, as well as starting/stoping/restarting individual services - all of which serves my purposes exactly.

    Thanks again.

    GKP

Similar Threads

  1. Removing daemons from the boot-up process...
    By doesnotcompute in forum General Support
    Replies: 3
    Last Post: 03-11-2005, 08:48 PM
  2. knoppix with 3 nics
    By ghostblaze in forum General Support
    Replies: 0
    Last Post: 10-27-2004, 11:09 PM
  3. rcconf and recommended daemons to load
    By ElChef in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 10-14-2004, 05:24 PM
  4. ksysv (starting services/daemons at boot)
    By c123 in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 03-27-2004, 07:08 AM
  5. Where are controls for ALL daemons/services in KNX 3.2?
    By athlonthunder in forum General Support
    Replies: 4
    Last Post: 04-10-2003, 03:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM X3650 M5 Server +M5210 2X 750W PSU/E5-2690 V4 X2 /DDR4 128G RAM/1T SAS*3 picture

IBM X3650 M5 Server +M5210 2X 750W PSU/E5-2690 V4 X2 /DDR4 128G RAM/1T SAS*3

$1013.47



IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD) picture

IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD)

$264.92



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES picture

IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES

$27.25



IBM Power 740 8205-E6C Express 8-SFF Power7 3.55GHz CPU 64GB RAM *No HDD* Server picture

IBM Power 740 8205-E6C Express 8-SFF Power7 3.55GHz CPU 64GB RAM *No HDD* Server

$191.99



ibm server z series picture

ibm server z series

$16000.00



IBM SYSTEM x3200 M2 Server - HDD wiped, No OS picture

IBM SYSTEM x3200 M2 Server - HDD wiped, No OS

$75.00



IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server  picture

IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server

$209.98



IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED picture

IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED

$99.99



IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED picture

IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED

$109.95