Freebsd installation Diagram

Source: Internet
Author: User
Tags ftp login ftp access

This article will provide a detailed diagram of the FreeBSD installation process. Before installing FreeBSD, I will provide some suggestions for your reference:
1. Use minimal installation.
2. Enable inetd during installation. When editing the inetd. conf file, remove "#" before the line with "ftp. In this way, you can use ftp to upload files when installing software.
3. Add a user in the wheel group. After the system works properly, you can log on to the software (such as SecureCRT) on the windows system for all operations.
FreeBSD4.7 supports SSH terminal logon during minimum installation, so we need to use terminal software that supports SSH protocol, such as SecureCRT.
For example, the user name I added is ylf and belongs to the wheel system group.
The system generates a user directory/home/ylf.
I can log on to the system as ylf using SecureCRT, and then switch to the root user using the su command.
You can also enterFtp: // 192.168.0.1And enter the ylf user name and password to log on to ftp and upload the required files to your user directory. /
(Note: 192.168.0.1 is the IP address of the NIC connecting my server to the Intranet ).
In addition to system installation, I use terminal operations.
4. Partition/home,/usr, And/var are larger, because/usr is the program directory,/var needs to store logs,/home is the user's main directory, my user files, such as web pages and ftp files, are stored here. It is also better to reserve some space for future use. I have two hard disks on my machine, one fast 18.2 GB SCSI hard disk and one 40 Gb IDE hard disk. This is my division.
128 M/
20G/home
2G/ftp
256 M/tmp
6G/usr
5G/var
/Ftp is dedicated for anonymous ftp users. The remaining space is reserved for backup. Of course, if the disk space is small, we will be able to do our experiments.
For installation articles, you can refer to the article "Install and optimize FreeBSD server" written by delphij.
The system installation process diagram is designed for beginners. The entire system customization process is based on the system requirements of the serialization document.
We use a CD to start and install FreeBSD, and there is only one FreeBSD system on the hard disk.
First, modify the CMOS to enable the system to boot through the CD.
Insert the first disk of FreeBSD. Enter the customized kernel interface after normal boot. 1:

Figure 1
Select Skip kernel configuration and continue with installation to Skip kernel customization. After the system is installed, the kernel will be customized again.
Go to the system installation page, as shown in Figure 2:
CTRL + Mouse wheel to zoom in/out ">
Figure 2
Select Standard to start Standard installation.
Then you will be prompted to perform the Fdisk operation next, and press enter to continue (Figure omitted ).
Go to the Fdisk Partition Editor page, as shown in Figure 3:
CTRL + Mouse wheel to zoom in/out ">
Figure 3
To enable systems that coexist with FreeBSD, FreeBSD retains some disk space (64 cyl) by default ). We installed a single system, which is useless. Press Shift + F to send all the space to FreeBSD, as shown in Figure 4:
CTRL + Mouse wheel to zoom in/out ">
Figure 4
Select No here.

Then press "Q. Then, you are prompted to divide the FreeBSD file system. Press enter to continue.
Go to the Disklable Editor page and press "A" to enable automatic system partitioning. Figure 5:

Figure 5
Move the cursor to/var and/usr, and press D to delete the two partitions first. Move the cursor to the top and create/var,/usr,/home, And/ftp partitions respectively by C. VI:

Figure 6
The/ftp partition is designed for anonymous Ftp. /Var is used to store logs,/usr storage programs, and/home stores user data.
I am a 4G hard disk here. If the hard disk space is large, we should increase the capacity of the four partitions as appropriate.
Press "Q" to continue.
The Choose distributions (select to install components) page appears. 7:
CTRL + Mouse wheel to zoom in/out "src =" http://files.jb51.net/upload/2006103010938590.jpg "width =" 716 "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new javaswnctrl + Mouse wheel to zoom in/out';} "border =" 0 "twffan =" done "resized =" true ">
Figure 7
Select Minimal for Minimal installation. Select OK to continue.
Select the Media Installation page for Choose Installation Media, as shown in Figure 8:

Figure 8
Select 1 CD/DVD and install it on a CD. OK to continue.
The confirmation page appears. This is the last chance to regret it! Select YES to start installation, as shown in the figure below.
After a period of time, the installation is successful. OK to continue, as shown in the figure below.
The prompt "whether to configure network devices" appears. Select YES, as shown in Figure 9:

Figure 9
Next, we will list your network devices, select the first Nic, press enter, and you will be asked whether to enable the IPv6 protocol, select NO to continue. If DHCP is used, select NO to continue.
The NIC configuration page appears, as shown in Figure 10:

Figure 10
You only need to add the Host Name and IP address here. Other configurations will be configured in subsequent installation.
Then, I will ask if you want to enable this Nic interface now. Select YES. Then ask if you want to use the system as the gateway. Select YES.
Whether to configure the inetd (Internet super server) interface appears. Select YES, as shown in Figure 11:

Figure 11
Indicates whether to enable inetd. Select YES. Figure omitted
Prompt whether to edit the inetd configuration file, inetd. conf, select YES. Figure omitted
The file editing page appears, as shown in Figure 12:
CTRL + Mouse wheel to zoom in/out "src =" http://files.jb51.net/upload/2006103010942386.jpg "width =" 716 "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new javaswnctrl + Mouse wheel to zoom in/out';} "border =" 0 "twffan =" done "resized =" true ">
Figure 12
Move the cursor to the row with ftp, and delete the # Above. Delete only the first two rows. Press ESC to exit and save.
Then, you will be asked whether to enable Anonymous ftp access. Select YES, and select "YES" for the prompt below, as shown in the figure below.

Figure 13
Figure 13 sets the group and user directory of anonymous users without any changes. Select OK to continue.
Then, ask if you want to set up a welcome message for ftp login. Select NO to continue.
The following tips:
Whether to enable the local machine to run the NFS server. Select NO. Figure omitted
Whether to enable the local machine to run NFS customers. Select NO. Figure omitted
Whether to configure the default security policy. Select NO. Figure omitted
List the current settings on inetd. OK to continue. Figure omitted
Whether to customize the system console. Select NO. Figure omitted
Set the system time zone and select "NO -- Asia -- China -- East China -- YES ".

Figure 14
Figure 14 shows whether to enable Linux binary compatibility, which enables FreeBSD to run all Linux programs. Select YES.
Then, the system prompts whether to prepare a non-USB mouse. Select NO to continue. Figure omitted
Next, I will ask if I want to browse the Package collection and select NO to continue, as shown in the figure below.
If you want to add system users and groups, select YES, as shown in the figure below.

Figure 15

Figure 15 Select USER Add a new user to the system to Add a new USER. OK to continue.

Figure 16
Here we add a user ylf in the wheel group, which can be used to switch to the root user during terminal logon.
Return to the previous interface and select EXIT to EXIT. Figure omitted
Enter the root user password. Enter twice. Figure omitted
Then, ask if you want to return to the main interface and modify the configuration. Select NO -- Exit Install to Exit the installation, as shown in the figure below.
Finally, the system prompts whether to exit and restart. Select YES. Remember to take out the CD. Figure 17.

Figure 17
To allow the system to re-compile the kernel and use ports to install applications. We re-run the system configuration program to install kernel compilation support and ports.
After logging on as a root user, run:
#/Stand/sysinstall
The main system configuration page is displayed, as shown in Figure 18:

Figure 18
Select Configure and press enter to continue. The FreeBSD Configuration menu is displayed, as shown in Figure 19:

Figure 19
Select Distributions and click OK to continue. The component installation and selection page is displayed, as shown in Figure 20:

Figure 20
Select src -- sys and ports, and click OK. The media installation page is displayed, which is displayed on the CD-ROM.
In this way, the kernel compilation support and ports are installed on the system.
After the installation is complete, select Exit -- Exit Install to Exit.
After installing the system, recompile the kernel. The purpose is to support Firrwall and improve the running efficiency.
Note: the subsequent process is much easier on the terminal. SecureCRT allows you to directly copy and paste text on the terminal interface.
Go to the kernel file directory:
# Cd/usr/src/sys/i386/conf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.