Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Guys, I have 4 modules that I need to install everytime I restart my linux box, eg #Modprobe ip_conntrack_pptp #Modprobe ip_nat_pptp #Modprobe nf_nat_proto_gre #Modprobe nf_conntrack_proto_gre Is there anyway I ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    9

    [SOLVED] Module Installations

    Hi Guys,

    I have 4 modules that I need to install everytime I restart my linux box,

    eg

    #Modprobe ip_conntrack_pptp
    #Modprobe ip_nat_pptp
    #Modprobe nf_nat_proto_gre
    #Modprobe nf_conntrack_proto_gre

    Is there anyway I can install these modules into the system so I do not have to keep rewriting these module commands.

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    The old way, (and the way it is still done in CRUX) is by editing /etc/modprobe.conf. These days, many distros use /etc/modprobe.d/ which contains several files where you can configure how modules are loaded or ignored. See this for more on how to set it up.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    9
    Quote Originally Posted by Dapper Dan View Post
    The old way, (and the way it is still done in CRUX) is by editing /etc/modprobe.conf. These days, many distros use /etc/modprobe.d/ which contains several files where you can configure how modules are loaded or ignored. See this for more on how to set it up.

    Are you saying that i type "Modprobe ip_conntrack_pptp" in /etc/modprobe.conf

  4. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    You have /etc/modprobe.conf? Let me show you mine to get an idea:
    Code:
     
    #
    # /etc/modprobe.conf: modprobe(8) configuration
    
    alias eth0 e1000e
    
    # --- BEGIN: Generated by ALSACONF, do not edit. ---
    # --- ALSACONF version 1.0.18 ---
    alias snd-card-0 snd-hda-intel
    alias sound-slot-0 snd-hda-intel
    # --- END: Generated by ALSACONF, do not edit. ---
    
    # End of file
    Check this page for ideas on how to set your modules up in your etc/modprobe.conf. Another option is to add what you have to your /etc/rc.local:
    Code:
    /sbin/modprobe ip_conntrack_pptp
    /sbin/modprobe ip_nat_pptp
    /sbin/modprobe nf_nat_proto_gre
    /sbin/modprobe nf_conntrack_proto_gre
    Not as elegant but if it works...
    Linux Mint + IceWM Registered:#371367 New Members: click here

  5. #5
    Just Joined!
    Join Date
    Mar 2009
    Posts
    9

    Smile

    Quote Originally Posted by Dapper Dan View Post
    You have /etc/modprobe.conf? Let me show you mine to get an idea:
    Code:
     
    #
    # /etc/modprobe.conf: modprobe(8) configuration
    
    alias eth0 e1000e
    
    # --- BEGIN: Generated by ALSACONF, do not edit. ---
    # --- ALSACONF version 1.0.18 ---
    alias snd-card-0 snd-hda-intel
    alias sound-slot-0 snd-hda-intel
    # --- END: Generated by ALSACONF, do not edit. ---
    
    # End of file
    Check this page for ideas on how to set your modules up in your etc/modprobe.conf. Another option is to add what you have to your /etc/rc.local:
    Code:
    /sbin/modprobe ip_conntrack_pptp
    /sbin/modprobe ip_nat_pptp
    /sbin/modprobe nf_nat_proto_gre
    /sbin/modprobe nf_conntrack_proto_gre
    Not as elegant but if it works...
    Yes it did work. Thanks alot, greatly appreciated.

Posting Permissions

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