Difference between revisions of "Install a Server/9.2"

From PC-BSD Wiki
Jump to: navigation, search
(This page certainly needs additional explanatory text for most of the images.)
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{NavHeader|back=Advanced Installation Topics|forward=Dual Booting}}</noinclude>
+
<noinclude><translate>
  
The [[System Selection Screen]] of the PC-BSD® installer can be used to install a FreeBSD-based server operating system, rather than a PC-BSD® desktop operating system. This screen provides two server options:
+
<!--T:1-->
 +
{{NavHeader|back=Using the Text Installer|forward=Convert a FreeBSD System to PC-BSD®}}</noinclude>
  
[[File:Freebsd1c.png|thumb|393px|'''Figure 5.1a: Selecting to Install TrueOS™''']]
+
<!--T:2-->
 +
[[File:Freebsd1e.png|thumb|393px|'''Figure 5.1a: Selecting to Install TrueOS®''']]
 +
The {{local|link=System Selection Screen}} of the PC-BSD® installer can be used to install TrueOS®, a FreeBSD-based server operating system, rather than a PC-BSD® desktop operating system.
  
* '''FreeBSD Server:''' installs a basic, vanilla installation of FreeBSD. While the installation routine is different, the end result is the same as if one had installed FreeBSD from a FreeBSD media as it results in a minimal, command-line only FreeBSD server installation.
+
<!--T:5-->
 
