Difference between revisions of "Install a Server/9.2"

From PC-BSD Wiki
Jump to: navigation, search
m
(41 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<noinclude>{{NavHeader|back=Advanced Installation Topics|forward=Dual Booting}}</noinclude>
 
<noinclude>{{NavHeader|back=Advanced Installation Topics|forward=Dual Booting}}</noinclude>
  
'''THIS PAGE CHANGED IN 9.1. UNLESS YOU ARE BETA TESTING 9.1, YOU SHOULD INSTEAD REFER TO THE [http://wiki.pcbsd.org/index.php/PC-BSD_Users_Handbook PUBLISHED VERSION OF THE USERS HANDBOOK] THAT MATCHES YOUR PC-BSD VERSION'''
+
'''THIS PAGE CHANGED IN 9.1. UNLESS YOU ARE BETA TESTING 9.1, YOU SHOULD INSTEAD REFER TO THE [[PC-BSD Users Handbook|PUBLISHED VERSION OF THE USERS HANDBOOK]] THAT MATCHES YOUR PC-BSD® VERSION'''
  
The PC-BSD installer can be used to install a secure server operating system, based on FreeBSD. The resulting server is similar to an installation using the FreeBSD installer in that it results in a minimal, command line only FreeBSD server installation. However, using the PC-BSD installer offers several additional benefits:
+
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:
  
* the ability to easily [[Disk_Selection_Screen#ZFS_Layout | configure ZFS]] during installation
+
* '''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.
 +
 
 +
* '''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.
 +
 
 +
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
  
 
* the ability to configure encryption during installation
 
* the ability to configure encryption during installation
  
* a wizard (described in this section) is provided during installation to configure the server for first use
+
* the ability to configure ZFS [[Multiple Boot Environments]]
  
* the installation adds the [[PBI Manager]] command line suite of utilites for managing PBIs and creating one's own software repositories
+
* a wizard (described in this section) is provided during installation to configure the server for first use.
  
* the installation adds the command line utilities used by the Meta Package manager
+
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.
  
To perform a server installation, [[Installing_PC-BSD | start the installation]] as usual. When you get to the Desktop Selection screen of the PC-BSD installer, click the left arrow until the PC-BSD Server is selected, as seen in Figure 5.1a.
+
'''Figure 5.1a: Selecting to Install TrueOS™'''
  
'''Figure 5.1a: Selecting to Install the PC-BSD Server'''
+
[[File:Freebsd1c.png|border]]
  
[[File:Freebsd1a.jpeg|border]]
+
Once selected, press "Next" to start the "Server Setup Wizard". The wizard is the same for either a FreeBSD or a TrueOS™ installation.
  
Once selected, press Next to start the PC-BSD Server Setup Wizard. Click Next to see the screen shown in Figure 5.1b.
+
Click "Next" to see the screen shown in Figure 5.1b.
  
 
'''Figure 5.1b: Set the Root Password'''
 
'''Figure 5.1b: Set the Root Password'''
  
[[File:Freebsd1b.jpeg|border]]
+
[[File:Freebsd1b.png|border]]
  
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.
+
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.
  
 
'''Figure 5.1c: Create the Primary User Account'''
 
'''Figure 5.1c: Create the Primary User Account'''
  
[[File:Freebsd2a.jpeg|border]]
+
[[File:Freebsd2a.png|border]]
  
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.
  
 
This screen contains the following fields:
 
This screen contains the following fields:
Line 43: Line 49:
 
* '''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.
  
* '''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.
+
When finished, click "Next" to proceed to the screen shown in Figure 5.1d.
  
 
'''Figure 5.1d: Set the Hostname'''
 
'''Figure 5.1d: Set the Hostname'''
  
[[File:Freebsd3a.jpeg|border]]
+
[[File:Freebsd3a.png|border]]
  
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.
+
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.
  
 
'''Figure 5.1e: Configure the Network'''
 
'''Figure 5.1e: Configure the Network'''
  
[[File:Freebsd4a.jpeg|border]]
+
[[File:Freebsd4a.png|border]]
  
Use the Network Interface drop-down menu to select from the following:
+
Use the "Network Interface" drop-down menu to select from the following:
  
* '''AUTO-DHCP-SLAAC:''' (default) will configure every active interface for DHCP for both IPv4 and IPv6
+
* '''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 for IPv4
+
* '''AUTO-DHCP:''' will configure every active interface for DHCP and IPv4
  
* '''IPv6-SLAAC:''' will configure every active interface for DHCP for 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.
+
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.
  
 
'''Figure 5.1f: Install Source or Ports'''
 
'''Figure 5.1f: Install Source or Ports'''
  
[[File:Freebsd5a.jpeg|border]]
+
[[File:Freebsd5a.png|border]]
 +
 
 +
If you wish to install FreeBSD source or ports, check the associated box(es) then click "Finish" to exit the wizard.
 +
 
 +
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.
 +
 
 +
'''Figure 5.1g: Installing Server Applications into TrueOS™'''
 +
 
 +
[[File:Apps.png]]
 +
 
 +
When you have saved your selections, click "Next" to proceed to the [[Disk Selection Screen]] in order to configure the system's disk(s).
  
If you wish to install FreeBSD source or ports, check the associated box. Click Finish to exit the wizard and proceed to the [[Disk Selection Screen]] and continue the installation as usual.
+
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.
  
Once the system is installed, it will boot to command line login prompt. Login using the primary user account that was created during installation. You can now configure and use the server as you would any other FreeBSD server installation. The
 
[http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ FreeBSD Handbook]<ref>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/</ref> is an excellent reference for performing common FreeBSD server tasks.
 
 
<noinclude>{{refheading}}</noinclude>
 
<noinclude>{{refheading}}</noinclude>
 
<noinclude>
 
<noinclude>
 
[[category:handbook]]
 
[[category:handbook]]
 
[[category:Advanced Installation Topics]]
 
[[category:Advanced Installation Topics]]
 +
[[category:Install a Server]]
 
</noinclude>
 
</noinclude>

Revision as of 23:28, 16 November 2012

(Sorry for the inconvenience)

THIS PAGE CHANGED IN 9.1. UNLESS YOU ARE BETA TESTING 9.1, YOU SHOULD INSTEAD REFER TO THE PUBLISHED VERSION OF THE USERS HANDBOOK THAT MATCHES YOUR PC-BSD® VERSION

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:

  • 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.
  • 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:

  • the ability to configure encryption during installation
  • 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, 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.

Figure 5.1a: Selecting to Install TrueOS™

Freebsd1c.png

Once selected, press "Next" to start the "Server Setup Wizard". The wizard is the same for either a FreeBSD or a TrueOS™ installation.

Click "Next" to see the screen shown in Figure 5.1b.

Figure 5.1b: Set the Root Password

Freebsd1b.png

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.

Figure 5.1c: Create the Primary User Account

Freebsd2a.png

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.1d.

Figure 5.1d: Set the Hostname

Freebsd3a.png

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.

Figure 5.1e: Configure the Network

Freebsd4a.png

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.1f.

Figure 5.1f: Install Source or Ports

Freebsd5a.png

If you wish to install FreeBSD source or ports, check the associated box(es) then click "Finish" to exit the wizard.

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.

Figure 5.1g: Installing Server Applications into TrueOS™

Apps.png

When you have saved your selections, click "Next" to proceed to the Disk Selection Screen in order to configure the system's disk(s).

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/pcbsd/branches/9.1/build-files/metapkgsets/warden/pkgset/base-system/ports-list
  2. http://www.freebsd.org/doc/en/books/handbook/
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox