Getting Started with Linux-the first week of study notes

Source: Internet
Author: User

Getting Started with Linux-the first week of learning notes

First, installation system attention to problems

1. Disk Partitioning:

For example, allocate 200G memory size to the system:

(1) to/boot 200M size, because/boot only store kernel-related boot files. You do not need to give too large a partition.

(2) give/50G size, the root user to store a lot of files.

(3) Give/testdir 50G size, this is the file we used to do the experiment.

(4) to swap 4G size, because swap is the swap partition, its size is recommended 1.5 times times the memory ~2.0 times

Note : The CentOS6.8 file system is EXT4, and the CentOS7.2 file system is XFS.

2. Network Connection Mode analysis

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/84/88/wKioL1eTN7rQo-N7AACgLbi25bk721.png-wh_500x0-wm_3 -wmp_4-s_3666729122.png "title=" 1.png "alt=" Wkiol1etn7rqo-n7aacglbi25bk721.png-wh_50 "/>

(1) bridge mode :

In this mode, the VMware virtual operating system is like a separate host in the LAN, which can access any machine in the network. In bridging mode, you need to manually configure the virtual system with an IP address, subnet mask, and a host machine in the same network segment so that the virtual system can communicate with the host machine. Also, configure the gateway and DNS addresses to enable access to the Internet through a LAN gateway or router.

Experiment : I did not manually configure the IP address in the operation, using automatic acquisition. I do three aspects of work, the virtual system to obtain the IP address, the virtual system within the connection Baidu, the local computer using Xshell to connect to the virtual system. Have all succeeded. It is possible to obtain an IP address automatically, but if there are many classrooms, if someone else configures a fixed IP address with the IP you acquired automatically, your IP address will be invalidated, so it is best to configure it automatically.

(2) NAT mode:

Using NAT mode, the virtual system uses the NAT (network address translation) function to access the public network through the network where the host machine resides. In other words, the use of NAT mode enables access to the Internet in virtual systems. The TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be modified manually, so the virtual system cannot communicate with other real hosts on the local area network. The biggest advantage of using NAT mode is that the virtual system access to the Internet is very simple, only the host machine can access the Internet, you do not need to configure the IP address, subnet mask, gateway, but the DNS address should be filled according to the actual situation. Add a DNS address in addition to the network card properties, you can also add it by tapping the Edit button in the Nat tab in the Virtual network editor in the virtual machine.

(3) host mode only:

In some special network debugging environments, it is required to isolate the real environment from the virtual environment, then you can use the host-only mode. In host-only mode, all virtual systems can communicate with each other, but the virtual system and the real network are separated.

Note : In host-only mode, the virtual system and the host machine system can communicate with each other, which is equivalent to the two machines connected by twisted pair wires.

In host-only mode, the TCP/IP configuration information (such as IP address, gateway address, DNS server, etc.) of the virtual system is dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network.

If you want to use VMware to create a virtual system that is isolated from other machines in the network, you can choose Host-only mode for some special network debugging work.

Second, the installation of tools

1. Installation of the Vmmare Tools tool

(1) Function: Realize the copying and sharing of files in WinDOS system and Linux system.

(2) Installation: Installation for centos6.8

First step: Click the Vmmare Tools option in the Virtual tab drop-down menu. Such as.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/84/88/wKiom1eTOJLSBGNKAAC9Vtsn5W8774.png-wh_500x0-wm_3 -wmp_4-s_942098300.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1etojlsbgnkaac9vtsn5w8774.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/84/88/wKioL1eTOJLTSgY3AABi7hsVDJU513.png-wh_500x0-wm_3 -wmp_4-s_2167614016.png "style=" Float:none; "title=" 3.png "alt=" Wkiol1etojltsgy3aabi7hsvdju513.png-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/84/88/wKioL1eTOMTCP3aNAABZ8HSIxNs912.png-wh_500x0-wm_3 -wmp_4-s_1433024651.png "title=" 4.png "alt=" Wkiol1etomtcp3anaabz8hsixns912.png-wh_50 "/>

At this point the input DF, find the mount relationship, such as, we downloaded a good tool has been mounted on the CD, the next can be installed.

Second step: Use the command line to enter into the file, with the command to install. The specific commands are as follows:

Df

Cd/media/vmware\ tools/

