Ubuntu configuration experiment

 

Experiment: ubuntu configuration

 

Requirements: Xiao Li, the administrator of caterpillar company, needs to replace the company system from windows to ubuntu, and formulate SOP (operating instructions)

Environment: vmware workstation 14. Ubuntu kylin 13.10

Requirements: 1. Install ubuntu system

 2. Quickly configure ubuntu system

 3. Configure IP, be able to connect to the Internet and communicate with hosts on the same network segment.

 4. Change the system root password "ubuntu"

 5. Edit the letc/resolv.conf file and add "ravesecr 202.106.020"

 6. Use commands to view basic system commands

 7. tty3 executes the shutdown command with a delay of 30 minutes and sends a reminder notification. After tty4 receives it, tty3 cancels the command.

 8. Install vmtools

 9. Practice directory and file basic commands

10. Get help information.

Configuration steps:

 

1. Install Ubuntu system

   Select the image file and boot from the CD

 

  to install

 

  Set username and password

 

 After the installation is complete, log in to the system

2. Quickly configure ubuntu system

   Set time, background, resolution

 

3. Configure IP, be able to connect to the Internet and communicate with hosts on the same network segment.

  set address

 

 

   Check the network, test the address

 

Here, we use redhad to verify the Internet, and the methods are similar.

Select connection mode

 

Edit Virtual Machine Internet Settings

 

Edit the corresponding configuration file to configure the address; gateway; DNS

 

restart network device

 

Check that the host address has been automatically configured

 

The host pings Baidu to get the resolution address

 

The virtual machine pings through Baidu, and the Internet access configuration is successful

 

4. Change the system root password "ubuntu"

   First enter the user password to verify the user, then change the root password to ubuntu, and verify the login root

5. Edit the letc/resolv.conf file and add "ravesecr 202.106.0.20"

   Enter the command to copy the file to the desktop and edit the file

 

Or use vi editor to edit directly

 

Enter the command under Root to overwrite the file, open the directory to view the file has been modified

 

6. Use commands to view basic system commands

View kernel version, cup information

View memory

 

 View hostname

7. tty3 executes the shutdown command with a delay of 30 minutes and sends a reminder notification. After tty4 receives it, tty3 cancels the command.

   Add account

 

Use tty3 to log in and enter the 30-minute shutdown command

 

Use tty4 to log in, have received a 30-minute shutdown prompt, use root to log in, cancel the shutdown command

Tty3 receives a prompt

Verify the shutdown command, the shutdown command takes effect

 

8. Install vmtools

  First click on the VM optical drive, and then extract the installation package

 

 Install VM tools, it will take effect after restart

 

9. Practice directory and file basic commands

  Cd command and pwd command

 Ls command

 Du instruction

 

Create a directory

 

Create empty directory with touch command

 

redirect command

Create link

 

Open the link, the verification is successful

 

use mv command

 

Use the delete command

 

Use the find command

10. Get help information.

Using the man manual, export the file to the desktop, the file is locked because root privileges are used

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325129370&siteId=291194637