Linuxconf is an interactive utility. It may be used as a command line utility. It is useful to do script. Furthermore, Linuxconf has several alias allowing you to enter directly into one of its functionality. Here they are.
dnsconf --newdomain domain [ template-domain]Install a domain in the DNS. Use optionally 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-nameInstall a host definition, except that Linuxconf allocates the IP itself. It uses the given range to locate the first available IP.
dnsconf --setcname host real-hostInstall a a nickname for a host in the DNS configuration.
dnsconf --setfromip host ipInstall 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 entry which point to this IP number. This functionality is provided as a hook for automatic DNS update from a DHCP server.
dnsconf --setmx hostdomain mailserver .../ Install one or more MX record for a host or domain in the DNS configuration. The order is used to set the preference.
dnsconf --setns hostdomain mailserver .../ Install one or more NS record for a host or domain in the DNS configuration.
dnsconf --unset hostRemove all reference to a host (A record and PTR record) from the DNS configuration.
fsconf --checkDo some sanity check (and correction) in /etc/fstab.
linuxconf --archive [sub-system ...]Archive the configuration files of the current system profile version. Optionnaly, you can specify a list of sub-systems to archive. Without further argument, Linuxconf will archive all sub-systems.
linuxconf --diff [sub-system ...]Compare the current configuration file with the last revision stored in the archive for the current system profile version. Optionnaly, you can specify a list of sub-systems to process. Without further argument, Linuxconf will process all sub-systems.
linuxconf --extract [sub-system ...]Extract the last copy archived of the configuration files of the current system profile version. Optionnaly, you can specify a list of sub-systems to extract. Without further argument, Linuxconf will extract all sub-systems. This effectivly overwrite the configuration file with older copy from the profile archive: Use with care !!!
linuxconf --history [sub-system ...]Show the archive log of the all configuration files of the current system profile version. Optionnaly, you can specify a list of sub-systems to process. Without further argument, Linuxconf will process all sub-systems.
linuxconf --guiLinuxconf will operate in GUI mode even if it is configured differently (see the features menu).
linuxconf --guiprotoThis tells Linuxconf that it has been started from a GUI front-end, which expect 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 --shutdownJump straight in the shutdown dialog. Useful to setup a button in your X desktop.
linuxconf --textLinuxconf will operate in text mode even under X11. This may be useful for under-power workstations, where the text mode is quicker.
netconf --connect pppsetup [--fore]Establish a
PPP
connection using
the pppsetup specification. Optionnally
stays in foreground (--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 easy script like this
#!/bin/sh
if netconf --connect config
then
you can use the network right away
else
the connection has failed
fi
netconf --dialctlThis presents the list of all PPP/Slip dialout configurations and show for each ones their status (connected or not). When selecting one, if it is currently not connected, Linuxconf asks if you wish to establish the connection. You need proper privilege or the root password to do that. If the connection is established, then 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 suitage to include in users's desktop menu.
netconf --disconnect pppsetupTerminate a
PPP
connection.
netconf --resetfwTurn off packet filtering (Firewall) completely. This is normally used as an emergency trick to bring back a network to life after applying a "too" drastic fire-walling rule. netconf --update will reactivate theses rules.
netconf --runlevel local | client | serverSwitch the workstation to a different operation mode.
netconf --statusCheck what has to be done to bring the workstation in sync with its configuration.
netconf --updateMake the configuration file effective (make what
netconf --status
tells you that have to
be done.
userconf --adduser userid group username shellThis creates a user account and update (if available) the various disk quota records from defaults. There is no defaults. The HOME (using default base directory) directory 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 useridThis deletes an account