LFS 10.0 super detailed construction process (1)

This article is the current latest version of LFS10.0 tutorial. This tutorial is written for beginners, please go around.
1. Software and hardware configuration:
LFS 10.0 super detailed construction process (1)

2. Virtual machine:
Virtual Box 6.1, download and install directly in the deepin store.

LFS 10.0 super detailed construction process (1)

3. LFS 10.0 system construction ideas and prepared software:
The articles on the Internet are all about setting up a LINUX system, debian, ubuntu or other version of the system, as the host system, to build the LFS environment. My idea is to choose a version of live-cd to boot the system (without installation) and build an LFS 10.0 environment.
Advantages: No other linux systems are installed. Only need live-cd to boot the system, and the hard disk space is small.
Disadvantages: If you shut down during the installation process, boot the system and rebuild the LFS 10.0 environment.
My live-cd is debian9.
Download link: http://cdimage.debian.org/cdimage/archive/9.0.0-live/amd64/iso-hybrid/debian-live-9.0.0-amd64-xfce.iso

Fourth, create a virtual machine:
1. Open VirtualBox6.1 and click the New button. Enter in the name field: LFS 10.0, version selection: Other Linux (64-bit), and then click Next (as shown in the figure):
LFS 10.0 super detailed construction process (1)

2. Choose a larger memory as much as possible, so that the compilation will be much faster. I chose 4096M, and then click Next (pictured).
LFS 10.0 super detailed construction process (1)
3. Virtual hard disk, the default option. Click "Create".
LFS 10.0 super detailed construction process (1)
4. Virtual hard disk file type, default option (VDI (VirtualBox Disk Image)). Click "Next".
LFS 10.0 super detailed construction process (1)
5. Stored on the physical hard disk, the default option (dynamic allocation). Click "Next".
LFS 10.0 super detailed construction process (1)
6. File location and size. If the hard disk space is large enough or you want to install Blfs, try to choose a larger one. I choose 40G of hard disk space and click "Create".
LFS 10.0 super detailed construction process (1)
7. The virtual machine is created successfully. Below are some settings for the created virtual machine. Right-click on the virtual machine (LFS 10.0) you just created, and select "Settings" to enter the settings dialog box:
LFS 10.0 super detailed construction process (1)
8. Click "System" on the left, and click "Start Order" In, remove the floppy disk boot, adjust to the end.
LFS 10.0 super detailed construction process (1)
9. Select the "Processor" column above and adjust the number of processors as much as possible. Speed ​​up the speed of compiling software.
LFS 10.0 super detailed construction process (1)
10. Click "Storage" on the left. In "Storage Media", select CD-ROM. "Distribute CD-ROM" will appear on the right. Click the small CD on the right side of it, and click "Select Virtual Disk" in the menu that appears. In the dialog box, find the debian-live-9.0.0-amd64-xfce.iso CD we downloaded, select it, and click Open.
LFS 10.0 super detailed construction process (1)
LFS 10.0 super detailed construction process (1)
11. Click "Network" on the left, and select "Bridged Network Card" in "Connection Method (A)". As shown in the figure:
LFS 10.0 super detailed construction process (1)
12. Click the "OK" button at the bottom right of the above figure. Complete the virtual machine settings.

5. Start and configure the live-cd virtual machine.
1. Click the "Start" button in the figure below to start the virtual machine.
LFS 10.0 super detailed construction process (1)Terminal
2. In the pop-up dialog box, select the downloaded ISO image file, and click Start. As shown.
LFS 10.0 super detailed construction process (1)
3. The debian installation interface appears, select the first item, press Enter, and start the live-cd system.
LFS 10.0 super detailed construction process (1)
4. The screen after starting debian-live-cd is as shown in the figure below:
LFS 10.0 super detailed construction process (1)
5. Click the "Applications" menu and select "Terminal Emaulator". :
LFS 10.0 super detailed construction process (1)
6. In the terminal dialog box that opens, enter sudo su root and press Enter to log in to the root user:
user@debian:~$ sudo su root
7. Change the password for the root user, enter passwd and press Enter to set the password for the root user. (You need to enter it twice) as shown in the figure:
LFS 10.0 super detailed construction process (1)
8. First, minimize the terminal window and open the browser (the icon of the earth) that comes with live-cd.
LFS 10.0 super detailed construction process (1)
9. Enter www.baidu.com in the browser address bar to enter the baidu website, enter debian yuan (the pinyin of debian source) in the search bar, find "NetEase debian mirror source" and click to enter.
LFS 10.0 super detailed construction process (1)
10. Find the instructions for use and copy the mirror source address provided by NetEase:
LFS 10.0 super detailed construction process (1)
11. Go back to the terminal, and enter the window, enter: nano /etc/apt/sources.list.d/base.list and press Enter, open the base.list file, Comment or delete the original content inside, paste the copied NetEase mirror source address here (right-click and select "Paste"), then delete the space in front of the source address, press Ctrl+O to enter to save, and then press Ctrl +X to exit.
LFS 10.0 super detailed construction process (1)
12. Update source: input: apt-get update
LFS 10.0 super detailed construction process (1)
13. Install the software, net-tools, terminal input: apt-get install net-tools, press Enter, the software will be downloaded and installed after a while.
LFS 10.0 super detailed construction process (1)
14. Terminal input: ifconfig Enter:
LFS 10.0 super detailed construction process (1)
remember the name of the network card here: enp0s3
IP address: 192.168.3.22 The
IP address will be used later, the network card name, and LFS will be used when configuring the network. So be sure to remember.
15. For easy installation, install openssh-server. Terminal input: apt-get install openssh-server and press Enter, enter y and press Enter to confirm the installation.
LFS 10.0 super detailed construction process (1)
After the installation is complete, modify the sshd_config file, terminal input: nano /etc/ssh/sshd_config and press Enter.
LFS 10.0 super detailed construction process (1)
Find PermitRootLogin prohibit-password, remove the # sign in front, and remove the prohibit-password at the back, and replace it with yes.
LFS 10.0 super detailed construction process (1)
Find PasswordAuthentication yes and remove the # in front.
LFS 10.0 super detailed construction process (1)
Press Ctrl+O to save, and then press Ctrl+X to exit.
Enter in the terminal: /etc/init.d/ssh start to start the ssh service.
LFS 10.0 super detailed construction process (1)
16. Exit root: Type exit and exit the terminal: Type exit twice. Close the browser. After that, we SSH into this virtual machine to operate. It is more convenient to copy commands. At this point, the virtual machine live-cd configuration is complete.
6. Putty login and configuration:
Putty goes to the deepin store to download and install it. Start putty, enter the IP address viewed with the ifconfig command in the address bar, save the name by yourself, mine is 22, then click on the leftmost Fonts, click the first change on the right, and select Monospace as the font size: 12. Click the Ok button below. Then click Session on the left, and click Save on the right.
LFS 10.0 super detailed construction process (1)
Then click the Open button below to log in to the virtual machine, enter the user name: root, and the password to log in successfully. As shown below:
LFS 10.0 super detailed construction process (1)

Guess you like

Origin blog.51cto.com/9828355/2592028