Install FreeBSD in the most classic Mode

Source: Internet
Author: User

Welcome to FreeBSD!

The BSD manual is rich and meticulous, which greatly removes the obstacles we encounter when using BSD. however, practice is often at a distance from theory. After reading a lot of information, you may start to install the system and overcome the "difficulties". After the installation is successful, you may find that, if GCC is not installed, none of the man commonly used commands can be found. my God, how can I get from such an absolutely pure bare metal? Therefore, based on practice and dedication, the author sums up one of the most classic FreeBSD installation methods in history. Ghost has installed a clean bare metal, it can also become a complete development or production environment. it has been a long time since we had this plan. We had a good opportunity to do so. okay, let's go back to the story:

Note: This article is based on the simplest and practical method, illustrated and illustrated, and the pseudo-graphic interface installation provided by BSD, to create the most classic graphic tutorial for BSD installation in history. for advanced installation, see [Chinese] Manual [En] in the official manual.
Note During Operation[Tab], [space], [home], [Pagedown], [left], [right], [Up], [Down]If you accidentally press the button, it doesn't matter, you can press it directly.[Tab]Loop back, can also be used in combination
[Shift] + [Tab]Returns and returns.

1. Set the computer to boot from the optical drive, and place the FreeBSD installation disk into the optical drive. After the machine is started, a string of text is displayed on the display, as shown in the following figure:

BTX loader 1.00 BTX version is 1.01Console: internal video/keyboardBIOS CD is cd0BIOS drive C: is disk0BIOS drive D: is disk1BIOS 639kB/261120kB available memory

Then there will be a very personalized welcome interface, which is FreeBSD's Boot Loader menu:

You can wait for 10 seconds, or press[Enter]

2. Enter the system hardware detection screen, which may be output as follows depending on the machine:

avail memory = 253050880 (247120K bytes)Preloaded elf kernel "kernel" at 0xc0817000.Preloaded mfs_root "/mfsroot" at 0xc0817084.md0: Preloaded image </mfsroot> 4423680 bytes at 0xc03ddcd4

3. If there is no hardware faultSelect country and region menuInterface



If there are no special requirements, you can directly[OK]. Press[Home]Jump to the first page of the menu, and then press the number of times
[Pagedown]
, You can see China, use the up and down cursor key to highlight it, or enter a number before it can automatically highlight it, accidentally found. ^ _ * and then use
[Tab]
Key pair[OK]Press[Space]Or
[Enter]
To go to the next step.

4. keyboard layout Interface

Directly use the highlighted stick[Tab]Key, or[Left] [right]The cursor key is switched
[OK]
, Press[Space]Or[Enter]Go to the next step. (it is estimated that no one will have a single world of warcraft game dedicated keyboard for the server :))

5. BSD installedSysinstall Main Menu

Use[Up] [Down]SelectedStandard, And then use[Tab]Selected[Select], Press[Space]
Or[Enter]

6. Select a hard disk or partition for BSD

The quickest way is: 1). Press[A]Install and use FreeBSD system using the entire hard block; 2). Press[Q]The confirmation is complete.

7. Start Manager

The principle is: as long as the third item is not selectedNone.Standard.
None
Next time, boot the system again with a CD. Switch the cursor[OK]Press[Space]Or[Enter]

8. Disk Partition Editor

You can press[A]Automatic partitioning, and then[Q]After partitioning is completed, the following prompt is displayed: Try to manually partition. The VaR of the default BSD partition is small, and it is easy to fill it up. In addition, if the machine memory is large enough, swap partitions do not need to be divided into 1.5 times of memory, but can be adjusted slightly. the specific manual calculation of partition size is not covered in this article. For details, see the official manual.

9.Select Software PackagePlease note that this is the most classic. Do not miss it!

You have to check it out! Do not select anything here. Use it directly.[Tab]Set
[OK]
Highlight and press[Space]Or[Enter]

10.Select the installation media

SelectedCD/DVD, Use[Tab]Switch the cursor[OK], And then press[Space]Or[Enter]. Note: The default is from the CD, and you can directly OK.

11. The last time I confirmed the installation opportunity, I started to write the disk installation operation once I confirmed it!

Switch[Yes]Press[Space]Or[Enter].

12. in the installation system, this process will not be long. In the actual installation process, it will not take more than 20 minutes, whether on a virtual machine, my desktop, or even a server, it's not like M $ that makes people wait for n times for a long time, but still says there are 29 minutes left.

13. Configure the welcome page after installation.

OK

