xref: /freebsd/usr.sbin/bsdconfig/bsdconfig.8 (revision 31a41563c046e3679ea898052d07b7a80125d462)
1641a6cfbSDevin Teske.\" Copyright (c) 2012 Ron McDowell
2*31a41563SDevin 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.\"
62*31a41563SDevin Teske.Dd Jan 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
83641a6cfbSDevin Tesketakes a command as an argument. If invoked with no arguments, it will bring up
84641a6cfbSDevin Teskea master menu listing the available commands.
85641a6cfbSDevin Teske.Pp
86641a6cfbSDevin TeskeThe following options are available:
87641a6cfbSDevin Teske.Bl -tag -width indent+
8899bc932eSDevin Teske.It Fl f Ar file
8999bc932eSDevin TeskeLoad
9099bc932eSDevin Teske.Ar file
9199bc932eSDevin Teskeas script and then exit.
9299bc932eSDevin TeskeIf multiple occurrences, program will only exit after last occurrence.
9399bc932eSDevin TeskeIf
9499bc932eSDevin Teske.Ar file
9599bc932eSDevin Teskeis a single dash
9699bc932eSDevin Teske.Pq Sq Fl ,
9799bc932eSDevin Teske.Nm
9899bc932eSDevin Teskereads from standard input.
99641a6cfbSDevin Teske.It Fl h
100641a6cfbSDevin TeskePrint usage statement and exit.
101641a6cfbSDevin Teske.It Fl S
102641a6cfbSDevin TeskeSecure X11 mode
103641a6cfbSDevin Teske.Pq implies Fl X .
104641a6cfbSDevin TeskeAs root, always prompt-for and validate
105641a6cfbSDevin Teske.Xr sudo 8
106641a6cfbSDevin Teskeusername/password before starting.
107641a6cfbSDevin Teske.It Fl X
108641a6cfbSDevin TeskeUse
109641a6cfbSDevin Teske.Xr Xdialog 1
110641a6cfbSDevin Teskein place of
111641a6cfbSDevin Teske.Xr dialog 1 .
1128a664e6cSJoel Dahl.El
113641a6cfbSDevin Teske.Sh COMMANDS
114641a6cfbSDevin TeskeThe following commands
115641a6cfbSDevin Teske.Pq sorted alphabetically
116641a6cfbSDevin Teskeare currently included in the base
117641a6cfbSDevin Teske.Nm
118641a6cfbSDevin Teskeprogram, with more to be added soon.  Other commands can be added, as detailed
119641a6cfbSDevin Teskebelow in the
120641a6cfbSDevin Teske.Cm ADDING COMMANDS
121641a6cfbSDevin Teskesection, and once added, will appear in the master menu as well as in the
122641a6cfbSDevin Teske.Cm -h
123641a6cfbSDevin Teskelisting.
124641a6cfbSDevin Teske.Bl -tag -width ".Cm syscons_screenmap"
125641a6cfbSDevin Teske.It Cm console
126641a6cfbSDevin TeskeUtilities to customize the behavior of the system console.
127641a6cfbSDevin Teske.It Cm defaultrouter
128641a6cfbSDevin TeskeShortcut to the Default Router/Gateway menu under networking.
129641a6cfbSDevin Teske.It Cm diskmgmt
130641a6cfbSDevin TeskeManage disk partitions and/or labels. Executes
131641a6cfbSDevin Teske.Xr sade 8 .
132641a6cfbSDevin Teske.It Cm docsinstall
133641a6cfbSDevin TeskeExecutes the
134641a6cfbSDevin Teske.Cm bsdinstall docsinstall
135641a6cfbSDevin Teskesub-utility to allow installation/re-installation of the FreeBSD Documentation
136641a6cfbSDevin Teskeset(s).
137641a6cfbSDevin Teske.It Cm dot
138641a6cfbSDevin TeskeGenerate a graphviz
139641a6cfbSDevin Teske.Xr dot 1
140641a6cfbSDevin Teskelanguage file
141641a6cfbSDevin Teske.Pq printed on stdout
142641a6cfbSDevin Teskevisualizing the
1434d36343eSJoel Dahl.Nm
144641a6cfbSDevin Teskemenu, include, and shortcut structure and relationships.  See
145641a6cfbSDevin Teske.Dq bsdconfig dot -h
146641a6cfbSDevin Teskefor more details.
147641a6cfbSDevin Teske.It Cm groupadd
148641a6cfbSDevin TeskeShortcut to the Add Groups menu under groupmgmt.
149641a6cfbSDevin Teske.It Cm groupdel
150641a6cfbSDevin TeskeShortcut to the Delete Groups menu under groupmgmt.
151641a6cfbSDevin Teske.It Cm groupedit
152641a6cfbSDevin TeskeShortcut to the Edit/View Groups menu under groupmgmt.
153641a6cfbSDevin Teske.It Cm groupmgmt
154641a6cfbSDevin TeskeUtilities to Add/Change/View/Delete Group Accounts.
155641a6cfbSDevin Teske.It Cm hostname
156641a6cfbSDevin TeskeShortcut to the Hostname/Domain menu under networking.
157641a6cfbSDevin Teske.It Cm mouse
158641a6cfbSDevin TeskeUtilities for configuring, exploring, and enabling console mouse support.
159641a6cfbSDevin Teske.It Cm mouse_disable
160641a6cfbSDevin TeskeShortcut to the Disable menu under mouse.
161641a6cfbSDevin Teske.It Cm mouse_enable
162641a6cfbSDevin TeskeShortcut to the Enable menu under mouse.
163641a6cfbSDevin Teske.It Cm mouse_flags
164641a6cfbSDevin TeskeShortcut to the Flags menu under mouse.
165641a6cfbSDevin Teske.It Cm mouse_port
166641a6cfbSDevin TeskeShortcut to the Port menu under mouse.
167641a6cfbSDevin Teske.It Cm mouse_type
168641a6cfbSDevin TeskeShortcut to the Type menu under mouse.
169641a6cfbSDevin Teske.It Cm nameservers
170641a6cfbSDevin TeskeShortcut to the DNS Nameservers menu under networking.
171641a6cfbSDevin Teske.It Cm netdev
172641a6cfbSDevin TeskeShortcut to the Network Interfaces menu under networking.
173641a6cfbSDevin Teske.It Cm networking
174641a6cfbSDevin TeskeUtilities to set/change Hostname/Domain, Network Interfaces, Default
175641a6cfbSDevin TeskeRouter/Gateway, and DNS Nameservers.
176641a6cfbSDevin Teske.It Cm password
177641a6cfbSDevin TeskeSet the system administrator
178641a6cfbSDevin Teske.Pq root
179641a6cfbSDevin Teskepassword.
180641a6cfbSDevin Teske.It Cm security
181641a6cfbSDevin TeskeConfigure various system security settings.
182641a6cfbSDevin Teske.It Cm syscons_font
183641a6cfbSDevin TeskeShortcut to the Font menu under console.
184641a6cfbSDevin Teske.It Cm syscons_keymap
185641a6cfbSDevin TeskeShortcut to the Keymap menu under console.
186641a6cfbSDevin Teske.It Cm syscons_repeat
187641a6cfbSDevin TeskeShortcut to the Repeat menu under console.
188641a6cfbSDevin Teske.It Cm syscons_saver
189641a6cfbSDevin TeskeShortcut to the Saver menu under console.
190641a6cfbSDevin Teske.It Cm syscons_screenmap
191641a6cfbSDevin TeskeShortcut to the Screenmap menu under console.
192641a6cfbSDevin Teske.It Cm syscons_ttys
193641a6cfbSDevin TeskeShortcut to the Ttys menu under console.
194641a6cfbSDevin Teske.It Cm timezone
195641a6cfbSDevin TeskeSet the regional timezone of the local machine.
196641a6cfbSDevin Teske.It Cm useradd
197641a6cfbSDevin TeskeShortcut to the Add Users menu under usermgmt.
198641a6cfbSDevin Teske.It Cm userdel
199641a6cfbSDevin TeskeShortcut to the Delete Users menu under usermgmt.
200641a6cfbSDevin Teske.It Cm useredit
201641a6cfbSDevin TeskeShortcut to the Edit/View Users menu under usermgmt.
202641a6cfbSDevin Teske.It Cm usermgmt
203641a6cfbSDevin TeskeUtilities to Add/Edit/View/Delete User Accounts.
2048a664e6cSJoel Dahl.El
205641a6cfbSDevin Teske.Sh INTERNATIONALIZATION
206641a6cfbSDevin Teskei18n features are built into
207641a6cfbSDevin Teske.Nm
208641a6cfbSDevin Teskeand language-specific translation files will be added as they become available.
209641a6cfbSDevin TeskeIn the absence of language-specific translation files, the default
210641a6cfbSDevin Teske.Pq en_US.ISO8859-1
211641a6cfbSDevin Teskefiles will be used.
212641a6cfbSDevin Teske.Sh ADDING COMMANDS
213641a6cfbSDevin TeskeTo be documented later. Document menu_selection="command|*" syntax of INDEX
214641a6cfbSDevin Teskefiles.
215641a6cfbSDevin Teske.Sh ENVIRONMENT VARIABLES
216641a6cfbSDevin TeskeThe following environment variables affect the execution of
217641a6cfbSDevin Teske.Nm :
218641a6cfbSDevin Teske.Bl -tag -width ".Ev LC_ALL"
219641a6cfbSDevin Teske.It Ev LANG
220641a6cfbSDevin TeskeIf LANG is set, messages and index information will be read from files named
221641a6cfbSDevin Teskemessages.$LANG and INDEX.$LANG and fall back to files named messages and INDEX if
222641a6cfbSDevin Teskemessages.$LANG and INDEX.$LANG do not exist.  LANG takes precedence over LC_ALL.
223641a6cfbSDevin Teske.It Ev LC_ALL
224641a6cfbSDevin TeskeIf LC_ALL is set, messages and index information will be read from files named
225641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL and fall back to files named messages and INDEX if
226641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL do not exist.
2278a664e6cSJoel Dahl.El
228641a6cfbSDevin Teske.Sh FILES
229641a6cfbSDevin Teske/usr/share/examples/bsdconfig/bsdconfigrc can be copied to $HOME/.bsdconfigrc and
230641a6cfbSDevin Teskecustomized as needed.
231641a6cfbSDevin Teske.Sh EXIT STATUS
232641a6cfbSDevin Teske.Ex -std
233641a6cfbSDevin Teske.Sh SEE ALSO
2348a664e6cSJoel Dahl.Xr host-setup 8 ,
2358a664e6cSJoel Dahl.Xr sade 8
236641a6cfbSDevin Teske.Sh HISTORY
237641a6cfbSDevin Teske.Nm
238641a6cfbSDevin Teskefirst appeared in
239641a6cfbSDevin Teske.Fx 10.0 .
240641a6cfbSDevin Teske.Sh AUTHORS
241641a6cfbSDevin Teske.An Ron McDowell Aq rcm@FuzzWad.ORG
242641a6cfbSDevin Teske.An Devin Teske Aq devinteske@hotmail.com
243641a6cfbSDevin Teske.Sh BUGS
244641a6cfbSDevin TeskeUndoubtedly.
245