Ls

CP vmwaretools-10.0.0-2977863.tar.gz/testdir/

cd/testdir/

Ls

Tar xvf vmwaretools-10.0.0-2977863.tar.gz

Ls

CD vmware-tools-distrib/

Ls

/testdir/vmware-tools-distrib/vmware-install.pl D

Step three: Complete the operation by restarting--reboot or entering Int3 and int5 successively.

The ps:centos7.2 comes with this feature without installation.

2. Screen installation

Screen installation: For Centos6.8 users, double-click the desktop disc icon, go to Centos_6.8_final/packages, find the following installation package. Double-click to install.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/84/88/wKioL1eTORKBOEBDAAA7lK1Vwxw737.png-wh_500x0-wm_3 -wmp_4-s_2888257437.png "title=" 5.png "alt=" Wkiol1etorkboebdaaa7lk1vwxw737.png-wh_50 "/>

For Centos7.2 users, we encountered some unknown situation when installing using the above graphical interface, which caused the installation to be unable to install properly, so we installed it with the command line when we installed it under Centos7.2.

The command line operates as follows:

DF-------Confirm Path

Rpm-i/run/media/root/centos\ 7\ x86_64/packages/screen-4.1.0-0.21.20120314git3c2964.e17.x86_64.rpm

Third, practical tips

1, login system no need to enter the password

First, go to the command line and type: gedit/etc/gdm/custom.conf

This opens the graphical interface as follows:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/84/88/wKioL1eTOW3iZ5rXAABZWOzMtRw594.png-wh_500x0-wm_3 -wmp_4-s_1310317003.png "title=" 6.png "alt=" Wkiol1etow3iz5rxaabzwozmtrw594.png-wh_50 "/>

The second step, find [daemon], below it type, and then save, the next time you start you can enter the system without entering a password. (It is also important to note that this feature is available only to the root user.) Therefore, when the current user is a normal user, you must use root permissions to modify. )

Automaticloginenable=true

Automaticlogin=root

2. Use screen skillfully

Scenario One: When you have a problem at work, ask the technical danale to help with the command.

1, a in the work encountered difficulties, want to seek help, then he can enter in their own interface: Screen-s Ahelp

2, at this time its colleague B in their own interface input Screen-ls can see A's help information. Such as:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/88/wKiom1eTObqxKXHGAABsEO1rtHo532.png "title=" 7.png " alt= "Wkiom1etobqxkxhgaabseo1rtho532.png"/>


At this point B colleague if can provide help, then B colleague Type command: Screen-x ahelp. Then A and B can work with the same screen: a colleague-typed command, B can see. B-typed commands, a also see.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/84/88/wKioL1eTOkDjEBK3AAA7etJl1g4423.png "title=" 8.png " alt= "Wkiol1etokdjebk3aaa7etjl1g4423.png"/>

B Colleague's interface

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/88/wKiom1eTOojBIxugAAA8fSKq5d4694.png "title=" 9.png " alt= "Wkiom1etoojbixugaaa8fskq5d4694.png"/>

A colleague's interface

3. Exit the Help screen and enter exit.

Scenario Two: Remote backup work in the event of network instability

First, enter the screen command

Second, do the backup work

Again, after the network outage, check the backup situation, enter SCREEN-LS

Find the randomly assigned name. Then enter the Screen-x randomly assigned name. Tap Enter to see the previous work program.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/88/wKioL1eTOtqwrgYlAABpB8AUihA739.png "style=" float: none; "title=" 10.png "alt=" Wkiol1etotqwrgylaabpb8auiha739.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/84/88/wKioL1eTOtvT-SC1AAAP88xKoqw965.png "style=" float: none; "title=" 11.png "alt=" Wkiol1etotvt-sc1aaap88xkoqw965.png "/>

Scenario Three: Backup work is currently in progress but you want to handle other work at the same time

At this point, hold down CTRL and a, and then press the D key

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/84/88/wKiom1eTOvGgYQL7AAAawaVM1iM218.png "title=" 12.png "alt=" Wkiom1etovggyql7aaaawavm1im218.png "/>

After completing the other work, I want to restore the previous interface to enter SCREEN-R


This article from the "11741640" blog, reproduced please contact the author!

Getting Started with Linux-the first week of study notes

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.