Linuxconf is an interactive utility that can also be run from the command line. It is useful to do scripts. Furthermore, Linuxconf has several aliases allowing you to enter directly into one of its functional areas. These include
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 update
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 mailserver...
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.
fsconf --check
Do some sanity check (and correction)
in /etc/fstab.
linuxconf --archive [sub-system ...]
Archive the configuration files for the current system
profile. Optionally, 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. Optionally, 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 archived copy of the configuration files for the current system profile. Optionally, you can specify a list of sub-systems to extract. Without further argument, Linuxconf will extract all sub-systems. 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 the all configuration files for the current system profile. Optionally, 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 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 --shutdownJump straight into the shutdown dialog. It is Useful to setup as a button in your X desktop.
linuxconf --textLinuxconf will operate in text mode even under X11. This may be useful for under-powered workstations, where the text mode is quicker.
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 --dialctlThis 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 privilege 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 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 a network back to life after applying a fire-walling rule that is too drastic. netconf --update will reactivate these 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 has to
be done.
userconf --adduser userid group username shellThis 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 useridThis deletes an account.