Linux installation and remote connection, linux installation and remote connection
1. Create a new virtual machine on VMware to ensure that there is an iso image file for the linux version.
Specific reference http://jingyan.baidu.com/article/eae0782787b4c01fec548535.html
2. Switch users
Switch the root user:
# Su
Password:
Switch between common users:
# Su username
3. edit file commands
# Edit the file in the vim xx file (after entering the file, you need to edit the file according to I, or else you can only browse the file, and switch the user when modifying the configuration file, otherwise the permission is insufficient)
After the file is modified, press: wq (to save and exit): q! (Modified but not saved): q (exit without modifying the file)
4. nmtui command to edit Nic Devices
5. Query IP addresses of files in/etc/sysconfig/network-scripts
Answers to problems after installation
1. If the selected language is Chinese during installation, do you want to switch to another language?
Go to/etc/locale. conf and modify the content as follows:
# LANG = "zh_CN.UTF-8"
LANG = "en_US.UTF-8"
2. If the remote connection is successful this time, but cannot be connected after the VM is restarted? (Usually after installation)
This is because it is not set to enable the system to activate the NIC, and the display will not be connected, but turn off. Of course, you can also manually click it on your computer, as long as you are not bothered.
The normal practice is to switch to the root user and find the corresponding/etc/sysconfig/network-scripts/ifcfg-xxxxx file (obtained from ifconfig in xxxxx) for editing, change ONBOOT = no to yes, that is, enable the NIC when the system starts.
3. During the remote connection, the IP address is set according to the corresponding ifconfig, but the remote connection is still not allowed?
Here, we set the network connection mode to the Bridge Mode.