Installation of Linux (virtual machine Environment) and basic configuration

Source: Internet
Author: User

I. BACKGROUND

This article describes how to install the virtual machine VMware and the underlying configuration if the Linux system is installed on the virtual machine and after the Linux installation is complete

What you need to prepare is VMware and Linux image files

Ii. Download and install VMware
https://my.vmware.com/en/web/vmware/info/slug/desktop_end_user_computing/vmware_workstation_pro/14_0?wd=& Eqid=a321fcd7000107af000000035af54ee7
Installation Tutorials
Https://jingyan.baidu.com/article/9f7e7ec09da5906f281554d6.html
Third, install Linux on VMware

The following tutorials are from: Linux commune (www.linuxidc.com)

1.打开 VMware 12 ――》新建创建新的虚拟机:

2.然后选择“自定义” ――》 “下一步”:

3.继续下一步:

4.选择“稍后安装操作系统” ――》下一步

5.“客户机操作系统” 选择 “Linux” 、“版本”选择“CentOS 64位” ――》下一步:

6.修改“虚拟机名称”和“位置”,也可以使用默认名称和路径。然后“下一步”

7.处理器配置默认的就可以了:

8.内存自定义,可以自己设置大点。不建议小于默认的内存大小。

9.“网络类型”选择“使用桥接网络”:

10.“I/O控制器类型” 选择推荐的“LSI Logic”,然后“下一步”

11.“虚拟磁盘类型”选择推荐的“SCSI”,然后“下一步”

12.“磁盘”选择“创建新虚拟磁盘”

13.“指定磁盘容量”选择建议的大小,自己可以设置大点。然后选择“将虚拟磁盘存储为单个文件”


14.点击“完成”

15.点击“CD/DVD (IDE)”:

16.选择“使用ISO映像文件”,点击“浏览”,找到你安装盘所在位置:

17.点击“开启此虚拟机”:

Iv. Linux Basic configuration 1, network settings

A, modify the IP address of the corresponding network card configuration file

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0ipv6init=no #关闭IPV6支持, currently do not Onboot=yes #系统启动时激活此设备 bootproto=static # The way the network card obtains the IP address, for STATIC,DHCP or bootpipaddr=192.168.1.129 #静态指定IP, specifies the IP address of the network card (you set up, you can connect remotely, do not overlap with other IPs) such as 1netmask= 255.255.255.0 #子网掩码 #network=192.168.1.1 #可以不设置, set the gateway in the 2 below--such as 2

B. Set the Gateway

# vi/etc/sysconfig/networknetworking=yes #表示系统是否使用网络HOSTNAME =centosmini #设置本机的主机名GATEWAY =192.168.1.1 # Set the IP address of the gateway of the native connection, this is the most important, check your computer

C. Set up DNS

# vi/etc/resolv.confnameserver 8.8.8.8 nameserver 114.114.114.114 # Service Network restart Restart Network service and Nic # ifconfig can view the network setting #ping 192.168.1.1 Check whether the gateway #ping www.baidu.com Check the domain name resolution is normal

If the prompt IP is already in use, go back to the A to reset the IP address and reboot.

Network settings, we use Xshell remote landing CentOS, convenient operation, in fact, usually in development is also mostly remote landing.
Xshell Login:
Host (the IP address you set, here is): 192.168.1.129
Account Number: Root
Password (root password set at installation time): 123456

2. Install a simple graphical management configuration Kit

Linux command-line mode has a simple image settings interface, Centos-mini is not installed, the next installation of these simple graphical management interface (and Xwindow under the distinction, do not confuse).

Does CentOS not run Setup? That installs the Setuptool bar, can save a lot of system administration time.

#安装setuptoolyum install setuptool# can be found after the setup is complete, then install one for the system service management yum install ntsysv# Install a firewall, as well as the installed firewall settings, network settings yum Install iptables# installed in Setup installation setup yum install system-config-securitylevel-tui# installation setup set up the matching network settings yum install System-config-network-tui can be installed completely yum-y install Setuptool ntsysv iptables system-config-securitylevel-tui system-conf Ig-network-tui System-config-firewall-tui System-config-keyboard system-config-network above is a line of command

After installation, enter the Setup command, which will pop up the Setup interface, here to demonstrate, only install the Setuptool, if you install other packages, there will be a corresponding selection.

3. Development environment
Yum install VIM//powerful VI editor, similar to the VI text editor, but on the basis of VI added a lot of new features yum install wget//Automatically download files from the Network tool, support through HTTP, HTTPS, FTP three most common TCP/IP protocols download yum install GCC//A set of compilers developed by the GNU project that support multiple programming languages yum install CPP yum install gcc-c++ yum install make//ma Kefileyum Install GDB//debug Tool

Installation of Linux (virtual machine Environment) and basic configuration

Related Article

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.