xref: /freebsd/usr.sbin/bsdconfig/bsdconfig.8 (revision 01c2b8ac0d5d7a787a7853f0988b505d26cf8136)
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.\" $FreeBSD$
27641a6cfbSDevin Teske.\"
28b07efdb5SDevin Teske.Dd Jun 5, 2013
29641a6cfbSDevin Teske.Dt BSDCONFIG 8
30641a6cfbSDevin Teske.Os
31641a6cfbSDevin Teske.Sh NAME
32641a6cfbSDevin Teske.Nm bsdconfig
33641a6cfbSDevin Teske.Nd system configuration utility
34641a6cfbSDevin Teske.Sh SYNOPSIS
35641a6cfbSDevin Teske.Nm
36641a6cfbSDevin Teske.Op Fl h
37641a6cfbSDevin Teske.Nm
38641a6cfbSDevin Teske.Ar command
39641a6cfbSDevin Teske.Op Fl h
40641a6cfbSDevin Teske.Nm
41641a6cfbSDevin Teske.Op OPTIONS
42641a6cfbSDevin Teske.Op command Op OPTIONS
43641a6cfbSDevin Teske.Sh DESCRIPTION
44641a6cfbSDevin Teske.Nm
45641a6cfbSDevin Teskeis used to set up many system configuration settings, both for new systems, as
46641a6cfbSDevin Teskewell as changing configuration settings of existing systems.
47641a6cfbSDevin Teske.Pp
48641a6cfbSDevin Teske.Nm
49f9b9df7fSDevin Teskeoptionally takes a command as an argument.
50f9b9df7fSDevin TeskeIf invoked with no arguments, it will bring up an interactive menu listing the
51f9b9df7fSDevin Teskeavailable modules.
52641a6cfbSDevin Teske.Pp
53641a6cfbSDevin TeskeThe following options are available:
54641a6cfbSDevin Teske.Bl -tag -width indent+
5537b6146eSDevin Teske.It Fl d
5637b6146eSDevin TeskeProvide lots of debugging info on standard-out when running.
5737b6146eSDevin Teske.It Fl D Ar file
5837b6146eSDevin TeskeSend debugging info to file.
5937b6146eSDevin TeskeIf file begins with a plus-sign debug info is sent to both standard-out and
6037b6146eSDevin Teskefile (minus the leading plus).
6199bc932eSDevin Teske.It Fl f Ar file
6299bc932eSDevin TeskeLoad
6399bc932eSDevin Teske.Ar file
6499bc932eSDevin Teskeas script and then exit.
6599bc932eSDevin TeskeIf multiple occurrences, program will only exit after last occurrence.
6699bc932eSDevin TeskeIf
6799bc932eSDevin Teske.Ar file
6899bc932eSDevin Teskeis a single dash
6999bc932eSDevin Teske.Pq Sq Fl ,
7099bc932eSDevin Teske.Nm
7199bc932eSDevin Teskereads from standard input.
72641a6cfbSDevin Teske.It Fl h
73641a6cfbSDevin TeskePrint usage statement and exit.
74641a6cfbSDevin Teske.It Fl S
75641a6cfbSDevin TeskeSecure X11 mode
76641a6cfbSDevin Teske.Pq implies Fl X .
77641a6cfbSDevin TeskeAs root, always prompt-for and validate
78641a6cfbSDevin Teske.Xr sudo 8
79641a6cfbSDevin Teskeusername/password before starting.
80641a6cfbSDevin Teske.It Fl X
81641a6cfbSDevin TeskeUse
82641a6cfbSDevin Teske.Xr Xdialog 1
83641a6cfbSDevin Teskein place of
84641a6cfbSDevin Teske.Xr dialog 1 .
858a664e6cSJoel Dahl.El
86641a6cfbSDevin Teske.Sh COMMANDS
87641a6cfbSDevin TeskeThe following commands
88641a6cfbSDevin Teske.Pq sorted alphabetically
89641a6cfbSDevin Teskeare currently included in the base
90641a6cfbSDevin Teske.Nm
9101dc132cSDevin Teskeprogram, with more to be added soon.
9201dc132cSDevin TeskeOther commands can be added, as detailed below in the
93641a6cfbSDevin Teske.Cm ADDING COMMANDS
94641a6cfbSDevin Teskesection, and once added, will appear in the master menu as well as in the
95641a6cfbSDevin Teske.Cm -h
96641a6cfbSDevin Teskelisting.
97641a6cfbSDevin Teske.Bl -tag -width ".Cm syscons_screenmap"
98641a6cfbSDevin Teske.It Cm console
99641a6cfbSDevin TeskeUtilities to customize the behavior of the system console.
100641a6cfbSDevin Teske.It Cm defaultrouter
101641a6cfbSDevin TeskeShortcut to the Default Router/Gateway menu under networking.
102641a6cfbSDevin Teske.It Cm diskmgmt
10301dc132cSDevin TeskeManage disk partitions and/or labels.
10401dc132cSDevin TeskeExecutes
105641a6cfbSDevin Teske.Xr sade 8 .
106641a6cfbSDevin Teske.It Cm docsinstall
107641a6cfbSDevin TeskeExecutes the
108641a6cfbSDevin Teske.Cm bsdinstall docsinstall
109641a6cfbSDevin Teskesub-utility to allow installation/re-installation of the FreeBSD Documentation
110641a6cfbSDevin Teskeset(s).
111641a6cfbSDevin Teske.It Cm dot
112641a6cfbSDevin TeskeGenerate a graphviz
113641a6cfbSDevin Teske.Xr dot 1
114641a6cfbSDevin Teskelanguage file
115641a6cfbSDevin Teske.Pq printed on stdout
116641a6cfbSDevin Teskevisualizing the
1174d36343eSJoel Dahl.Nm
11801dc132cSDevin Teskemenu, include, and shortcut structure relationships.
11901dc132cSDevin TeskeSee
120641a6cfbSDevin Teske.Dq bsdconfig dot -h
121641a6cfbSDevin Teskefor more details.
122641a6cfbSDevin Teske.It Cm groupadd
123641a6cfbSDevin TeskeShortcut to the Add Groups menu under groupmgmt.
124641a6cfbSDevin Teske.It Cm groupdel
125641a6cfbSDevin TeskeShortcut to the Delete Groups menu under groupmgmt.
126641a6cfbSDevin Teske.It Cm groupedit
127641a6cfbSDevin TeskeShortcut to the Edit/View Groups menu under groupmgmt.
128641a6cfbSDevin Teske.It Cm groupmgmt
129641a6cfbSDevin TeskeUtilities to Add/Change/View/Delete Group Accounts.
130641a6cfbSDevin Teske.It Cm hostname
131641a6cfbSDevin TeskeShortcut to the Hostname/Domain menu under networking.
132e153f926SDevin Teske.It Cm kern_securelevel
133e153f926SDevin TeskeShortcut to the kern.securelevel menu under security.
134641a6cfbSDevin Teske.It Cm mouse
135641a6cfbSDevin TeskeUtilities for configuring, exploring, and enabling console mouse support.
136641a6cfbSDevin Teske.It Cm mouse_disable
137641a6cfbSDevin TeskeShortcut to the Disable menu under mouse.
138641a6cfbSDevin Teske.It Cm mouse_enable
139641a6cfbSDevin TeskeShortcut to the Enable menu under mouse.
140641a6cfbSDevin Teske.It Cm mouse_flags
141641a6cfbSDevin TeskeShortcut to the Flags menu under mouse.
142641a6cfbSDevin Teske.It Cm mouse_port
143641a6cfbSDevin TeskeShortcut to the Port menu under mouse.
144641a6cfbSDevin Teske.It Cm mouse_type
145641a6cfbSDevin TeskeShortcut to the Type menu under mouse.
146641a6cfbSDevin Teske.It Cm nameservers
147641a6cfbSDevin TeskeShortcut to the DNS Nameservers menu under networking.
148641a6cfbSDevin Teske.It Cm netdev
149641a6cfbSDevin TeskeShortcut to the Network Interfaces menu under networking.
150641a6cfbSDevin Teske.It Cm networking
151641a6cfbSDevin TeskeUtilities to set/change Hostname/Domain, Network Interfaces, Default
152641a6cfbSDevin TeskeRouter/Gateway, and DNS Nameservers.
153e153f926SDevin Teske.It Cm packages
154e153f926SDevin TeskeBrowse, install, uninstall, or re-install packaged software.
155641a6cfbSDevin Teske.It Cm password
156641a6cfbSDevin TeskeSet the system administrator
157641a6cfbSDevin Teske.Pq root
158641a6cfbSDevin Teskepassword.
159641a6cfbSDevin Teske.It Cm security
160641a6cfbSDevin TeskeConfigure various system security settings.
161e153f926SDevin Teske.It Cm startup
162e153f926SDevin TeskeConfigure various aspects of system startup.
163e153f926SDevin Teske.It Cm startup_misc
164e153f926SDevin TeskeShortcut to the Miscellaneous Startup Services menu under startup.
165e153f926SDevin Teske.It Cm startup_rcadd
166e153f926SDevin TeskeShortcut to the Add New menu under the View/Edit Startup Configuration menu
167e153f926SDevin Teske(startup_rcconf) of startup.
168e153f926SDevin Teske.It Cm startup_rcconf
169e153f926SDevin TeskeShortcut to the View/Edit Startup Configuration menu under startup.
170e153f926SDevin Teske.It Cm startup_rcdelete
171e153f926SDevin TeskeShortcut to the Delete menu under the View/Edit Startup Configuration menu
172e153f926SDevin Teske(startup_rcconf) of startup.
173e153f926SDevin Teske.It Cm startup_rcvar
174e153f926SDevin TeskeShortcut to the Toggle Startup Services menu under startup.
175641a6cfbSDevin Teske.It Cm syscons_font
176641a6cfbSDevin TeskeShortcut to the Font menu under console.
177641a6cfbSDevin Teske.It Cm syscons_keymap
178641a6cfbSDevin TeskeShortcut to the Keymap menu under console.
179641a6cfbSDevin Teske.It Cm syscons_repeat
180641a6cfbSDevin TeskeShortcut to the Repeat menu under console.
181641a6cfbSDevin Teske.It Cm syscons_saver
182641a6cfbSDevin TeskeShortcut to the Saver menu under console.
183641a6cfbSDevin Teske.It Cm syscons_screenmap
184641a6cfbSDevin TeskeShortcut to the Screenmap menu under console.
185641a6cfbSDevin Teske.It Cm syscons_ttys
186641a6cfbSDevin TeskeShortcut to the Ttys menu under console.
187641a6cfbSDevin Teske.It Cm timezone
188641a6cfbSDevin TeskeSet the regional timezone of the local machine.
189e153f926SDevin Teske.It Cm ttys
190e153f926SDevin TeskeEdit the
191e153f926SDevin Teske.Xr ttys 5
192e153f926SDevin Teskedatabase with your favorite editor.
193641a6cfbSDevin Teske.It Cm useradd
194641a6cfbSDevin TeskeShortcut to the Add Users menu under usermgmt.
195641a6cfbSDevin Teske.It Cm userdel
196641a6cfbSDevin TeskeShortcut to the Delete Users menu under usermgmt.
197641a6cfbSDevin Teske.It Cm useredit
198641a6cfbSDevin TeskeShortcut to the Edit/View Users menu under usermgmt.
199641a6cfbSDevin Teske.It Cm usermgmt
200641a6cfbSDevin TeskeUtilities to Add/Edit/View/Delete User Accounts.
2018a664e6cSJoel Dahl.El
202641a6cfbSDevin Teske.Sh INTERNATIONALIZATION
203641a6cfbSDevin Teskei18n features are built into
204641a6cfbSDevin Teske.Nm
205641a6cfbSDevin Teskeand language-specific translation files will be added as they become available.
206641a6cfbSDevin TeskeIn the absence of language-specific translation files, the default
207641a6cfbSDevin Teske.Pq en_US.ISO8859-1
208641a6cfbSDevin Teskefiles will be used.
209641a6cfbSDevin Teske.Sh ADDING COMMANDS
21001dc132cSDevin TeskeTo be documented later.
21101dc132cSDevin TeskeDocument menu_selection="command|*" syntax of INDEX files.
212641a6cfbSDevin Teske.Sh ENVIRONMENT VARIABLES
213641a6cfbSDevin TeskeThe following environment variables affect the execution of
214641a6cfbSDevin Teske.Nm :
215641a6cfbSDevin Teske.Bl -tag -width ".Ev LC_ALL"
216641a6cfbSDevin Teske.It Ev LANG
217641a6cfbSDevin TeskeIf LANG is set, messages and index information will be read from files named
218fc202330SDevin Teskemessages.$LANG and INDEX.$LANG and fall back to files named messages and INDEX
219fc202330SDevin Teskeif messages.$LANG and INDEX.$LANG do not exist.
22001dc132cSDevin TeskeLANG takes precedence over LC_ALL.
221641a6cfbSDevin Teske.It Ev LC_ALL
222641a6cfbSDevin TeskeIf LC_ALL is set, messages and index information will be read from files named
223fc202330SDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL and fall back to files named messages and
224fc202330SDevin TeskeINDEX if messages.$LC_ALL and INDEX.$LC_ALL do not exist.
2258a664e6cSJoel Dahl.El
226641a6cfbSDevin Teske.Sh FILES
227fc202330SDevin Teske/usr/share/examples/bsdconfig/bsdconfigrc can be copied to $HOME/.bsdconfigrc
228fc202330SDevin Teskeand customized as needed.
229641a6cfbSDevin Teske.Sh EXIT STATUS
230641a6cfbSDevin Teske.Ex -std
231641a6cfbSDevin Teske.Sh SEE ALSO
2328c1a61f6SDevin Teske.Xr bsdinstall 8
233641a6cfbSDevin Teske.Sh HISTORY
234641a6cfbSDevin Teske.Nm
235641a6cfbSDevin Teskefirst appeared in
236b7df1596SDevin Teske.Fx 9.2 .
237641a6cfbSDevin Teske.Sh AUTHORS
23829024151SDevin Teske.An Ron McDowell
239*01c2b8acSBaptiste Daroussin.An Devin Teske Aq Mt dteske@FreeBSD.org
240641a6cfbSDevin Teske.Sh BUGS
2418c1a61f6SDevin TeskeThe docsinstall and diskmgmt modules call bsdinstall.
2428c1a61f6SDevin TeskeBugs found in these modules should be considered those of bsdinstall, not
2438c1a61f6SDevin Teske.Nm .
244