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.\" 261d3500e0SChris Rees.Dd April 12, 2020 27641a6cfbSDevin Teske.Dt BSDCONFIG 8 28641a6cfbSDevin Teske.Os 29641a6cfbSDevin Teske.Sh NAME 30641a6cfbSDevin Teske.Nm bsdconfig 31641a6cfbSDevin Teske.Nd system configuration utility 32641a6cfbSDevin Teske.Sh SYNOPSIS 33641a6cfbSDevin Teske.Nm 34641a6cfbSDevin Teske.Op Fl h 35641a6cfbSDevin Teske.Nm 36641a6cfbSDevin Teske.Ar command 37641a6cfbSDevin Teske.Op Fl h 38641a6cfbSDevin Teske.Nm 39641a6cfbSDevin Teske.Op OPTIONS 40641a6cfbSDevin Teske.Op command Op OPTIONS 41641a6cfbSDevin Teske.Sh DESCRIPTION 42641a6cfbSDevin Teske.Nm 43641a6cfbSDevin Teskeis used to set up many system configuration settings, both for new systems, as 44641a6cfbSDevin Teskewell as changing configuration settings of existing systems. 45641a6cfbSDevin Teske.Pp 46641a6cfbSDevin Teske.Nm 47f9b9df7fSDevin Teskeoptionally takes a command as an argument. 48f9b9df7fSDevin TeskeIf invoked with no arguments, it will bring up an interactive menu listing the 49f9b9df7fSDevin Teskeavailable modules. 50641a6cfbSDevin Teske.Pp 51641a6cfbSDevin TeskeThe following options are available: 52641a6cfbSDevin Teske.Bl -tag -width indent+ 5337b6146eSDevin Teske.It Fl d 5437b6146eSDevin TeskeProvide lots of debugging info on standard-out when running. 5537b6146eSDevin Teske.It Fl D Ar file 5637b6146eSDevin TeskeSend debugging info to file. 5737b6146eSDevin TeskeIf file begins with a plus-sign debug info is sent to both standard-out and 5837b6146eSDevin Teskefile (minus the leading plus). 5999bc932eSDevin Teske.It Fl f Ar file 6099bc932eSDevin TeskeLoad 6199bc932eSDevin Teske.Ar file 6299bc932eSDevin Teskeas script and then exit. 6399bc932eSDevin TeskeIf multiple occurrences, program will only exit after last occurrence. 6499bc932eSDevin TeskeIf 6599bc932eSDevin Teske.Ar file 6699bc932eSDevin Teskeis a single dash 6799bc932eSDevin Teske.Pq Sq Fl , 6899bc932eSDevin Teske.Nm 6999bc932eSDevin Teskereads from standard input. 70641a6cfbSDevin Teske.It Fl h 71641a6cfbSDevin TeskePrint usage statement and exit. 72641a6cfbSDevin Teske.It Fl S 73641a6cfbSDevin TeskeSecure X11 mode 74641a6cfbSDevin Teske.Pq implies Fl X . 75641a6cfbSDevin TeskeAs root, always prompt-for and validate 767c20397bSJens Schweikhardt.Xr sudo 8 Pq Pa ports/security/sudo 77641a6cfbSDevin Teskeusername/password before starting. 78641a6cfbSDevin Teske.It Fl X 79641a6cfbSDevin TeskeUse 80*e1ae2a28SJens Schweikhardt.Xr Xdialog 1 Pq Pa ports/x11/xdialog 81641a6cfbSDevin Teskein place of 82641a6cfbSDevin Teske.Xr dialog 1 . 838a664e6cSJoel Dahl.El 84641a6cfbSDevin Teske.Sh COMMANDS 85641a6cfbSDevin TeskeThe following commands 86641a6cfbSDevin Teske.Pq sorted alphabetically 87641a6cfbSDevin Teskeare currently included in the base 88641a6cfbSDevin Teske.Nm 8901dc132cSDevin Teskeprogram, with more to be added soon. 9001dc132cSDevin TeskeOther commands can be added, as detailed below in the 91641a6cfbSDevin Teske.Cm ADDING COMMANDS 92641a6cfbSDevin Teskesection, and once added, will appear in the master menu as well as in the 93641a6cfbSDevin Teske.Cm -h 94641a6cfbSDevin Teskelisting. 95641a6cfbSDevin Teske.Bl -tag -width ".Cm syscons_screenmap" 96641a6cfbSDevin Teske.It Cm console 97641a6cfbSDevin TeskeUtilities to customize the behavior of the system console. 98641a6cfbSDevin Teske.It Cm defaultrouter 99641a6cfbSDevin TeskeShortcut to the Default Router/Gateway menu under networking. 100641a6cfbSDevin Teske.It Cm diskmgmt 10101dc132cSDevin TeskeManage disk partitions and/or labels. 10201dc132cSDevin TeskeExecutes 103641a6cfbSDevin Teske.Xr sade 8 . 104641a6cfbSDevin Teske.It Cm docsinstall 105641a6cfbSDevin TeskeExecutes the 106641a6cfbSDevin Teske.Cm bsdinstall docsinstall 107641a6cfbSDevin Teskesub-utility to allow installation/re-installation of the FreeBSD Documentation 108641a6cfbSDevin Teskeset(s). 109641a6cfbSDevin Teske.It Cm dot 110641a6cfbSDevin TeskeGenerate a graphviz 111*e1ae2a28SJens Schweikhardt.Xr dot 1 Pq Pa ports/graphics/graphviz 112641a6cfbSDevin Teskelanguage file 113641a6cfbSDevin Teske.Pq printed on stdout 114641a6cfbSDevin Teskevisualizing the 1154d36343eSJoel Dahl.Nm 11601dc132cSDevin Teskemenu, include, and shortcut structure relationships. 11701dc132cSDevin TeskeSee 118641a6cfbSDevin Teske.Dq bsdconfig dot -h 119641a6cfbSDevin Teskefor more details. 120641a6cfbSDevin Teske.It Cm groupadd 121641a6cfbSDevin TeskeShortcut to the Add Groups menu under groupmgmt. 122641a6cfbSDevin Teske.It Cm groupdel 123641a6cfbSDevin TeskeShortcut to the Delete Groups menu under groupmgmt. 124641a6cfbSDevin Teske.It Cm groupedit 125641a6cfbSDevin TeskeShortcut to the Edit/View Groups menu under groupmgmt. 126641a6cfbSDevin Teske.It Cm groupmgmt 127641a6cfbSDevin TeskeUtilities to Add/Change/View/Delete Group Accounts. 128641a6cfbSDevin Teske.It Cm hostname 129641a6cfbSDevin TeskeShortcut to the Hostname/Domain menu under networking. 130e153f926SDevin Teske.It Cm kern_securelevel 131e153f926SDevin TeskeShortcut to the kern.securelevel menu under security. 132641a6cfbSDevin Teske.It Cm mouse 133641a6cfbSDevin TeskeUtilities for configuring, exploring, and enabling console mouse support. 134641a6cfbSDevin Teske.It Cm mouse_disable 135641a6cfbSDevin TeskeShortcut to the Disable menu under mouse. 136641a6cfbSDevin Teske.It Cm mouse_enable 137641a6cfbSDevin TeskeShortcut to the Enable menu under mouse. 138641a6cfbSDevin Teske.It Cm mouse_flags 139641a6cfbSDevin TeskeShortcut to the Flags menu under mouse. 140641a6cfbSDevin Teske.It Cm mouse_port 141641a6cfbSDevin TeskeShortcut to the Port menu under mouse. 142641a6cfbSDevin Teske.It Cm mouse_type 143641a6cfbSDevin TeskeShortcut to the Type menu under mouse. 144641a6cfbSDevin Teske.It Cm nameservers 145641a6cfbSDevin TeskeShortcut to the DNS Nameservers menu under networking. 146641a6cfbSDevin Teske.It Cm netdev 147641a6cfbSDevin TeskeShortcut to the Network Interfaces menu under networking. 148641a6cfbSDevin Teske.It Cm networking 1491d3500e0SChris ReesUtilities to set/change Hostname/Domain, Network Interfaces, Wireless 1501d3500e0SChris ReesNetwork, Default Router/Gateway, and DNS Nameservers. 151e153f926SDevin Teske.It Cm packages 152e153f926SDevin TeskeBrowse, install, uninstall, or re-install packaged software. 153641a6cfbSDevin Teske.It Cm password 154641a6cfbSDevin TeskeSet the system administrator 155641a6cfbSDevin Teske.Pq root 156641a6cfbSDevin Teskepassword. 157641a6cfbSDevin Teske.It Cm security 158641a6cfbSDevin TeskeConfigure various system security settings. 159e153f926SDevin Teske.It Cm startup 160e153f926SDevin TeskeConfigure various aspects of system startup. 161e153f926SDevin Teske.It Cm startup_misc 162e153f926SDevin TeskeShortcut to the Miscellaneous Startup Services menu under startup. 163e153f926SDevin Teske.It Cm startup_rcadd 164e153f926SDevin TeskeShortcut to the Add New menu under the View/Edit Startup Configuration menu 165e153f926SDevin Teske(startup_rcconf) of startup. 166e153f926SDevin Teske.It Cm startup_rcconf 167e153f926SDevin TeskeShortcut to the View/Edit Startup Configuration menu under startup. 168e153f926SDevin Teske.It Cm startup_rcdelete 169e153f926SDevin TeskeShortcut to the Delete menu under the View/Edit Startup Configuration menu 170e153f926SDevin Teske(startup_rcconf) of startup. 171e153f926SDevin Teske.It Cm startup_rcvar 172e153f926SDevin TeskeShortcut to the Toggle Startup Services menu under startup. 173f071b64eSStefan Eßer.\" use neutral name, e.g. console_keymap instead of syscons_keymap? 174f071b64eSStefan Eßer.\" font (encoding) selection not applicable to vt(4)! 175641a6cfbSDevin Teske.It Cm syscons_font 176641a6cfbSDevin TeskeShortcut to the Font menu under console. 177f071b64eSStefan Eßer.\" .It Cm console_keymap 178f071b64eSStefan Eßer.\" Shortcut to the Keymap menu under console. 179641a6cfbSDevin Teske.It Cm syscons_keymap 180641a6cfbSDevin TeskeShortcut to the Keymap menu under console. 181f071b64eSStefan Eßer.\" .It Cm vt_repeat 182f071b64eSStefan Eßer.\" Shortcut to the Repeat menu under console. 183641a6cfbSDevin Teske.It Cm syscons_repeat 184641a6cfbSDevin TeskeShortcut to the Repeat menu under console. 185f071b64eSStefan Eßer.\" .It Cm vt_saver 186f071b64eSStefan Eßer.\" Shortcut to the Saver menu under console. 187641a6cfbSDevin Teske.It Cm syscons_saver 188641a6cfbSDevin TeskeShortcut to the Saver menu under console. 189f071b64eSStefan Eßer.\" screenmap (encoding) selection not applicable to vt(4)! 190641a6cfbSDevin Teske.It Cm syscons_screenmap 191641a6cfbSDevin TeskeShortcut to the Screenmap menu under console. 192f071b64eSStefan Eßer.\" .It Cm vt_syscons_ttys 193f071b64eSStefan Eßer.\" Shortcut to the Ttys menu under console. 194641a6cfbSDevin Teske.It Cm syscons_ttys 195641a6cfbSDevin TeskeShortcut to the Ttys menu under console. 196641a6cfbSDevin Teske.It Cm timezone 197641a6cfbSDevin TeskeSet the regional timezone of the local machine. 198e153f926SDevin Teske.It Cm ttys 199e153f926SDevin TeskeEdit the 200e153f926SDevin Teske.Xr ttys 5 201e153f926SDevin Teskedatabase with your favorite editor. 202641a6cfbSDevin Teske.It Cm useradd 203641a6cfbSDevin TeskeShortcut to the Add Users menu under usermgmt. 204641a6cfbSDevin Teske.It Cm userdel 205641a6cfbSDevin TeskeShortcut to the Delete Users menu under usermgmt. 206641a6cfbSDevin Teske.It Cm useredit 207641a6cfbSDevin TeskeShortcut to the Edit/View Users menu under usermgmt. 208641a6cfbSDevin Teske.It Cm usermgmt 209641a6cfbSDevin TeskeUtilities to Add/Edit/View/Delete User Accounts. 2101d3500e0SChris Rees.It Cm wireless 2111d3500e0SChris ReesShortcut to the Wireless Networks menu under networking. 2128a664e6cSJoel Dahl.El 213641a6cfbSDevin Teske.Sh INTERNATIONALIZATION 214641a6cfbSDevin Teskei18n features are built into 215641a6cfbSDevin Teske.Nm 216641a6cfbSDevin Teskeand language-specific translation files will be added as they become available. 217641a6cfbSDevin TeskeIn the absence of language-specific translation files, the default 218641a6cfbSDevin Teske.Pq en_US.ISO8859-1 219641a6cfbSDevin Teskefiles will be used. 220641a6cfbSDevin Teske.Sh ADDING COMMANDS 22101dc132cSDevin TeskeTo be documented later. 22201dc132cSDevin TeskeDocument menu_selection="command|*" syntax of INDEX files. 223641a6cfbSDevin Teske.Sh ENVIRONMENT VARIABLES 224641a6cfbSDevin TeskeThe following environment variables affect the execution of 225641a6cfbSDevin Teske.Nm : 226641a6cfbSDevin Teske.Bl -tag -width ".Ev LC_ALL" 227641a6cfbSDevin Teske.It Ev LANG 228641a6cfbSDevin TeskeIf LANG is set, messages and index information will be read from files named 229fc202330SDevin Teskemessages.$LANG and INDEX.$LANG and fall back to files named messages and INDEX 230fc202330SDevin Teskeif messages.$LANG and INDEX.$LANG do not exist. 23101dc132cSDevin TeskeLANG takes precedence over LC_ALL. 232641a6cfbSDevin Teske.It Ev LC_ALL 233641a6cfbSDevin TeskeIf LC_ALL is set, messages and index information will be read from files named 234fc202330SDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL and fall back to files named messages and 235fc202330SDevin TeskeINDEX if messages.$LC_ALL and INDEX.$LC_ALL do not exist. 2368a664e6cSJoel Dahl.El 237641a6cfbSDevin Teske.Sh FILES 238fc202330SDevin Teske/usr/share/examples/bsdconfig/bsdconfigrc can be copied to $HOME/.bsdconfigrc 239fc202330SDevin Teskeand customized as needed. 240641a6cfbSDevin Teske.Sh EXIT STATUS 241641a6cfbSDevin Teske.Ex -std 242641a6cfbSDevin Teske.Sh SEE ALSO 2438c1a61f6SDevin Teske.Xr bsdinstall 8 244641a6cfbSDevin Teske.Sh HISTORY 245641a6cfbSDevin Teske.Nm 246641a6cfbSDevin Teskefirst appeared in 247b7df1596SDevin Teske.Fx 9.2 . 248641a6cfbSDevin Teske.Sh AUTHORS 24929024151SDevin Teske.An Ron McDowell 25001c2b8acSBaptiste Daroussin.An Devin Teske Aq Mt dteske@FreeBSD.org 251641a6cfbSDevin Teske.Sh BUGS 2528c1a61f6SDevin TeskeThe docsinstall and diskmgmt modules call bsdinstall. 2538c1a61f6SDevin TeskeBugs found in these modules should be considered those of bsdinstall, not 2548c1a61f6SDevin Teske.Nm . 255