+
TrueOS® adds the following to a vanilla installation of FreeBSD: {{local|link=PBI Manager}}, the command line version of '''{{local|link=Warden®|anchor=Using the Command Line Version of Warden® | warden}}''', and the command line versions of most of the {{local|link=Control Panel}} utilities. You will find those utilities in ''/usr/local/bin/pc-*''. It also installs this {{citelink|url=http://trac.pcbsd.org/browser/build-files/ports-overlay/misc/trueos-base/Makefile list}} of additional shells and utilities.
* '''TrueOS™:''' adds the following to a vanilla installation of FreeBSD: [[PBI Manager]], the command line version of '''[[Warden®#Using the Command Line Version of Warden® | warden]]''', and the command line versions of most of the [[Control Panel]] utilities. You will find those utilities in ''/usr/local/bin/pc-*''. It also installs this {{citelink|url=http://trac.pcbsd.org/browser/pcbsd/branches/9.1/build-files/metapkgsets/warden/pkgset/base-system/ports-list|txt=list}} of additional shells and utilities.
+
  
 +
<!--T:6-->
 
For a server installation, using the PC-BSD® installer rather than the FreeBSD installer offers several benefits:
 
For a server installation, using the PC-BSD® installer rather than the FreeBSD installer offers several benefits:
  
* the ability to easily [[Disk Selection Screen#ZFS Layout | configure ZFS]] during installation
+
<!--T:7-->
 
+
* the ability to easily {{local|link=Disk Selection Screen|anchor=ZFS Layout | configure ZFS}} during installation
* the ability to configure encryption during installation
+
  
* the ability to configure ZFS [[Multiple Boot Environments]]
+
<!--T:9-->
 +
* the ability to configure ZFS {{local|link=Boot Manager|multiple boot environments}}
  
 +
<!--T:10-->
 
* a wizard (described in this section) is provided during installation to configure the server for first use.
 
* a wizard (described in this section) is provided during installation to configure the server for first use.
  
To perform a server installation, [[Installing PC-BSD® | start the PC-BSD® installation]] as usual. When you get to the [[System Selection Screen]] of the installer, click the left arrow until either FreeBSD or TrueOS is selected. In the example shown as in Figure 5.1a, the user has selected TrueOS™ and the FreeBSD option is to the left of the selection.  
+
<!--T:11-->
 +
To perform a server installation, {{local|link=Installing PC-BSD®|start the PC-BSD® installation}} as usual. When you get to the {{local|link=System Selection Screen}} of the installer, select "Server (TrueOS)", as shown in Figure 5.1a.  
  
Once selected, press "Next" to start the "Server Setup Wizard". The wizard is the same for either a FreeBSD or a TrueOS™ installation.
+
<!--T:44-->
 +
If you wish to install any additional server software, click the "Customize" button. This screen, shown in Figure 5.1b, can be used to install packages such as MySQL, PostgreSQL, Samba, PHP, VirtualBox, Apache, and Lighttp.
  
Click "Next" to see the screen shown in Figure 5.1b.
+
<!--T:35-->
 +
[[File:Apps1.png|thumb|393px|'''Figure 5.1b: Installing Server Applications into TrueOS®''']]
  
[[File:Freebsd1b.png|thumb|393px|'''Figure 5.1b: Set the Root Password''']]
+
<!--T:12-->
 +
After making your selections, press "Next" to start the "Server Setup Wizard". Click "Next" again to see the screen shown in Figure 5.1c.
  
Input and confirm the root password which will be used for administrative or "superuser" access to the server, then click "Next" to proceed to the screen shown in Figure 5.1c.
+
<!--T:14-->
 +
[[File:Freebsd1b.png|thumb|393px|'''Figure 5.1c: Set the Root Password''']]
  
[[File:Freebsd2a.png|thumb|393px|'''Figure 5.1c: Create the Primary User Account''']]
+
<!--T:15-->
 +
Input and confirm the root password then click "Next" to proceed to the screen shown in Figure 5.1d.
  
 +
<!--T:16-->
 +
[[File:Freebsd2a.png|thumb|393px|'''Figure 5.1d: Create the Primary User Account''']]
 +
 +
<!--T:17-->
 
For security reasons, you should not login as the ''root'' user. For this reason, the wizard requires you to create a primary user account that will be used to login to the FreeBSD system. This account will automatically be added to the ''wheel'' group, allowing that user to '''su''' to the root account when administrative access is required.
 
For security reasons, you should not login as the ''root'' user. For this reason, the wizard requires you to create a primary user account that will be used to login to the FreeBSD system. This account will automatically be added to the ''wheel'' group, allowing that user to '''su''' to the root account when administrative access is required.
  
 +
<!--T:18-->
 
This screen contains the following fields:
 
This screen contains the following fields:
  
 +
<!--T:19-->
 
* '''Name:''' can contain capital letters and spaces.
 
* '''Name:''' can contain capital letters and spaces.
  
 +
<!--T:20-->
 
* '''Username:''' the name used when logging in. Can not contain spaces and is case sensitive (e.g. Kris is a different username than kris).
 
* '''Username:''' the name used when logging in. Can not contain spaces and is case sensitive (e.g. Kris is a different username than kris).
  
 +
<!--T:21-->
 
* '''Password:''' the password used when logging in. You must type it twice in order to confirm it.
 
* '''Password:''' the password used when logging in. You must type it twice in order to confirm it.
  
 +
<!--T:22-->
 
* '''Default shell:''' use the drop-down menu to select the '''csh''', '''tcsh''', or '''sh''' login shell.
 
* '''Default shell:''' use the drop-down menu to select the '''csh''', '''tcsh''', or '''sh''' login shell.
  
When finished, click "Next" to proceed to the screen shown in Figure 5.1d.
+
<!--T:23-->
 +
When finished, click "Next" to proceed to the screen shown in Figure 5.1e.
  
[[File:Freebsd3a.png|thumb|393px|'''Figure 5.1d: Set the Hostname''']]
+
<!--T:24-->
 +
[[File:Freebsd3a.png|thumb|393px|'''Figure 5.1e: Set the Hostname''']]
  
Input the system's hostname. If you will be using '''ssh''' to administer the system, check the box "Enable remote SSH login". Click "Next" to proceed to the network configuration screen shown in Figure 5.1e.
+
<!--T:25-->
 +
Input the system's hostname. If you will be using '''ssh''' to administer the system, check the box "Enable remote SSH login". Click "Next" to proceed to the network configuration screen shown in Figure 5.1f.
  
[[File:Freebsd4a.png|thumb|393px|'''Figure 5.1e: Configure the Network''']]
+
<!--T:26-->
 +
[[File:Freebsd4a.png|thumb|393px|'''Figure 5.1f: Configure the Network''']]
  
 +
<!--T:27-->
 
Use the "Network Interface" drop-down menu to select from the following:
 
Use the "Network Interface" drop-down menu to select from the following:
  
 +
<!--T:28-->
 
* '''AUTO-DHCP-SLAAC:''' (default) will configure every active interface configured for DHCP and both IPv4 and IPv6
 
* '''AUTO-DHCP-SLAAC:''' (default) will configure every active interface configured for DHCP and both IPv4 and IPv6
  
 +
<!--T:29-->
 
* '''AUTO-DHCP:''' will configure every active interface for DHCP and IPv4
 
* '''AUTO-DHCP:''' will configure every active interface for DHCP and IPv4
  
 +
<!--T:30-->
 
* '''IPv6-SLAAC:''' will configure every active interface for DHCP and IPv6
 
* '''IPv6-SLAAC:''' will configure every active interface for DHCP and IPv6
  
Alternately, select the device name for the interface that you wish to manually configure and input the IPv4 and/or IPv6 addressing information. When finished, click "Next" to proceed to the screen shown in Figure 5.1f.
+
<!--T:31-->
 +
Alternately, select the device name for the interface that you wish to manually configure and input the IPv4 and/or IPv6 addressing information. When finished, click "Next" to proceed to the screen shown in Figure 5.1g.
  
[[File:Freebsd5a.png|thumb|393px|'''Figure 5.1f: Install Source or Ports''']]
+
<!--T:32-->
 +
[[File:Freebsd5a.png|thumb|393px|'''Figure 5.1g: Install Source or Ports''']]
  
If you wish to install FreeBSD source or ports, check the associated box(es) then click "Finish" to exit the wizard.
+
<!--T:33-->
 +
If you wish to install FreeBSD source or ports, check the associated box(es) then click "Finish" to exit the wizard and access the summary screen shown in Figure 5.1h.
  
If you are installing TrueOS™, you can use the "Customize" button to install server meta-packages. This screen, shown in Figure 5.1g, can be used to install packages such as MySQL, PostgreSQL, Samba, PHP, VirtualBox, Apache, and Lighttp.
+
<!--T:39-->
 +
[[File:Disks1a.png|thumb|393px|'''Figure 5.1h: Review Installation Summary''']]
  
[[File:Apps.png|thumb|393px|'''Figure 5.1g: Installing Server Applications into TrueOS™''']]
+
<!--T:40-->
 +
Click "Customize" if you wish to proceed to the {{local|link=Disk Selection Screen}} in order to configure the system's disk(s).
  
When you have saved your selections, click "Next" to proceed to the [[Disk Selection Screen]] in order to configure the system's disk(s).
+
<!--T:41-->
 +
If you wish to save the finished configuration to re-use it at a later time, insert a FAT-formatted USB stick and click "Save Config to USB".
  
 +
<!--T:42-->
 +
Once you are ready to start the installation, click "Next". A pop-up menu will ask if you would like to start the installation now.
 +
 +
<!--T:37-->
 
Once the system is installed, it will boot to a command-line login prompt. Login using the primary user account that was configured during installation. You can now configure and use the server as you would any other FreeBSD server installation. The  
 
Once the system is installed, it will boot to a command-line login prompt. Login using the primary user account that was configured during installation. You can now configure and use the server as you would any other FreeBSD server installation. The  
 
{{citelink|fbsdh|url=|txt=FreeBSD Handbook}} is an excellent reference for performing common FreeBSD server tasks.
 
{{citelink|fbsdh|url=|txt=FreeBSD Handbook}} is an excellent reference for performing common FreeBSD server tasks.
  
<noinclude>{{refheading}}</noinclude>
+
<!--T:38-->
 
<noinclude>
 
<noinclude>
[[category:handbook]]
+
{{refheading}}
[[category:Advanced Installation Topics]]
+
 
[[category:Install a Server]]
 
[[category:Install a Server]]
 +
[[category:Advanced Installation Topics]]
 +
[[category:handbook]]
 +
</translate>
 +
<languages/>
 
</noinclude>
 
</noinclude>

Revision as of 20:31, 4 November 2013

(Sorry for the inconvenience)

Figure 5.1a: Selecting to Install TrueOS®

The System Selection Screen of the PC-BSD® installer can be used to install TrueOS®, a FreeBSD-based server operating system, rather than a PC-BSD® desktop operating system.

TrueOS® adds the following to a vanilla installation of FreeBSD: PBI Manager, the command line version of warden, and the command line versions of most of the Control Panel utilities. You will find those utilities in /usr/local/bin/pc-*. It also installs this list [1] of additional shells and utilities.

For a server installation, using the PC-BSD® installer rather than the FreeBSD installer offers several benefits:

  • a wizard (described in this section) is provided during installation to configure the server for first use.

To perform a server installation, start the PC-BSD® installation as usual. When you get to the System Selection Screen of the installer, select "Server (TrueOS)", as shown in Figure 5.1a.

If you wish to install any additional server software, click the "Customize" button. This screen, shown in Figure 5.1b, can be used to install packages such as MySQL, PostgreSQL, Samba, PHP, VirtualBox, Apache, and Lighttp.

Figure 5.1b: Installing Server Applications into TrueOS®

After making your selections, press "Next" to start the "Server Setup Wizard". Click "Next" again to see the screen shown in Figure 5.1c.

Figure 5.1c: Set the Root Password

Input and confirm the root password then click "Next" to proceed to the screen shown in Figure 5.1d.

Figure 5.1d: Create the Primary User Account

For security reasons, you should not login as the root user. For this reason, the wizard requires you to create a primary user account that will be used to login to the FreeBSD system. This account will automatically be added to the wheel group, allowing that user to su to the root account when administrative access is required.

This screen contains the following fields:

  • Name: can contain capital letters and spaces.
  • Username: the name used when logging in. Can not contain spaces and is case sensitive (e.g. Kris is a different username than kris).
  • Password: the password used when logging in. You must type it twice in order to confirm it.
  • Default shell: use the drop-down menu to select the csh, tcsh, or sh login shell.

When finished, click "Next" to proceed to the screen shown in Figure 5.1e.

Figure 5.1e: Set the Hostname

Input the system's hostname. If you will be using ssh to administer the system, check the box "Enable remote SSH login". Click "Next" to proceed to the network configuration screen shown in Figure 5.1f.

Figure 5.1f: Configure the Network

Use the "Network Interface" drop-down menu to select from the following:

  • AUTO-DHCP-SLAAC: (default) will configure every active interface configured for DHCP and both IPv4 and IPv6
  • AUTO-DHCP: will configure every active interface for DHCP and IPv4
  • IPv6-SLAAC: will configure every active interface for DHCP and IPv6

Alternately, select the device name for the interface that you wish to manually configure and input the IPv4 and/or IPv6 addressing information. When finished, click "Next" to proceed to the screen shown in Figure 5.1g.

Figure 5.1g: Install Source or Ports

If you wish to install FreeBSD source or ports, check the associated box(es) then click "Finish" to exit the wizard and access the summary screen shown in Figure 5.1h.

Figure 5.1h: Review Installation Summary

Click "Customize" if you wish to proceed to the Disk Selection Screen in order to configure the system's disk(s).

If you wish to save the finished configuration to re-use it at a later time, insert a FAT-formatted USB stick and click "Save Config to USB".

Once you are ready to start the installation, click "Next". A pop-up menu will ask if you would like to start the installation now.

Once the system is installed, it will boot to a command-line login prompt. Login using the primary user account that was configured during installation. You can now configure and use the server as you would any other FreeBSD server installation. The FreeBSD Handbook[2] is an excellent reference for performing common FreeBSD server tasks.


References


  1. http://trac.pcbsd.org/browser/build-files/ports-overlay/misc/trueos-base/Makefile list
  2. http://www.freebsd.org/doc/en/books/handbook/
Other languages:German 8% • ‎English 100% • ‎French 45%
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox