xref: /openbsd/distrib/notes/INSTALL (revision 3b5157d9)
1*3b5157d9Stbdnl	$OpenBSD: INSTALL,v 1.51 2016/09/02 12:17:32 tb Exp $
2164c84deStoddinclude(INCLUDE/../m4.common)dnl
3d24adbafSmiodincludeit(features)dnl
4164c84deStoddINSTALLATION NOTES for OpenBSD/MACHINE OSREV
5df930be7Sderaadt
6df930be7Sderaadt
73479f7b5SniklasWhat is OpenBSD?
82a01de96Sderaadt----------------
9df930be7Sderaadt
10c61a0882SnateOpenBSD is a fully functional, multi-platform UN*X-like Operating
11c61a0882SnateSystem based on Berkeley Networking Release 2 (Net/2) and 4.4BSD-Lite.
12c61a0882SnateThere are several operating systems in this family, but OpenBSD
13c61a0882Snatedifferentiates itself by putting security and correctness first.  The
1482f141c1SjmcOpenBSD team strives to achieve what is called a 'secure by default'
15c61a0882Snatestatus.  This means that an OpenBSD user should feel safe that their
16c61a0882Snatenewly installed machine will not be compromised.  This 'secure by
17c61a0882Snatedefault' goal is achieved by taking a proactive stance on security.
18df930be7Sderaadt
19d49410c8SmarkusSince security flaws are essentially mistakes in design or implement-
20c61a0882Snateation, the OpenBSD team puts as much importance on finding and fixing
21c61a0882Snateexisting design flaws and implementation bugs as it does writing new
22c61a0882Snatecode.  This means that an OpenBSD system will not only be more secure,
23c61a0882Snatebut it will be more stable.  The source code for all critical system
24c61a0882Snatecomponents has been checked for remote-access, local-access, denial-
25c61a0882Snateof-service, data destruction, and information-gathering problems.
26df930be7Sderaadt
27c61a0882SnateIn addition to bug fixing, OpenBSD has integrated strong cryptography
280a3737abSangelosinto the base system.  A fully functional IPsec implementation is
29c61a0882Snateprovided as well as support for common protocols such as SSL and SSH.
30f068b0b5SmiodNetwork filtering and monitoring tools such as packet filtering, NAT,
31f068b0b5Smiodand bridging are also standard, as well as several routing services,
32f068b0b5Smiodsuch as BGP and OSPF.  For high performance demands, support for
33c61a0882Snatehardware cryptography has also been added to the base system.  Because
34d49410c8Smarkussecurity is often seen as a tradeoff with usability, OpenBSD provides
35c61a0882Snateas many security options as possible to allow the user to enjoy secure
36c61a0882Snatecomputing without feeling burdened by it.
372a01de96Sderaadt
38c61a0882SnateBecause OpenBSD is from Canada, the export of Cryptography pieces
395cc4d476Shenning(such as OpenSSH and IPsec) to the world is not restricted.
40c61a0882Snate
41c61a0882Snate(NOTE: OpenBSD can not be re-exported from the US once it has entered
42c61a0882Snatethe US.  Because of this, take care NOT to get the distribution from
438d66842dSrpea mirror server in the US if you are outside of Canada and the US.)
44c61a0882Snate
4582f141c1SjmcA comprehensive list of the improvements brought by the OSREV release
46*3b5157d9Stbis available on the web at https://www.OpenBSD.org/OSrev.html.
47f068b0b5Smioddnl
48f068b0b5Smioddnl MACHINE/whatis
49f068b0b5Smioddnl A few descriptive words about the port to MACHINE (i.e. what kind
50f068b0b5Smioddnl of hardware it runs on, without too much details - MACHINE/hardware
51f068b0b5Smioddnl will take care of this).
52f068b0b5Smioddnl Needs to start with a blank line if non empty.
53164c84deStoddincludeit(whatis)dnl
54164c84deStodd
55df930be7Sderaadt
563479f7b5SniklasSources of OpenBSD:
572a01de96Sderaadt-------------------
58df930be7Sderaadt
59*3b5157d9StbPlease refer to https://www.openbsd.org/ftp.html for all the ways you may
604fc25e86Steduacquire OpenBSD.
61df930be7Sderaadt
62164c84deStodd
63164c84deStoddOpenBSD OSREV Release Contents:
642a01de96Sderaadt-----------------------------
65df930be7Sderaadt
66164c84deStoddThe OpenBSD OSREV release is organized in the following way.  In the
67164c84deStodd.../OSREV directory, for each of the architectures having an OpenBSD OSREV
68a3a5ca11Stoddbinary distribution, there is a sub-directory.
69df930be7Sderaadt
70164c84deStoddincludeit(contents)
71df930be7Sderaadt
7208c97e40Smiod
733479f7b5SniklasOpenBSD System Requirements and Supported Devices:
742a01de96Sderaadt--------------------------------------------------
75df930be7Sderaadt
76164c84deStoddincludeit(hardware)
77df930be7Sderaadt
7808c97e40Smiod
79db0bfcd5SdougVerifying the OpenBSD Installation Media:
80db0bfcd5Sdoug-----------------------------------------
81db0bfcd5Sdoug
82db0bfcd5SdougAs of OpenBSD 5.5, installations are able to verify files for the next
83db0bfcd5Sdougrelease.  The OpenBSD OSREV release was signed with the
84db0bfcd5Sdoug/etc/signify/openbsd-{:--:}OSrev-base.pub release key.
85db0bfcd5Sdoug
86db0bfcd5SdougIf you have an existing OpenBSD 5.5 or higher installation, you can run
87db0bfcd5Sdougsignify(1) to verify the signature and checksum.  For example, run the following
88db0bfcd5Sdougto verify that the cd{:--:}OSrev.iso file was distributed by the OpenBSD team:
89db0bfcd5Sdoug	signify -C -p /etc/signify/openbsd-{:--:}OSrev-base.pub -x SHA256.sig cd{:--:}OSrev.iso
90db0bfcd5Sdoug
91db0bfcd5SdougIf you are unable to run or compile signify(1), use sha256(1) with the SHA256
92db0bfcd5Sdougfile to see if a file was corrupt during the transfer.
93db0bfcd5Sdoug
94db0bfcd5Sdoug
953479f7b5SniklasGetting the OpenBSD System onto Useful Media:
96cb32bff3Smillert---------------------------------------------
97df930be7Sderaadt
98164c84deStoddincludeit(xfer)
99df930be7Sderaadt
10008c97e40Smiod
1013479f7b5SniklasPreparing your System for OpenBSD Installation:
1022a01de96Sderaadt-----------------------------------------------
103df930be7Sderaadt
104164c84deStoddincludeit(prep)
105df930be7Sderaadt
10608c97e40Smiod
1073479f7b5SniklasInstalling the OpenBSD System:
1082a01de96Sderaadt------------------------------
109df930be7Sderaadt
110164c84deStoddincludeit(install)
111df930be7Sderaadt
11208c97e40Smiod
1133479f7b5SniklasUpgrading a previously-installed OpenBSD System:
1142a01de96Sderaadt------------------------------------------------
115df930be7Sderaadt
116164c84deStoddincludeit(upgrade)
117df930be7Sderaadt
11808c97e40Smiod
1190905e1eaSderaadtGetting source code for your OpenBSD System:
1200905e1eaSderaadt--------------------------------------------
1210905e1eaSderaadt
1220905e1eaSderaadtNow that your OpenBSD system is up and running, you probably want to get
1230905e1eaSderaadtaccess to source code so that you can recompile pieces of the system.
1240905e1eaSderaadt
125f068b0b5SmiodA few methods are provided.  If you have an OpenBSD CD-ROM, the source
126f068b0b5Smiodcode is provided.  Otherwise, you can get the pieces over the Internet
1278d66842dSrpeusing anonymous CVS, CVSync, FTP or HTTP.  For more information, see
1280905e1eaSderaadt
129*3b5157d9Stb	https://www.OpenBSD.org/anoncvs.html
130*3b5157d9Stb	https://www.OpenBSD.org/cvsync.html
131*3b5157d9Stb	https://www.OpenBSD.org/ftp.html
1320905e1eaSderaadt
13308c97e40Smiod
1342a01de96SderaadtUsing online OpenBSD documentation:
1352a01de96Sderaadt-----------------------------------
136489064a4Sderaadt
137f068b0b5SmiodDocumentation is available if you first install the manual pages
138489064a4Sderaadtdistribution set.  Traditionally, the UN*X "man pages" (documentation)
139489064a4Sderaadtare denoted by 'name(section)'.  Some examples of this are
140489064a4Sderaadt
141489064a4Sderaadt	intro(1),
142489064a4Sderaadt	man(1),
143cb32bff3Smillert	apropos(1),
144688488adSmiod	passwd(1),
145688488adSmiod	passwd(5) and
146688488adSmiod	afterboot(8).
147489064a4Sderaadt
148489064a4SderaadtThe section numbers group the topics into several categories, but three
149489064a4Sderaadtare of primary interest: user commands are in section 1, file formats
150489064a4Sderaadtare in section 5, and administrative information is in section 8.
151489064a4Sderaadt
152489064a4SderaadtThe 'man' command is used to view the documentation on a topic, and is
153489064a4Sderaadtstarted by entering 'man [section] topic'.  The brackets [] around the
154489064a4Sderaadtsection should not be entered, but rather indicate that the section is
155489064a4Sderaadtoptional.  If you don't ask for a particular section, the topic with the
156489064a4Sderaadtleast-numbered section name will be displayed.  For instance, after
157489064a4Sderaadtlogging in, enter
158489064a4Sderaadt
159489064a4Sderaadt	man passwd
160489064a4Sderaadt
161489064a4Sderaadtto read the documentation for passwd(1).  To view the documentation for
162489064a4Sderaadtpasswd(5), enter
163489064a4Sderaadt
164489064a4Sderaadt	man 5 passwd
165489064a4Sderaadt
166489064a4Sderaadtinstead.
167489064a4Sderaadt
168489064a4SderaadtIf you are unsure of what man page you are looking for, enter
169489064a4Sderaadt
170489064a4Sderaadt	apropos subject-word
171489064a4Sderaadt
172489064a4Sderaadtwhere "subject-word" is your topic of interest; a list of possibly
173489064a4Sderaadtrelated man pages will be displayed.
174489064a4Sderaadt
17508c97e40Smiod
176164c84deStoddAdding third party software; ``packages'' and ``ports'':
177f068b0b5Smiod--------------------------------------------------------
178ea30827fSmarc
179164c84deStoddincludeit(packages)
180489064a4Sderaadt
18108c97e40Smiod
182df930be7SderaadtAdministrivia:
1832a01de96Sderaadt--------------
184df930be7Sderaadt
185df930be7SderaadtThere are various mailing lists available via the mailing list
18671901ee1Smiodserver at <majordomo@OpenBSD.org>.  To get help on using the mailing
187df930be7Sderaadtlist server, send mail to that address with an empty body, and it will
18895a11e58Stedureply with instructions.
189df930be7Sderaadt
19077a93d02SmiodMore information about the various OpenBSD mailing list and proper
19177a93d02Smiodnetiquette is available at
19277a93d02Smiod
193*3b5157d9Stb	https://www.OpenBSD.org/mail.html
19477a93d02Smiod
1952a01de96SderaadtTo report bugs, use the 'sendbug' command shipped with OpenBSD,
196df930be7Sderaadtand fill in as much information about the problem as you can.  Good
197164c84deStoddbug reports {:-include-:} lots of details.  Additionally, bug reports can
198df930be7Sderaadtbe sent by mail to:
199df930be7Sderaadt
20071901ee1Smiod	bugs@OpenBSD.org
201df930be7Sderaadt
202b4259f1cSmioddnl uncomment when this is true again...
203b4259f1cSmioddnl
204b4259f1cSmioddnl Use of 'sendbug' is encouraged, however, because bugs reported with it
205b4259f1cSmioddnl are entered into the OpenBSD bugs database, and thus can't slip through
206b4259f1cSmioddnl the cracks.
207b4259f1cSmioddnl
2087975ba56StholoAs a favor, please avoid mailing huge documents or files to the
20995a11e58Stedumailing lists.  Instead, put the material you would have sent on
21095a11e58Stedua web server, then mail the appropriate list about it, or if
211df930be7Sderaadtyou'd rather not do that, mail the list saying you'll send the data
212df930be7Sderaadtto those who want it.
213f068b0b5Smiod
214f068b0b5SmiodFor more information about reporting bugs, see
215f068b0b5Smiod
216*3b5157d9Stb	https://www.OpenBSD.org/report.html
217