1641a6cfbSDevin Teske.\" Copyright (c) 2012 Ron McDowell 231a41563SDevin Teske.\" Copyright (c) 2012-2013 Devin Teske 3641a6cfbSDevin Teske.\" All rights reserved. 4641a6cfbSDevin Teske.\" 5641a6cfbSDevin Teske.\" Redistribution and use in source and binary forms, with or without 6641a6cfbSDevin Teske.\" modification, are permitted provided that the following conditions 7641a6cfbSDevin Teske.\" are met: 8641a6cfbSDevin Teske.\" 1. Redistributions of source code must retain the above copyright 9641a6cfbSDevin Teske.\" notice, this list of conditions and the following disclaimer. 10641a6cfbSDevin Teske.\" 2. Redistributions in binary form must reproduce the above copyright 11641a6cfbSDevin Teske.\" notice, this list of conditions and the following disclaimer in the 12641a6cfbSDevin Teske.\" documentation and/or other materials provided with the distribution. 13641a6cfbSDevin Teske.\" 14641a6cfbSDevin Teske.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15641a6cfbSDevin Teske.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16641a6cfbSDevin Teske.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17641a6cfbSDevin Teske.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 18641a6cfbSDevin Teske.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19641a6cfbSDevin Teske.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20641a6cfbSDevin Teske.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21641a6cfbSDevin Teske.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 22641a6cfbSDevin Teske.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 23641a6cfbSDevin Teske.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24641a6cfbSDevin Teske.\" POSSIBILITY OF SUCH DAMAGE. 25641a6cfbSDevin Teske.\" 26641a6cfbSDevin Teske.\" docsinstall 27641a6cfbSDevin Teske.\" password 28641a6cfbSDevin Teske.\" diskmgmt 29641a6cfbSDevin Teske.\" usermgmt 30641a6cfbSDevin Teske.\" useradd 31641a6cfbSDevin Teske.\" useredit 32641a6cfbSDevin Teske.\" userdel 33641a6cfbSDevin Teske.\" groupmgmt 34641a6cfbSDevin Teske.\" groupadd 35641a6cfbSDevin Teske.\" groupedit 36641a6cfbSDevin Teske.\" groupdel 37641a6cfbSDevin Teske.\" console 38641a6cfbSDevin Teske.\" syscons_font 39641a6cfbSDevin Teske.\" syscons_keymap 40641a6cfbSDevin Teske.\" syscons_repeat 41641a6cfbSDevin Teske.\" syscons_saver 42641a6cfbSDevin Teske.\" syscons_screenmap 43641a6cfbSDevin Teske.\" syscons_ttys 44641a6cfbSDevin Teske.\" timezone 45641a6cfbSDevin Teske.\" mouse 46641a6cfbSDevin Teske.\" mouse_enable 47641a6cfbSDevin Teske.\" mouse_type 48641a6cfbSDevin Teske.\" mouse_port 49641a6cfbSDevin Teske.\" mouse_flags 50641a6cfbSDevin Teske.\" mouse_disable 51641a6cfbSDevin Teske.\" networking 52641a6cfbSDevin Teske.\" defaultrouter 53641a6cfbSDevin Teske.\" hostname 54641a6cfbSDevin Teske.\" nameservers 55641a6cfbSDevin Teske.\" netdev 56641a6cfbSDevin Teske.\" security 57641a6cfbSDevin Teske.\" ttys 58641a6cfbSDevin Teske.\" [dot] 59641a6cfbSDevin Teske.\" 60641a6cfbSDevin Teske.\" $FreeBSD$ 61641a6cfbSDevin Teske.\" 62b07efdb5SDevin Teske.Dd Jun 5, 2013 63641a6cfbSDevin Teske.Dt BSDCONFIG 8 64641a6cfbSDevin Teske.Os 65641a6cfbSDevin Teske.Sh NAME 66641a6cfbSDevin Teske.Nm bsdconfig 67641a6cfbSDevin Teske.Nd system configuration utility 68641a6cfbSDevin Teske.Sh SYNOPSIS 69641a6cfbSDevin Teske.Nm 70641a6cfbSDevin Teske.Op Fl h 71641a6cfbSDevin Teske.Nm 72641a6cfbSDevin Teske.Ar command 73641a6cfbSDevin Teske.Op Fl h 74641a6cfbSDevin Teske.Nm 75641a6cfbSDevin Teske.Op OPTIONS 76641a6cfbSDevin Teske.Op command Op OPTIONS 77641a6cfbSDevin Teske.Sh DESCRIPTION 78641a6cfbSDevin Teske.Nm 79641a6cfbSDevin Teskeis used to set up many system configuration settings, both for new systems, as 80641a6cfbSDevin Teskewell as changing configuration settings of existing systems. 81641a6cfbSDevin Teske.Pp 82641a6cfbSDevin Teske.Nm 8301dc132cSDevin Tesketakes a command as an argument. 8401dc132cSDevin TeskeIf invoked with no arguments, it will bring up a master menu listing the 8501dc132cSDevin Teskeavailable commands. 86641a6cfbSDevin Teske.Pp 87641a6cfbSDevin TeskeThe following options are available: 88641a6cfbSDevin Teske.Bl -tag -width indent+ 8999bc932eSDevin Teske.It Fl f Ar file 9099bc932eSDevin TeskeLoad 9199bc932eSDevin Teske.Ar file 9299bc932eSDevin Teskeas script and then exit. 9399bc932eSDevin TeskeIf multiple occurrences, program will only exit after last occurrence. 9499bc932eSDevin TeskeIf 9599bc932eSDevin Teske.Ar file 9699bc932eSDevin Teskeis a single dash 9799bc932eSDevin Teske.Pq Sq Fl , 9899bc932eSDevin Teske.Nm 9999bc932eSDevin Teskereads from standard input. 100641a6cfbSDevin Teske.It Fl h 101641a6cfbSDevin TeskePrint usage statement and exit. 102641a6cfbSDevin Teske.It Fl S 103641a6cfbSDevin TeskeSecure X11 mode 104641a6cfbSDevin Teske.Pq implies Fl X . 105641a6cfbSDevin TeskeAs root, always prompt-for and validate 106641a6cfbSDevin Teske.Xr sudo 8 107641a6cfbSDevin Teskeusername/password before starting. 108641a6cfbSDevin Teske.It Fl X 109641a6cfbSDevin TeskeUse 110641a6cfbSDevin Teske.Xr Xdialog 1 111641a6cfbSDevin Teskein place of 112641a6cfbSDevin Teske.Xr dialog 1 . 1138a664e6cSJoel Dahl.El 114641a6cfbSDevin Teske.Sh COMMANDS 115641a6cfbSDevin TeskeThe following commands 116641a6cfbSDevin Teske.Pq sorted alphabetically 117641a6cfbSDevin Teskeare currently included in the base 118641a6cfbSDevin Teske.Nm 11901dc132cSDevin Teskeprogram, with more to be added soon. 12001dc132cSDevin TeskeOther commands can be added, as detailed below in the 121641a6cfbSDevin Teske.Cm ADDING COMMANDS 122641a6cfbSDevin Teskesection, and once added, will appear in the master menu as well as in the 123641a6cfbSDevin Teske.Cm -h 124641a6cfbSDevin Teskelisting. 125641a6cfbSDevin Teske.Bl -tag -width ".Cm syscons_screenmap" 126641a6cfbSDevin Teske.It Cm console 127641a6cfbSDevin TeskeUtilities to customize the behavior of the system console. 128641a6cfbSDevin Teske.It Cm defaultrouter 129641a6cfbSDevin TeskeShortcut to the Default Router/Gateway menu under networking. 130641a6cfbSDevin Teske.It Cm diskmgmt 13101dc132cSDevin TeskeManage disk partitions and/or labels. 13201dc132cSDevin TeskeExecutes 133641a6cfbSDevin Teske.Xr sade 8 . 134641a6cfbSDevin Teske.It Cm docsinstall 135641a6cfbSDevin TeskeExecutes the 136641a6cfbSDevin Teske.Cm bsdinstall docsinstall 137641a6cfbSDevin Teskesub-utility to allow installation/re-installation of the FreeBSD Documentation 138641a6cfbSDevin Teskeset(s). 139641a6cfbSDevin Teske.It Cm dot 140641a6cfbSDevin TeskeGenerate a graphviz 141641a6cfbSDevin Teske.Xr dot 1 142641a6cfbSDevin Teskelanguage file 143641a6cfbSDevin Teske.Pq printed on stdout 144641a6cfbSDevin Teskevisualizing the 1454d36343eSJoel Dahl.Nm 14601dc132cSDevin Teskemenu, include, and shortcut structure relationships. 14701dc132cSDevin TeskeSee 148641a6cfbSDevin Teske.Dq bsdconfig dot -h 149641a6cfbSDevin Teskefor more details. 150641a6cfbSDevin Teske.It Cm groupadd 151641a6cfbSDevin TeskeShortcut to the Add Groups menu under groupmgmt. 152641a6cfbSDevin Teske.It Cm groupdel 153641a6cfbSDevin TeskeShortcut to the Delete Groups menu under groupmgmt. 154641a6cfbSDevin Teske.It Cm groupedit 155641a6cfbSDevin TeskeShortcut to the Edit/View Groups menu under groupmgmt. 156641a6cfbSDevin Teske.It Cm groupmgmt 157641a6cfbSDevin TeskeUtilities to Add/Change/View/Delete Group Accounts. 158641a6cfbSDevin Teske.It Cm hostname 159641a6cfbSDevin TeskeShortcut to the Hostname/Domain menu under networking. 160641a6cfbSDevin Teske.It Cm mouse 161641a6cfbSDevin TeskeUtilities for configuring, exploring, and enabling console mouse support. 162641a6cfbSDevin Teske.It Cm mouse_disable 163641a6cfbSDevin TeskeShortcut to the Disable menu under mouse. 164641a6cfbSDevin Teske.It Cm mouse_enable 165641a6cfbSDevin TeskeShortcut to the Enable menu under mouse. 166641a6cfbSDevin Teske.It Cm mouse_flags 167641a6cfbSDevin TeskeShortcut to the Flags menu under mouse. 168641a6cfbSDevin Teske.It Cm mouse_port 169641a6cfbSDevin TeskeShortcut to the Port menu under mouse. 170641a6cfbSDevin Teske.It Cm mouse_type 171641a6cfbSDevin TeskeShortcut to the Type menu under mouse. 172641a6cfbSDevin Teske.It Cm nameservers 173641a6cfbSDevin TeskeShortcut to the DNS Nameservers menu under networking. 174641a6cfbSDevin Teske.It Cm netdev 175641a6cfbSDevin TeskeShortcut to the Network Interfaces menu under networking. 176641a6cfbSDevin Teske.It Cm networking 177641a6cfbSDevin TeskeUtilities to set/change Hostname/Domain, Network Interfaces, Default 178641a6cfbSDevin TeskeRouter/Gateway, and DNS Nameservers. 179641a6cfbSDevin Teske.It Cm password 180641a6cfbSDevin TeskeSet the system administrator 181641a6cfbSDevin Teske.Pq root 182641a6cfbSDevin Teskepassword. 183641a6cfbSDevin Teske.It Cm security 184641a6cfbSDevin TeskeConfigure various system security settings. 185641a6cfbSDevin Teske.It Cm syscons_font 186641a6cfbSDevin TeskeShortcut to the Font menu under console. 187641a6cfbSDevin Teske.It Cm syscons_keymap 188641a6cfbSDevin TeskeShortcut to the Keymap menu under console. 189641a6cfbSDevin Teske.It Cm syscons_repeat 190641a6cfbSDevin TeskeShortcut to the Repeat menu under console. 191641a6cfbSDevin Teske.It Cm syscons_saver 192641a6cfbSDevin TeskeShortcut to the Saver menu under console. 193641a6cfbSDevin Teske.It Cm syscons_screenmap 194641a6cfbSDevin TeskeShortcut to the Screenmap menu under console. 195641a6cfbSDevin Teske.It Cm syscons_ttys 196641a6cfbSDevin TeskeShortcut to the Ttys menu under console. 197641a6cfbSDevin Teske.It Cm timezone 198641a6cfbSDevin TeskeSet the regional timezone of the local machine. 199641a6cfbSDevin Teske.It Cm useradd 200641a6cfbSDevin TeskeShortcut to the Add Users menu under usermgmt. 201641a6cfbSDevin Teske.It Cm userdel 202641a6cfbSDevin TeskeShortcut to the Delete Users menu under usermgmt. 203641a6cfbSDevin Teske.It Cm useredit 204641a6cfbSDevin TeskeShortcut to the Edit/View Users menu under usermgmt. 205641a6cfbSDevin Teske.It Cm usermgmt 206641a6cfbSDevin TeskeUtilities to Add/Edit/View/Delete User Accounts. 2078a664e6cSJoel Dahl.El 208641a6cfbSDevin Teske.Sh INTERNATIONALIZATION 209641a6cfbSDevin Teskei18n features are built into 210641a6cfbSDevin Teske.Nm 211641a6cfbSDevin Teskeand language-specific translation files will be added as they become available. 212641a6cfbSDevin TeskeIn the absence of language-specific translation files, the default 213641a6cfbSDevin Teske.Pq en_US.ISO8859-1 214641a6cfbSDevin Teskefiles will be used. 215641a6cfbSDevin Teske.Sh ADDING COMMANDS 21601dc132cSDevin TeskeTo be documented later. 21701dc132cSDevin TeskeDocument menu_selection="command|*" syntax of INDEX files. 218641a6cfbSDevin Teske.Sh ENVIRONMENT VARIABLES 219641a6cfbSDevin TeskeThe following environment variables affect the execution of 220641a6cfbSDevin Teske.Nm : 221641a6cfbSDevin Teske.Bl -tag -width ".Ev LC_ALL" 222641a6cfbSDevin Teske.It Ev LANG 223641a6cfbSDevin TeskeIf LANG is set, messages and index information will be read from files named 224641a6cfbSDevin Teskemessages.$LANG and INDEX.$LANG and fall back to files named messages and INDEX if 22501dc132cSDevin Teskemessages.$LANG and INDEX.$LANG do not exist. 22601dc132cSDevin TeskeLANG takes precedence over LC_ALL. 227641a6cfbSDevin Teske.It Ev LC_ALL 228641a6cfbSDevin TeskeIf LC_ALL is set, messages and index information will be read from files named 229641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL and fall back to files named messages and INDEX if 230641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL do not exist. 2318a664e6cSJoel Dahl.El 232641a6cfbSDevin Teske.Sh FILES 233641a6cfbSDevin Teske/usr/share/examples/bsdconfig/bsdconfigrc can be copied to $HOME/.bsdconfigrc and 234641a6cfbSDevin Teskecustomized as needed. 235641a6cfbSDevin Teske.Sh EXIT STATUS 236641a6cfbSDevin Teske.Ex -std 237641a6cfbSDevin Teske.Sh SEE ALSO 2388c1a61f6SDevin Teske.Xr bsdinstall 8 239641a6cfbSDevin Teske.Sh HISTORY 240641a6cfbSDevin Teske.Nm 241641a6cfbSDevin Teskefirst appeared in 242641a6cfbSDevin Teske.Fx 10.0 . 243641a6cfbSDevin Teske.Sh AUTHORS 244*29024151SDevin Teske.An Ron McDowell 245071e3e39SDevin Teske.An Devin Teske Aq dteske@FreeBSD.org 246641a6cfbSDevin Teske.Sh BUGS 2478c1a61f6SDevin TeskeThe docsinstall and diskmgmt modules call bsdinstall. 2488c1a61f6SDevin TeskeBugs found in these modules should be considered those of bsdinstall, not 2498c1a61f6SDevin Teske.Nm . 250