Linuxconf is an interactive utility that can also be run from the command line, which is useful for scripts. Furthermore, linuxconf has several aliases allowing you to enter directly into one of its functional areas. These include:
Print and set the NIS domainname.
It gets you directly into the main menu of the DNS configure program.
dnsconf --newdomain domain [template-domain]
Install a domain in the DNS. Optionally, use another domain as a template to fill the various field of the domain definition. This includes the DNS advertising section, the email advertising and the various delays.
dnsconf --set host ip ...
Install a host definition in the DNS configuration. It will update the domain and the reverse mappings.
dnsconf --set host --fromrange range-name
Install a host definition. Note that linuxconf allocates the IP itself. It uses the given range to locate the first available IP.
dnsconf --setcname host real-host
Install a nickname for a host in the DNS configuration.
dnsconf --setfromip host ip
Install a host definition in the DNS
configuration. It will update the domain
and the reverse mappings. Unlike the --set
option, this will delete all other host entries
which point to this IP number. This functionality
is provided as a hook for automatic DNS updates
from a DHCP server.
dnsconf --setmx host/domain mailserver...
Install one or more MX records for a host or domain in the DNS configuration. The order is used to set the preference.
dnsconf --setns host/domain dnsserver...
Install one or more NS records for a host or domain in the DNS configuration.
dnsconf --unset host
Remove all references to a host (a record and PTR record) from the DNS configuration.
fixperm makes sure that the vital files and directories have proper ownership and permissions.
Without argument, it prints its command line options.
It gets you directly into the filesystem's configuration menu.
fsconf --check
Do some sanity checking (and correction) in /etc/fstab.
Print and set the hostname.
Without argument, it simply gets in linuxconf's main menu.
linuxconf --archive [sub-system ...]
Archive the configuration files for the current system profile. Optionally, you can specify a list of subsystems to archive. Without further argument, linuxconf will archive all subsystems.
linuxconf --diff [sub-system ...]
Compare the current configuration file with the last revision stored in the archive for the current system profile. Optionally, you can specify a list of subsystems to process. Without further argument, linuxconf will process all subsystems.
linuxconf --extract [sub-system ...]
Extract the last archived copy of the configuration files for the current system profile. Optionally, you can specify a list of subsystems to extract. Without further argument, linuxconf will extract all subsystems.
This effectively overwrites the configuration files with the most recent copy from the profile archive: Use with care !!!
linuxconf --history [sub-system ...]
Show the archive log of all configuration files for the current system profile. Optionally, you can specify a list of subsystems to process. Without further argument, linuxconf will process all subsystems.
linuxconf --gui
Linuxconf will operate in GUI mode even if it is configured differently (see the features menu).
linuxconf --guiproto
This tells linuxconf that it has been started from a GUI front-end, which expects GUI commands. Using this alone on the command line is useless. Here are some examples:
remadmin --exec linuxconf --guiproto
remadmin --exec ssh one_server linuxconf --guiproto
linuxconf --setmod module
Register a new module. If the module was already registered it has no effect. If the module was already registered but disabled, it is left this way. This is generally used in the post-install part of a module package.
linuxconf --shutdown
Jump straight into the shutdown dialog. This can be useful set up as a button on your X desktop.
linuxconf --text
Linuxconf will operate in text mode even under X11. This may be useful for under-powered workstations, where text mode is quicker.
linuxconf --unsetmod module
Unregister a module. This should be used by the pre-uninstall part of a module package.
Without argument, this will get you into the networking submenu of Linuxconf. Here are the command line options:
netconf --connect pppsetup [--fore]
Establish a PPP
connection using
the pppsetup specification. It is possible
to keep it in the foreground using the --fore
option.
netconf will terminate (when not using --fore) only when the link is up or the connection has failed. A useful code is return. This allows simple scripts like this
#!/bin/sh
if netconf --connect config
then
you can use the network right away
else
the connection has failed
fi
netconf --dialctl
This presents the list of all PPP/Slip dialout configurations and shows, for each one, their status (connected or not). When selecting a configuration that is not connected, linuxconf asks if you wish to establish the connection. You need proper privileges or the root password to do that.
If the connection is established, it asks if you wish to disconnect. Again proper privileges are needed.
This command line option points to the same function as the "Activate/terminate PPP links" menu entry of the control panel. This command is suitable for inclusion in the user's desktop menu.
netconf --disconnect pppsetup
Terminate a PPP
connection.
netconf --resetfw
Turn off packet filtering (firewall) completely. This is normally used as an emergency trick to bring a network back to life after applying a firewalling rule that is too drastic.
netconf --update
Will reactivate firewalling rules.
netconf --runlevel local | client | server
Switch the workstation to a different operation mode.
netconf --status
Check what has to be done to bring the workstation in sync with its configuration.
netconf --update
Make the configuration file effective (initiate
what netconf --status
tells you has to
be done).
It gets you directly into the user configuration menu. Here are the command line options:
userconf --adduser userid group username shell
This creates a user account and updates (if available) the various disk quota records from the defaults. There is no default for the --adduser option. The HOME directory (utilizing the default base) is created with proper /etc/skel handling.
You may use the passwd command with the -P to set the password for the new account.
userconf --deluser userid
This deletes an account.