Linux system setup and basic operation

Source: Internet
Author: User
Tags nameserver

Linux system setup and basic Operation

? Use the Preferences settings and system management tools in the GNOME desktop suite to perform the following tasks

A. set a static IP address for the first NIC and be able to communicate with other hosts in the same network segment

Steps:

1. Click "System" → "Manage" → "network" To open the "Network Configuration" window. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image002 "border=" 0 "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M01/77/5A/ Wkiom1zmsflg_ulkaadvjuopnvo896.png "" 244 "height=" 176 "/>

2. In the Configure Network window, double-click the second network card device to open the Ethernet Devices window. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image003 "border=" 0 "alt=" clip_image003 "src=" http://s3.51cto.com/wyfs02/M01/77/58/ Wkiol1zmsmpddiy4aab13tpy140531.png "" 244 "height=" 231 "/>

3. In the Ethernet Devices window, select "Statically set IP address:", then enter "IP Address", "Subnet mask", "Default gateway (t) address" below it, then click "Confirm". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image004 "border=" 0 "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/M02/77/58/ Wkiol1zmsmtb90_1aabrhqphwv0128.png "" 229 "height=" 244 "/>

4. Then right-click on the GNOME desktop and in the popup menu, select "Open Terminal". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image005 "border=" 0 "alt=" clip_image005 "src=" http://s3.51cto.com/wyfs02/M02/77/58/ Wkiol1zmsmtw6h58aab5nyz4mia489.png "" "height=" 241 "/>

5. In the terminal window, enter the "Service network restart" command to restart the NIC service, and then enter the "ifconfig" command to see if the IP address is configured successfully. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image007 "border=" 0 "alt=" clip_image007 "src=" http://s3.51cto.com/wyfs02/M00/77/58/ Wkiol1zmsmwb3b6uaaanmm1hms8600.png "244" height= "/>650" this.width=650; "style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image008 "border=" 0 "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmsfabxkwraabvb8i5700813.png "" 244 "height=" 163 "/>

6. Use the above steps to configure an IP address for another host and test with the "ping" command.

Two Add a user account named Xueyuan and use that account to log in to the GNOME desktop.

Steps:

1. Click "System" → "manage" → "Users and Groups" to open the "User Manager" window. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image010 "border=" 0 "alt=" clip_image010 "src=" http://s3.51cto.com/wyfs02/M01/77/5A/ Wkiom1zmsfraepxeaad3uusxjq8358.png "" 244 "height=" 184 "/>

2. In the "User Manager" window, click "Add". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image012 "border=" 0 "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/M01/77/58/ Wkiol1zmsmuywe2raaa71epnf0a735.png "" 244 "height=" 182 "/>

3. In the "Create New User" window, enter "User name", "Full name", "Password", "Confirm password", other default, and then click "OK". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image013 "border=" 0 "alt=" clip_image013 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmsfvrbwtuaaby_z8o5zg304.png "" 185 "height=" 244 "/>

4. Click "System" → "logout" to login with user Xueyua. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image015 "border=" 0 "alt=" clip_image015 "src=" http://s3.51cto.com/wyfs02/M00/77/5A/ Wkiom1zmsf6ytyogaacmmfrwe2s102.png "" 244 "height=" 117 "/>

5. Enter the user name and password to log in to the system at the following interface. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image017 "border=" 0 "alt=" clip_image017 "src=" http://s3.51cto.com/wyfs02/M01/77/5A/ Wkiom1zmsggs_komaadrsen_j8i856.png "" 244 "height=" 184 "/>650) this.width=650;" Style= "background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image019 "border=" 0 "alt=" clip_image019 "src=" http://s3.51cto.com/wyfs02/M01/77/5A/ Wkiom1zmsgowh4bnaadl184o6ee348.png "" 244 "height=" 183 "/>

Three Change the root password of the Linux system to "Redhat" and re-login to the system with the root account.

Steps:

1. Click "System" → "manage" → "root password". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image021 "border=" 0 "alt=" clip_image021 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmsgej2vvaaadxa1frthk786.png "" 244 "height=" 176 "/>

2. In the Query window, enter the original root password of the system and click OK. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image022 "border=" 0 "alt=" clip_image022 "src=" http://s3.51cto.com/wyfs02/M00/77/5A/ Wkiom1zmsgetjhxvaaa6a2wkhhq593.png "" 244 "height=" 118 "/>

3. In the root Password window, enter the new root password and click OK. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image023 "border=" 0 "alt=" clip_image023 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmsgidnwonaablsruboda612.png "" 244 "height=" 206 "/>

4. Then log off the system and log back in as the root account.

Four Set system services ATD, Bluetooth, Crond, ISDN to not start automatically after booting.

Steps:

1. Click "System" → "Manage" → "Server Settings" → "services". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image025 "border=" 0 "alt=" clip_image025 "src=" http://s3.51cto.com/wyfs02/M00/77/59/ Wkiol1zmsnyj6tffaad6c-mxqm0350.png "" 244 "height=" 184 "/>

