BIOS Open VT Support
- Check the key of the notebook into the BIOS to start the BIOS virtualization settings
- Assuming that 360 guards are installed, then permanently turn off the INTEL-VT nuclear protection engine
CentOS DNS Configuration
There are 3 DNS locations under Linux, and their order of entry is as follows:
- /etc/hosts
- NIC configuration file DNSServer address
- /etc/resolv.conf
By setting host table address for specific host resolution, priority DNSServer address,/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6123.125.114.144 www.baidu.com#手动指定百度的IP
After/etc/hosts configures the www.baidu.com URL, you can use the ping www.baidu.com
command to see if the ping's address is 123.125.114.114
The default DNSServer address configuration file for Linux is/etc/resolv.conf:
nameserver114.114.114.114#配置DNSserver地址,可配置多个8.8.8.8
Add the DNSServer address to the NIC configuration file. /etc/sysconfig/network-scripts/ifcfg-eno16777736:
DNS1=114.114.114.114DNS2=8.8.8.8
Ways to resolve Domain names:
[[email protected]]# nslookup baidu.comServer: 114.114..Address: 114.114..#53Non-authoritative Answer:Name:Baidu. comAddress: 220.181. the. 217Name:Baidu. comAddress: 111.13. 101. 208Name:Baidu. comAddress: 123.125.. 144Name:Baidu. comAddress: 180.149. PPI.[[email protected]]# host Baidu.comBaidu. comHas address180.149. PPI.Baidu. comHas address220.181. the. 217Baidu. comHas address111.13. 101. 208Baidu. comHas address123.125.. 144Baidu. comMail is handled byTenMx. N. Shifen. com. Baidu. comMail is handled by -Mx1. Baidu. com. Baidu. comMail is handled by -Jpmx. Baidu. com. Baidu. comMail is handled by -mx50. Baidu. com. [[email protected]]# dig Baidu.com; <<>> DiG 9.8.2rc1-redhat-9.8.2-0.17.rc1.el6_4.6 <<>> baidu.com;; Global options: +cmd;; Got Answer:;;->>header<<-opcode:query, Status:noerror, id:33094;; Flags:qr Rd RA; Query:1, Answer:4, authority:0, additional:0;; QUESTION section:; baidu.com. In A;; ANSWER section:Baidu. com.202 inchA111.13. 101. 208Baidu. com.202 inchA123.125.. 144Baidu. com.202 inchA180.149. PPI.Baidu. com.202 inchA220.181. the. 217;; Query time:28 msec;; server:114.114.114.114#53 (114.114.114.114);; when:wed Nov 13:31:29;; MSG SIZE rcvd:91
CentOS Network Configuration
Install the virtual machine according to the centos7.0 installation tutorial.
su root
Switch to root user, edit config filevim /etc/sysconfig/network-scripts/ifcfg-eno16777736
HWADDR=00:0C:29:23:C4:B1#IP Link ShowViewTYPE=Ethernet#Bootproto=DHCPBootproto=Staticipaddr=192.168.0.122NETMASK=255.255.255.0GATEWAY=192.168.0.1DNS1=114.114.114.114DNS2=8.8.8.8Defroute=YesPeerdns=Yespeerroutes=Yesnm_controlled=NoIpv4_failure_fatal=NoIpv6init=Yesipv6_autoconf=YesIpv6_defroute=YesIpv6_peerdns=Yesipv6_peerroutes=YesIpv6_failure_fatal=NoNAME=eno16777736UUID=ebd7eace-f0b7-4d48-b4d6-fd6ee3f7e21d#nmcli Con Show#Onboot=NoOnboot=Yes
Note Configure the DNS that can be used, otherwise the domain name can not be resolved, often using public dnsserver addresses
service network restart
Restart Network
ping baidu.com
Is it possible to ping through Baidu
Configuring multiple network adapters
When configuring the second, you need to create a profile yourself. Stop NetworkManager before restarting the NIC
systemctl stop NetworkManager
systemctl disable NetworkManager
Time Configuration
To configure the local time zone:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Synchronize Network time:
yum install ntpdate
ntpdate pool.ntp.org
Samba Service Configuration
yum install samba samba-client samba-common
Install related software
# Rpm-qa | grep samba Samba-4.1 .12 -23. El7_1.x 86_64samba-libs-4.1 .12 -23. El7_1.x 86_64samba-common-4.1 .12 -23. El7_1.x 86_64samba-client-4.1 .12 -23. El7_1.x 86_64
Here, by the way, the basic packages needed to build Sambaserver:
1. Samba This package includes basic daemon files (SMBD and NMBD)
2. Samba-common provides samba's main configuration file (smb.conf), smb.conf Grammar Detection Program (TESTPARM), etc.
3. samba-client When Linux is a client of samba. Provides a set of required tools and directives.
Backup configuration file cp /etc/samba/smb.conf /etc/samba/smb.conf.$(date +%F)
Editvim /etc/samba/smb.conf
[global] workgroup = MYGROUP string%v logfile = /var/log/samba/log.%m maxlogsize50 security = user passdb backend = tdbsam load printers = yes cups options = raw[samba] comment = my share dir path = /home/user browseable = yes guest ok = yes writable = yes public = yes
Add user smbpasswd -a samba_user
, set password
Restart Service
service smb restart
service nmb restart
Shutting down the firewall
systemctl stop firewalld.service
systemctl disable firewalld.service
setenforce 0
Client testing under Linux
smbclient -L //192.168.0.122/samba -U samba_user
Set boot up
systemctl enable smb.service
Win8 to join the network location
Go to my computer. "Right click"-"Join network location" according to the wizard always click "Next", in the Internet address or network location to fill in \\192.168.0.122\samba
, "next" prompted to fill in the user and password.
Install prerequisite Software
- To install GCC:
yum -y install gcc
- Install g++:
yum -y install gcc-c++
- Install Gccgo:
yum -y install gcc-go
- To install the gadget:
yum -y install lrzsz screen
yum -y install socat nc nmap
Get the native public network IP
curl http://members.3322.org/dyndns/getip
-
Curl Ipinfo.io
{" ip ": " 36.110.42.197 " , "hostname ": ," city ": " Beijing " ," region ": < Span class= "hljs-string" > "Beijing Shi" , "country ": " CN " ," loc ": "39.9289,116.3883" , "org ": " AS4847 China Networks inter-exchange " }
References:
- How the CentOS virtual machine sets up the shared directory. and map the network drive under Windows?
- CentOS IP, DNS configuration
- How does the DNS for Linux be set up? How to change DNS address under Linux?
- Linux learning CentOS (33) –dns Foundation and Domain Name System architecture
- centos-Network Configuration specific explanation
CENTOS7 Development Environment Construction