xref: /freebsd/usr.sbin/bsdconfig/bsdconfig.8 (revision 37b6146ea3a9f527774def9314c9ac79bd3d2225)
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+
89*37b6146eSDevin Teske.It Fl d
90*37b6146eSDevin TeskeProvide lots of debugging info on standard-out when running.
91*37b6146eSDevin Teske.It Fl D Ar file
92*37b6146eSDevin TeskeSend debugging info to file.
93*37b6146eSDevin TeskeIf file begins with a plus-sign debug info is sent to both standard-out and
94*37b6146eSDevin Teskefile (minus the leading plus).
9599bc932eSDevin Teske.It Fl f Ar file
9699bc932eSDevin TeskeLoad
9799bc932eSDevin Teske.Ar file
9899bc932eSDevin Teskeas script and then exit.
9999bc932eSDevin TeskeIf multiple occurrences, program will only exit after last occurrence.
10099bc932eSDevin TeskeIf
10199bc932eSDevin Teske.Ar file
10299bc932eSDevin Teskeis a single dash
10399bc932eSDevin Teske.Pq Sq Fl ,
10499bc932eSDevin Teske.Nm
10599bc932eSDevin Teskereads from standard input.
106641a6cfbSDevin Teske.It Fl h
107641a6cfbSDevin TeskePrint usage statement and exit.
108641a6cfbSDevin Teske.It Fl S
109641a6cfbSDevin TeskeSecure X11 mode
110641a6cfbSDevin Teske.Pq implies Fl X .
111641a6cfbSDevin TeskeAs root, always prompt-for and validate
112641a6cfbSDevin Teske.Xr sudo 8
113641a6cfbSDevin Teskeusername/password before starting.
114641a6cfbSDevin Teske.It Fl X
115641a6cfbSDevin TeskeUse
116641a6cfbSDevin Teske.Xr Xdialog 1
117641a6cfbSDevin Teskein place of
118641a6cfbSDevin Teske.Xr dialog 1 .
1198a664e6cSJoel Dahl.El
120641a6cfbSDevin Teske.Sh COMMANDS
121641a6cfbSDevin TeskeThe following commands
122641a6cfbSDevin Teske.Pq sorted alphabetically
123641a6cfbSDevin Teskeare currently included in the base
124641a6cfbSDevin Teske.Nm
12501dc132cSDevin Teskeprogram, with more to be added soon.
12601dc132cSDevin TeskeOther commands can be added, as detailed below in the
127641a6cfbSDevin Teske.Cm ADDING COMMANDS
128641a6cfbSDevin Teskesection, and once added, will appear in the master menu as well as in the
129641a6cfbSDevin Teske.Cm -h
130641a6cfbSDevin Teskelisting.
131641a6cfbSDevin Teske.Bl -tag -width ".Cm syscons_screenmap"
132641a6cfbSDevin Teske.It Cm console
133641a6cfbSDevin TeskeUtilities to customize the behavior of the system console.
134641a6cfbSDevin Teske.It Cm defaultrouter
135641a6cfbSDevin TeskeShortcut to the Default Router/Gateway menu under networking.
136641a6cfbSDevin Teske.It Cm diskmgmt
13701dc132cSDevin TeskeManage disk partitions and/or labels.
13801dc132cSDevin TeskeExecutes
139641a6cfbSDevin Teske.Xr sade 8 .
140641a6cfbSDevin Teske.It Cm docsinstall
141641a6cfbSDevin TeskeExecutes the
142641a6cfbSDevin Teske.Cm bsdinstall docsinstall
143641a6cfbSDevin Teskesub-utility to allow installation/re-installation of the FreeBSD Documentation
144641a6cfbSDevin Teskeset(s).
145641a6cfbSDevin Teske.It Cm dot
146641a6cfbSDevin TeskeGenerate a graphviz
147641a6cfbSDevin Teske.Xr dot 1
148641a6cfbSDevin Teskelanguage file
149641a6cfbSDevin Teske.Pq printed on stdout
150641a6cfbSDevin Teskevisualizing the
1514d36343eSJoel Dahl.Nm
15201dc132cSDevin Teskemenu, include, and shortcut structure relationships.
15301dc132cSDevin TeskeSee
154641a6cfbSDevin Teske.Dq bsdconfig dot -h
155641a6cfbSDevin Teskefor more details.
156641a6cfbSDevin Teske.It Cm groupadd
157641a6cfbSDevin TeskeShortcut to the Add Groups menu under groupmgmt.
158641a6cfbSDevin Teske.It Cm groupdel
159641a6cfbSDevin TeskeShortcut to the Delete Groups menu under groupmgmt.
160641a6cfbSDevin Teske.It Cm groupedit
161641a6cfbSDevin TeskeShortcut to the Edit/View Groups menu under groupmgmt.
162641a6cfbSDevin Teske.It Cm groupmgmt
163641a6cfbSDevin TeskeUtilities to Add/Change/View/Delete Group Accounts.
164641a6cfbSDevin Teske.It Cm hostname
165641a6cfbSDevin TeskeShortcut to the Hostname/Domain menu under networking.
166641a6cfbSDevin Teske.It Cm mouse
167641a6cfbSDevin TeskeUtilities for configuring, exploring, and enabling console mouse support.
168641a6cfbSDevin Teske.It Cm mouse_disable
169641a6cfbSDevin TeskeShortcut to the Disable menu under mouse.
170641a6cfbSDevin Teske.It Cm mouse_enable
171641a6cfbSDevin TeskeShortcut to the Enable menu under mouse.
172641a6cfbSDevin Teske.It Cm mouse_flags
173641a6cfbSDevin TeskeShortcut to the Flags menu under mouse.
174641a6cfbSDevin Teske.It Cm mouse_port
175641a6cfbSDevin TeskeShortcut to the Port menu under mouse.
176641a6cfbSDevin Teske.It Cm mouse_type
177641a6cfbSDevin TeskeShortcut to the Type menu under mouse.
178641a6cfbSDevin Teske.It Cm nameservers
179641a6cfbSDevin TeskeShortcut to the DNS Nameservers menu under networking.
180641a6cfbSDevin Teske.It Cm netdev
181641a6cfbSDevin TeskeShortcut to the Network Interfaces menu under networking.
182641a6cfbSDevin Teske.It Cm networking
183641a6cfbSDevin TeskeUtilities to set/change Hostname/Domain, Network Interfaces, Default
184641a6cfbSDevin TeskeRouter/Gateway, and DNS Nameservers.
185641a6cfbSDevin Teske.It Cm password
186641a6cfbSDevin TeskeSet the system administrator
187641a6cfbSDevin Teske.Pq root
188641a6cfbSDevin Teskepassword.
189641a6cfbSDevin Teske.It Cm security
190641a6cfbSDevin TeskeConfigure various system security settings.
191641a6cfbSDevin Teske.It Cm syscons_font
192641a6cfbSDevin TeskeShortcut to the Font menu under console.
193641a6cfbSDevin Teske.It Cm syscons_keymap
194641a6cfbSDevin TeskeShortcut to the Keymap menu under console.
195641a6cfbSDevin Teske.It Cm syscons_repeat
196641a6cfbSDevin TeskeShortcut to the Repeat menu under console.
197641a6cfbSDevin Teske.It Cm syscons_saver
198641a6cfbSDevin TeskeShortcut to the Saver menu under console.
199641a6cfbSDevin Teske.It Cm syscons_screenmap
200641a6cfbSDevin TeskeShortcut to the Screenmap menu under console.
201641a6cfbSDevin Teske.It Cm syscons_ttys
202641a6cfbSDevin TeskeShortcut to the Ttys menu under console.
203641a6cfbSDevin Teske.It Cm timezone
204641a6cfbSDevin TeskeSet the regional timezone of the local machine.
205641a6cfbSDevin Teske.It Cm useradd
206641a6cfbSDevin TeskeShortcut to the Add Users menu under usermgmt.
207641a6cfbSDevin Teske.It Cm userdel
208641a6cfbSDevin TeskeShortcut to the Delete Users menu under usermgmt.
209641a6cfbSDevin Teske.It Cm useredit
210641a6cfbSDevin TeskeShortcut to the Edit/View Users menu under usermgmt.
211641a6cfbSDevin Teske.It Cm usermgmt
212641a6cfbSDevin TeskeUtilities to Add/Edit/View/Delete User Accounts.
2138a664e6cSJoel Dahl.El
214641a6cfbSDevin Teske.Sh INTERNATIONALIZATION
215641a6cfbSDevin Teskei18n features are built into
216641a6cfbSDevin Teske.Nm
217641a6cfbSDevin Teskeand language-specific translation files will be added as they become available.
218641a6cfbSDevin TeskeIn the absence of language-specific translation files, the default
219641a6cfbSDevin Teske.Pq en_US.ISO8859-1
220641a6cfbSDevin Teskefiles will be used.
221641a6cfbSDevin Teske.Sh ADDING COMMANDS
22201dc132cSDevin TeskeTo be documented later.
22301dc132cSDevin TeskeDocument menu_selection="command|*" syntax of INDEX files.
224641a6cfbSDevin Teske.Sh ENVIRONMENT VARIABLES
225641a6cfbSDevin TeskeThe following environment variables affect the execution of
226641a6cfbSDevin Teske.Nm :
227641a6cfbSDevin Teske.Bl -tag -width ".Ev LC_ALL"
228641a6cfbSDevin Teske.It Ev LANG
229641a6cfbSDevin TeskeIf LANG is set, messages and index information will be read from files named
230641a6cfbSDevin Teskemessages.$LANG and INDEX.$LANG and fall back to files named messages and INDEX if
23101dc132cSDevin Teskemessages.$LANG and INDEX.$LANG do not exist.
23201dc132cSDevin TeskeLANG takes precedence over LC_ALL.
233641a6cfbSDevin Teske.It Ev LC_ALL
234641a6cfbSDevin TeskeIf LC_ALL is set, messages and index information will be read from files named
235641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL and fall back to files named messages and INDEX if
236641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL do not exist.
2378a664e6cSJoel Dahl.El
238641a6cfbSDevin Teske.Sh FILES
239641a6cfbSDevin Teske/usr/share/examples/bsdconfig/bsdconfigrc can be copied to $HOME/.bsdconfigrc and
240641a6cfbSDevin Teskecustomized as needed.
241641a6cfbSDevin Teske.Sh EXIT STATUS
242641a6cfbSDevin Teske.Ex -std
243641a6cfbSDevin Teske.Sh SEE ALSO
2448c1a61f6SDevin Teske.Xr bsdinstall 8
245641a6cfbSDevin Teske.Sh HISTORY
246641a6cfbSDevin Teske.Nm
247641a6cfbSDevin Teskefirst appeared in
248b7df1596SDevin Teske.Fx 9.2 .
249641a6cfbSDevin Teske.Sh AUTHORS
25029024151SDevin Teske.An Ron McDowell
251071e3e39SDevin Teske.An Devin Teske Aq dteske@FreeBSD.org
252641a6cfbSDevin Teske.Sh BUGS
2538c1a61f6SDevin TeskeThe docsinstall and diskmgmt modules call bsdinstall.
2548c1a61f6SDevin TeskeBugs found in these modules should be considered those of bsdinstall, not
2558c1a61f6SDevin Teske.Nm .
256