2. In the "Service Configuration" window, remove the tick in front of the selected service name and click "Save". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image027 "border=" 0 "alt=" clip_image027 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmsg2az9ouaabmu3mza0k202.png "" 244 "height=" 192 "/>

Five Edit the/etc/resolv.conf file to add the contents of "NameServer 202.106.0.20".

Steps:

1. Right-click on the desktop, in the popup menu, select "Open Terminal". In the terminal window, type "vim/etc/resolv.conf", and then enter. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image029 "border=" 0 "alt=" clip_image029 "src=" http://s3.51cto.com/wyfs02/M00/77/5A/ Wkiom1zmsg6ygls5aaabmth1_e0508.png "" 244 "height="/>

2. In the "/etv/resolv.conf" File window, first press the lowercase "a" key, switch to the input mode, do not change the other content, the next line directly "NameServer 202.106.0.20". :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image031 "border=" 0 "alt=" clip_image031 "src=" http://s3.51cto.com/wyfs02/M01/77/5A/ Wkiom1zmsg_cmbpsaaamhapma_q484.png "" 244 "height=" 184 "/>

3. Once the input is complete, click the "ESC" key, switch to the last line mode, then enter ": Wq" command to save and exit. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image033 "border=" 0 "alt=" clip_image033 "src=" http://s3.51cto.com/wyfs02/M02/77/59/ Wkiol1zmsn-yrzyiaaafxnxremg481.png "" 244 "height="/>

? Use the TTY character terminal to complete the following simple administration tasks

A Switch to the 3rd character terminal from the Gnome graphical desktop environment and log in with the/root account

Steps:

Press the key combination "Shift+ctrl+alt" + "F3" into the 3rd character terminal, then enter the root account after "ns login:", enter the password after entering, you can log into the system. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image035 "border=" 0 "alt=" clip_image035 "src=" http://s3.51cto.com/wyfs02/M00/77/59/ Wkiol1zmsn_bj813aaaqgyb3ywk979.png "" 244 "height="/>

Two Switch to the 4th character terminal and log in with the Xueyuan account.

Steps:

Press "ALT+F4" key to enter the 4th character terminal, and then enter the Xueyuan account after "NS login:", enter the password after entering, you can log into the system. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image037 "border=" 0 "alt=" clip_image037 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmshdzxc77aaarfub_02e627.png "244" height= "/>"

Three Check the kernel version, CPU and memory information of the current host, and confirm the IP address of the NIC.

Steps:

Enter the command "Uname-r" to view the kernel version. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image039 "border=" 0 "alt=" clip_image039 "src=" http://s3.51cto.com/wyfs02/M01/77/59/ Wkiol1zmsodbjntsaaahrwsqzki218.png "" 244 "height="/>

Enter the command "Cat/proc/cpuinfo" to view the CPU information. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image041 "border=" 0 "alt=" clip_image041 "src=" http://s3.51cto.com/wyfs02/M02/77/59/ Wkiol1zmsohdtfgzaaao4uqnoqk379.png "" 244 "height=" 123 "/>

Enter the command "Cat/proc/meminfo" to view the memory information. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image043 "border=" 0 "alt=" clip_image043 "src=" http://s3.51cto.com/wyfs02/M01/77/5A/ Wkiom1zmshkjlg8yaaarfifoaye227.png "" 244 "height=" 137 "/>

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image045 "border=" 0 "alt=" clip_image045 "src=" http://s3.51cto.com/wyfs02/M00/77/59/ Wkiol1zmsopajbqnaaao6m-dxyk475.png "" 244 "height="/>

Enter the command "Ifconfig eth0" to see the IP address of the NIC Eth0. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image047 "border=" 0 "alt=" clip_image047 "src=" http://s3.51cto.com/wyfs02/M01/77/5A/ Wkiom1zmshty-vv1aaani11cgr4756.png "" 244 "height="/>

Four Perform a delay of 30 minutes to shut down the command while sending a reminder notification at Tty4 to confirm receipt of the shutdown notification.

Steps:

Enter the command "Shutdown-r +30 ' shutdown comment content '" delay 30 minutes shutdown. :

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image049 "border=" 0 "alt=" clip_image049 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmshtwbaczaaatlwzgjoa448.png "" 244 "height="/>

Press "ALT+F4" key, switch to the 4th character terminal, you can see the relevant machine prompt. Press the "CTRL + C" key to cancel the delay shutdown operation and then enter the command "reboot" to restart the system.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image051 "border=" 0 "alt=" clip_image051 "src=" http://s3.51cto.com/wyfs02/M02/77/5A/ Wkiom1zmshxdisy4aaaqsvywjaw843.png "" 244 "height="/>

Note: for a delayed shutdown, restart operation, you can press CTRL + C to cancel if necessary, or the other administrator will perform a "shutdown-c" command to cancel after logging in to another terminal.

Regardless of which commands are used to shut down or restart the operation, it is necessary to do a good job of data backup, improper operation is likely to cause data loss, serious or even cause a system crash, causing unnecessary trouble.

Linux system setup and basic operation

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.