14. Ask ifConfigure the networkOf course, as a network operating system, isn't water cut off for fish if the network is not configured?

Direct[Yes].

15. List of network devices detected by the System

The first device in the list is usually selected[Tab]Switch[OK]Press[Space]Or[Enter].

16. Confirm whetherEnable IPv6

If your network supports IPv6.[Yes]At present, I have been switching[No]And then press[Space]Or
[Enter].

17. Ask ifEnable DHCP

If you enable automatic DHCP scanning and configure an automatically obtained IP address for the NIC, the network configuration page is displayed.

After correct configuration, switch[OK], Press[Space]Or[Enter].
Note: If you want to change the host name to hy0kl.org, enter the configuration information
Host: Hy0kl.org
Domain: Org
18. Ask ifSet the gateway for the machine

Depends on the situation. Usually directly switch[No]Press[Space]Or[Enter].

19. Ask ifEnable super daemon

Switch[No], And then press[Space]Or[Enter]Because these configurations can be enabled again as needed, otherwise, an error report of port conflict may appear in the console.

20. Ask ifEnable SSH

This setting is very important and must be switched[Yes]Then press[Space]Or[Enter]Otherwise, the configuration file will be changed next time to start remote login.

21. Ask ifEnable Anonymous FTP Server

You can switch[Yes]Otherwise, switch[No]Then press
[Space]
Or[Enter]Right.

22. Ask ifEnable as an NFS server

Depends on the specific needs.

23. Ask ifAs an NFS client

Same as above, depending on your needs.

24. WhetherConfiguration Console

If you want to personalize your text console, such as text screen protection, set it here. For specific settings, refer to the manual.[No]Press[Space]Or[Enter].

25.Time zone Configuration
Confirmation page:

If the network is connected, it is recommended to set it as the best policy to prevent the system from failing to synchronize time when updating the system. So, switch[Yes]Press[Space]Or[Enter].

Switch[No]Press[Space]Or[Enter].

Select Asia and switch[OK]And then press[Space]Or[Enter].

Select China and switch[OK]And then press[Space]Or[Enter].

After selecting the correct time zone, switch[OK], Press[Space]Or[Enter].

Confirm the time zone, switch[Yes]Press[Space]Or[Enter].

26. Ask ifEnable Linux Simulators

Switch[No]Press[Space]Or[Enter]The simulator provided by the BSD disc often does not adapt to the new package. It should be compiled and installed from the ports tree whenever possible.

27. Ask ifConfigure mouse

Depending on your needs, you can save time for service.

28. Ask ifInstall the ports tree

Strongly recommendedDirectly switch
[No]
Press[Space]Or[Enter]Of course, if you have enough patience and can switch back and forth to the CD for more than 50 times, try again.[Yes]Good luck.

29.Add users and groups

During system installation, you should add at least one user to avoidRootUser identity. The root partition used to save user data is usually small, soRootThe identity running program may quickly fill it up. The following prompt information introduces the potential risks of doing so:

User Confirmation Requested Would you like to add any initial user accounts to the system? Adding at least one account for yourself at this stage is suggested since working as the "root" user is dangerous (it is easy to do things which adversely affect the entire system).                             [ Yes ]   No

Select[Yes]And press
Enter
To create a user.

Figure 2-51. Select a user

Use the arrow keys to select the user and then pressEnter.

Figure 2-52. Add User Information

We recommend that you add the first user to the wheel group so that the user can remotely SSH to the host and su it to the root user. In addition, set shell to CSH. Otherwise, the tab auto-completion function is unavailable.
Bsd8 has been improved. There are two password input boxes.

Select exit and switch[OK]Press[Space]Or[Enter]Complete user management.

30.Set password for root

Message Now you must set the system manager's password. This is the password you'll use to log in as "root".                         [ OK ]               [ Press enter or space ]

TypeEnterTo setRootPassword.

The password must be entered twice correctly. Needless to say, You need to select a password that is not easy to forget. Note that the password you entered is not displayed or an asterisk is displayed.

New password:Retype new password :

After the password is successfully typed, the installation continues.

31. Go back to the initial installation menu and complete the installation.

OK[Tab]Switch[X exit install]Press
[Space]
Or[Enter].

Switch[Yes]Press[Space]Or[Enter]Then the optical drive pops up and the disc is removed and the machine restarts. Theoretically, this is the only restart of FreeBSD.

OK. We have completed a great project. A pure but practical bare BSD installation is successful. Come and enjoy it!

The system platform has been built, and the BSD door is open to you!

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.