🐧
Linux
  • syllabus
  • unit 1-Introduction
    • Unit I: Introduction to Linux
    • 2. Advantages of Linux over other operating systems
    • 3.File systems
    • 4.Culture of free software
  • unit 2-Basics of Linux
    • 1.Commands
    • 2.shell
    • 3.Text Editors
    • 4.The file system of Linux
    • 5.Directories and their special purpose
    • 6.permission
  • unit 3-Installation
    • 1. Partitioning
    • 2. Installation of Linux
    • 3. Troubleshooting of installation
  • unit 4-System Administration
    • 1.Root login
    • 2.Superuser
    • 3.Configuration of hardware with kudzu
    • 4. Checking System Space:
    • 5. Monitoring System Performance:
    • 6. Working with a File System:
    • 7.Configuring modules
    • 8.jail shell
    • 9.awk
    • 10.sed
  • unit 5-User Management
    • 1.Creating user accounts
    • 2.Setting user defaults
    • 3.Providing support to users
    • 4.Modifying accounts
    • 5.Deleting user accounts
    • 6.Checking disk quotas
    • 7.Sending mail to all users
  • unit 6-Security and System Handling
    • 1.Understanding shell scripts
    • 2.System startup and shutdown
    • 3.Scheduling system tasks
    • 4.Backing up and restoring
    • 5.Password protection
    • 6.File security
  • unit 7-Setting up a Web Server
    • 1.Introduction to a web server
    • 2.Starting the Apache webserver
    • 3.Configuring the Apache webserver
    • 4.Monitoring server activities
  • unit 8-Setting up DHCP and NIS
    • 1.Introduction to DHCP
    • 2.Setting up DHCP Server
    • 3.Setting up DHCP Client
    • 4.Understand NIS
  • unit 9-Setting up a Database Server
    • 1.Configuring database server
    • 2.Checking the status
    • 3.Working with database
  • unit 10-Setting up DNS
    • 1.Introduction to DNS
    • 2.Setting up DNS and configuration
    • 3.Querying DNS
  • unit 11-ISP Simulation
    • 1.Integration of servers
    • 2.DNS, Web, Email, etc
  • fullform
  • Assignment
  • Practicals
    • 1.Linux utilities
    • 2.OS installation project work
    • 3.User management using a terminal
    • 4.Security level access control list
    • 1.Network setting
    • 2.Server configuration of DHCP, DNS, Database server
    • 3.Demonstration of the web, mail, file server
  • imp questions
    • short-notes
    • unit 1
    • unit 2
    • unit 3
    • unit 4
    • unit 5
    • unit 6
    • unit 7
    • unit 8
    • unit 9
    • unit 10
    • unit 11
    • unit ii
  • services
    • create_service
  • Viva+Practical
    • VIVA questions
    • Practical questions
Powered by GitBook
On this page

Was this helpful?

  1. unit 4-System Administration

7.Configuring modules

7. Configuring Modules:

Configuring modules in a Linux system involves managing kernel modules or device drivers. Kernel modules are pieces of code that can be loaded and unloaded into the running kernel to add or remove functionality. These modules often interact with hardware devices or provide additional features to the kernel.

Module Management Commands:

  1. Listing Loaded Modules:

    • lsmod: This command lists all currently loaded kernel modules.

      lsmod

      Example output:

      Module                  Size  Used by
      usb_storage            69632  1
      nvidia_uvm           1003520  0
      nvidia_drm             49152  2
      nvidia_modeset       1232896  2
      nvidia              34052096  172 nvidia_uvm,nvidia_modeset
  2. Loading Modules:

    • modprobe: This command is used to load kernel modules into the running kernel.

      modprobe module_name

      Example:

      modprobe usb_storage
    • To load a module at boot time, you can add it to the /etc/modules file.

  3. Unloading Modules:

    • rmmod: This command is used to remove (unload) kernel modules from the running kernel.

      rmmod module_name

      Example:

      rmmod usb_storage

Module Configuration Files:

  1. /etc/modules:

    • This file lists kernel modules that should be loaded at boot time.

    • Edit this file to add modules that you want to load automatically at startup.

    sudo nano /etc/modules

    Example /etc/modules file:

    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    
    usb_storage
  2. /etc/modprobe.d/ Directory:

    • The /etc/modprobe.d/ directory contains configuration files for module loading.

    • You can create custom configuration files to set options and aliases for specific modules.

    Example:

    sudo nano /etc/modprobe.d/my_module.conf

    Example my_module.conf file:

    # Configuration for my_module
    options my_module option_name=value

Module Options:

  1. Setting Module Options:

    • Some modules support options that can be configured when loading the module.

    • Use the modprobe command with the module_name option_name=value syntax to set options.

    Example:

    modprobe my_module option_name=value
  2. Persistent Module Options:

    • To set module options persistently, create a configuration file in /etc/modprobe.d/.

    • Use the format options module_name option_name=value in the configuration file.

    Example:

    sudo nano /etc/modprobe.d/my_module.conf

    Example my_module.conf file:

    # Set options for my_module
    options my_module option_name=value

Module Aliases:

  1. Module Aliases:

    • Module aliases define alternative names for modules.

    • They are used by the kernel to load modules when devices are detected.

    • Aliases are defined in /lib/modules/$(uname -r)/modules.alias and other files.

  2. Setting Module Aliases:

    • You can create custom module aliases using /etc/modprobe.d/ configuration files.

    Example:

    sudo nano /etc/modprobe.d/my_module-alias.conf

    Example my_module-alias.conf file:

    # Create an alias for my_module
    alias my_alias_module my_module
Previous6. Working with a File System:Next8.jail shell

Last updated 1 year ago

Was this helpful?