Find the answer to your Linux question:
Results 1 to 8 of 8
I am using Debian Sarge, linux kernel 2.4.27. My computer connects to the internet via an ethernet card, but every time I reboot, the network settings also get wiped. I ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    14

    Netconfig during startup

    I am using Debian Sarge, linux kernel 2.4.27. My computer connects to the internet via an ethernet card, but every time I reboot, the network settings also get wiped. I use dhcclient to set up the network configuration, so is there any way I can make the computer do that while it's booting?

    Thanks.

  2. #2
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    take a look at
    http://www.debian-administration.org/articles/28
    http://www.debian.org/doc/debian-policy/ch-opersys.html

    If you want a nice gui take a look at sysv-rc-conf. You may also try bum if you are running etch
    Brilliant Mediocrity - Making Failure Look Good

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    14
    I read through those but they don't say much about dhclient. Is there any way for dhclient to initiate during startup?

  4. #4
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    you will have to make a script. Here is a rough sample
    Code:
    #! /bin/sh
    dhclient blah
    replace blah with whatever you run. Name this script as
    Code:
    /etc/init.d/dhclient
    Then do, from the site I linked to
    Code:
    update-rc.d dhclient defaults
    You could also put the command in your
    Code:
    /home/Derada/.bashrc
    , or have it run with the startup of gnome or kde(I don't know how with kde).
    Code:
    gnome-session-properties
    Brilliant Mediocrity - Making Failure Look Good

  5. #5
    Just Joined!
    Join Date
    Aug 2006
    Posts
    14
    So what do I replace blah with? I tried running it just as dhclient but it didn't work.

  6. #6
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    what command do you normally use to run dhclient?
    Brilliant Mediocrity - Making Failure Look Good

  7. #7
    Just Joined!
    Join Date
    Aug 2006
    Posts
    14
    I just open up terminal and type in dhclient.

    Will I get the same result if I re-install Debian?

  8. #8
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    in that case try that script with just using dhclient without the extra blah
    Brilliant Mediocrity - Making Failure Look Good

Posting Permissions

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