Linux installation and remote connection, linux installation and remote connection

Source: Internet
Author: User

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.

  

 

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.