xref: /freebsd/usr.sbin/bsdconfig/bsdconfig.8 (revision 641a6cfb86023499caafe26a4d821a0b885cf00b)
1*641a6cfbSDevin Teske.\" Copyright (c) 2012 Ron McDowell
2*641a6cfbSDevin Teske.\" Copyright (c) 2012 Devin Teske
3*641a6cfbSDevin Teske.\" All rights reserved.
4*641a6cfbSDevin Teske.\"
5*641a6cfbSDevin Teske.\" Redistribution and use in source and binary forms, with or without
6*641a6cfbSDevin Teske.\" modification, are permitted provided that the following conditions
7*641a6cfbSDevin Teske.\" are met:
8*641a6cfbSDevin Teske.\" 1. Redistributions of source code must retain the above copyright
9*641a6cfbSDevin Teske.\"    notice, this list of conditions and the following disclaimer.
10*641a6cfbSDevin Teske.\" 2. Redistributions in binary form must reproduce the above copyright
11*641a6cfbSDevin Teske.\"    notice, this list of conditions and the following disclaimer in the
12*641a6cfbSDevin Teske.\"    documentation and/or other materials provided with the distribution.
13*641a6cfbSDevin Teske.\"
14*641a6cfbSDevin Teske.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15*641a6cfbSDevin Teske.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16*641a6cfbSDevin Teske.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17*641a6cfbSDevin Teske.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
18*641a6cfbSDevin Teske.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19*641a6cfbSDevin Teske.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20*641a6cfbSDevin Teske.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*641a6cfbSDevin Teske.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22*641a6cfbSDevin Teske.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
23*641a6cfbSDevin Teske.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24*641a6cfbSDevin Teske.\" POSSIBILITY OF SUCH DAMAGE.
25*641a6cfbSDevin Teske.\"
26*641a6cfbSDevin Teske.\"            docsinstall
27*641a6cfbSDevin Teske.\"            password
28*641a6cfbSDevin Teske.\"            diskmgmt
29*641a6cfbSDevin Teske.\"            usermgmt
30*641a6cfbSDevin Teske.\"              useradd
31*641a6cfbSDevin Teske.\"              useredit
32*641a6cfbSDevin Teske.\"              userdel
33*641a6cfbSDevin Teske.\"            groupmgmt
34*641a6cfbSDevin Teske.\"              groupadd
35*641a6cfbSDevin Teske.\"              groupedit
36*641a6cfbSDevin Teske.\"              groupdel
37*641a6cfbSDevin Teske.\"            console
38*641a6cfbSDevin Teske.\"              syscons_font
39*641a6cfbSDevin Teske.\"              syscons_keymap
40*641a6cfbSDevin Teske.\"              syscons_repeat
41*641a6cfbSDevin Teske.\"              syscons_saver
42*641a6cfbSDevin Teske.\"              syscons_screenmap
43*641a6cfbSDevin Teske.\"              syscons_ttys
44*641a6cfbSDevin Teske.\"            timezone
45*641a6cfbSDevin Teske.\"            mouse
46*641a6cfbSDevin Teske.\"              mouse_enable
47*641a6cfbSDevin Teske.\"              mouse_type
48*641a6cfbSDevin Teske.\"              mouse_port
49*641a6cfbSDevin Teske.\"              mouse_flags
50*641a6cfbSDevin Teske.\"              mouse_disable
51*641a6cfbSDevin Teske.\"            networking
52*641a6cfbSDevin Teske.\"              defaultrouter
53*641a6cfbSDevin Teske.\"              hostname
54*641a6cfbSDevin Teske.\"              nameservers
55*641a6cfbSDevin Teske.\"              netdev
56*641a6cfbSDevin Teske.\"            security
57*641a6cfbSDevin Teske.\"            ttys
58*641a6cfbSDevin Teske.\"            [dot]
59*641a6cfbSDevin Teske.\"
60*641a6cfbSDevin Teske.\" $FreeBSD$
61*641a6cfbSDevin Teske.\"
62*641a6cfbSDevin Teske.Dd Mar 20, 2012
63*641a6cfbSDevin Teske.Dt BSDCONFIG 8
64*641a6cfbSDevin Teske.Os
65*641a6cfbSDevin Teske.Sh NAME
66*641a6cfbSDevin Teske.Nm bsdconfig
67*641a6cfbSDevin Teske.Nd system configuration utility
68*641a6cfbSDevin Teske.Sh SYNOPSIS
69*641a6cfbSDevin Teske.Nm
70*641a6cfbSDevin Teske.Op Fl h
71*641a6cfbSDevin Teske.Nm
72*641a6cfbSDevin Teske.Ar command
73*641a6cfbSDevin Teske.Op Fl h
74*641a6cfbSDevin Teske.Nm
75*641a6cfbSDevin Teske.Op OPTIONS
76*641a6cfbSDevin Teske.Op command Op OPTIONS
77*641a6cfbSDevin Teske.Sh DESCRIPTION
78*641a6cfbSDevin Teske.Nm
79*641a6cfbSDevin Teskeis used to set up many system configuration settings, both for new systems, as
80*641a6cfbSDevin Teskewell as changing configuration settings of existing systems.
81*641a6cfbSDevin Teske.Pp
82*641a6cfbSDevin Teske.Nm
83*641a6cfbSDevin Tesketakes a command as an argument. If invoked with no arguments, it will bring up
84*641a6cfbSDevin Teskea master menu listing the available commands.
85*641a6cfbSDevin Teske.Pp
86*641a6cfbSDevin TeskeThe following options are available:
87*641a6cfbSDevin Teske.Bl -tag -width indent+
88*641a6cfbSDevin Teske.It Fl h
89*641a6cfbSDevin TeskePrint usage statement and exit.
90*641a6cfbSDevin Teske.It Fl S
91*641a6cfbSDevin TeskeSecure X11 mode
92*641a6cfbSDevin Teske.Pq implies Fl X .
93*641a6cfbSDevin TeskeAs root, always prompt-for and validate
94*641a6cfbSDevin Teske.Xr sudo 8
95*641a6cfbSDevin Teskeusername/password before starting.
96*641a6cfbSDevin Teske.It Fl X
97*641a6cfbSDevin TeskeUse
98*641a6cfbSDevin Teske.Xr Xdialog 1
99*641a6cfbSDevin Teskein place of
100*641a6cfbSDevin Teske.Xr dialog 1 .
101*641a6cfbSDevin Teske
102*641a6cfbSDevin Teske.Sh COMMANDS
103*641a6cfbSDevin TeskeThe following commands
104*641a6cfbSDevin Teske.Pq sorted alphabetically
105*641a6cfbSDevin Teskeare currently included in the base
106*641a6cfbSDevin Teske.Nm
107*641a6cfbSDevin Teskeprogram, with more to be added soon.  Other commands can be added, as detailed
108*641a6cfbSDevin Teskebelow in the
109*641a6cfbSDevin Teske.Cm ADDING COMMANDS
110*641a6cfbSDevin Teskesection, and once added, will appear in the master menu as well as in the
111*641a6cfbSDevin Teske.Cm -h
112*641a6cfbSDevin Teskelisting.
113*641a6cfbSDevin Teske.Bl -tag -width ".Cm syscons_screenmap"
114*641a6cfbSDevin Teske.It Cm console
115*641a6cfbSDevin TeskeUtilities to customize the behavior of the system console.
116*641a6cfbSDevin Teske.It Cm defaultrouter
117*641a6cfbSDevin TeskeShortcut to the Default Router/Gateway menu under networking.
118*641a6cfbSDevin Teske.It Cm diskmgmt
119*641a6cfbSDevin TeskeManage disk partitions and/or labels. Executes
120*641a6cfbSDevin Teske.Xr sade 8 .
121*641a6cfbSDevin Teske.It Cm docsinstall
122*641a6cfbSDevin TeskeExecutes the
123*641a6cfbSDevin Teske.Cm bsdinstall docsinstall
124*641a6cfbSDevin Teskesub-utility to allow installation/re-installation of the FreeBSD Documentation
125*641a6cfbSDevin Teskeset(s).
126*641a6cfbSDevin Teske.It Cm dot
127*641a6cfbSDevin TeskeGenerate a graphviz
128*641a6cfbSDevin Teske.Xr dot 1
129*641a6cfbSDevin Teskelanguage file
130*641a6cfbSDevin Teske.Pq printed on stdout
131*641a6cfbSDevin Teskevisualizing the
132*641a6cfbSDevin Teske.Xr bsdconfig 8
133*641a6cfbSDevin Teskemenu, include, and shortcut structure and relationships.  See
134*641a6cfbSDevin Teske.Dq bsdconfig dot -h
135*641a6cfbSDevin Teskefor more details.
136*641a6cfbSDevin Teske.It Cm groupadd
137*641a6cfbSDevin TeskeShortcut to the Add Groups menu under groupmgmt.
138*641a6cfbSDevin Teske.It Cm groupdel
139*641a6cfbSDevin TeskeShortcut to the Delete Groups menu under groupmgmt.
140*641a6cfbSDevin Teske.It Cm groupedit
141*641a6cfbSDevin TeskeShortcut to the Edit/View Groups menu under groupmgmt.
142*641a6cfbSDevin Teske.It Cm groupmgmt
143*641a6cfbSDevin TeskeUtilities to Add/Change/View/Delete Group Accounts.
144*641a6cfbSDevin Teske.It Cm hostname
145*641a6cfbSDevin TeskeShortcut to the Hostname/Domain menu under networking.
146*641a6cfbSDevin Teske.It Cm mouse
147*641a6cfbSDevin TeskeUtilities for configuring, exploring, and enabling console mouse support.
148*641a6cfbSDevin Teske.It Cm mouse_disable
149*641a6cfbSDevin TeskeShortcut to the Disable menu under mouse.
150*641a6cfbSDevin Teske.It Cm mouse_enable
151*641a6cfbSDevin TeskeShortcut to the Enable menu under mouse.
152*641a6cfbSDevin Teske.It Cm mouse_flags
153*641a6cfbSDevin TeskeShortcut to the Flags menu under mouse.
154*641a6cfbSDevin Teske.It Cm mouse_port
155*641a6cfbSDevin TeskeShortcut to the Port menu under mouse.
156*641a6cfbSDevin Teske.It Cm mouse_type
157*641a6cfbSDevin TeskeShortcut to the Type menu under mouse.
158*641a6cfbSDevin Teske.It Cm nameservers
159*641a6cfbSDevin TeskeShortcut to the DNS Nameservers menu under networking.
160*641a6cfbSDevin Teske.It Cm netdev
161*641a6cfbSDevin TeskeShortcut to the Network Interfaces menu under networking.
162*641a6cfbSDevin Teske.It Cm networking
163*641a6cfbSDevin TeskeUtilities to set/change Hostname/Domain, Network Interfaces, Default
164*641a6cfbSDevin TeskeRouter/Gateway, and DNS Nameservers.
165*641a6cfbSDevin Teske.It Cm password
166*641a6cfbSDevin TeskeSet the system administrator
167*641a6cfbSDevin Teske.Pq root
168*641a6cfbSDevin Teskepassword.
169*641a6cfbSDevin Teske.It Cm security
170*641a6cfbSDevin TeskeConfigure various system security settings.
171*641a6cfbSDevin Teske.It Cm syscons_font
172*641a6cfbSDevin TeskeShortcut to the Font menu under console.
173*641a6cfbSDevin Teske.It Cm syscons_keymap
174*641a6cfbSDevin TeskeShortcut to the Keymap menu under console.
175*641a6cfbSDevin Teske.It Cm syscons_repeat
176*641a6cfbSDevin TeskeShortcut to the Repeat menu under console.
177*641a6cfbSDevin Teske.It Cm syscons_saver
178*641a6cfbSDevin TeskeShortcut to the Saver menu under console.
179*641a6cfbSDevin Teske.It Cm syscons_screenmap
180*641a6cfbSDevin TeskeShortcut to the Screenmap menu under console.
181*641a6cfbSDevin Teske.It Cm syscons_ttys
182*641a6cfbSDevin TeskeShortcut to the Ttys menu under console.
183*641a6cfbSDevin Teske.It Cm timezone
184*641a6cfbSDevin TeskeSet the regional timezone of the local machine.
185*641a6cfbSDevin Teske.It Cm useradd
186*641a6cfbSDevin TeskeShortcut to the Add Users menu under usermgmt.
187*641a6cfbSDevin Teske.It Cm userdel
188*641a6cfbSDevin TeskeShortcut to the Delete Users menu under usermgmt.
189*641a6cfbSDevin Teske.It Cm useredit
190*641a6cfbSDevin TeskeShortcut to the Edit/View Users menu under usermgmt.
191*641a6cfbSDevin Teske.It Cm usermgmt
192*641a6cfbSDevin TeskeUtilities to Add/Edit/View/Delete User Accounts.
193*641a6cfbSDevin Teske
194*641a6cfbSDevin Teske.Sh INTERNATIONALIZATION
195*641a6cfbSDevin Teskei18n features are built into
196*641a6cfbSDevin Teske.Nm
197*641a6cfbSDevin Teskeand language-specific translation files will be added as they become available.
198*641a6cfbSDevin TeskeIn the absence of language-specific translation files, the default
199*641a6cfbSDevin Teske.Pq en_US.ISO8859-1
200*641a6cfbSDevin Teskefiles will be used.
201*641a6cfbSDevin Teske
202*641a6cfbSDevin Teske.Sh ADDING COMMANDS
203*641a6cfbSDevin TeskeTo be documented later. Document menu_selection="command|*" syntax of INDEX
204*641a6cfbSDevin Teskefiles.
205*641a6cfbSDevin Teske
206*641a6cfbSDevin Teske.Sh ENVIRONMENT VARIABLES
207*641a6cfbSDevin TeskeThe following environment variables affect the execution of
208*641a6cfbSDevin Teske.Nm :
209*641a6cfbSDevin Teske.Bl -tag -width ".Ev LC_ALL"
210*641a6cfbSDevin Teske.It Ev LANG
211*641a6cfbSDevin TeskeIf LANG is set, messages and index information will be read from files named
212*641a6cfbSDevin Teskemessages.$LANG and INDEX.$LANG and fall back to files named messages and INDEX if
213*641a6cfbSDevin Teskemessages.$LANG and INDEX.$LANG do not exist.  LANG takes precedence over LC_ALL.
214*641a6cfbSDevin Teske.It Ev LC_ALL
215*641a6cfbSDevin TeskeIf LC_ALL is set, messages and index information will be read from files named
216*641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL and fall back to files named messages and INDEX if
217*641a6cfbSDevin Teskemessages.$LC_ALL and INDEX.$LC_ALL do not exist.
218*641a6cfbSDevin Teske
219*641a6cfbSDevin Teske.Sh FILES
220*641a6cfbSDevin Teske/usr/share/examples/bsdconfig/bsdconfigrc can be copied to $HOME/.bsdconfigrc and
221*641a6cfbSDevin Teskecustomized as needed.
222*641a6cfbSDevin Teske
223*641a6cfbSDevin Teske.Sh EXIT STATUS
224*641a6cfbSDevin Teske.Ex -std
225*641a6cfbSDevin Teske
226*641a6cfbSDevin Teske.Sh SEE ALSO
227*641a6cfbSDevin Teske.Xr host-setup 8
228*641a6cfbSDevin Teske
229*641a6cfbSDevin Teske.Sh HISTORY
230*641a6cfbSDevin Teske.Nm
231*641a6cfbSDevin Teskefirst appeared in
232*641a6cfbSDevin Teske.Fx 10.0 .
233*641a6cfbSDevin Teske
234*641a6cfbSDevin Teske.Sh AUTHORS
235*641a6cfbSDevin Teske.\" An -nosplit
236*641a6cfbSDevin Teske.An Ron McDowell Aq rcm@FuzzWad.ORG
237*641a6cfbSDevin Teske.An Devin Teske Aq devinteske@hotmail.com
238*641a6cfbSDevin Teske
239*641a6cfbSDevin Teske.Sh BUGS
240*641a6cfbSDevin TeskeUndoubtedly.
241